I've been experimenting with ui_msg_box and have found an interesting alternative. Using a small form and opening it with the dialog flag, I can integrate my own Xbasic programming into the form and customize the popup to a great extent. The form.close() button even works. One of the most interesting aspects of this method is the ability to use the form's OnTimer event. Flashing text, auto close, etc. are among the various options that can be done. The position of the popup may be specified or calculated, which I see as a nice benefit.
Announcement
Collapse
The Alpha Software Forum Participation Guidelines
The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
Moderators may also rename posts and threads if they are too generic or do not property reflect the content.
Moderators may move threads if they have been posted in the incorrect forum.
Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.
The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.
Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.
Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.
Bonus TIPS for Successful Posting
Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.
When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.
The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.
When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.
A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.
If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.
When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.
Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
- Be professional in your conduct
- Be kind to others
- Be constructive when giving feedback
- Be open to new ideas and suggestions
- Stay on topic
Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
- Spam.
- Vulgar language.
- Quotes from private conversations without permission, including pricing and other sales related discussions.
- Personal attacks, insults, or subtle put-downs.
- Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
- Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
- Sexually explicit or violent material, links, or language.
- Pirated, hacked, or copyright-infringing material.
- Encouraging of others to engage in the above behaviors.
If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
- Remove the Post or Thread - the content is removed from the forum.
- Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
- Temporarily Ban the User - user is banned from forum for a period of time.
- Permanently Ban the User - user is permanently banned from the forum.
Moderators may also rename posts and threads if they are too generic or do not property reflect the content.
Moderators may move threads if they have been posted in the incorrect forum.
Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.
The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.
Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.
Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.
Bonus TIPS for Successful Posting
Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.
When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.
The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.
When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.
A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.
If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.
When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.
Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less
ui_msg_box alternative
Collapse
X
-
RE: ui_msg_box alternative
There is mud on my face.
No, the close button nor the system close button functions on this dialog box. It removes it but leaves it in memory somewhere. Ah, well, back to the drawing board. Strangely, the close button operates differently at times. When the form is first opened, it appears to close it. After that, it requires two clicks to close, and it leaves two copies of the form in memory.
Bug city?
Comment
-
RE: ui_msg_box alternative
Yes, the close button does make the form disappear from the user's sight. But, the session remains open until you -- the xbasic writer -- closes it.
Try this:
f = form.view("Formname", "Dialog")
f = form.view("Formname", "Dialog")
f = form.view("Formname", "Dialog")
Then go to the Xbasic Explorer and click on the Sessions and you'll see a separate session for each time you opened the dialog form.
But, if you do the above, with an f.close() after each one instead and then look at the sessions, you'll see that they are now indeed gone.
I use these sorts of forms extensively and they work well. I've found, however, that if you try to do too many fancy things with the dialog forms, you can run into problems.
- Steve-Steve
sigpic
Comment
-
RE: ui_msg_box alternative
Mud? What mud? I don't see any mud? What I see is a person with a lot of forsight and a willingness to give a try at doing something that hasn't been done before. I think those folks were called explorers; only the 'new land' is uncharted use of Xbasic, so to speak.
Tom, you are commended!!!
kennTYVM :) kenn
Knowing what you can achieve will not become reality until you imagine and explore.
Comment
-
RE: ui_msg_box alternative
Tom,
It is not a bug. Read Steve Workings comments more carefully. A Dialog form is performing exactly as specified, and needs to be closed again after the close of the dialog box occurs from within the dialog box (this is so you can get access to the values of the fields on the dialog box). This should not be a big deal, as you should be creating a function that opens the dialog box that you are calling. The function can handle all of the initializing and cleanup on the way out.
You should read the XBasic manual for Form.view(), form.load(), form.dialog() and also the chapter 22 on Dialog Boxes.
Regards,
Ira J. Perlow
Computer Systems Design & Associates
[email protected]Regards,
Ira J. Perlow
Computer Systems Design
CSDA A5 Products
New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
CSDA Barcode Functions
CSDA Code Utility
CSDA Screen Capture
Comment
-
Jake Vuckovic
RE: ui_msg_box alternative
This is no trick, it is explained in xbasic manual. It does look strange though. If you have a "close" button, you must have parentform.close() on it as well as form.close() in your calling script.
f=form.view("formname","dialog")
f.close()
The exception is the form opened with form.dialog("formname") method, which does not require you to close it. It will really close when user clicks "x".
Have fun,
Jake
Comment
-
RE: ui_msg_box alternative
Hi Tom
Sys_send_keys("{alt-f4}") will close a popup.
When I saw your posting I looked at using "Popup" as a dialog.
What I would like to know though is how to suspend the script until the "popup" dialog has set a variable values.
i.e. I trying to use it as a date dialog where two date variables need to be set before continuing. When the "popup" method is used the script just continues on without waiting for input. I realize why this happens but is there a work around?
Good Idea by the way. Hope we can get it to work.
Robert
Comment
-
RE: ui_msg_box alternative
Jake,
You seem to have the answer. I tried the form.dialog() and it looks like it will do the job nicely. I should have thought to try that myself, but skimmed right over that area of the manual. Oh well, I will be using it often in place of ui_msg_box() from now on.
Thanks!
I see now why there is what appears to be duplication of XBasic commands concerning dialog forms.
Tom
Comment
Comment