kretzschmar
asked on
Frames, Anchors and Great Fonts
hi friends,
did you tried following design with small fonts:
-new app
-new frame
-drop a tedit on the frame
-adjust Tedits left and width so that the edit is near the left and the right border of the frame
-set the anchors of the tedit top,left,right to true
-drop the frame on the form and set frames align to alClient
-compile the app, all looks fine, the edit changes its width on formresize and is fully visible
now change the system to use large font and run the app.
you will see, that the right end of the tedit leaves the form
and the tedit will never become fully visible
the q is now, how to avoid this effect,
without any analysis of the clientareas?
simple solution wanted
meikl
did you tried following design with small fonts:
-new app
-new frame
-drop a tedit on the frame
-adjust Tedits left and width so that the edit is near the left and the right border of the frame
-set the anchors of the tedit top,left,right to true
-drop the frame on the form and set frames align to alClient
-compile the app, all looks fine, the edit changes its width on formresize and is fully visible
now change the system to use large font and run the app.
you will see, that the right end of the tedit leaves the form
and the tedit will never become fully visible
the q is now, how to avoid this effect,
without any analysis of the clientareas?
simple solution wanted
meikl
Hi meikl,
Is it possible to simulate this situation without rebooting a computer?
TEdit.Autosize=false doesn't help?
-----
Igor.
Is it possible to simulate this situation without rebooting a computer?
TEdit.Autosize=false doesn't help?
-----
Igor.
ASKER
hi igor,
>Is it possible to simulate this situation without rebooting a computer?
No, systemdependend, but i don't know any windows-version, which must not rebooted if the systemfonts are changed
>TEdit.Autosize=false doesn't help?
No, thought also on this
meikl ;-)
>Is it possible to simulate this situation without rebooting a computer?
No, systemdependend, but i don't know any windows-version, which must not rebooted if the systemfonts are changed
>TEdit.Autosize=false doesn't help?
No, thought also on this
meikl ;-)
Hi meikl,
I attentively have looked a code for TEdit. And in my opinion it is a problem not codings but inside Windows. I do not think at all that there is a hope to correct a situation changing NewStyleControls or do something with ControlStyle. Sorry, I can't help.
-----
Igor.
I attentively have looked a code for TEdit. And in my opinion it is a problem not codings but inside Windows. I do not think at all that there is a hope to correct a situation changing NewStyleControls or do something with ControlStyle. Sorry, I can't help.
-----
Igor.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi shenqw,
thanks for your answer
i will test it tomorrow, and let you know
but will this also work for nested frames?
meikl ;-)
thanks for your answer
i will test it tomorrow, and let you know
but will this also work for nested frames?
meikl ;-)
ASKER
Adjusted points from 50 to 75
ASKER
hi shenqw,
yup, thats it,
works also with nested frames!
(just a bit more code, but easy enough)
thanks for your easy solution,
have raised the points up to 75
(sometimes the head is blocked and
thinks only in complex ways)
meikl ;-)
yup, thats it,
works also with nested frames!
(just a bit more code, but easy enough)
thanks for your easy solution,
have raised the points up to 75
(sometimes the head is blocked and
thinks only in complex ways)
meikl ;-)
....listening very carefully...