MENUITEM problem

MENUITEM problem

Postby Romeo » Thu Feb 04, 2016 9:59 pm

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
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: MENUITEM problem

Postby cnavarro » Fri Feb 05, 2016 8:25 am

Thanks, we will see shortly
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: MENUITEM problem

Postby Silvio.Falconi » Fri Feb 05, 2016 8:44 am

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)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: MENUITEM problem

Postby Romeo » Fri Feb 05, 2016 4:21 pm

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: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: MENUITEM problem

Postby Romeo » Fri Feb 05, 2016 5:35 pm

I resolved the problem, upgrading to FWH 16.01

tks all
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 87 guests