I make a program (electronic manual) and I need the buttons to stay in their place, and the working window stretch, depending on the screen size. How can I do that?
1 answer
Suppose you have this layout:
_________________ [ΠΊΠ½ΠΎΠΏΠΊΠ°1] | | [ΠΊΠ½ΠΎΠΏΠΊΠ°2] | | | ΠΏΠ°Π½Π΅Π»Ρ1 | | | | | |_________________| [ ΠΊΠ½ΠΎΠΏΠΊΠ°3 ] [ΠΊΠ½ΠΎΠΏΠΊΠ°4] [ΠΊΠ½ΠΎΠΏΠΊΠ°5] Register here such anchors for elements ( Anchors )
ΠΊΠ½ΠΎΠΏΠΊΠ°1 = ΠΊΠ½ΠΎΠΏΠΊΠ°2 = [akLeft, akTop] // ΠΏΡΠΈΠ»Π΅ΠΏΠΈΡΡΡ ΠΊ Π²Π΅ΡΡ
Π½Π΅ΠΌΡ Π»Π΅Π²ΠΎΠΌΡ ΡΠ³Π»Ρ ΠΏΠ°Π½Π΅Π»Ρ1 = [akLeft, akTop, akBottom, akRight] // Π±ΡΠ΄Π΅Ρ ΡΠ°ΡΡΡΠ³ΠΈΠ²Π°ΡΡΡΡ ΠΊΠ½ΠΎΠΏΠΊΠ°3 = ΠΊΠ½ΠΎΠΏΠΊΠ°4 = ΠΊΠ½ΠΎΠΏΠΊΠ°5 = [akBottom, akRight] // ΠΏΡΠΈΠ»Π΅ΠΏΠΈΡΡΡ ΠΊ Π½ΠΈΠΆΠ½Π΅ΠΌΡ ΠΏΡΠ°Π²ΠΎΠΌΡ ΡΠ³Π»Ρ I hope the principle is clear?
|
Align. - nick_n_aAnchors- Kromster