Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Frames Width stays fixed on inheritance

Posted on 2004-09-08
3
Medium Priority
?
359 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 1500 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

636 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