FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MENUITEM problem
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
MENUITEM problem
Posted: Thu Feb 04, 2016 09: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

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MENUITEM problem
Posted: Fri Feb 05, 2016 08: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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: MENUITEM problem
Posted: Fri Feb 05, 2016 08: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 March-April 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
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: MENUITEM problem
Posted: Fri Feb 05, 2016 04: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

Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: MENUITEM problem
Posted: Fri Feb 05, 2016 05:35 PM

I resolved the problem, upgrading to FWH 16.01

tks all

Continue the discussion