Thread: How to align 2 rectangles 33% - 66%?
 |
This question is answered.
|
|
Replies:
3
-
Last Post:
Jun 12, 2014 2:06 PM
Last Post By: Linden ROTH
|
|
|
Posts:
54
Registered:
12/15/02
|
|
I have 2 TRectangle:
the firts is aligned left
and the last is align client.
I want the first always has a width equal to 33% of its container (responsive graphic).
How can I do?
|
|
|
Posts:
1,346
Registered:
11/9/13
|
|
Something similar to myrect.width := myrect.Parent.Width * .33;
|
|
|
|
Posts:
12
Registered:
1/11/10
|
|
Something similar to myrect.width := myrect.Parent.Width * .33;
Put Eli's code in onresize form event.
|
|
|
|
Posts:
467
Registered:
11/3/11
|
|
I have 2 TRectangle:
the firts is aligned left
and the last is align client.
I want the first always has a width equal to 33% of its container (responsive graphic).
How can I do?
TGridPanelLayout ... easy
--
Linden
"Mango" was Cool but "Wasabi" was Hotter but remember it's all in the "source"
|
|
|
|
Legend
|
|
Helpful Answer
(5 pts)
|
|
Correct Answer
(10 pts)
|
|
Connect with Us