DEFINE WINDOW STYLE 2010 missing controls

DEFINE WINDOW STYLE 2010 missing controls

Postby TimStone » 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
Last edited by TimStone on Thu Sep 26, 2013 4:21 pm, edited 1 time in total.
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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

DEFINE WINDOW STYLE 2010 missing min, max, close

Postby TimStone » Thu Sep 26, 2013 4: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: DEFINE WINDOW STYLE 2010 missing controls

Postby nageswaragunupudi » Fri Sep 27, 2013 4: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: 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
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: DEFINE WINDOW STYLE 2010 missing controls

Postby TimStone » Fri Sep 27, 2013 4: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests