MENUITEM problem

Post Reply
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

MENUITEM problem

Post by Romeo »

Hi to all,

i got problem in new release FWH 15.12 and Harbour 3.2.0dev (r1601050904)

You can see di problem using the TESTMENU.PRG in samples dir of Fwin

It seems not working when use file BMP in MENUITEM:

Example

MENUITEM FILE "..\BITMAPS\END.BMP" MESSAGE "BLA BLA" action oWnd:End()

*DOES NOT Work !! if you click on it, it does NOTHING

but if i change it into:

MENUITEM PROPT "EXIT" MESSAGE "BLA BLA" action oWnd:End()

IT Works well

Any help ?
tks
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: MENUITEM problem

Post by cnavarro »

Thanks, we will see shortly
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: MENUITEM problem

Post by Silvio.Falconi »

MENUITEM FILE "..\BITMAPS\END.BMP" MESSAGE "BLA BLA" action oWnd:End()

the syntax is wrong

menuitem want a say as

MENUITEM "Specificare la stampante"
file "MENU.bmp" ;
ACTION PrinterSetup() ;
MESSAGE "bla bla "

if you use a variable sample oItem

menuitem oItem Prompt " blabla" ;
file "MENU.bmp" ;
ACTION PrinterSetup() ;
MESSAGE "bla bla "



the file testmenu.prg here run ok

you can use also
MENUITEM FILE "..\bitmaps\print.bmp" MESSAGE "Funciona ? Shift-F2" ;
ACTION MsgInfo( "Hello, I am a Girl!" )


here the menuItem

MENUITEM FILE "..\bitmaps\End.bmp" MESSAGE "Bye, bye... -F2-" ;
ACTION oWnd:End() ;
ACCELERATOR 0, VK_F2

run ok ( fwh16.02)
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: MENUITEM problem

Post by Romeo »

I am using the FWH 8.10 from years and normally i used without problem:

MENUITEM FILE "myimage.bmp" MESSAGE "Ciao" ACTION MsgInfo( "Ciao") && see TESTMENU.PRG in SAMPLES dir

A few days ago i upgrade FWH 8.10 to FWH 15.12, but the above LINE does not work, it works only if i put also SAY:

MENUITEM "Ciao" FILE "myimage.bmp" MESSAGE "Ciao" ACTION MsgInfo( "Ciao")

But it is not what i need, it seems a problem of my release.

If you say that the FWH 16.02 relase is ok, it means the 15.12 is a little "fake"

I hope Antonio give me upgrade to it. i bought the FWH 15.12 on Genuary/2016

Tks

R
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: MENUITEM problem

Post by Romeo »

I resolved the problem, upgrading to FWH 16.01

tks all
Post Reply