Re: [Plib-users] legend update
Brought to you by:
sjbaker
|
From: Stephen J B. <sj...@li...> - 2002-01-29 17:05:01
|
>> Someone already (correctly) pointed out that sliText is a local variable >> (which is certainly a problem) - but it's also not large enough. > >Correct Steve - thanks for pointing that out. > > However, there is yet another problem with your design. If you have more > than one slider connected to that callback, there will be only one string > buffer, but there has to be one for each slider. You surely don't want all > sliders to have the same legend. Yep - if there is more than one of these beasts, that's true. > A possible, but not the best, solution would be to abuse the slider's > string buffer to store the legend string. Yuk. > You could also derive your own > class from puSlider and add a char[] array member. That would work...or you could use the 'userdata' field to hold the array - that's *probably* what I would do. ---- Steve Baker (817)619-2657 (Vox/Vox-Mail) L3Com/Link Simulation & Training (817)619-2466 (Fax) Work: sj...@li... http://www.link.com Home: sjb...@ai... http://www.sjbaker.org |