FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Themed vs Un-Themed ( classic desktop )
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Themed vs Un-Themed ( classic desktop )
Posted: Thu Dec 17, 2015 02:24 PM

To All

There always seems to be one ( really important ) person in the office that uses your application in a classic desktop mode .. basically non-themed. I always use the XP Manifest to give my programs a nice clean looking ( modern ) rounded edges, etc .. effect.

When I run my program in a non themed ( classic ) desktop .. all the detail in my Dialog boxes ( use transparent flag ) are virtually gone .. I see no text, no fields .. just buttons.

If I compile the same program without the XP manifest that classic users desktop resolves my program just fine and can see all the dialog detail. Is it possible at run-time to detect a classic ( non-themed ) desktop and if IsThemed () ?? is false .. to ignore or over-ride the XP manifest to just show non-themed resolution ?

Thanks
Rick Lipkin

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Themed vs Un-Themed ( classic desktop )
Posted: Fri Dec 18, 2015 03:49 AM

AppHasManifest() --> .t. if application is linked with manifest, whether or not themes are enabled on PC

IsThemeActive() --> .t. if theme is active on the PC

IsAppThemed() --> .t. only when both the above are true

Regards



G. N. Rao.

Hyderabad, India
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Themed vs Un-Themed ( classic desktop )
Posted: Fri Dec 18, 2015 08:49 AM

Hi Mr. Rao,

My app. is always linked manifest files.

I have detect win is themed or not.

How can I disable manifest in my application?

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Themed vs Un-Themed ( classic desktop )
Posted: Fri Dec 18, 2015 01:08 PM

How can I disable manifest in my application?


+1

Rick Lipkin
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Themed vs Un-Themed ( classic desktop )
Posted: Sun Dec 20, 2015 06:23 AM

Try this:

SetWindowTheme( oWndMain:hWnd, "", "" )

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion