Addo Well-Known Member Licensed User Longtime User Apr 15, 2018 #1 i have 2 panels main panel and top panel The main panel i need it to be full size unless the top panel become visible so they are aligned together how can i do that ? here is a sample project of what i have done i have set the anchor for top panel to be placed on top but when ever i set its visibility to false the main panel does not fill the screen . how do i aligned panels in b4a correctly ? Attachments alignedpanels.zip alignedpanels.zip 9 KB · Views: 250
i have 2 panels main panel and top panel The main panel i need it to be full size unless the top panel become visible so they are aligned together how can i do that ? here is a sample project of what i have done i have set the anchor for top panel to be placed on top but when ever i set its visibility to false the main panel does not fill the screen . how do i aligned panels in b4a correctly ?
LucaMs Expert Licensed User Longtime User Apr 15, 2018 #2 You must change panels' height and position by code; the Designer does not these things, it "does not work at runtime", it is used to create layouts. Upvote 0
You must change panels' height and position by code; the Designer does not these things, it "does not work at runtime", it is used to create layouts.
Addo Well-Known Member Licensed User Longtime User Apr 15, 2018 #3 I got the point now thank you Upvote 0
Addo Well-Known Member Licensed User Longtime User Apr 15, 2018 #4 i did something like this but the bottom is disappeared the button is no longer visible Code: Copy mainpanel.Top = toppanel.Top + toppanel.Height any idea why i thought that the panel parent content will be aligned automatic what i am doing wrong ? Attachments panelover2.zip panelover2.zip 9 KB · Views: 263 Upvote 0
i did something like this but the bottom is disappeared the button is no longer visible Code: Copy mainpanel.Top = toppanel.Top + toppanel.Height any idea why i thought that the panel parent content will be aligned automatic what i am doing wrong ?
LucaMs Expert Licensed User Longtime User Apr 15, 2018 #5 I would do it so: Attachments Panels.zip Panels.zip 9.3 KB · Views: 277 Upvote 0