Page 1 of 1

how redirect output from ODBC driver to top ?

Posted: Mon Nov 21, 2016 8:39 am
by Victorio
I am using SQL Express to connecto to SQL server.
When some error when connecting, ODBC driver put message but this message was under main app window.
It is difficult to show him when it occur, must several times click to "desktop" button on right bottom corner on desktop.
Is some way to set this message to always on top ?
I know, this is "foreign" messages, then can be problem do it.

I can hide my main app windows and after it call ODBC driver:
oConnection := SQLConnection():new()
oConnection:driverConnect(nil, @cConnectString

but if is some way, will be better.

Re: how redirect output from ODBC driver to top ?

Posted: Tue Nov 22, 2016 8:34 am
by rdonnay
I think those messages will go to the top if you make sure that your main window is your SetAppWindow().

Re: how redirect output from ODBC driver to top ?

Posted: Fri Nov 25, 2016 5:00 am
by Victorio
Yes, this was problem, I must modify setting actually window by setappwindow
But better for me was hide program window when connecting to SQL server and show after connect. when error, user see this ODBC Driver notify , for example when incorrect password etc.
thanks

Re: how redirect output from ODBC driver to top ?

Posted: Thu Dec 22, 2016 3:29 am
by Victorio
Solved !

I play with setappwindow, store it in variable, then return again correct window handle.
Now works everything file, also in SQL Express is parameter for windowhandle, this works good.

Thanks-