Author Topic: Is there a MsgBox dialogue equivalent in the Macro langauge  (Read 3969 times)

cappy2112

  • Community Member
  • Posts: 91
  • Hero Points: 0
Is there a MsgBox dialogue equivalent in the Macro langauge
« on: January 18, 2007, 08:16:28 pm »

I want to display a message to the user. Is there a dialog that is equivalent (or similar) to the Windows Msgbox, or do I have to just write my own?
Ideally, it should have an OK, cancel, and or Yes/No buttons

thanks

hs2

  • Senior Community Member
  • Posts: 2737
  • Hero Points: 288
Re: Is there a MsgBox dialogue equivalent in the Macro langauge
« Reply #1 on: January 18, 2007, 08:22:12 pm »
@see builtins.e
_message_box(_str string,_str title="SlickEdit",int mb_flags=MB_OK|MB_ICONEXCLAMATION);

It's documented: 'help _message_box' on cmdline

HS2

cappy2112

  • Community Member
  • Posts: 91
  • Hero Points: 0
Re: Is there a MsgBox dialogue equivalent in the Macro langauge
« Reply #2 on: January 18, 2007, 11:06:41 pm »
@see builtins.e
_message_box(_str string,_str title="SlickEdit",int mb_flags=MB_OK|MB_ICONEXCLAMATION);

It's documented: 'help _message_box' on cmdline

HS2

Thanks for the reply
I've spent a lot of time in the helpfile already. What's with the leading underscores?
No wonder I didn't find it in the help file.
« Last Edit: January 18, 2007, 11:12:48 pm by cappy2112 »

hs2

  • Senior Community Member
  • Posts: 2737
  • Hero Points: 288
Re: Is there a MsgBox dialogue equivalent in the Macro langauge
« Reply #3 on: January 18, 2007, 11:23:09 pm »
The leading underscores ... I guess they are related to the long history of the product ;)
But as long as they are documented it's not that important.

HS2