Page 1 of 1

PANEL window - ROW and COL properties

Posted: Sun Mar 19, 2017 5:47 pm
by KDJ
SetProperty(cPanelWindow, "ROW", nRow)
SetProperty(cPanelWindow, "COL", nCol)

They do work incorrectly.
nRow and nCol are treated as screen coordinates, instead of client area coordinates.

PANEL window - ROW and COL properties

Posted: Mon Mar 20, 2017 3:08 pm
by Pablo César
You are right Krzysztof.

Set row/col of Panel window is not properly working in HMG.

Re: PANEL window - ROW and COL properties

Posted: Mon Mar 20, 2017 7:18 pm
by KDJ
For now I solved the problem in this way:

Code: Select all

SetProperty(cPanelWindow, "ROW", ClientToScreenRow(GetParent(GetFormHandle(cPanelWindow)), nRow))
SetProperty(cPanelWindow, "COL", ClientToScreenCol(GetParent(GetFormHandle(cPanelWindow)), nCol))