Board index » cppbuilder » changing buttons in SaveDialog / OpenDialog

changing buttons in SaveDialog / OpenDialog

Hello,

I am using the Dialogs SaveDialog and OpenDialog but I want to have
different Button texts.
For example I want to Open a file to record incoming bytes on the serial
interface and I need to have an overwrite prompt. So I need OpenDialog o
have a button named "Open" and SaveDialog to have the feature of overwrite
warning. Thats why I would like to use SaveDialog and change the button text

Does anybody know how to do it?

Thank you

Martin Mensch

 

Re:changing buttons in SaveDialog / OpenDialog


On Thu, 11 Apr 2002 12:28:39 +0200, "Martin Mensch"

Quote
<martin.men...@online.de> wrote:
>For example I want to Open a file to record incoming bytes on the serial
>interface and I need to have an overwrite prompt. So I need OpenDialog o
>have a button named "Open" and SaveDialog to have the feature of overwrite
>warning. Thats why I would like to use SaveDialog and change the button text

You don't need to change the save dialog - just use FileExists() to
check whether the file it returns already exists.

Re:changing buttons in SaveDialog / OpenDialog


Quote
Martin Mensch <martin.mensch> wrote in message

news:3cb5662c_2@dnews...
Quote
> I am using the Dialogs SaveDialog and OpenDialog but I want to have
> different Button texts.
> For example I want to Open a file to record incoming bytes on the
serial
> interface and I need to have an overwrite prompt. So I need
OpenDialog o
> have a button named "Open" and SaveDialog to have the feature of
overwrite
> warning. Thats why I would like to use SaveDialog and change the

button text

Have you tried adding the ofOverwritePrompt to the ->Options property
of your Save dialog?  I ask, not to imply RTFM, but because some of
the more obscure Options have failed to work for me.  But I have used
ofOverwritePrompt with success.  If you want to provide such a test
within the Open dialog, I could say you're using the wrong dialog, but
you could use Michael's suggestion.

--
Timothy H. Buchman
========================================
City Center Theater, New York NY
mail address tbuchmanPLEASE(at sign)REMOVEcitycenter.org
Search .borland message archive on http://www.mers.com/searchsite.html

Re:changing buttons in SaveDialog / OpenDialog


Timothy H. Buchman <tbuchmanPLEASE(at sign)REMOVEcitycenter.org> wrote
in message news:3cb591e5$1_1@dnews...

Quote
> Martin Mensch <martin.mensch> wrote in message
> news:3cb5662c_2@dnews...
> > I am using the Dialogs SaveDialog and OpenDialog but I want to
have
> > different Button texts.

I should have answered your button text question too:
http://thunder.prohosting.com/~cbdn/cd003.htm
T.H.B.

Other Threads