Toon posts:

[Delphi] Uiterlijk controls zoals in WinXP

Pagina: 1
Acties:

Verwijderd

Topicstarter
Als ik met Delphi 6 onder WinXP een programmaatje maak, dan zien alle controls zoals radiobuttons en knoppen er 'standaard' uit zoals ze er onder alle Windows versie's uitzien.

Heeft iemand enig idee hoe ik deze typisch WinXP kan laten uitzien? Zodat buttons bijvoorbeeld mooie afgeronde hoeken krijgen zoals in de typische WinXP programma's zoals de Calculator, Microsoft Installer en zoals de controls er in HTML pagina's in de Internet Explorer uitzien?

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Een manifest bestand bijsluiten, of in je resource compilen.

"The shell stopped unexpectedly and Explorer.exe was restarted."


Verwijderd

Je met een manifest aan maken voor je app en 'n call doen naar InitCommonControls als delphi dat nog niet voor je doet.

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Delphi applications do not support the new GUI out of the box, even on a themed XP the look of
them will be the same as on Win2K, except for the window NC area (caption, scrollbar etc). To
enable the new look for your delphi app you have to include a manifest either as an extra file
(exename + '.manifest') or as a resource with a certain name. The manifest is just an XML which
describes that your app wants to use the new comctrl32 Version 6 dll. Here is a component which
does this for you:

http://www.tmssoftware.com/winxp.zip

Unfortunately this does not work on groupboxes (they are not rounded), not on menus (they are
not painted with a gradient) and simply each existing custom (painting) control. These will
have to use the uxTheme DLL to draw themselves.

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • Tim
  • Registratie: Mei 2000
  • Laatst online: 23-07 15:18

Tim

Dan ga je natuurlijk vragen hoe je dat doet, en daarvoor zou ik even hier kijken:

http://delphi.about.com/library/bluc/text/uc111601a.htm

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Oja, mocht je nog problemen hebben met de TListView in Windows XP: http://groups.google.com/groups?hl=nl&th=839a09ecdd006d5a&rnum=2

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Voor een voorbeeld project met de manifest file: http://delphi.about.com/library/projectxp.zip

"The shell stopped unexpectedly and Explorer.exe was restarted."


Verwijderd

Topicstarter
Op zondag 06 januari 2002 12:55 schreef Yarvieh het volgende:
Je met een manifest aan maken voor je app en 'n call doen naar InitCommonControls als delphi dat nog niet voor je doet.
Nog nooit van 'manifest' gehoord. Iemand enig idee waar hierover een voorbeeld te vinden is (website of helpfile), want ik kan niets over manifest of InitCommonControls vinden in de Delphi 6 Help.

edit:

Sorry, er waren al een paar andere berichtjes ingetikt. Bedankt, ik zal even naar de voorbeelden kijken.

  • Tim
  • Registratie: Mei 2000
  • Laatst online: 23-07 15:18

Tim

Voor de mensen die geen zin in hebben om er wat voor te doen:

http://www.warp2search.net/downloads/tools/XPStyle.exe

  • Delpix
  • Registratie: September 2001
  • Laatst online: 27-11-2021

Delpix

Alanis Fan

Download het programma PE-Explorer. Met dit programma kan je als jou programma af is een Manifest invoegen in de resource's.

http://www.heaventools.com

...beter bekend als AMFan


Verwijderd

code:
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="blaat" type="win32" /> 
<description>blaat</description> 
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /> 
</dependentAssembly>
</dependency>
</assembly>

Verwijderd

Hmm, sorry voor de layout vern**king :P
Pagina: 1