Re: How to get windows id or title by clicking on it [message #66900 is a reply to message #66899] |
Thu, 18 June 2009 18:16  |
dosfun
Messages: 14 Registered: February 2009
|
Junior Member |
|
|
On 6月19日, 上午7时37分, Jeanphi62 <jyjean...@gmail.com> wrote:
> Good morning every one
> I work with a GUI which include up to 8 windows which have titles as
> "window 1 window 2 window 3...", and I would like to get the id of the
> window just exposing it (left click on the window) or the best should
> be to get the title of the window by left clicking on it as each one
> of these titles include the number of its window.
> I have already events linked with the drawing area inside of these
> windows, but as the user may avoid to move the mouse over the drawing
> area, I would need to get the event when clicking on the window itself
> (as every body does to put the window to the front-most window of the
> screen)
>
> Is there a simple function such as widget_control, event.top,
> get_window_title=title ??
>
> I am looking forward to hearing from you !
>
> Thanks a lot !
>
> JeanPhi
widget_control, event.top, set_uvalue = 'window 1'
widget_control, event.top, get_uvalue = windowName
do you mean to something like these?
|
|
|