Link to home
Start Free TrialLog in
Avatar of kretzschmar
kretzschmarFlag for Germany

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
Avatar of sburck
sburck

Since every time we install one of our demo apps on our salespeoples' new laptops similar problems come up...

....listening very carefully...
Hi meikl,
Is it possible to simulate this situation without rebooting a computer?
TEdit.Autosize=false doesn't help?
-----
Igor.
Avatar of kretzschmar

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 ;-)
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.
ASKER CERTIFIED SOLUTION
Avatar of shenqw
shenqw

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi shenqw,

thanks for your answer

i will test it tomorrow, and let you know

but will this also work for nested frames?

meikl ;-)
Adjusted points from 50 to 75
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 ;-)