Menu

custom window behavior

tourtelt
2010-06-18
2013-03-04
  • tourtelt

    tourtelt - 2010-06-18

    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

     
  • Pierre Sermanet

    Pierre Sermanet - 2010-06-25

    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

     

Log in to post a comment.

MongoDB Logo MongoDB