Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mahaboob

macrumors member
Original poster
Jul 10, 2008
31
0
I need to show the titles on MsgBox.
i used the code:

dim value as integer = MsgBox( "Message Text", 0, "Message Title")

But the title is not showing in the message box.
How can I display the title?

Thanks in advance
mahaboob
 

Krevnik

macrumors 601
Sep 8, 2003
4,101
1,312
What language/platform is this for?

It might help to know what you are developing in.
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
It looks like Visual Basic or VBScript...which brings up the question of why you'd ask the question on a Mac forum (as far as I know, neither run on Macs). If it is something VB-related, though, I don't know why the title isn't showing because it looks like you have the format right.
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
OK, according to the REALBasic documentation for MsgBox:

Optional text displayed in the Title bar (Windows and Linux).
Title is not displayed on Macintosh.
The same appears to be true for the MessageDialog object, I'm not sure why but I guess some kind of interface convention. You may have to create your own custom dialog box class in this case if you really need a title on Mac.
 

TheReef

macrumors 68000
Sep 30, 2007
1,888
167
NSW, Australia.
Mac msgboxes don't have titles so as above says you'll need to make your own.

You could make it a new standard window, disable grow icon and closebox, and just add the button and statictext yourself.

Pretty simple:

yourWindow.show to display the window,

And in the "Ok" pushbutton's action event handler just add yourWindow.close
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.