Forum > Designer

How to display same LCL widget in different TabSheets

<< < (3/3)

dbannon:

--- Quote from: Muso on June 19, 2021, 02:53:20 am ---
--- Quote from: winni on June 18, 2021, 04:30:15 pm ---Use the onChange event of the PageControl to change the parent of the panel to the AktivePage:

--- End quote ---

That would be a nice idea, but unfortunately, the widgets are at different locations in the tabs. With your solution, the panel would appear at the same position in every tab.

--- End quote ---

You can easily change the widgets position at the same time as you change its parent. But from a user perspective, having an important widget appear in the same position on each tabpage is a good idea. The user would feel quite seasick if the widget appears to  jump around when they change a tab. 

Davo

Navigation

[0] Message Index

[*] Previous page

Go to full version