https://bugs.documentfoundation.org/show_bug.cgi?id=146426
Bug ID: 146426
Summary: Dynamically (macro) added controls to form x position
ignored (Libre Base EDITING)
Product: LibreOffice
Version: 7.2.3.2 release
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Base
Assignee: [email protected]
Reporter: [email protected]
Description:
Controls added to a form by macro cannot be positioned along the x axis. The
value given to the control model is ignored and subsequent calls to
setPosSize() are also ignored and the control is locked to the position.
If you go into edit mode and select that now added control you can drag it up
and down but not left or right.
The problem may be related to the default value of the controls anchor
property.
The anchor value of the added control defaults to "as character". If in edit
mode you manually change the anchor on the control to anything else you can
move the control as normal.
I have not found a way to change the anchor property of the control
programmatically as the anchor property of the model is read only.
Although this is a BASIC problem it only seems to relate to Libre Base. I
believe it works as expected in Libre Calc.
Steps to Reproduce:
1. create a data base
2. add a form
3. write code to add a control to the form
4. code the position of the control
5. run the code
Actual Results:
control is positioned on left edge of form
Expected Results:
control is positioned where the code assigns it
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 7.2.3.2 (x64) / LibreOffice Community
Build ID: d166454616c1632304285822f9c83ce2e660fd92
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render:
Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.