🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get first control in tab order

#12024
From: Remy Lebeau (TeamB)
Date: Mon, 29 Dec 2003 17:47
31 lines
2209 bytes
"Bruce Rhoades" <bruce.rhoades@gdsinc.com> wrote in message
news:3ff044aa@newsgroups.borland.com...

> I thought about creating a custom message to do this, then
> send that message to the dialog where I can then call
> FindNextControl to do the work, but that seems to be an
> unnecessary amount of work.

Your mention of FindNextControl() suggests that you are using the VCL to
create your dialog, correct?  If so, then the VCL implements tab ordering by
storing control pointers into a TList, and then iterating the TList when
needed.  As such, you will have to use methods, such as FindNextControl(),
that work with that TList internally.  Otherwise, you will just have to call
the GetTabOrderList() method (which is public) and iterate the list
manually.  It will contain TWinControl pointers for all of the components
that are available to tabbing.

> Note that I have also tried to send a NextDlgCtrl to the
> dialog but that didn't work.

There is no such function in either the VCL or the Win32 API.  Perhaps you
are thinking of the CDialog::NextDlgCtrl() method in MFC instead?

> Any help getting this to work, and/or why my base dialog message
> hanlder doesn't get called would be appreciated.

Please show your actual code.


Gambit
Technical Details
Message-ID: <3ff06759$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ff044aa@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,cf151fabf6b9ddca
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-29 10:10:07 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ff044aa@newsgroups.borland.com>
Subject: Re: How to get first control in tab order
Date: Mon, 29 Dec 2003 09:47:08 -0800
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.139.199
Message-ID: <3ff06759$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1072719705 67.22.139.199 (29 Dec 2003 09:41:45 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail