Solved

Frames Width stays fixed on inheritance

Posted on 2004-09-08
3
357 Views
Last Modified: 2010-04-16
Hi all,

I am trying to create a frame based on another frame I have define. the problem I have is that the new frame always get defined with a width of 443 irrespective what the parent frame width is. I have a groupbox (Align = slNone) but Anchors = [akLeft, akRight, akBottom, akTop] which gets defined as a border to the frame.

The problem is that the groupbox still keep it's settings, thus starting off with the width equivalent to the original width (way more than 443!) and by resizing the new frame to the correct width increases it's width in relation.

This looks like a bug to me, anywhere or way I can fix this to not happen again?

Regards,
Js
0
Comment
Question by:johan777
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 500 total points
ID: 12005073
usual i had a similar problem (what was a point, too, that i dislike frames)

leave the tframe-align by alnone (looks ugly at designtime)

in the form/component where you have the frame embedded
change at runtime in the onCreate-event the align of the TFrame to alClient

meikl ;-)
0
 

Author Comment

by:johan777
ID: 12009896
Hi Meikl,

Thanx for the info. I'll mark it as accepted, although I was hpoing more for something like an update, patch or service pack that was released to solve this. I think this has been coming on for quite a while.

Regards,
Js
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

726 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