Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren, 3 Monaten
Letzter Beitrag:
vor 3 Jahren, 1 Monat
Beteiligte Autoren:
Michael Q, Piet van Zanten, Fabrice Harari, Christo, Alexandre Leclerc

[WB19] How to reliably anchor controls on a Popup?

Startbeitrag von Michael Q am 07.03.2015 19:38

I have a Popup control which was laid out and rendered perfectly. I made some minor changes and now when it renders, the layout is chaos and whatever I try I can't seem to fix it.

Does anyone have any tips on how to fix wayward positioning of controls?

Many thanks,



Hi Michael,

Some things to try if you haven't already.
- disable anchoring on all controls.
- checking "The control can be overlaid" for all controls
- unchecking "The control can be overlaid" for all controls


von Piet van Zanten - am 08.03.2015 23:04
Hi Piet,

That things you suggest don't seem to make any difference.

Does anyone know what causes page layouts to "explode" in the first place?


von Michael Q - am 09.03.2015 11:33
Hi Michael

I've never seen the page layout explode like you are describing...
Maybe if you provide a few screen copy, we could better understand the problem and know where it's coming from

Best regards

von Fabrice Harari - am 09.03.2015 18:02
Hi Fabrice,

Thank you for your offer of help. I attach 3 screen shots of the popup:

1221 is the popup as it used to render correctly.
1224 is the popup as it now renders.
1226 is the poup in the IDE.

There is nothing I can do to get back to correct rendering. Even if I delete all the controls and start again, the rendering is wild, as though some switch has been changed or something has got corrupted and now it won't behave.


[attachment 1374 2015-03-10_1221.png]
[attachment 1375 2015-03-10_1224.png]
[attachment 1376 2015-03-10_1226.png]

von Michael Q - am 10.03.2015 12:32
Hi Michael,

Looks like your tab control is anchoring full screen, thus pushing all controls outside the tab away.


von Piet van Zanten - am 10.03.2015 13:09
Hi Piet,

I completely deleted the tab control and this is what I get:

[attachment 1377 2015-03-10_1341.png]

von Michael Q - am 10.03.2015 13:43
Hi Michael,

You could start by regenerating the html pages
If that doesn't work:
- delete the .cpl folder
- delete the [language] folder e.g. /US
- delete the MyProject_WEB\Language and the MyProject_WEB\res folder

If that doesn't work:
- create a new popup
- copy all controls from the old popup to the new one

Do you know exactly what the minor changes were you made?


von Piet van Zanten - am 10.03.2015 13:49
Hi Michael

first thing to try is to press F6 to see each control on your page, as it is possible that you have extra ones hidden/invisible/below in the editor (as a result of an involuntary drag and drop, by example), then check that you don't have anything untoward at that level

You can also use F12 to see the list of controls

Best regards

von Fabrice Harari - am 10.03.2015 14:40
Thanks Piet & Fabrice.

Fabrice, there are no hidden or invisible controls.

Piet, I regenerated the html pages although nothing appeared to happen.
I deleted the .cpl folder
I deleted the [language] folder e.g. /US
I delete the MyProject_WEB\Language and the MyProject_WEB\res folder.
The problem still existed.
I copied all controls to the clipboard.
Deleted the popup.
Create a new popup with a default name.
Renamed the popup to the same as the deleted one.
Pasted all the controls in.
Same problem...see attached file.

I can't remember what change I made that caused this to happen. I guess i could go back in the SCM and recover an old copy. But it worries me that this is happening.


[attachment 1378 2015-03-10_1611.png]

von Michael Q - am 10.03.2015 16:16
I deleted 2 buttons on the main page which had code to open 2 other popups which had earlier been deleted. Now I get this, which I guess is an improvement. But why would buttons on the main page affect the rendering of the popup? This is real voodoo.


[attachment 1379 2015-03-10_1627.png]

von Michael Q - am 10.03.2015 16:30
Hi Michael,

This can be due to many factors which the IDE does not render.

Check if the control's margins, padding (CSS), how they should react if they overflow, if they are set to allow overlapping or not, how they align, etc. There are many small things that can cause this.

A drastic test is to re-aply a template, or remove all CSS as testing. (In fact, using Google Chrome and its code inspection tool, you can very very easily "see" what is going on and find the culprit.)

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 10.03.2015 17:03
Hi Michael,

I hope you resolved this issue by now, but just for interest sake.

I had the same problem and resolved it in the following manner.

Changing the "Edit Mode" in the General section of the main page settings, from
"Edit compatible with version 16" to
"Edit in "zoning".

Kind Regards

von Christo - am 23.04.2015 08:49
Hi Christo,

Thank you for your suggestion, but my main page settings are alrerady Editing in Zoning mode.

I ended up restoring from a backup as I couldn't discover any other way of repairing the page. Very strange.



von Michael Q - am 23.04.2015 11:38
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.