Article View: borland.public.cppbuilder.nativeapi
Article #2523Re: Modifying the TOpenDialog or TSaveDialog
From: Dan Mayo
Date: Fri, 09 Feb 2007 18:58
Date: Fri, 09 Feb 2007 18:58
39 lines
2400 bytes
2400 bytes
Dan Mayo wrote:
>> I believe this can be accomplished via the registry.
>
> Any idea where I can find a reference or an example for this?
>
> I dread attempting to rewrite the functionality provided by TOpenDialog
> or TSaveDialog; I would think creating a descendant class from one of
> those would be easy, and then adding a TButton to popup a keyboard, or
> capturing the double-click message wouldn't be that hard; but I'm not
> having too much luck.
>
> Is what I am trying to do possible?
Reading the Help file, it looks like I can get the Handle for the
TOpenDialog in the OnShow event. I was thinking that if I had the
handle, then I could create a button and add a button to that dialog,
such as the following:
//OnShow()....
Button->Top = 0;
Button->Height = 10;
Button->Left = 0;
Button->Width = 10;
Button->Caption = "HELLO";
Button->Parent = NULL;
/* <- This places it on the main form, but obviously is inaccessible as
the dialog is modal during execute()*/
//Button->Parent = Application->MainForm;
Button->ParentWindow = this->Handle; //I figure this would do it,
but it doesn't
Button->Visible = true;
Button->BringToFront();
Any ideas? Or am I barking up the wrong tree again?
Technical Details
Message-ID:
<45ccc478$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45c9f090$1@newsgroups.borland.com> <45caed68@newsgroups.borland.com> <45cca151$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,991e7cc92168a8f1 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 09 Feb 2007 12:58:04 -0600 From: Dan Mayo <do_not_spam_dmayo2@netzero.com> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Modifying the TOpenDialog or TSaveDialog References: <45c9f090$1@newsgroups.borland.com> <45caed68@newsgroups.borland.com> <45cca151$1@newsgroups.borland.com> In-Reply-To: <45cca151$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 216.174.165.174 Message-ID: <45ccc478$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1171047544 216.174.165.174 (9 Feb 2007 10:59:04 -0800) Lines: 39 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail