[Gambas-user] Disable closing window with X?
Ron
ron at ...1740...
Wed Sep 10 17:06:57 CEST 2008
Laurent Carlier schreef:
> Le mercredi 10 septembre 2008 15:05:17 Ron, vous avez écrit :
>
>> Hi,
>>
>> is there a way to disable closing a window by using the X in the titlebar?
>> or removing the X?
>>
>> If i use:
>> PUBLIC SUB Form_Close()
>>
>> STOP EVENT
>>
>> END
>>
>> ME.close is also disable ofcourse.
>>
>> I need it for a login window, I only want to accept closing via a
>> buttonpress after some checks...
>> Hmm I can add some logic I guess, and only do a stop event when user is
>> not auth.
>>
>> Regards,
>> Ron_2nd
>>
>>
>
> PRIVATE UserNotAuth AS BOOLEAN
>
> PUBLIC SUB Form_Close()
>
> if NOT UserNotAuth THEN STOP EVENT
>
> END
>
>
> Regards,
>
Yes thanks,
That will do just fine!
Just after typing my question something like this flashed before my eyes ;-)
Regards,
Ron.
More information about the User
mailing list