Re: Can't make widgets work [message #27948] |
Tue, 13 November 2001 08:56  |
Pavel A. Romashkin
Messages: 531 Registered: November 2000
|
Senior Member |
|
|
I think you need also some event handling code for anything to happen to
the GUI you made... And I think GUI builder is not going to write that
for you.
Pavel
xristos wrote:
>
> When i have created the GUI file *.prc and edit the procedures on the
> _eventcb.pro file, the widgets in the created application are not
> active. I clik at the open file from the menu but nothing happens. How
> widgets becomes active? What commands should i add at the procedures?
|
|
|
Re: Can't make widgets work [message #27997 is a reply to message #27948] |
Wed, 14 November 2001 14:57   |
Logan Lindquist
Messages: 50 Registered: October 2001
|
Member |
|
|
Pavel,
Real nice of you ! :)~P
Basically figure it out yourself and I'm not going to help.
xristos,
Look at Import_image.pro in the /lib/macros folder and the subsequent
Dialog_read_image.pro in the /lib folder for further help on how to program
widgets.
The code to activate a widget is something like this.
XManager, '[name of program]', [name of base widget], Cleanup= '[name of
cleanup procedure]', /No_Block
- Remove the [ ] and add in the appropriate code for your program
Speaking of which. Anyone have a good idea to activate and deactivate
buttons? In VB you can make the object visible but not active. This is kind
of what I am trying to do in IDL. Damn user interface. I'll probably just
rewrite the GUI in C# or something.
Gracias, Grazie, Danke, Merci, Agrade�a-o
Logan
"Pavel A. Romashkin" <pavel.romashkin@noaa.gov> wrote in message
news:3BF150AE.2F3F0E95@noaa.gov...
|
|
|
Re: Can't make widgets work [message #28061 is a reply to message #27997] |
Thu, 15 November 2001 09:14  |
Pavel A. Romashkin
Messages: 531 Registered: November 2000
|
Senior Member |
|
|
Logan Lindquist wrote:
>
> Pavel,
>
> Real nice of you ! :)~P
>
> Basically figure it out yourself and I'm not going to help.
Sorry, I didn't mean to sound like that.
I guess I should have written,
Please explain the issue more specifically, because it is difficult to
figure out what is wrong from the simple "I wrote some code, and it does
not seem to work".
A short code snippet usually helps.
Cheers,
Pavel
|
|
|