App disappears from Windows Task Bar (OpenInsight 32-Bit)
At 15 AUG 2003 06:53:43AM Oystein Reigem wrote:
I have this app startup window with a button that starts the app main window. When the main window has been started the startup window makes itself invisible. At this point the app disappears from the Windows taskbar. What can I do to keep the app on the taskbar?
- Oystein -
At 15 AUG 2003 01:13PM Richard Hunt wrote:
I have been working on some taskbar stuff lately, and this thread has caught my interest.
I am guessing that the "startup" window is the parent of the "main" window. If that is so then I think a quick fix would be to NOT have the "startup" window be the parent of the "main" window. That way the "main" window will not inherit any attributes of the "startup" window. yes???
At 16 AUG 2003 05:08AM Oystein Reigem wrote:
Richard,
Thanks. Actually my case is slightly more complex than I said, but your suggestion sounds promising. If I get time I'll do some experiments later today.
- Oystein -
At 17 AUG 2003 07:05AM Oystein Reigem wrote:
Richard,
Thanks. Your suggestion seems to work.
The reason I have a "startup" window is there are two main windows - "main" and "oldmain". "oldmain" belongs to an earlier version of the app. Clients have to use the old version for some tasks. I want my users to be able to switch between the two versions without leaving the app. E.g when they close the "main" window they get back to the "startup" window and can start the "oldmain" window instead.
(After making the change you suggested I had to change something else too: I had to make the "startup" window visible again in the "main" and "oldmain" CLOSE events. Earlier, when "startup" was the parent of "main" and "oldmain", that seemed to happen automatically.)
I did for a moment think your suggestion had a flaw. The windows of my app have a certain icon entity, and I want that icon to appear in the task bar. But the "main" window got the default OI icon instead. Fortunately this only happened in developer mode. When I switched to runtime mode everything was OK. I assume it will be OK in a runtime version as well.
- Oystein -
At 18 AUG 2003 06:49AM Oystein Reigem wrote:
…seemed to happen automatically.
No, it didn't. I had some programming that I overlooked.
- Oystein -