Solved

Frames Width stays fixed on inheritance

Posted on 2004-09-08
3
356 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
 
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

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

737 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