how redirect output from ODBC driver to top ?

This forum is for eXpress++ general support.
Post Reply
Message
Author
Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

how redirect output from ODBC driver to top ?

#1 Post 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.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: how redirect output from ODBC driver to top ?

#2 Post by rdonnay »

I think those messages will go to the top if you make sure that your main window is your SetAppWindow().
The eXpress train is coming - and it has more cars.

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: how redirect output from ODBC driver to top ?

#3 Post 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

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: how redirect output from ODBC driver to top ?

#4 Post 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-

Post Reply