Punchinello
Programmer
Hi,
I've got Delphi5 on a 98 machine and want to compile a program that will take advantage of XP Style controls if it is run on a XP machine.
I've placed the following code in the main form's OnCreate event and, in a second try, placed the code in the program file above the Application.Initialize line:
Neither try had any effect on the XP machine and the form has a small sample of controls that should look different. (radiobutton, checkbox, edit, scrollbox, combobox)
Can anyone help me with the right way to do this?
I've got Delphi5 on a 98 machine and want to compile a program that will take advantage of XP Style controls if it is run on a XP machine.
I've placed the following code in the main form's OnCreate event and, in a second try, placed the code in the program file above the Application.Initialize line:
Code:
var
CC: Integer;
CC := ComCtrls.GetComCtlVersion;
ComCtrls.InitCommonControl(CC);
Can anyone help me with the right way to do this?