On Sat, 3 Jun 2006 14:04:51 +0200
Burkhard Carstens <[EMAIL PROTECTED]> wrote:
> []
> > > >Why is btnOk more clear/readable than OkButton?
> > >
> > > sure,it doesn't matter on a form with two buttons and one label,
> > > but I have some forms containg some dozend control. Now if I want
> > > to change a property of that one button, who's name i cant remenber
> > > exactly, but I now it is a button and it is related to settingn a
> > > minimum range for something, I just enter "btnMin" Ctrl-Space and
> > > code-tools let me choose ..
> >
> > This doesn't completely convince me. If you named your button
> > MinXXXButton, you could have entered "Min" Ctrl-Space and you could
> > just pick the button from that list. I am not sure what is easier,
> > typing the btn prefix or choosing the button from the edits,
> > combobox, labels, whatever.
>
> well, having about 25 adjustable "min" values, a label and a button for
> each, + some witch checkboxes (to enable/disable), some with sliders,
> some with comboboxes, some other with edit fields.. min+codetools gives
> me a choice of more than 100 items, while btnMin+codetools gives me
> ~20 ..
The 'min' system is not, what we are using.
Maybe you should give path names a try. Most forms have less than 10
different component types. And often 90% of them are only 5 different types.
So a type prefix only reduces to one fifth (by typing 3 letters). That means
the type prefix system gets worse on bigger forms. With path names the ratio
is often much better, especially after typing 3 letters. For example a form
with 100 components has often several pages and groupboxes to group controls
visually into categories. Each category has only a few controls. Use the
category as prefix.
> However, for me it has proven to be the best way, but my programs tend
> to be rather complex (mostly controlling software for a complex
> measurement system, which is still in some kind of developement state,
> so we need to adjust a lot of parameters).
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives