Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

First independent community of traders

First independent community of traders Logo First independent community of traders Logo

First independent community of traders Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme
  • Home
  • About Us
  • Blog
  • Contact Us
Home/ Questions/Q 3813
Next
In Process
eroslove
eroslove

eroslove

  • 1 Question
  • 1 Answer
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
eroslove
Asked: December 26, 20202020-12-26T13:52:35+00:00 2020-12-26T13:52:35+00:00In: Forex Expert Advisors

Standard library UI component. CAppDialog. CPanel on it. the CPanel.Bottom() method that set doesn’t work?

  • 0

Hello everyone
  I sketched out a simple code demonstrating the problem. A dialog is created with a panel on it. And in the delegated handlers OnTimer and OnTick, the panel grows down (as it seems to me).
  And I would expect that by ticks And by timer, my CPanel object should grow down. In output, at least the numbers are growing, but the object on the screen is not. 
QL 0 11:31:04.448 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTimer Bottom=496
RI 0 11:31:05.359 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTick Bottom=497
QP 0 11:31:05.449 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTimer Bottom=498
QF 0 11:31:06.014 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTick Bottom=499
KS 0 11:31:06.446 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTimer Bottom=500
EM 0 11:31:07.440 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTimer Bottom=501
KH 0 11:31:07.609 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTick Bottom=502
GP 0 11:31:08.454 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTimer Bottom=503
IE 0 11:31:09.384 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTick Bottom=504
LD 0 11:31:09.445 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTimer Bottom=505
OM 0 11:31:10.447 ea (EURUSD,H1) CProblemShowDlg::UpdateDataTimer Bottom=506
CE 3 11:31:11.161 ea (EURUSD,H1) ExpertRemove() function called
  Of course, the numbers around 500 are surprising, although I create y2 = 50
  But maybe Bottom returns relative to the left. top of the chart or some other chart    But, OK, I would then expect that since the return method returns a value relative to a certain point, then the setting method would also have to be relative to the same point (so the string 
m_panel.Bottom( m_panel.Bottom() + 1);
quite logical)

 Maybe who knows what I’m doing wrong? Maybe you need a forced Redraw() of some kind?

  • 2 2 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. eroslove

      eroslove

      • 1 Question
      • 1 Answer
      • 0 Best Answers
      • 20 Points
      View Profile
      eroslove
      2020-12-26T13:52:43+00:00Added an answer on December 26, 2020 at 1:52 pm

      Thank you for your advice, because the problem is still relevant. I don’t know what to do.

      The only thing that came up is to really switch to another GUI library. After searching the community, I stopped at the library of Anatoly Kazharsky (respect to a friend):

      If suddenly someone can advise the noob something more adequate – I will be grateful.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. komposter

      komposter

      • 1 Question
      • 36 Answers
      • 0 Best Answers
      • 92 Points
      View Profile
      komposter
      2020-12-26T13:52:39+00:00Added an answer on December 26, 2020 at 1:52 pm

      The standard GUI has more surprises than functionality. Run away from it before you get stuck in.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    Stats

    • Questions 503
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 672
    • Popular
    • Comments
    • Tags
    • forexcommunity

      Highlighting what’s important about questions & Answers on Discy Community!

      • 0 Comments
    • forexcommunity

      Introducing Keyboard Shortcuts, our first Labs feature

      • 0 Comments
    • forexcommunity

      Defining quality on Discy Engine — what a helpful answer ...

      • 0 Comments
    • forexcommunity

      Organizational and company accounts on Discy Engine the next step

      • 0 Comments
    • forexcommunity

      Hello world!

      • 0 Comments

    Related Questions

    • pinupcasinoo

      Pin Up Casino

      • 0 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 2 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 0 Answers
    • c00l777

      Optimization results differ on different accounts

      • 3 Answers
    • fresto

      Invalid price error occurs

      • 2 Answers

    Users

    pinupcasinoo

    pinupcasinoo

    • 1 Question
    • 0 Answers
    JamesSwics

    JamesSwics

    • 0 Questions
    • 0 Answers
    Charlesnam

    Charlesnam

    • 0 Questions
    • 0 Answers

    Footer

    First independent community of traders

    About

    An independent community of forex traders. This is where traders communicate. You can ask your questions and you will receive an answer to your question.
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Knowledge Base
    • Support

    © 2021 Forexcommunity.net. All Rights Reserved