[Gambas-user] ToggleButton issue
Charlie Ogier
charlie at cogier.com
Fri Feb 18 17:14:44 CET 2022
Thanks Fabien but I think you have missed the point. The Action has only
been created not activated.
Have a look at this example. The problem does not occur with a Button
but does with a ToggleButton.
'**********************************
/But As Button//
//TB As ToggleButton//
//VBox1 As VBox//
//
//Public Sub Form_Open()//
//
// Dim iLoop As Integer//
//
// With Me//
// .Arrangement = Arrange.Horizontal//
// .Padding = 5//
// .W = 350//
// .H = 200//
// End With//
//
// VBox1 = New VBox(Me)//
// VBox1.Expand = True//
//
// For iLoop = 0 To 5//
// With But = New Button(VBox1)//
// .H = 28//
// .W = 100//
// .Text = "&Click Button!"//
// .Font.Bold = True//
// .Picture = Picture["icon:/22/right"]//
// .Action = "setup" 'This is the line DOES NOT causes a problem//
// End With//
// Next//
//
// VBox1 = New VBox(Me)//
// VBox1.Expand = True//
//
// For iLoop = 0 To 5//
// With TB = New ToggleButton(VBox1)//
// .H = 28//
// .W = 100//
// .Text = "&Click ToggleButton!"//
// .Font.Bold = True//
// .Picture = Picture["icon:/22/right"]//
// .Action = "setup" ''This is the line that causes the problem//
// End With//
// Next//
//
//End/
'**********************************
On 17/02/2022 14:32, Fabien Bodard wrote:
> 17 févr. 2022 à 15:31, Fabien Bodard<gambas.fr at gmail.com> a écrit :
>> Hi Olivier
> Oups ... Sorry Charlie :-D
>
> ----[http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220218/d56980ce/attachment.htm>
More information about the User
mailing list