I purpose here, a small project to make a Message Box generator with MsgBox options, and also with Aaron Young's code to center the MsgBox on a form (Me or another):
And when we click on the test button:
The "is a variable" checkbox is there to add a remove double quotes around the text, this is useful if the message box is designed to display some text stored in a variable.
Et voilà !
1 Hour vinyl mix live onEurodance90each sunday 10:00 PM (French Timezone) - New non-official Jingle Palette update Jingle Palette Reloaded
Thorough wrapper and a very clean and balanced interface. Nice job! If you added the ability to save/load these MsgBox settings, you could keep common ones for future use. That could be handy. Maybe have a ComboBox at the top that lists your saved presets.
Another good one (and a fun one to code) would be a little app very similar to the Menu Editor that's in the VB IDE, but it generates code that you can paste into the Form or a Module that would create the menu system at runtime. And of course it should let you save presets too so you would be able to create a simple code bank of File, Edit, View, Tools, Options, Help, etc menus that you commonly use and just copy/paste them into your app instead of having to rebuild them every time from scratch with the build-in Menu Editor.
Thorough wrapper and a very clean and balanced interface. Nice job! If you added the ability to save/load these MsgBox settings, you could keep common ones for future use. That could be handy. Maybe have a ComboBox at the top that lists your saved presets.
I added a Presets feature (but not at the top).
Originally Posted by CatOnKeyboard
Another good one (and a fun one to code) would be a little app very similar to the Menu Editor that's in the VB IDE, but it generates code that you can paste into the Form or a Module that would create the menu system at runtime. And of course it should let you save presets too so you would be able to create a simple code bank of File, Edit, View, Tools, Options, Help, etc menus that you commonly use and just copy/paste them into your app instead of having to rebuild them every time from scratch with the build-in Menu Editor.
What do you mean exactly ?
1 Hour vinyl mix live onEurodance90each sunday 10:00 PM (French Timezone) - New non-official Jingle Palette update Jingle Palette Reloaded
I know what is the Menu Editor, but I don't understand what you need.
The code generated by the Menu Editor is not visible as code in the VB6 IDE, only in the Form1.frm file when we open it with Notepad.
1 Hour vinyl mix live onEurodance90each sunday 10:00 PM (French Timezone) - New non-official Jingle Palette update Jingle Palette Reloaded
I don't need anything. Was just making a suggesting of something that may be fun to code.
You can't create a top level menu at runtime, but you can use Load to dynamically create submenu items.
Load mnuFile_SubItem(1)
mnuFile_SubItem(1).Caption = "&Save..."
You can inject top level menus and submenus into the .frm file like:
Begin VB.Menu mnuFile
Caption = "&File"
Begin VB.Menu mnuFile_Open
Caption = "&Open"
Shortcut = ^O
End
Begin VB.Menu mnuFile_Save
Caption = "&Save..."
Shortcut = ^S
End
Begin VB.Menu mnuFile_SaveAs
Caption = "Save &As..."
End
Begin VB.Menu mnuFile_Spacer
Caption = "-"
End
Begin VB.Menu mnuFile_Exit
Caption = "E&xit"
End
End