I'm trying to sort out some of the new stuff related to the mouse functions. One of the problems I'm running into is that text buttons and mouse buttons are frequently referred to as buttons in the example code I've found so far. (mousearound, page o buttons, etc)
I can eventually sort them out from the context, but it seems to me that, now that there are two kinds of buttons to play with, we need to start being more explicit.
Another problem I'm having is understanding how to tell which of two (text) buttons has been pressed. All I've found so far is the x and y values returned by the mouse functions. But these change with each new bar and as price moves around. If my (text) button is fixed relative to LEFT and /or TOP then it isn't clear to me how to tell them apart in the program.
And, x values returned by the mouse functions never go positive? Can this be fixed?
Suggestions, explanations or pointers to example code would be appreciated.
I can eventually sort them out from the context, but it seems to me that, now that there are two kinds of buttons to play with, we need to start being more explicit.
Another problem I'm having is understanding how to tell which of two (text) buttons has been pressed. All I've found so far is the x and y values returned by the mouse functions. But these change with each new bar and as price moves around. If my (text) button is fixed relative to LEFT and /or TOP then it isn't clear to me how to tell them apart in the program.
And, x values returned by the mouse functions never go positive? Can this be fixed?
Suggestions, explanations or pointers to example code would be appreciated.
Comment