| View previous topic :: View next topic |
| Author |
Message |
AHKPNH
Joined: 17 Feb 2006 Posts: 35
|
Posted: Sat Jun 03, 2006 8:07 pm Post subject: Bold/Italic/Size/Font e.t.c. in a msgbox |
|
|
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  |
|
| Back to top |
|
 |
Moderator!
Joined: 24 May 2006 Posts: 25
|
Posted: Sat Jun 03, 2006 9:06 pm Post subject: |
|
|
| you have to write a gui for customising a message display |
|
| Back to top |
|
 |
AHKPNH
Joined: 17 Feb 2006 Posts: 35
|
Posted: Sat Jun 03, 2006 9:11 pm Post subject: |
|
|
| 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.  |
|
| Back to top |
|
 |
Moderator!
Joined: 24 May 2006 Posts: 25
|
Posted: Sat Jun 03, 2006 9:15 pm Post subject: |
|
|
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 |
|
 |
AHKPNH
Joined: 17 Feb 2006 Posts: 35
|
Posted: Sat Jun 03, 2006 9:38 pm Post subject: |
|
|
Ok, if it's a windows limitation.....
.
.
.
I am with windows. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2421
|
Posted: Sat Jun 03, 2006 9:43 pm Post subject: |
|
|
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...  |
|
| Back to top |
|
 |
AHKPNH
Joined: 17 Feb 2006 Posts: 35
|
Posted: Sat Jun 03, 2006 9:55 pm Post subject: |
|
|
Think you are right, corrupt...  |
|
| Back to top |
|
 |
Areilius
Joined: 16 Feb 2006 Posts: 42
|
Posted: Sun Jun 04, 2006 6:17 am Post subject: |
|
|
I've shown a good way of creating dialogs using GUIs here.  |
|
| Back to top |
|
 |
AHKPNH
Joined: 17 Feb 2006 Posts: 35
|
Posted: Sun Jun 04, 2006 9:24 pm Post subject: |
|
|
Thanks Areilius, I'll check it.  |
|
| Back to top |
|
 |
|