[Gambas-user] Gambas EVENT - RAISE

Vince Scott (SBC) vince.scott at ...770...
Wed Mar 14 22:51:25 CET 2007


Nope. That didn't work for me. It compiled and ran but the event doesn't
seem to fire or I am not capturing it correct. Not sure what is wrong. What
if you had more than one event within a class? Using this syntax 'PRIVATE
oKeyboard as New cKeyboard AS "oKeyboard"' Does this capture all of them?
Does the AS name on the end have to be the name of the object or can it be
anything? 



-----Original Message-----
From: gambas-user-bounces at lists.sourceforge.net
[mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Laurent
Carlier
Sent: Wednesday, March 14, 2007 2:31 PM
To: mailing list for gambas users
Subject: Re: [Gambas-user] Gambas EVENT - RAISE

Le Wednesday 14 March 2007 22:26:26 Vince Scott (SBC), vous avez écrit :
> Thanks, I think I am doing the same thing you are...
>
> Here is what I did:
>
> Inside cKeyboard class
>
> '*** Defined Outside Methods
>
> EVENT SendKey(p_Key AS String) as Boolean
>
> '*** Group Click Event From Button Group
>
> Public SUB grpKeys_Click()
>
>   Dim Ret as Boolean
>
>   Ret = RAISE SendKey(LAST.Tag)
>
> END
>
>
> '*** Inside FORM or an Encapsulated Class module
>
> Dim oKeyboard as New cKeyboard
>
> '*** Setup to Capture Event
>
> PUBLIC SUB oKeyboard_SendKey(p_Key AS String)
>
>    'NEVER GET THIS EVENT
>
> END
>
>

-> Dim oKeyboard as New cKeyboard AS "oKeyboard"

You must define a name for the event handler.

++




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list