Hey Dushan,

2010/3/13 Dushan Savich <[email protected]>:
> Hi all, again :-)
>
> In Delphi/C++ Builder ,  there is  this useful control which combined
> Label  and Edit ,   because , almost any time you would ever need a
> WLineEdit , you would also need a label to explain what that LineEdit does.
>
> I am aware of the fact that there is a setBuddy method in witty, but that's
> 3 lines of code , instead of one, and in many situations, that can be really
> boring to type, for example, when you have form with 20 edit fields :-)  .

I understand that it is a bit verbose, but why not have a helper
function that instantiates both ?

> Anyway, maybe the good solution would be to make FormField::label()  to
> create the  new( Label )  , if there isn't one already defined with setBuddy
> ?

However, then is the problem of where to put the label? You usually
want some control over that.

Regards
koen

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to