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
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
PANEL window - ROW and COL properties
You are right Krzysztof.
Set row/col of Panel window is not properly working in HMG.
Set row/col of Panel window is not properly working in HMG.
Last edited by Pablo César on Mon Mar 20, 2017 7:36 pm, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: PANEL window - ROW and COL properties
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))