PANEL window - ROW and COL properties

Moderator: Rathinagiri

Post Reply
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

PANEL window - ROW and COL properties

Post 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.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

PANEL window - ROW and COL properties

Post by Pablo César »

You are right Krzysztof.

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
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PANEL window - ROW and COL properties

Post 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))
Post Reply