FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Menus and Menubar Painting errors
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Menus and Menubar Painting errors
Posted: Sat Apr 28, 2018 01:01 AM
Dear Mr.Antonio/Mr.Crist贸bal,

It was all ok few versions ago when we use Menus in our application.

But past one year or more, there is a lot of inconsistency between versions
in respect of Menus painting.

This is the screen shot taken from the latest FiveDbu's preview menu:



Please look at the picture:

A) Gradiance is missing throughout the menu bar and it is restricted upto the last menu item.

B) 2nd Menu item is too much left justified.

C) The gap (Horizontal or Vertical) between the menu items is not common always and it is looking odd.

I often use 2007 clause in my applications to paint menus or paint default windows theme

Hope this is taken care soon.

My best Regards,

-Ramesh Babu
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Menus and Menubar Painting errors
Posted: Sat Apr 28, 2018 02:15 AM
Dear Ramesh Babu
What version of Fw are you using?
There have not been any changes to the menus since version 17.09

Please look wiki of fivetech
http://wiki.fivetechsoft.com/doku.php?i ... _fwh_17.09
http://wiki.fivetechsoft.com/doku.php?i ... 30_06_2017

In any case, try the following, and tell me
Please tell me also your version of Fwh
Code (fw): Select all Collapse
MENU oMnu MENUBAR

// or

MENU oMnu
oMenu:lMenuBar  := .T.
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: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: Menus and Menubar Painting errors
Posted: Mon Apr 30, 2018 01:06 PM

Mr.Crist贸bal,

Thanks for your reply.

This sample is generated from the latest FWDBU downloaded from the following
posting.

viewtopic.php?f=3t=35428start=15

The EXE must have been generated with the latest FWH Build.

-Ramesh Babu

&&

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Menus and Menubar Painting errors
Posted: Mon Apr 30, 2018 03:29 PM
Excuse me Mr Ramesh Babu
You are right, I had not seen that you were talking about the Preview menu. I was not talking about the main menu of the application.
This occurs when the WndMain window is TMDIFRAME
It was difficult to find and fix the bugs that had the menus in the MDI windows, and I thought that this issue was also solved
How to fix it?, Please try the following:
1 Option: In your RPREVIEW.PRG try adding the following lines after the menu definition

聽聽聽 MENU oMenu
聽聽聽聽聽聽 oMenu: l2007: = (nStyle == 2007)
聽聽聽聽聽聽 oMenu: l2010: = (nStyle == 2010)
聽聽聽聽聽聽 if Upper (:: oWndMain: ClassName ()) == "TMDIFRAME"
聽聽聽聽聽聽聽聽聽 oMenu: lMenuBar: = .T.
聽聽聽聽聽聽 endif


or

2 Option: in your PDMENU.PRG try commenting lines 200 and 201

聽聽聽聽聽 // else
聽聽聽聽聽 // oMenu: lMenuBar: = if (Len (aAuxMenus) = 0, .T., .F.)


Please try option 1 or option 2 and tell me
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

Continue the discussion