I want to draw a small colored rectangle around the location in a Window that the mouse clicks.
It seems to me that perhaps the best way of accomplishing this (or custom functionality like this) would be to write my own custom window class that inherits from Window, and then for class idxgui (and gui_thread) to have a method named something like "add_window" that could add a custom window.
Does this sound like the right approach? If not, what do you suggest?
George
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you mean that you want to display another Window object when the user clicks in a specific region of the current Window?
If yes, then I suggest adding a method that can register other Window objects to the current one, specifying when to show the subwindow (e.g. click in an area, or just hover an area).
I am not sure there is a need for customized Window here?
Pierre
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I want to draw a small colored rectangle around the location in a Window that the mouse clicks.
It seems to me that perhaps the best way of accomplishing this (or custom functionality like this) would be to write my own custom window class that inherits from Window, and then for class idxgui (and gui_thread) to have a method named something like "add_window" that could add a custom window.
Does this sound like the right approach? If not, what do you suggest?
George
Hi George,
Do you mean that you want to display another Window object when the user clicks in a specific region of the current Window?
If yes, then I suggest adding a method that can register other Window objects to the current one, specifying when to show the subwindow (e.g. click in an area, or just hover an area).
I am not sure there is a need for customized Window here?
Pierre