Solved

Frames Width stays fixed on inheritance

Posted on 2004-09-08
3
351 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
Comment Utility
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
Comment Utility
0
 

Author Comment

by:johan777
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

15 Experts available now in Live!

Get 1:1 Help Now