FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour mouse cursor in a dialog(solved)
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
mouse cursor in a dialog(solved)
Posted: Mon Apr 27, 2015 04:46 PM

how to position the mouse cursor in a dialog?

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: mouse cursor in a dialog
Posted: Mon Apr 27, 2015 07:19 PM

/*************/
static procedure MoveCursor()

local nColuna, nLinha, nResolucao1, nResolucao2

nResolucao1 := GetSysMetrics( 0 )
nResolucao2 := GetSysMetrics( 1 )

nColuna := nResolucao1 / 2
nLinha := nResolucao2 / 2

SetCursorPos( nColuna, nLinha )

return

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin

Continue the discussion