Solved

Frames, Anchors and Great Fonts

Posted on 2000-04-30
8
329 Views
Last Modified: 2013-12-02
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
0
Comment
Question by:kretzschmar
8 Comments
 
LVL 3

Expert Comment

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

....listening very carefully...
0
 
LVL 9

Expert Comment

by:ITugay
ID: 2763621
Hi meikl,
Is it possible to simulate this situation without rebooting a computer?
TEdit.Autosize=false doesn't help?
-----
Igor.
0
 
LVL 27

Author Comment

by:kretzschmar
ID: 2763628
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 ;-)
0
 
LVL 9

Expert Comment

by:ITugay
ID: 2763754
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.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 3

Accepted Solution

by:
shenqw earned 75 total points
ID: 2764106
Very easy!!!

At Design-Time, don't set YourFrame.Align:=alClient, Only Set YourFrame.Align:=alNone;At Run-time ,In you FormCreate or somewhere like that set the YourFrame.Align:=alClient;

//Tested on Win98

Good Luck!

shenqw  {B-)
0
 
LVL 27

Author Comment

by:kretzschmar
ID: 2764173
hi shenqw,

thanks for your answer

i will test it tomorrow, and let you know

but will this also work for nested frames?

meikl ;-)
0
 
LVL 27

Author Comment

by:kretzschmar
ID: 2765338
Adjusted points from 50 to 75
0
 
LVL 27

Author Comment

by:kretzschmar
ID: 2765339
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 ;-)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now