Results 1 to 6 of 6

Thread: MsgBox Generator

  1. #1

    Thread Starter
    Hyperactive Member Couin's Avatar
    Join Date
    Dec 2020
    Posts
    401

    MsgBox Generator

    Hi

    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):
    Name:  msgbox generator.jpg
Views: 2359
Size:  46.7 KB

    And when we click on the test button:
    Name:  msgbox generator test.jpg
Views: 2282
Size:  42.6 KB

    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à !

    Attached Files Attached Files
    1 Hour vinyl mix live on Eurodance90 each sunday 10:00 PM (French Timezone) - New non-official Jingle Palette update Jingle Palette Reloaded

  2. #2
    New Member
    Join Date
    Sep 2025
    Posts
    3

    Re: MsgBox Generator

    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.

  3. #3

    Thread Starter
    Hyperactive Member Couin's Avatar
    Join Date
    Dec 2020
    Posts
    401

    Re: MsgBox Generator

    Quote Originally Posted by CatOnKeyboard View Post
    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).

    Quote Originally Posted by CatOnKeyboard View Post
    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 ?
    Attached Files Attached Files
    1 Hour vinyl mix live on Eurodance90 each sunday 10:00 PM (French Timezone) - New non-official Jingle Palette update Jingle Palette Reloaded

  4. #4
    New Member
    Join Date
    Sep 2025
    Posts
    3

    Re: MsgBox Generator

    I mean this thing:
    Name:  Image181.jpg
Views: 1431
Size:  81.5 KB

  5. #5

    Thread Starter
    Hyperactive Member Couin's Avatar
    Join Date
    Dec 2020
    Posts
    401

    Re: MsgBox Generator

    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 on Eurodance90 each sunday 10:00 PM (French Timezone) - New non-official Jingle Palette update Jingle Palette Reloaded

  6. #6
    New Member
    Join Date
    Sep 2025
    Posts
    3

    Re: MsgBox Generator

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width