I just had a real quick look so far.... The biggest thing I don't really like
is all the duplicate resources that show up. I really didn't like duplicating
even the labelString, this now has even more duplicate resources, none of which
are handled by set_values either. One of the sources of _much_ frustration in
doing LessTif has been dealing with the renaming of resources of composite
widgets that shadow resources of the kids. Take a look at the FSB set_values
method, some of the most heavily commented code we have, mostly dealing with
FSB resources which are really resources of the kids. Also the ultimate goal
for this is to get the shell and the label out of the instance record for each
button and into the class record, since only 1 bubble is visible at any one
time. One shell, one label, and swap the label strings is the way it should be
done. I stopped where I did because I came to the conclusion that the _real_
place that this should be done is in Primitive. At the time this was out of my
control. Since then I have been gaining a little control :) Not enough yet, but
gaining.....


> I have used this widget in an application, and wanted the same things,
> so i added some resources to accomplish this. I did not add SetValues
> methods for this becource i didn't need it, as i set the values as
> fallbackresources as Rick suggested. I attach the modified widget for
> you to try out.
> 
> Regards
> Karsten Jensen

Reply via email to