comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: Floating Point Slider Widgets

Re: Floating Point Slider Widgets
type: item
description: 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
creator: David Fanning
date: 2003-09-12T12:53:15-00:00

Re: Floating Point Slider Widgets
type: item
description: 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
creator: Dr Paul Ducksbury
date: 2003-09-15T06:33:01-00:00