Article View: borland.public.cppbuilder.nativeapi
Article #539Re: Creation order of all controls
From: Carlos
Date: Tue, 29 Jan 2008 14:53
Date: Tue, 29 Jan 2008 14:53
54 lines
2756 bytes
2756 bytes
Thank you,
I prefer cut and paste components for order list.
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> escribi๏ฟฝ en el mensaje de
noticias news:479e3a58$1@newsgroups.borland.com...
>
> "Carlos" <a@a.com> wrote in message
> news:479e2597@newsgroups.borland.com...
>
>> I my form exists PageControls, Panels, groupbox... it is a
>> problem for make visible a control inside of a tab not visible
>
> You can write a simple recursive function to handle that, ie:
>
> void __fastcall EnsureVisible(TControl *Control)
> {
> if( Control )
> {
> TTabSheet *pSheet = dynamic_cast<TTabSheet*>(Control);
> if( pSheet )
> {
> EnsureVisible(pSheet->PageControl);
> pSheet->PageControl->ActivePage = pSheet;
> }
> else
> {
> EnsureVisible(Control->Parent);
> Control->Visible = true; // optional, depending on your UI
> design
> }
> }
> }
>
> void __fastcall TForm1::ValidateSomething()
> {
> //...
> if( ... some error occured ... )
> {
> EnsureVisible(SomeNestedControl);
> SomeNestedControl->SetFocus();
> return;
> }
> //...
> }
>
>> I would like an order iteration (like taborder) for check controls.
>
> You don't need to do that, but if you must have an ordered list, then look
> at TWinControl::GetTabOrderList(), like I suggested earlier.
>
>
> Gambit
>
Technical Details
Message-ID:
<479f3dff$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<479dd907@newsgroups.borland.com> <479e02e7$1@newsgroups.borland.com> <479e2597@newsgroups.borland.com> <479e3a58$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c9cdd7c64c7a4e9 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII From: "Carlos" <a@a.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <479dd907@newsgroups.borland.com> <479e02e7$1@newsgroups.borland.com> <479e2597@newsgroups.borland.com> <479e3a58$1@newsgroups.borland.com> In-Reply-To: <479e3a58$1@newsgroups.borland.com> Subject: Re: Creation order of all controls Date: Tue, 29 Jan 2008 15:53:34 +0100 Lines: 55 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 NNTP-Posting-Host: 80.38.17.40 Message-ID: <479f3dff$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1201618431 80.38.17.40 (29 Jan 2008 06:53:51 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail