Subject Re: [IBO] Autolabel bug or bad behaviour
Author Geoff Worboys
> AutoLabel property of IB_Edit or IB_EditEnh:
> a) the "model" sub property let you choose (at design time)
> the same control (itself), hanging Dephi (crash!)

Not so much a bug as something we overlooked.


> b) the "model" sub property can be circular, i.e. Control1
> has Control2 as model, while Control2 has Control1. No
> problem at design time, I don't know at runtime.

Ditto.

I guess these two are something we should check for in the code. We
will get to them eventually :-)


> c) I want to increase the space between the end of the label
> (if left to the control) and the control, or the label and
> the top of the control (if top to the control). The property
> "margin" moves the label left/right if on top, or up/down if
> on the left. This is just the opposite of what should be.

Originally the label was using a layout of Center - but this caused
difficulties with Memo controls. So Margin was added so that the
layout could be Top, with a Margin definition provided to allow offset
from the top (for albLeft labels) to give better appearance.

You can achieve additional spacing on the right of the label by adding
a Suffix of one or more spaces. I generally add a suffix of ": "
which gives a nice look to the labels (I think).

We attempted to create the label in such a way as to reduce minimise
the number of published properties - while still providing sufficient
flexibilty.


> (I can not use the "RelativePosition" property because I want
> labels being "right aligned" on the left of the controls). I
> think my needs are the right one and there was just an
> inversion on your code.

Let me know if the above suggestions do not help and we will try to
come up with something else.


Geoff Worboys
Telesis Computing