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

Home » Public Forums » archive » Re: another Dumb Widget question...
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: another Dumb Widget question... [message #46016] Wed, 26 October 2005 03:00
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
Rick Towler wrote:
> While others have provided the answer you were looking for, I'm going to
> suggest that you check out David's FSC_INPUTFIELD as an alternative to
> your label/text widget pairs.

Another thanks for a useful pointer.

On the one hand I'm a bit surprised at how involved the whole thing has
turned out to be, but OTOH I'm glad I wasn't being as Extremely Thick as
I'd suspected in not cracking it myself... I'd wondered if it would be
a case of "RTFM /magic_keyword"... ;-/

Pete.
--
Peter Clinch Medical Physics IT Officer
Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
Re: another Dumb Widget question... [message #46024 is a reply to message #46016] Tue, 25 October 2005 09:50 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
While others have provided the answer you were looking for, I'm going to
suggest that you check out David's FSC_INPUTFIELD as an alternative to
your label/text widget pairs. His code performs simple type checking
and allows you to set tab order among other things. Once you start
using it you'll never go back...

You can find it in his program library under general widget programs.

www.dfanning.com

-Rick



Peter Clinch wrote:
> My first widget program is coming along quite well, but I've just spent
> a frustrating couple of hours failing to work out how to get some user
> input into it through a custom dialog box :-(
>
> I've created the dialog okay with a couple of label widgets, a couple of
> editable text widgets and a couple of buttons onto a new base widget and
> then relaizing the new base alongside the main application's base
> widget, but what I can't work out is how to set up a callback for the
> buttons, since xmanager is working with the original base. I tried
> adding a GROUP_LEADER of the main app's base widget to the dialog but
> that didn't seem to work.
>
> Will someone nudge me in the right direction please?
>
> Ta, Pete.
Re: another Dumb Widget question... [message #46034 is a reply to message #46024] Tue, 25 October 2005 05:54 Go to previous message
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
Peter Albert wrote:

> the website proposed by Benjamin is surely a very good point to start
> with.
<snip>

That looks like the sort of thing... thanks guys!

Pete.
--
Peter Clinch Medical Physics IT Officer
Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
Re: another Dumb Widget question... [message #46035 is a reply to message #46034] Tue, 25 October 2005 05:32 Go to previous message
peter.albert@gmx.de is currently offline  peter.albert@gmx.de
Messages: 108
Registered: July 2005
Senior Member
Hi Pete,

the website proposed by Benjamin is surely a very good point to start
with. In addition, I would just like to emphasis one detail (given
there as well) which explains why you don't get any reaction when
pressing buttons on the second widget. It is just that you need a
second event handling routine and a second call to xmanager when you
build the second widget.

Cheers,

Peter
Re: another Dumb Widget question... [message #46036 is a reply to message #46035] Tue, 25 October 2005 05:09 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Peter Clinch wrote:
> My first widget program is coming along quite well, but I've just spent
> a frustrating couple of hours failing to work out how to get some user
> input into it through a custom dialog box :-(
>
> I've created the dialog okay with a couple of label widgets, a couple of
> editable text widgets and a couple of buttons onto a new base widget and
> then relaizing the new base alongside the main application's base
> widget, but what I can't work out is how to set up a callback for the
> buttons, since xmanager is working with the original base. I tried
> adding a GROUP_LEADER of the main app's base widget to the dialog but
> that didn't seem to work.
>
> Will someone nudge me in the right direction please?
>
> Ta, Pete.

I'm not really sure what you want, but the following might be useful:

http://www.dfanning.com/widget_tips/popup.html

Good luck,
Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: A color table for topography
Next Topic: Georeferencing satellite data in batch-mode ENVI?

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

Current Time: Wed Oct 08 13:53:27 PDT 2025

Total time taken to generate the page: 0.00757 seconds