Build 16.01 Menu Problem

Re: Build 16.01 Menu Problem

Postby cnavarro » Tue Feb 16, 2016 5:22 pm

Thanks

Image
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: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Build 16.01 Menu Problem

Postby betoncu » Tue Feb 16, 2016 5:51 pm

Have you run it on Windows XP?
Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
User avatar
betoncu
 
Posts: 126
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)

Re: Build 16.01 Menu Problem

Postby cnavarro » Tue Feb 16, 2016 5:53 pm

Ok, I'll try in XP

One moment
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: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Build 16.01 Menu Problem

Postby cnavarro » Tue Feb 16, 2016 6:20 pm

betoncu wrote:Have you run it on Windows XP?


Yes, you are right

In XP with SET EXACT ON, menus fail
I will seek a solution
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: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Build 16.01 Menu Problem

Postby cnavarro » Tue Feb 16, 2016 9:23 pm

The problem is in last change of function cWinVersion
Modify in source\classes\pdmenu.prg line 799

Code: Select all  Expand view

               if Empty( hMFont ) .and. cWinVersion() <> "XP"
                  lHFont     := .F.
                  DEFAULT hSysMenuFont := GetFontMenu()
                  hMFont   := hSysMenuFont
                  nHItem   := GetFontHeight( hMFont )
               endif
 


with

Code: Select all  Expand view

               if Empty( hMFont ) .and. ! "XP" $ cWinVersion() //<> "XP"
                  lHFont     := .F.
                  DEFAULT hSysMenuFont := GetFontMenu()
                  hMFont   := hSysMenuFont
                  nHItem   := GetFontHeight( hMFont )
               endif

 


and try
appreciate your comments
thanks
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: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Build 16.01 Menu Problem

Postby betoncu » Tue Feb 16, 2016 10:53 pm

Yes it works now.
I think it will be better if we use IsWinXP() function.

Since I dont know if you have used cWinVersion()<>"XP" in other prg's of the library
I have comment the line 146 in \fwh\source\function\getsysin.prg as a temp solution.
Code: Select all  Expand view
//   cVersion += IF( IsWin64(), " 64 ", " 32 " ) + "Bits"


I hope you can find a better solution in next build.
Many thanks for your help.
Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
User avatar
betoncu
 
Posts: 126
Joined: Sat Oct 08, 2005 9:38 pm
Location: Cyprus (North)

Re: Build 16.01 Menu Problem

Postby cnavarro » Tue Feb 16, 2016 11:06 pm

Ok, thanks
I'll talk to Antonio to see what decision will finally take

Regards
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: 6504
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

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