comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Widget Focus
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Widget Focus [message #81921] Fri, 09 November 2012 09:02 Go to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Hi David,

> In general, IDL is pretty poor about giving you this kind
> of control over widgets. However, there is one thing you
> might try. Try setting /SHOW on the TLB containing the
> list widget, then try to focus to the list widget.

What do you mean by setting the focus on the list widget? Do you mean something like:
WIDGET_CONTROL, TLB, /show
WIDGET_CONTROL, MyWidgetList, /show
Well this didn't work...

> I'm not expecting a lot of success. :-)

Yeah, I already got that awkward feeling...

Thanks.

Cheers,
Helder
Re: Widget Focus [message #81922 is a reply to message #81921] Fri, 09 November 2012 08:33 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Helder writes:

> first thing is that I'm still learning on how to use widgets and probably will for the rest of my life. However, what I'm trying to do is to scroll in a widget_list up and down with the keyboard. This works fine if you once click in a widget list and then go up and down.
> What I would like to do is to have automatically the "focus" on this list so that keyboard events (up and down) are directly processed. In my code, each time a new list element is selected, something happens, namely another window receives a:
> WIDGET_CONTROL, MyOtherWidget, /show
> Then I would like to go back to my list and be able again to go up and down with the keyboard. However, it doesn't matter if I use any of these:
> WIDGET_CONTROL, MyWidgetList, /show
> or
> WIDGET_CONTROL, MyWidgetList, SET_LIST_SELECT=Selected
>
> The only way to get the keyboard running again on this widget is by clicking on it.
>
> Does anybody know if there is a way to get around this?
>
> Thanks for any help.

In general, IDL is pretty poor about giving you this kind
of control over widgets. However, there is one thing you
might try. Try setting /SHOW on the TLB containing the
list widget, then try to focus to the list widget.

I'm not expecting a lot of success. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Widget Focus [message #83733 is a reply to message #81921] Tue, 26 March 2013 02:08 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Friday, November 9, 2012 6:02:40 PM UTC+1, Helder wrote:
> Hi David,
>
>
>
>> In general, IDL is pretty poor about giving you this kind
>
>> of control over widgets. However, there is one thing you
>
>> might try. Try setting /SHOW on the TLB containing the
>
>> list widget, then try to focus to the list widget.
>
>
>
> What do you mean by setting the focus on the list widget? Do you mean something like:
>
> WIDGET_CONTROL, TLB, /show
>
> WIDGET_CONTROL, MyWidgetList, /show
>
> Well this didn't work...
>
>
>
>> I'm not expecting a lot of success. :-)
>
>
>
> Yeah, I already got that awkward feeling...
>
>
>
> Thanks.
>
>
>
> Cheers,
>
> Helder

Hi,
just to inform you. I've been shown that it is possible to set the keyboard focus to a widget_list widget by using the /input_focus keyword in widget_control. I'm not sure that this would work on any platform, but it does under windows (7, 64 bit).
The input_focus keyword is specified for buttons, draw and text widgets. However, the help also says: "While this keyword will set the focus to widgets of other types, the exact location of the focus is not well defined."

Just in case anybody is interested (except me...).

Cheers,
Helder
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Tickmark label orientation
Next Topic: مواصفات جلاكسى نوت Samsung GALAXY Note 8.0 - سعر سامسونج جلاكسى نوت 8

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:34:19 PDT 2025

Total time taken to generate the page: 0.00535 seconds