#1) Irrespective of the style used for buttonbar or menu of the Main Window, if you want Preview bar to use 2010 or 2007 style, please call this function
- Code: Select all Expand view
RPrevUserBtns( nil, 2010 )
or
- Code: Select all Expand view
RPrevUserBtns( nil, 2007 )
somewhere in the beginning of the Main() function of your project. This function requests the rpreview to use 2010 / 2007 style for its buttonbar.
#2)
- Code: Select all Expand view
DEFINE WINDOW oWnd TITLE urTitle FROM 0,0 TO 800, 1300 PIXEL MENU BuildMenu( ) STYLE 2010
This is not correct. 2010 or 2007 style is applicable to Buttonbars. Menus and MsgBars and not to windows.
Please do not specify STYLE 2010 when defining Window.
Please specify 2010 or 2007 according to your choice to buttonbar or menu to be used with MainWindow.
Example:
DEFINE BUTTONBAR oBar OF oWndMAIN 2010
MENU oMenu 2010
....
ENDMENU