Showing titles on MsgBox

Discussion in 'Mac Programming' started by mahaboob, Feb 11, 2009.

  1. macrumors member

    Joined:
    Jul 10, 2008
    #1
    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
     
  2. macrumors 68020

    Krevnik

    Joined:
    Sep 8, 2003
    #2
    What language/platform is this for?

    It might help to know what you are developing in.
     
  3. macrumors 601

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #3
    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.
     
  4. thread starter macrumors member

    Joined:
    Jul 10, 2008
    #4
    I'm developing a REALBasic application in Tiger
     
  5. macrumors 601

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #5
    OK, according to the REALBasic documentation for MsgBox:

    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.
     
  6. macrumors 68000

    TheReef

    Joined:
    Sep 30, 2007
    Location:
    NSW, Australia.
    #6
    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
     

Share This Page