demando Posted January 14, 2006 Share Posted January 14, 2006 Hi together I compiled my program with a separate Icon, but the MsgBox shows only a white Icon and not the Icon where i included in the program which i compiled. Can i change the Icon in the MsgBox titlebar?? I tried with MsgBox(4096,"Test",Test") Demando Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 14, 2006 Share Posted January 14, 2006 Hi togetherI compiled my program with a separate Icon, but the MsgBox shows only a white Icon and not the Iconwhere i included in the program which i compiled.Can i change the Icon in the MsgBox titlebar??I tried with MsgBox(4096,"Test",Test")DemandoDifferent kinds of icons:You can set the icon for a GUI that you created with GuiCreate() by using GuiSetIcon().The MsgBox() window only gets certain preset icons, like stop sign, or question mark.The compiled .exe file can have yet another icon, I believe, but that would be used only for the icon of the .exe file itself and the task bar object that appears while it's running.Newbie answer, YMMV... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
demando Posted January 15, 2006 Author Share Posted January 15, 2006 Sorry, but I want only change the little Icon in the Titlebar of the MessageBox. Is this possible? Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 15, 2006 Share Posted January 15, 2006 Sorry, but I want only change the little Icon in the Titlebar of the MessageBox. Is this possible? Hmmm... I don't know, and I'm not on a windoze box right now, so I can't test it. But maybe if you pop up a MsgBox, then get its handle, you can set the icon somehow: MsgBox(0, "MyTitle", "This is my message.") $MyHandle = WinGetHandle("MyTitle") ...??? The problem is, the GuiSetIcon() function doesn't let you specify which handle. That implies you can only use it on a GUI you are creating yourself with GuiCreate(), not a MsgBox(). Intersting question though... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
demando Posted January 15, 2006 Author Share Posted January 15, 2006 Hi PsaltyDS thank you for the Information, if i understand you correctly it is ony possible , with a GUI Form and not with a MsgBox. Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 15, 2006 Share Posted January 15, 2006 Hi PsaltyDSthank you for the Information, if i understand you correctly it is ony possible , with a GUI Formand not with a MsgBox.Yeah, that's if I understand me correctly too... I've only been working with AutoIT intermitently for about a month, so I'm looking forward to someone who knows what they're talking about to answer this definitively for both of us! Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
GrungeRocker Posted January 15, 2006 Share Posted January 15, 2006 yes it is only working with a gui! but if there must be this ican you coul wirte an udf like _msgbox which creates a msgbox in guiform..... i think a couple of people will thank you for that [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font] Link to comment Share on other sites More sharing options...
Valuater Posted January 15, 2006 Share Posted January 15, 2006 Can i change the Icon in the MsgBox titlebar??Yes... to a certain-limited degreeon SciTE.. press the followingTools > CodeWizardthat is a great learining tool for message boxesother than those limitations, you can script your own GUI( gafrost has made one here before, maybe you can find it )8) Link to comment Share on other sites More sharing options...
GrungeRocker Posted January 15, 2006 Share Posted January 15, 2006 Yes... to a certain-limited degreeon SciTE.. press the followingTools > CodeWizardthat is a great learining tool for message boxesother than those limitations, you can script your own GUI( gafrost has made one here before, maybe you can find it )8)i think they mean the icon in the title-bar.... [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font] Link to comment Share on other sites More sharing options...
Valuater Posted January 15, 2006 Share Posted January 15, 2006 i think they mean the icon in the title-bar.... I knew the idea... and how much can be learned by CodeWizard mine has no "icon" at the top 8) Link to comment Share on other sites More sharing options...
GrungeRocker Posted January 15, 2006 Share Posted January 15, 2006 I knew the idea... and how much can be learned by CodeWizard mine has no "icon" at the top 8)because yours is not system-modal XD but the system-modal icon is something like a gui with white content^^ [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 15, 2006 Moderators Share Posted January 15, 2006 (edited) Before we get into a measuring contest... let's just say that... if you want an icon to show up on every desktop, exactly how you want it, that you should make a 'custom message box' like I do: http://www.autoitscript.com/forum/index.ph...ndpost&p=139190And you can add a paramater that includes GUICtrlCreateIcon() to that. That should solve all the silly 'back and forth' that seems to be wanting to go on here.Answer... No You can't have a custom icon with every window system with the current setup of a msgbox()Answer2... That shouldn't stop you from completing your task!Edit:Analritter: Welcome back! Edited January 15, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
demando Posted January 15, 2006 Author Share Posted January 15, 2006 Hi together thank's a lot to all people, who helps me to resolve my problem. It works fine Demando Link to comment Share on other sites More sharing options...
Developers Jos Posted January 15, 2006 Developers Share Posted January 15, 2006 I don't believe that System Modal (4096) really is supposed to show the application Icon.It should be used to warn about SYSTEM critical message.Modality determines how the system handles a dialog box.The modality often causes confusion. If you don't specify a system-modal intType value of 4096, the user's application will not continue until the user closes the message box. However, the user can switch to another Windows program by pressing Alt+Tab or using the application's control menu. If, however, you do specify that the message box is system modal, the user will not be able to switch to another Windows program until the user responds to the message box because the message box will have full control of the system. Reserve the system-modal message boxes for serious error messages that you want the user to read and respond to before continuing the program. You may make a message box a System Modal message box by adding 4096 to the intType value of the message box. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
demando Posted January 15, 2006 Author Share Posted January 15, 2006 sorry, i am a beginner. I did create my "own" MesssageBox with a Gui Form and when i compile my script i can choose my Icon , so now i have the Icon in the Titlebar of the GuiForm. I hope all people can understand me, what i mean. Demando Link to comment Share on other sites More sharing options...
Developers Jos Posted January 15, 2006 Developers Share Posted January 15, 2006 (edited) sorry, i am a beginner. I did create my "own" MesssageBox with a Gui Form and when i compile my scripti can choose my Icon , so now i have the Icon in the Titlebar of the GuiForm.I hope all people can understand me, what i mean.DemandoI understood you went that way.Just posted this information because i think the Helpfile is kind of misleading when it states that it "Shows an Icon" ... It does show a White Icon, but that main purpose of the System Modal MsgBox is not to show an Icon but to indicate a major issue and you forced the User to acknowledge it before anything else can be done on the PC. Edited January 15, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
GrungeRocker Posted January 15, 2006 Share Posted January 15, 2006 I understood you went that way.Just posted this information because i think the Helpfile is kind of misleading when it states that it "Shows an Icon" ... It does show a White Icon, but that main purpose of the System Modal MsgBox is not to show an Icon but to indicate a major issue and you forced the User to acknowledge it before anything else can be done on the PC.i tried to say it in the easy way [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now