[Gambas-user] Event in Menu

Rizky Tahara Shita rizky at ...225...
Thu Aug 28 04:47:18 CEST 2003


On Thursday 28 August 2003 09:31, Rizky Tahara Shita wrote:
> On Thursday 28 August 2003 09:01, Rizky Tahara Shita wrote:
> > On Friday 22 August 2003 12:53, Rob wrote:
> > > On Friday 22 August 2003 01:53, Rizky Tahara Shita wrote:
> > >
> > > You forgot the END in the sub before mnexit_Click().  (I think it's
> > > MenuCreating()...) I bet you just accidentally deleted it while editing
> > > code, I've done that.  In this case it's easy to overlook because the
> > > entire MenuCreating() sub isn't indented.
> > >
> > > Rob
> >
> > thank's rob... it works... no more errors on the code...
> >
> > but, when i run it... the form doesn't have any menu...
> > is that what really happen ???
>
> up's sorry... i've forgot to call the function MenuCreating()
> so i added that function in :
>
> PUBLIC SUB Form_Open()
>   MenuCreating()
> END
>
> but when i run the program again... it raise error like this:
>
> "Type Mismatch. The parent control of a Menu must be a Window or another
> Menu."
>
> it pointed to :
>
>   hMenu = NEW Menu(hMenu) AS "MnuEvent"
>
> why ?
>

up's sorry to bugging all the time with this menu event... btw, i've test a 
new one and it works... now i can use the code clearly...

thank you rob, fabien.





More information about the User mailing list