FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Button in Dialog not themed 7.05
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Button in Dialog not themed 7.05
Posted: Tue Jul 03, 2007 04:55 PM

On the latest FWH release, with the latest xHarbour, running in Vista. On a dialog, my buttons are the old boxy type although the rest of the dialog box sets to the Windows Vista theme. These are regular dialog buttons not bitmap buttons. Why not the rounded theme buttons ?

Example:

In the program code:
REDEFINE BUTTON ID 710 of oDiw ACTION ( oInv:save( ), oDiw:update( ), oLbxin:setfocus( ) );
MESSAGE "Save any changes made to the current inventory item"

And in the RC:

CONTROL "&Save", 710, "Button", WS_TABSTOP, 580, 96, 50, 12

Previously we had themed buttons ...

Tim :shock:

NOW THAT I LOOK MORE CLOSELY I also see that the edit fields are also the boxy squared off version. Didn't we have all of these working cleanly with themes in the past ( rounded like in all the other programs ) or am I just imagining that ?

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: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Button in Dialog not themed 7.05
Posted: Tue Jul 03, 2007 05:52 PM

Tim,

Please check that you are including WindowsXP.Manifest file in your resources, to get themes support

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Manifest
Posted: Tue Jul 03, 2007 07:44 PM

Thats the first thing I checked ... and it is there. The Dialog box and background is fine. The edit fields are dark boxes and the buttons are square boxes ...

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
I found the problem
Posted: Tue Jul 03, 2007 08:00 PM

OK ... in the .RC file there is also a reference to the manifest ... or their should be. However, I had updated the file using the Pelles resource compiler, and it eliminated that reference.

I added it in with a text editor and got my themes back.

Its a shame we don't have a stable resource compiler, 32 bit, Vista compatible.

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: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Button in Dialog not themed 7.05
Posted: Tue Jul 03, 2007 08:09 PM

Tim

There was an earlier post on a resource ( free ) editor from Resedit .. I have not used it in production .. here is the link if you would like to download and try.

http://www.resedit.net/

Rick Lipkin
SC Dept of Health, USA

Continue the discussion