[Gambas-user] A little feature request about checkboxes
adamnt42 at ...626...
adamnt42 at ...626...
Wed Mar 4 23:54:13 CET 2015
On Wed, 4 Mar 2015 20:11:34 +0100
Fabien Bodard <gambas.fr at ...626...> wrote:
> Public Sub SELF_Arrange()
>
> $label.Width = $offset * Desktop.Scale
> $innercheckbox.x = $offset * Desktop.Scale + 2
> Me.Height = 3 * Desktop.Scale
>
> ' $innerBackground = $innercheckbox.Background
> ' $innerForeground = Me.Foreground
>
> End
>
> ... Why ?
>
> I don't understand the need for using these event
>
Ah, yes, that is a bit obscure.
This code is from a suite of labelled controls. LabelCheckbox, LabelTextBox, LabelCombo etc, all of which have labels set via the IDE. The Offset property ($offset) is used to align the data content of each of these so they line up vertically automatically as in the attached pic.
bruce
--
B Bruen <adamnt42 at ...3379... (sort of)>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Selection_059.png
Type: image/png
Size: 31219 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150305/f7b112ab/attachment.png>
More information about the User
mailing list