FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Automatic start of a new window
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Automatic start of a new window
Posted: Mon Sep 05, 2011 03:36 PM

When i will start a second new window (no mdichild, no parent) automatically on start from the app-window with the INIT clausula, these second window become master and all msg.. are centered on this second window (no good!). When i call this second window with a button on app-window, all is ok. How to start automatically the second window and reach, that all the msg.. comes to the app_window?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 172
Joined: Fri Oct 07, 2005 01:29 PM
Re: Automatic start of a new window
Posted: Tue Sep 06, 2011 09:37 AM

Easiest way we have found of doing this is via a timer which we activate just before activating the main window

In your on init clause of the main window you set a var like lMainWindowInitComplete := .t. The timer function then checks for this and if it's true create the second window and stop the timer.

Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Automatic start of a new window
Posted: Tue Sep 06, 2011 09:56 AM

Thanks Alex! This is good!

Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion