On Wed, 4 Mar 2015 20:11:34 +0100
Fabien Bodard <gambas...@gmail.com> 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 <adamn...@gnail.com (sort of)>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to