Hello,
I'm a very new a5 developer and I've gotten stuck on a project I've been working on recently.
In this application, the user will be scanning bar codes in, and I wanted to provide a pop-up of sorts to provide the user with information based on the scan, and then close the window after about 3 seconds. I foresee two different ways on doing this, but I'm unsure how to proceed for either.
1) Use a form to display the information and wait for a few seconds before closing itself. I've attempted to use code in the OnActivate event which will populate the form, wait using Sleep(3), and closing the form, however the form doesn't fully render due to the Sleep() command. This form does close itself as I'd expect after the timer elapses. I'm guessing there's another way to wait, but I'm unfamiliar with it.
2) Use XDialog to display the information and wait for a few seconds before closing itself. I was able to successfully create the dialog window, and have it close itself with the {timer} and {interval} options, however I'm having difficulty in getting the form to display in a nice manner. There will be up to 5 lines displayed at a time, and I simply have not been able to figure out how to format items to display correctly with XDialog.
XDialog seems like it would be a better, light-weight option, however it also seems quite daunting to learn, whereas the form seems like it should be easier, however I simply don't know the right functions to call.
Thank you in advance for any assistance provided. This forum has been quite enlightening while browsing for other items.
- JDS
I'm a very new a5 developer and I've gotten stuck on a project I've been working on recently.
In this application, the user will be scanning bar codes in, and I wanted to provide a pop-up of sorts to provide the user with information based on the scan, and then close the window after about 3 seconds. I foresee two different ways on doing this, but I'm unsure how to proceed for either.
1) Use a form to display the information and wait for a few seconds before closing itself. I've attempted to use code in the OnActivate event which will populate the form, wait using Sleep(3), and closing the form, however the form doesn't fully render due to the Sleep() command. This form does close itself as I'd expect after the timer elapses. I'm guessing there's another way to wait, but I'm unfamiliar with it.
2) Use XDialog to display the information and wait for a few seconds before closing itself. I was able to successfully create the dialog window, and have it close itself with the {timer} and {interval} options, however I'm having difficulty in getting the form to display in a nice manner. There will be up to 5 lines displayed at a time, and I simply have not been able to figure out how to format items to display correctly with XDialog.
XDialog seems like it would be a better, light-weight option, however it also seems quite daunting to learn, whereas the form seems like it should be easier, however I simply don't know the right functions to call.
Thank you in advance for any assistance provided. This forum has been quite enlightening while browsing for other items.
- JDS
Comment