Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.idl-pvwave

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-12-2003, 09:29 AM
Dr Paul Ducksbury
Guest
 
Posts: n/a
Default Floating Point Slider Widgets

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


Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 09-12-2003, 12:53 PM
David Fanning
Guest
 
Posts: n/a
Default Re: Floating Point Slider Widgets

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
Reply With Quote
  #3 (permalink)  
Old 09-15-2003, 06:33 AM
Dr Paul Ducksbury
Guest
 
Posts: n/a
Default Re: Floating Point Slider Widgets

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



Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


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



All times are GMT. The time now is 04:21 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.