Re: [Plib-users] legend update
Brought to you by:
sjbaker
|
From: Sebastian U. <ud...@ha...> - 2002-01-29 15:36:13
|
On Tue, 29 Jan 2002, sj...@li... (Stephen J Baker) wrote: > Date: Tue, 29 Jan 2002 08:31:04 -0600 (CST) > To: <pli...@li...> > From: sj...@li... (Stephen J Baker) > Reply-To: sj...@li... > Subject: Re: [Plib-users] legend update [...] > 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. A possible, but not the best, solution would be to abuse the slider's string buffer to store the legend string. You could also derive your own class from puSlider and add a char[] array member. - Sebastian |