Themed vs Un-Themed ( classic desktop )

Themed vs Un-Themed ( classic desktop )

Postby Rick Lipkin » Thu Dec 17, 2015 2: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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Themed vs Un-Themed ( classic desktop )

Postby nageswaragunupudi » Fri Dec 18, 2015 3: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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Themed vs Un-Themed ( classic desktop )

Postby Horizon » Fri Dec 18, 2015 8: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Themed vs Un-Themed ( classic desktop )

Postby Rick Lipkin » Fri Dec 18, 2015 1:08 pm

How can I disable manifest in my application?


+1

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Themed vs Un-Themed ( classic desktop )

Postby Antonio Linares » Sun Dec 20, 2015 6:23 am

Try this:

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 110 guests