Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
In article <4V1LB3XC@gwdu03.gwdg.de> hschult@gwdgv1 writes: > Hello, > > we recently purchased IDL, and I am very enthusiastic about it. However, I > am having some problems programming complex widgets -- maybe someone out there > can help me: > > I want to make a widget which will adjust the value of an integer, either up > or down depending on whether I click on an up-arrow or down-arrow next to the > value. Call this widget "ticker" for want of a name. > he wanted to make 1) a ticker (spin button) 2)tried with bitmap buttons, but the problem of couldn't put the bitmap in untill realized will create probelms 3)placement problems Well bad news as a whole. First pleaser remember that IDL wasn't designed as a GUI tool kit, it just conviently added widget to allow people like use to create interfaces. Spin buttons don't exist (or I haven't found any yet) in IDl. As for the realization problem, it is correct. I would suggest reading up on compound widget, I believe you might be able to realize you compound widget independently of the rest of the application (not sure because I haven't played with them much) see chapet 20 of the USer's guide. As for the placement problems, yes you cannot place it exactly, but the idea is that it should be a lose placement, where you specify /rows and /col and sizing and placement are taken care of automaticly. Fixed sizing little buttons isn't to terrible (but they might appear tiny or huge on another screen, or not fit the default font,etc..) Patience and lots of trial and error. -best of luck to you stephen Strebel Stephen C Strebel / SKI TO DIE stl@maz.stl.ch / and Swiss Meteorological Institute / LIVE TO TELL ABOUT IT 01 256 93 85 / (and pray for snow) -- Stephen C Strebel / SKI TO DIE stl@maz.stl.ch / and Swiss Meteorological Institute / LIVE TO TELL ABOUT IT 01 256 93 85 / (and pray for snow)
In article <2jslv4INN3p9@i32.sma.ch> stl@sma.ch (Stephen Strebel) writes: Well bad news as a whole. First pleaser remember that IDL wasn't designed as a GUI tool kit, it just conviently added widget to allow people like use to create interfaces. Was IDL actually *designed*? I'm starting to appreciate it as a tool, but it's so ... random and senseless. There's so little rhyme or regularity in the syntax, and so many bizarre things to remember, that I can't help thinking that even the official package (oppose the various free toolkits you can get) "just grew that way". Patience and lots of trial and error. Exactly. (Of course, one could always write one's *own* spin-button widget...) -- --Craig DeForest