From: Joakim V. <jo...@ve...> - 2004-03-26 09:59:26
|
Patrick Earl wrote: >On Thursday 25 March 2004 13:49, joakim verona wrote: > > >> dialog.Attach("scale", &scale); >> dialog.Attach("clockDelay", &clockDelay); >> dialog.Attach("repeat", &repeat); >> >> > >I implemented int* versions of the Attach methods. I also added >support for wxSlider. I didn't test any the recent changes, so it >may not work. I really need to head to bed. > > cool. >Another possibility is adding Attach methods like this: > > Attach(wxString name, double *ptr, double divisor); > >When the values come out of the slider it automatically performs the >division for you. The sliders could be phrased in terms of percent >or something like that. The XRC resource controls the range and >labels on the slider. > >Another possibility would be implementing our own double capable >sliders. Probably wouldn't be too hard, but not a trivial task >either. > > Well, there are a couple of "double" capable controls in the jazz gui, so we should figure out something to use at all such places. What would be useful is a combination of string entry box and a slider(or knob). Is it difficult to create your own widget in wxwidgets? or do I just subclass and instantiate 2 components within + glue logic, and voila new component like in "Swing"(or whatever modern toolkit)? How would the new component interface with wxwidgets gui builders like xrced or wxDesigner? Cheers, Joakim > Patrick > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >jazzplusplus-devel mailing list >jaz...@li... >https://lists.sourceforge.net/lists/listinfo/jazzplusplus-devel > > |