Set cursor for table column

forum.centura.team.developer (1998-2005) & forum.sqlwindows (2000-2005)
Anton Lwow

Set cursor for table column

Post by Anton Lwow » 17 Dec 2004, 13:09

 Posted by:  Anton Lwow 

Hi NG,

does anybody know, how to change default cursor for table window column?
SalCursorSet seems to dont work.(See attachment)

Thanks.

Anton.

You do not have the required permissions to view the files attached to this post.

Christian Astor

Re: Set cursor for table column

Post by Christian Astor » 17 Dec 2004, 13:25

 Posted by:  Christian ASTOR 


WM_SETCURSOR & SalTblObjectsFromPoint()

Anton Lwow

Re: Set cursor for table column

Post by Anton Lwow » 20 Dec 2004, 15:59

 Posted by:  Anton Lwow 

Thanks, it works...
but now standard size/move cursors are suppressed

Does Gupta have it's own method to change column's cursor ?

"Christian ASTOR" ???????/???????? ? ????????
?????????: news:k1dLgRD5EHA.1844@guptaweb...

You do not have the required permissions to view the files attached to this post.

Christian Astor

Re: Set cursor for table column

Post by Christian Astor » 20 Dec 2004, 19:49

 Posted by:  Christian ASTOR 


No, it's not quite correct.

eg =>

!!CB!! 173
On WM_SETCURSOR
Call GetCursorPos( nX, nY )
Call ScreenToClient( hWndItem, nX, nY )
Call SalTblObjectsFromPoint ( hWndItem, nX, nY, nRow, hWndCol, nFlags )
If SalWindowHandleToNumber(hWndCol) = SalWindowHandleToNumber(tbl1.col2)
Call SetCursor(SalWindowHandleToNumber( LoadCursorA( 0, 32649 ) ))
Return 0

Anton Lwow

Re: Set cursor for table column

Post by Anton Lwow » 21 Dec 2004, 09:10

 Posted by:  Anton Lwow 

Thank you for good ideas,
it works with some additions:

If SalWindowHandleToNumber(_hWndCol) = SalWindowHandleToNumber(tbl1.col2)
AND
NOT ( _nFlags & TBL_YOverColumnHeader ) AND NOT ( _nFlags &
TBL_YOverSplitBar )

Anton

"Christian ASTOR" ???????/???????? ? ????????
?????????: news:A7olwKs5EHA.2048@guptaweb...

Return to “forum.sqlwindows”

Who is online

Users browsing this forum: No registered users and 0 guests