Top-level menu in print-preview

Top-level menu in print-preview

Postby byte-one » Sun Jun 25, 2017 7:58 am

As you see the texts of the menu are not centered. (tested 2010 and 2013) and also the area right from the menu are in the background-color of the window. In the main window from the app is ok.

Image
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Top-level menu in print-preview

Postby cnavarro » Sun Jun 25, 2017 10:17 am

RPreview.prg, METHOD BuildMenu, try

Code: Select all  Expand view  RUN

   MENU oMenu MENUBAR
 
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: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Top-level menu in print-preview

Postby byte-one » Sun Jun 25, 2017 11:40 am

Sorry, no effect!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Top-level menu in print-preview

Postby cnavarro » Sun Jun 25, 2017 9:25 pm

Sorry, try
Code: Select all  Expand view  RUN


   MENU oMenu

      oMenu:l2007    := ( nStyle == 2007 )
      oMenu:l2010    := ( nStyle == 2010 )
      oMenu:l2013    := ( nStyle == 2013 )
      oMenu:l2015    := ( nStyle == 2015 )

      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
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Top-level menu in print-preview

Postby byte-one » Mon Jun 26, 2017 6:41 am

Thank you!!
oMenu:lMenuBar:= .T. is functioning. But why not automatically in Top-Level menu? In the main-window this is factual.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria


Return to FiveWin for Harbour/xHarbour

Who is online

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