[Gambas-user] Delete button ?
dirk
yodi at gmx.net
Tue Jan 3 15:16:31 CET 2023
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lager-klein.png
Type: image/png
Size: 100592 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230103/120d6965/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v?lker2.png
Type: image/png
Size: 110595 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230103/120d6965/attachment-0003.png>
More information about the User
mailing list