🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5069

Re: @ _ scaling

#5069
From: Jonathan Benedicto
Date: Mon, 07 Nov 2005 14:05
30 lines
2373 bytes
Pedram wrote:
> There is a Form with some components,
> I'm wonder if there is API for supporting there.

I don't know if there is.

> or if there is not,
> if someone could guide me to do this important job in Runtime.
> Because I design my applications in 800*600 resultion but my clients
> use application in more than 1026*768 !!!

I wrote my own component to handle this for me. I have posted in into 
borland.public.attachments. It is basically like a big panel, that can 
contain many smaller sub-panels, each having their own left, top, width and 
height properties, that can be set in either percentages or pixels. 
Sub-panels can be placed inside other sub-panels.

To use it, cut all your components out of the form, place the 
JComponentTable component into your form, align it to alClient, and paste 
all your components back onto it. Now, add cells to the component table, 
using its Cells property, and set their width/height/left and top position. 
For percentages set the values to something%, for pixels, somethingpx. Now 
once you've laid out all your cells, go through your components, setting 
their Tag property to the index of the cell that component is supposed to 
be in, plus one. Eg. If you want the component to be in cell 0, then you'd 
set that components Tag property to 1.

HTH

Jonathan
Technical Details
Message-ID: <436f5f0f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <436e137d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6e4e75f23468d9c2
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <incorrect@no.server>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <436e137d@newsgroups.borland.com>
Subject: Re: @ _ scaling
Date: Mon, 7 Nov 2005 09:05:27 -0500
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 69.158.110.199
Message-ID: <436f5f0f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1131372303 69.158.110.199 (7 Nov 2005 06:05:03 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail