AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bold/Italic/Size/Font e.t.c. in a msgbox

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
AHKPNH



Joined: 17 Feb 2006
Posts: 35

PostPosted: Sat Jun 03, 2006 8:07 pm    Post subject: Bold/Italic/Size/Font e.t.c. in a msgbox Reply with quote

How to change the texts appearence in a msgbox?

Suppose we have this
Code:
About:
about=blablabla
about=%about%`n
about=%about%`nblablalbldfgdfgdfg
about=%about%`n
MsgBox,0,blablabla,%about%
Return


Thanks Very Happy
Back to top
View user's profile Send private message
Moderator!



Joined: 24 May 2006
Posts: 25

PostPosted: Sat Jun 03, 2006 9:06 pm    Post subject: Reply with quote

you have to write a gui for customising a message display
Back to top
View user's profile Send private message
AHKPNH



Joined: 17 Feb 2006
Posts: 35

PostPosted: Sat Jun 03, 2006 9:11 pm    Post subject: Reply with quote

Quote:
it cannot be done with msgbox
you have to write a gui for customising a message display

I know that.

But why not be able to customize the text appearing in msgbox?
Think it's stupid. Confused
Back to top
View user's profile Send private message
Moderator!



Joined: 24 May 2006
Posts: 25

PostPosted: Sat Jun 03, 2006 9:15 pm    Post subject: Reply with quote

msgbox is created by windows and this is a limitation of windows itself
and so be happy you dont have to type

Code:
DllCall("USER32.dll\MessageBox","UInt",WinExist("A"),"Str","Hello World","Str","Test Message","Int",64)


instead of a simple ahk command

Code:
Msgbox, 64, Test Message, Hello World
Back to top
View user's profile Send private message
AHKPNH



Joined: 17 Feb 2006
Posts: 35

PostPosted: Sat Jun 03, 2006 9:38 pm    Post subject: Reply with quote

Ok, if it's a windows limitation.....
.
.
.
I am Mad with windows.
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Sat Jun 03, 2006 9:43 pm    Post subject: Reply with quote

If you're really determined, you could probably use a Dialog Editor then create a .dll with your dialog(s), then use DllCall to display them. Of course it would probably be quicker and easier to just create an extra Gui window in your script instead. It would also save having to include an additional file if/when distributing your script... Wink
Back to top
View user's profile Send private message Visit poster's website
AHKPNH



Joined: 17 Feb 2006
Posts: 35

PostPosted: Sat Jun 03, 2006 9:55 pm    Post subject: Reply with quote

Think you are right, corrupt... Wink
Back to top
View user's profile Send private message
Areilius



Joined: 16 Feb 2006
Posts: 42

PostPosted: Sun Jun 04, 2006 6:17 am    Post subject: Reply with quote

I've shown a good way of creating dialogs using GUIs here. Smile
Back to top
View user's profile Send private message Send e-mail
AHKPNH



Joined: 17 Feb 2006
Posts: 35

PostPosted: Sun Jun 04, 2006 9:24 pm    Post subject: Reply with quote

Thanks Areilius, I'll check it. Cool
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group