DLL for a Dynamic MsgBox

Robby
01-10-2002, 02:22 AM
I needed something like this for a client, so I created this MsgBox.
I 'm sure a lot of you have done the same.

The DLL is 52K ..... Zipped code=23K


It works with the same rules as a VB MsgBox.

- All parameters are optional

- Prompt (The text is inside a locked Text Box so the user may select and Copy it.
- Buttons (with List Constants) or you can use VB constants. ie vbOKOnly or OKOnly.
- Title (If left blank the dialog box will not have a title bar and will not be moveable)
- Context (with List Constants, Default= None) ie bsCritical
- Beep (True or False,Default=True)
- Back Color ( Color of the Dialog Box,Default=Dark Blue)
- Fore Color ( Text color,Default=White)Font=Arial 8 Bold
- Height ( Dialog Box hieght, Default=2600 Twips) Minimum=2600, Max is 1000 < Screen Hieght
( unlike the VB version which can be off your screen)
- Center Text (true or False,Default=Left justify)

Return from users' Button Click is the same as VB constants ( vbMsgBoxResult )

The client process will pause until the user clicks a button.

Esc only works with vbOKOnly and if there is a Cancel button
No Esc allowed for something like vbAbortCancelRetry (same as VB)

The Default button is the one with an optomistic context.(so the user can hit Enter instead of a button)


Feel free to use it or even modify it.

Your comments are welcome

Open project with "BassicMessage.vbp"
Download from the next post

Robby
01-11-2002, 02:56 PM
I wanted to only Edit this thread but time has expired.
So I will attach a new and improved version.

You can now select Fonts Style and Font Size.

If you run from Group1.vbg, you will be able to test with a test form.

I fixed the Group1.vbg

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum