Open any database file. Got to Forms → Use Wizard to create a Form… Create a form. After you have created the form open the form for editing, not for input data. Set cursor on the background of the form. Press "Del". All controls will disappear. This isn't only a problem of the wizard. Default anchor for all controls is "To Paragraph". So all controls will be lost by pressing "Del". This wouldn't happen if default anchor (in Base forms, not in standalone forms!) would be changed "To Page". Another argument for "To Page": Some users try to change the position of controls by setting paragraphs. Have seen many form here with a lot of paragraphs. If controls are anchored to paragraph you couldn't set the position exactly by PositionX and PositionY of the control.
(In reply to Robert Großkopf from comment #0) > If controls are anchored to paragraph you couldn't set the > position exactly by PositionX and PositionY of the control. Not opposing the request itself (I have *no* preference myself) - just mentioning the flaw in this specific excerpt: you *can* define exact *positioning* of controls regardless of the *anchoring* - see FAQ [1]. [1] https://wiki.documentfoundation.org/Faq/Writer/AnchoringAndPositioning
It seems that I need some macro locally, that would require me to take a deep breath and drink my morning coffee before sending stuff - because I clearly needed to do that before sending comment 1. Indeed, the dialog needed to set the positioning options is not available in report designer. I still believe we should fix that, making positioning ~independent of anchoring even there - but please disregard me for this bug.
And of course, I couldn't resist from making another error in comment 2, confusing reports with forms ... definitely need to stop posting today.
(In reply to Mike Kaganski from comment #1) > (In reply to Robert Großkopf from comment #0) > > If controls are anchored to paragraph you couldn't set the > > position exactly by PositionX and PositionY of the control. > > Not opposing the request itself (I have *no* preference myself) - just > mentioning the flaw in this specific excerpt: you *can* define exact > *positioning* of controls regardless of the *anchoring* - see FAQ [1]. Certainly you could position any control exactly. Might be my special problem with English language. If there is more than one paragraph in a form controls will be anchored to different paragraphs. PositionY won't help here to set controls at the same absolute y value.
On pc Debian x86-64 with master sources updated today, I could reproduce this. After some test, related code seems to be in wizards/com/sun/star/wizards/form but I tried: git grep -in anchor and git grep -in parag it returns nothing. Are you sure it's about anchor type?
(In reply to Julien Nabet from comment #5) > > After some test, related code seems to be in > wizards/com/sun/star/wizards/form but I tried: > git grep -in anchor > and > git grep -in parag > it returns nothing. > > Are you sure it's about anchor type? Think it has nothing to do with the wizard. Open a form for editing. Add a control. Have a look for the anchor. Anchor is set to paragraph automatically. This is the same behavior in Writer, because default anchor could only be set for images, not for form controls.