[Gambas-user] Delete button ?

dirk yodi at gmx.net
Tue Jan 3 16:05:19 CET 2023



Am 03.01.23 um 15:56 schrieb gian via User:
> Il 03/01/23 15:40, gian via User ha scritto:
>> Il 03/01/23 15:16, dirk ha scritto:
>>>
>>>
>>> Am 03.01.23 um 14:24 schrieb T Lee Davidson:
>>>> On 1/3/23 07:48, dirk wrote:
>>>>>
>>>>>
>>>>>
>>>>> I create a button like this in the form 'lager':
>>>>>
>>>>> ' Gambas class file
>>>>> ' lager.class
>>>>> '
>>>>> Public Sub Form_Open()
>>>>>
>>>>>   With ButtonSave = New Button(FMain.Panel1) As "ButtonP"
>>>>>        .H = 28
>>>>>        .W = 28
>>>>>        .X = 959 - 35
>>>>>        .Y = 5
>>>>>        .Expand = False
>>>>>        .Picture = Picture["icon:/32/print"]
>>>>>
>>>>>      End With
>>>>> End
>>>>>
>>>>> If I make another form visible in workspace1, the button should
>>>>> disappear.
>>>>>
>>>>> the button should only be visible if the form is 'lager' visible.
>>>>>
>>>>>
>>>>> --
>>>>> Dirk
>>>>
>>>> It is difficult to tell exactly what you're trying to accomplish
>>>> without
>>>> knowing what forms you have in your project. But, "New
>>>> Button(FMain.Panel1)" creates a button with FMain.Panel1 as its
>>>> parent -
>>>> thereby placing it on the FMain form.
>>>>
>>>> Gianluigi's example is a good illustration.
>>>>
>>>>
>>> Hello,
>>>
>>> I don't know how to describe it.
>>> I took two pictures, I hope it is understandable what I want.
>>>
>>> Greetings Dirk
>>>
>>>
>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>> You can put the button as public although it is a practice I do not
>> recommend.
>> If you look at Benoit's code (the IDE uses workspace) he uses button
>> bars inside the window which is a better practice.
>>
>> Example attached
>>
>> Regards
>>
>> Gianluigi
>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
> I recommend it like this (see attached)
>
> Regards
>
> Gianluigi
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----


I have problems opening the archive




More information about the User mailing list