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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to