|
|||
|
Im using IDL 6 and widgets and now would like a floating point slider in my
GUI. Using the graphical creation tool for designing a GUI appears only to allow you to put in a standard (integer) slider and tells you that you shouldnt edit the .pro file generated from the .rpc as its generated automatically, so that only leaves the event.pro file. Now i've found the CW_FSLIDER function but that doesnt appear to allow for positioning of the slider relative to other widgets etc etc Is there an easy way of putting a floating point slider widget into a GUI and position it relative to other widsgets ? I have only been looking at this for a few days so i may have missed the obvious regards Paul Ducksbury |
|
|
||||
|
||||
|
|
|
|||
|
Dr Paul Ducksbury writes:
> Im using IDL 6 and widgets and now would like a floating point slider in my > GUI. > > Using the graphical creation tool for designing a GUI appears only to allow > you to put in a standard (integer) slider and tells you that you shouldnt > edit the .pro file generated from the .rpc as its generated automatically, > so that only leaves the event.pro file. Now i've found the CW_FSLIDER > function but that doesnt appear to allow for positioning of the slider > relative to other widgets etc etc > > Is there an easy way of putting a floating point slider widget into a GUI > and position it relative to other widsgets ? Well, not given the way CW_FSLIDER is written. But a couple of well-placed _EXTRA keywords would probably make a five minute job of it. But I would ditch the "graphical creation tool", too, while I was at it. You won't learn anything but bad habits if you write your code with that. :-) (It's true that you can write awful widget programs by hand, too. But at least if you do, you have a better chance of fixing them.) You might find this article helpful: http://www.dfanning.com/widget_tips/gui_builder.html > I have only been looking at this for a few days so i may have missed the > obvious Guys who have only been here a few days always seem to point out that the Emperor has no clothes. We all know that, but most of us ignore it and go to work anyway, just because we love him so. :-) Cheers, David -- David W. Fanning, Ph.D. Fanning Software Consulting, Inc. Phone: 970-221-0438, E-mail: david@dfanning.com Coyote's Guide to IDL Programming: http://www.dfanning.com/ Toll-Free IDL Book Orders: 1-888-461-0155 |
|
|||
|
Yeh, I did think, 'this is nice but i cant do so-and-so' a few times
(amoungst other things) thanks Paul "David Fanning" <david@dfanning.com> wrote in message news:MPG.19cb6fa77e9a1a4f9896e6@news.frii.com... > Dr Paul Ducksbury writes: > > > Im using IDL 6 and widgets and now would like a floating point slider in my > > GUI. > > > > Using the graphical creation tool for designing a GUI appears only to allow > > you to put in a standard (integer) slider and tells you that you shouldnt > > edit the .pro file generated from the .rpc as its generated automatically, > > so that only leaves the event.pro file. Now i've found the CW_FSLIDER > > function but that doesnt appear to allow for positioning of the slider > > relative to other widgets etc etc > > > > Is there an easy way of putting a floating point slider widget into a GUI > > and position it relative to other widsgets ? > > Well, not given the way CW_FSLIDER is written. But a couple > of well-placed _EXTRA keywords would probably make a five minute > job of it. > > But I would ditch the "graphical creation tool", too, > while I was at it. You won't learn anything but bad > habits if you write your code with that. :-) > > (It's true that you can write awful widget programs by > hand, too. But at least if you do, you have a better > chance of fixing them.) > > You might find this article helpful: > > http://www.dfanning.com/widget_tips/gui_builder.html > > > I have only been looking at this for a few days so i may have missed the > > obvious > > Guys who have only been here a few days always > seem to point out that the Emperor has no clothes. > We all know that, but most of us ignore it and go > to work anyway, just because we love him so. :-) > > Cheers, > > David > > -- > David W. Fanning, Ph.D. > Fanning Software Consulting, Inc. > Phone: 970-221-0438, E-mail: david@dfanning.com > Coyote's Guide to IDL Programming: http://www.dfanning.com/ > Toll-Free IDL Book Orders: 1-888-461-0155 |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| combinators using case-lambda and more point library procedures | wayo.cavazos@gmail.com | Newsgroup comp.lang.scheme | 0 | 03-30-2009 06:04 PM |
| Re: macro variables -- assigning and retriving floating point | Rushi Patel | Newsgroup comp.soft-sys.sas | 0 | 02-02-2006 02:52 PM |
| Re: macro variables -- assigning and retriving floating point | Jiann-Shiun Huang | Newsgroup comp.soft-sys.sas | 0 | 02-01-2006 10:35 PM |
| Re: macro variables -- assigning and retriving floating point | Terjeson, Mark | Newsgroup comp.soft-sys.sas | 0 | 02-01-2006 10:07 PM |
| macro variables -- assigning and retriving floating point values | Rushi Patel | Newsgroup comp.soft-sys.sas | 0 | 02-01-2006 09:46 PM |