Brad87 Posted October 16, 2004 Share Posted October 16, 2004 How do i adapt or force my compiled vb applications to accept the windows themes in its interface. Far example: Luna has the greenish progress bars and option buttons,, with the blue scroll bars Link to comment Share on other sites More sharing options...
0 elliot Posted October 16, 2004 Share Posted October 16, 2004 http://premium.uploadit.org/elliot/name.exe.manifest Replace name.exe with the name of your file and put it in the same folder. Link to comment Share on other sites More sharing options...
0 Brad87 Posted October 17, 2004 Author Share Posted October 17, 2004 ok i have that working properly,,, the only problem now is these option buttons,,, any suggestions? Link to comment Share on other sites More sharing options...
0 goatsniffer Posted October 17, 2004 Share Posted October 17, 2004 You also have to call InitCommonControls() in your program to active the themes. Link to comment Share on other sites More sharing options...
0 Brad87 Posted October 17, 2004 Author Share Posted October 17, 2004 i cant edit the code now,, but that will fix the opt button problems? Link to comment Share on other sites More sharing options...
0 Winston Posted October 17, 2004 Share Posted October 17, 2004 i cant edit the code now,, but that will fix the opt button problems? 584751010[/snapback] Yes it will, it notifies that your application is using the ComCtrl library version 6 i think. Link to comment Share on other sites More sharing options...
0 Brad87 Posted October 17, 2004 Author Share Posted October 17, 2004 alright thanks loads guys, this prob wont be the last issue i have as 1.0 is coming soon.... but ill keep you updated as to what im clueless about next Link to comment Share on other sites More sharing options...
0 Brad87 Posted October 19, 2004 Author Share Posted October 19, 2004 ok ive run into problems again---- when im sending this program to friends via the nullsoft installer,,, some are getting the message system Error &H80070583 (-2147023485). class does not exist. the issue dissapears when the manifest file is deleted and as i was told up there i have entered call InitCommonControls() in my form_load zone,, but as i suspected it gave me the error "sub or function not defined" ,,, i know my syntax is probably wron so can anyone tell me how to enter it? Link to comment Share on other sites More sharing options...
0 Andareed Posted October 20, 2004 Share Posted October 20, 2004 You have to import InitCommonControls through the API Viewer. Link to comment Share on other sites More sharing options...
0 Brad87 Posted October 20, 2004 Author Share Posted October 20, 2004 and how is that done in vb6? Link to comment Share on other sites More sharing options...
0 goatsniffer Posted October 20, 2004 Share Posted October 20, 2004 Sorry, I left out alot. For one thing, to fix the blackened controls, put them in a picturebox. Change the appearence of the picturebox so it is camo-ed into the background. Next, for the XP style you need a declaration in a module, or at the top of the form that starts when the program starts. Declaration for module: Public Declare Sub InitCommonControls Lib "comctl32" () Declaration for form: Private Declare Sub InitCommonControls Lib "comctl32" () USE ONE ONLY Then put this in the form that starts when the program starts. Private Sub Form_Initialize() Call InitCommonControls End Sub Link to comment Share on other sites More sharing options...
Question
Brad87
How do i adapt or force my compiled vb applications to accept the windows themes in its interface. Far example: Luna has the greenish progress bars and option buttons,, with the blue scroll bars
Link to comment
Share on other sites
10 answers to this question
Recommended Posts