PANEL window - ROW and COL properties

Moderator: Rathinagiri

Post Reply
KDJ
Posts: 154
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 120 times

PANEL window - ROW and COL properties

Post by KDJ » Sun Mar 19, 2017 5:47 pm

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: 4052
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

Post by Pablo César » Mon Mar 20, 2017 3:08 pm

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: 154
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 120 times

Post by KDJ » Mon Mar 20, 2017 7:18 pm

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

Who is online

Users browsing this forum: Bing [Bot] and 1 guest