Article View: borland.public.cppbuilder.nativeapi
Article #2529Re: Modifying the TOpenDialog or TSaveDialog
From: Dan Mayo
Date: Fri, 09 Feb 2007 21:17
Date: Fri, 09 Feb 2007 21:17
25 lines
1750 bytes
1750 bytes
Why doesn't the below code show the EditBox in the SaveDialog on the
OnShowEvent?
Edit1->Parent = NULL;
Edit1->ParentWindow = NULL;
Edit1->ParentWindow = OpenDialog1->Handle;
Edit1->Top = 0;
Edit1->Height = 1000;
Edit1->Left = 0;
Edit1->Width = 1000;
Edit1->Text = "HELLO";
Edit1->Visible = true;
Edit1->BringToFront();
Edit1->Refresh();
Edit1->Repaint();
If I have Edit1 on the main form, Button1 calls the
SaveDialog->Execute(), when Button1 is clicked, the above code runs (as
I can see from both breakpoint watching and noticing Edit1 disappear
from the mainform), but the Edit1 Box is no where to be seen on the
SaveDialog box.
What is wrong?
Technical Details
Message-ID:
<45cce52f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.germany.com!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> <45ccc478$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 15:17:38 -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> <45ccc478$1@newsgroups.borland.com> In-Reply-To: <45ccc478$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: <45cce52f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1171055919 216.174.165.174 (9 Feb 2007 13:18:39 -0800) Lines: 25 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail