On more than one occasion the question "How do I position the Prompt, Confirm, Notice" has been asked. The answer is you can't do this the native windows, but you can create your own dialog_modal window to look just like the real thing. This dialog_modal window can be placed exactly where you'd like. Keep in mind that the UpperLeftX and the UpperLeftY is related to the calling window and not the display screen. This is a useful thing, since it doesn't matter where the user has dragged the calling window, the custom dialog_modal will show up in the exact same place relative to that window each time. In Liberty BASIC you can use API calls to use the custom icons _MB_ICONQUESTION, _MB_ICONEXCLAMATION, _MB_ICONSTOP, _MB_ICONINFORMATION for viewing. This isn't possible in Just BASIC, but you can use bmp files. This demo creates a custom dialog_modal window that mimics the Confirm window. The zip contains bmp's for the other icons as well. Feel free to use the code and bmp's wherever and whenever you like.
Janet
Custom Message Boxes
-
JanetTerra
- Site Admin
- Posts: 117
- Joined: Wed Nov 24, 2004 2:49 am
Custom Message Boxes
- Attachments
-
CustomMessageBoxes.zip- Contains a demo and associated bmp files for creating a customized Message Box.
- (8.77 KiB) Downloaded 622 times