On Mon, 2012-10-08 at 15:59 +0200, Fabien Bodard wrote:
> Yes it's true since gambas 0.2 (10 year ago :-)
>
Sheesh! For years I've been labouring under the misunderstanding that
it only worked for controls.
:-)
Bruce
-
Yes it's true since gambas 0.2 (10 year ago :-)
Remember that : an object is simply an instantiated class.
My class=new mclass
My class is an object
Le 8 oct. 2012 10:52, "Bruce" a écrit :
> "Last represent the last fired menu.. in fact its the class or control
> that have raised the event"
>
"Last represent the last fired menu.. in fact its the class or control
that have raised the event"
Fabian,
Is that true? What I am reading is:
"LAST (now) gives a reference to the object that raised the event,
whether that be an instance of any class (or a control on a form)."
Which gives much
Le 08/10/2012 10:45, Bruce a écrit :
> Sheesh! Since when did Last work with Menus?
Since Gambas 0.20?
'Last' works for any event handler.
--
Benoît Minisini
--
Don't let slow site performance ruin your business. Deplo
On Sun, 2012-10-07 at 13:26 +0200, Willy Raets wrote:
>
> Replaced hMenuItem with Last in event and all works well now
>
Sheesh! Since when did Last work with Menus?
Someone snuck something in without telling me!
Rats! Now I have a whole bunch of stuff to rewrite.
:-)
Bruce
-
On Sun, 2012-10-07 at 10:13 +0200, Fabien Bodard wrote:
> >> > >
> >> > > Public Sub _MenuEvent_Click()
> >> > >
> >> > > Dim iX, iLength As Integer
> >> > > Dim AddOnToRun As String
> >> >
> >> > When this is run, hMenuItem will be the last item you added, therefore
> >> > no matter how many A
Oups yes ... It's not the good answer
Hmenuitem can be only local... In your case it contain the last created
menu . Thats why it use the last item properties .
In the event use LAST at the place of hMenuitem. and all will go fine.
Last represent the last fired menu.. in fact its the class or co
Have you try without the underscore in the event handler name ?
Le 7 oct. 2012 09:52, "Tobias Boege" a écrit :
> > > With 1 AddOn in the file (lets say AddOnOne) the menu shows AddOnOne
> and
> > > when clicking runs the application AddOnOne
> > >
> > > With 2 AddOns in the file (lets say AddOnOn
> > With 1 AddOn in the file (lets say AddOnOne) the menu shows AddOnOne and
> > when clicking runs the application AddOnOne
> >
> > With 2 AddOns in the file (lets say AddOnOne and AddOnTwo) the menu
> > shows AddOnOne and AddOnTwo and When clicking either one of them
> > AddOnTwo is ALWAYS run.
Hi Willy,
Se my comments below.
hth
Bruce
On Sun, 2012-10-07 at 03:49 +0200, Willy Raets wrote:
> Hi,
>
> I'm working on a Add On enabled application.
>
> Have this module called AddOns taking care of things.
> I looks in a hidden folder AddOns for the file AddOnsInfo
> This file content looks
Hi,
I'm working on a Add On enabled application.
Have this module called AddOns taking care of things.
I looks in a hidden folder AddOns for the file AddOnsInfo
This file content looks like this (without the ---):
---
2
AddOnOne
AddOnTwo
---
2 means two AddOns are in the AddOns folder (normal ga
11 matches
Mail list logo