Start_Window and Dialog_Box failure (OpenInsight 32-bit Specific)
At 06 JUL 2005 07:58:58AM Dale Jessop wrote:
Hi All,
We have a problem which has only recently begun to appear, and affects the first window we try to launch in our app, after the application start point.
Basically, we execute this line of code:
winid =start_window('P201',
,
, 1)and Winid always returns null. P201 does exist. It does not matter how many times this line is run, the result is always null. It does not matter what the window name is, still null. It still does not work if the GETSTRUCTUREFLAG is not set, the window in this case just does not start!
However, if I call a simple timed message before I start the window, for example:
msgrec=Initialising… Please Wait…'
msgrec=T1'
msgrec=W'
msgrec=*'
msgrec=-1'
msgrec=-1'
msgrec=C'
msgrec=3M Dialect'
call msg(@window, msgrec,
,
,) winid =start_window('P201',
, '', 1)Then, winid has the window details as expected…
I don't want to display a message (annoying BEEP) just so I can display a window, what gives!!!
Cheers,
Rich
At 06 JUL 2005 08:47AM support@sprezzatura.com wrote:
What happens if you give it a parent window?
support@sprezzatura.com
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 08 JUL 2005 06:07AM Richard Channer wrote:
]]]What happens if you give it a parent window?
Makes no difference - it wouldn't be a solution anyhow cos the previous window is closed as soon as the new one is launched, so couldn't be used as a parent.
In the interests of speed - i could display a timed message of zero seconds, but can i display a message without a beep?
Rich
At 08 JUL 2005 08:34AM Sean FitzSimons wrote:
Richard,
The GETSTRUCTUREFLAG parameter when set to true will return the window structure without actually starting the window.
I can start a window, without a parent and without a message being set. I realize that you tried to start the window with the GETSTRUCTUREFLAG turned off. Is the visible property on the window set to true.
Sean
At 08 JUL 2005 08:39AM Richard Channer wrote:
Hi Sean,
Yeah the target window is visible. This problem only seems to occur once, on the first window launch. If a message is displayed and taken down, everything works as expected. This one is a beauty! OI verison is 413 by the way. Have not tested on oi7.
Rich