FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DEFINE WINDOW STYLE 2010 missing controls
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
DEFINE WINDOW STYLE 2010 missing controls
Posted: Wed Sep 25, 2013 12:21 AM

Working with Harbour / MSVC.

To utilize the new rpreview and get the theme appearance, it indicates I need to specify, in my main window, 2010.

Doing that, when I build with xHarbour ( .com ), my window controls ( Minimize, Maximize, Close ) are displayed

Doing that, when I build with Harbour / MSVC, those same window controls are missing.

Its the same code set.

What am I doing wrong ?

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
DEFINE WINDOW STYLE 2010 missing min, max, close
Posted: Thu Sep 26, 2013 04:20 PM

Why No response ?

This references the WINDOW command in the MAIN( ) procedure, used to create the Main window control.

To get away from the old Borland style in rPreview, we are told to set this to 2010, ie

DEFINE WINDOW oWnd TITLE urTitle FROM 0,0 TO 800, 1300 PIXEL MENU BuildMenu( ) STYLE 2010

When doing this, the Minimize, Maximize, and Close buttons disappear from the upper right corner of the window.
How can I get them back.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: DEFINE WINDOW STYLE 2010 missing controls
Posted: Fri Sep 27, 2013 04:29 PM
#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 (fw): Select all Collapse
RPrevUserBtns( nil, 2010 )

or
Code (fw): Select all Collapse
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 (fw): Select all Collapse
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
Regards



G. N. Rao.

Hyderabad, India
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: DEFINE WINDOW STYLE 2010 missing controls
Posted: Fri Sep 27, 2013 04:57 PM

Thank you. That resolves my problems.

Your assistance is always appreciated.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion