RE: [Plib-devel] puSlider
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2000-08-15 22:05:25
|
You have to specify the "vertical=FALSE" when you want to specify the width, even with the overloaded constructors. Steve is right, one constructor would be sufficient in that regard. Handling the "width=-1" option will take a bit of coding in the call to the "puObject" constructor but is certainly feasible. I agree that neither of the other two options I presented is optimal. I just wanted to make sure we had considered all the alternatives. John F. Fay joh...@eg... -----Original Message----- From: Steve Baker [mailto:sjb...@ai...] Sent: Tuesday, August 15, 2000 16:56 To: pli...@li... Subject: Re: [Plib-devel] puSlider Personally, I wouldn't have overloaded the constructor at all. I'd probably have done this: puSlider ( int minx, int miny, int sz, int vertical = FALSE, int width = -1 ) ...and then had this constructor simply treat width==-1 to mean "whatever height fits the text"...or whatever it means now. That forces you to say that you want a horizontal slider if you also want to set the width - but that doesn't seem too much of a chore to me. > Another way to fix this ... <snip> Hmm - I don't like any of those things. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net _______________________________________________ plib-devel mailing list pli...@li... http://lists.sourceforge.net/mailman/listinfo/plib-devel |