[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting real size and position for arranged controls.
[Thread Prev] | [Thread Next]
- Subject: Re: Getting real size and position for arranged controls.
- From: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
- Date: Sat, 25 Jan 2025 13:01:02 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 1/24/25 10:39 PM, Carlos Prieto wrote:
Hi!I've noticed that l, when using the Arrangement property for a container, the arranged controls do not reflect the real X, Y, W and H properties. How can I get them?Thanks in advance.
I don't know why you wouldn't be getting the actual Width and Height of a control. It seems to be correct here with Qt5.Regarding .X and .Y, note that those properties are the X and Y coordinates of the control in relation to its parent. If you want the X & Y of the control in relation to the screen itself, use .ScreenX and .ScreenY.
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
Re: Getting real size and position for arranged controls. | Gianluigi <gradobag@xxxxxxxxxxx> |
Getting real size and position for arranged controls. | Carlos Prieto <caprilo@xxxxxxxx> |