The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Displaying a "Loading..." Window
Posted: 26 Sep 07 4:13 PM
|
Hello,
I have a custom made Dashboard which is a manage form with a bunch of controls on it. I'm loading the form as a mainview and there is a lot of processing going on behind the scenes to popuplate much of the form. As a result, the form takes about 15 seconds from when the user invokes it to when it opens. I'd like to pop up a message displaying "Your Dashboard Is Loading..." while the form is loading.
I've found a way to do it by popping up another manage form as a mainview and then closing it after the Dashboard mainview is loaded, but there are a number screen refreshes that seem to take place while the dashboard mainview is loading and the "Your Dashboard Is Loading..." message get wiped out for much of the time. It seems really clunky.
Can anyone suggest a better way?
Thank you in advance for your time.
...Rob
|
|
|
|
Re: Displaying a "Loading..." Window
Posted: 27 Sep 07 2:03 AM
|
Place a "panel" on your dashboard with property visible=false. On the panel you can place label with text "Your Dashboard Is Loading...". So when dashboard will be loading set property visible=true for panel. For example, you can place on the panel "progresbar","animate","timer" and it will be more "user friendly" interface  |
|
|
|
Re: Displaying a "Loading..." Window
Posted: 27 Sep 07 8:29 AM
|
Thank you Vladimir. That was my first choice, but the form itself is about 400K in size (the datalength(data) of the form in the plugin table) and that coupled with the processing I'm doing in the open event of the form, takes about 10 to 12 seconds before the form is painted.
Is there some place I can put my onOpen code so that it is executed after the form is painted?
I'm thinking about putting a "Loading..." form in a VB DLL and invoking it from there, but I don't know much about that and was hoping to avoid the learning curve as well as any pitfalls.
Thank you for your reply.
...Rob |
|
|
|
Re: Displaying a "Loading..." Window
Posted: 27 Sep 07 8:58 AM
|
The events "OnOpen","OnChange" and "OnCreate" are lunch before form is shown. You can write DLL/COM object, that will open your form with progress bar or label and invoke it with Application.CreateObject at the start point OnOpen and close it at the end point of procedure. I wrote DLL in Delphi some times and it works fine. |
|
|
| |
|
Re: Displaying a "Loading..." Window
Posted: 27 Sep 07 2:02 PM
|
I'm using the ShowWindow API call to show a modeless window through an ActiveX VB DLL. Is there a way to launch the modeless window so it doesn't show in the taskbar?
|
|
|
| |
|
Re: Displaying a "Loading..." Window
Posted: 28 Sep 07 7:48 AM
|
Bob,
Check your vb form. I do not do vb6 anymore but there maybe a property on the form called ShowInTask bar that you can set to false.
Mark |
|
|
|
Re: Displaying a "Loading..." Window
Posted: 28 Sep 07 8:33 AM
|
Thank you. I set the border style to 3 - Fixed Dialog and that took care of the taskbar. The ShowInTask bar seems to only pertain to MDI child windows.
Is the Saleslogix client, by default, the owner of my ActiveX DLL "loading..." form window because it is being launched from within Saleslogix or do I need to find the window handle of Saleslogix and set the owner manually? Setting the StartupMode on the form to 1 - CenterOwner isn't doing what I think it should. The form window is opening in the upper left corner of the screen.
Thanks again for the help. I'm really stretching myself here. |
|
|
|