Solved

Frames Width stays fixed on inheritance

Posted on 2004-09-08
3
354 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
  • 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
 
LVL 27

Expert Comment

by:kretzschmar
ID: 12005094
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…

831 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