Board index » cppbuilder » Using SaveDialog component

Using SaveDialog component

Hi!
I use SaveDialog component. Can I check has cancel button pressed in save
dialog?
I open SaveDialog  and after that I need cancel info.

///

   SaveDialog1->Execute();

   if(cancel)                       //just for clarify my thing...

///

Thanks

Juse

 

Re:Using SaveDialog component


Hello Juse

I'm not 100% sure what you want to do. Perhaps something like this:

    if( SaveDialog1->Execute() )
    {
            //FILE WAS SELECTED AND SAVE PRESSED
           ShowMessage("save button was pressed on  SaveDialog");
    }
    else
    {
           //CANCEL WAS PRESSED
           ShowMessage("cancel button was pressed on SaveDialog");
    }

Rodolfo

Quote
"Juse" <REMOVEjut...@hotmail.com> wrote in message news:3d19827f_2@dnews...

: Hi!
: I use SaveDialog component. Can I check has cancel button pressed in save
: dialog?
: I open SaveDialog  and after that I need cancel info.
:
: ///
:
:    SaveDialog1->Execute();
:
:    if(cancel)                       //just for clarify my thing...
:
: ///
:
: Thanks
:
: Juse
:
:

Re:Using SaveDialog component


Oh... So simple :) That was what I meant.

Thank you very much Rodolfo!

Quote
"Rodolfo Frino" <starcinema2...@iprimus.com.au> wrote in message

news:3d19916f_1@dnews...
Quote
> Hello Juse

> I'm not 100% sure what you want to do. Perhaps something like this:

>     if( SaveDialog1->Execute() )
>     {
>             //FILE WAS SELECTED AND SAVE PRESSED
>            ShowMessage("save button was pressed on  SaveDialog");
>     }
>     else
>     {
>            //CANCEL WAS PRESSED
>            ShowMessage("cancel button was pressed on SaveDialog");
>     }

> Rodolfo

> "Juse" <REMOVEjut...@hotmail.com> wrote in message

news:3d19827f_2@dnews...

- Show quoted text -

Quote
> : Hi!
> : I use SaveDialog component. Can I check has cancel button pressed in
save
> : dialog?
> : I open SaveDialog  and after that I need cancel info.
> :
> : ///
> :
> :    SaveDialog1->Execute();
> :
> :    if(cancel)                       //just for clarify my thing...
> :
> : ///
> :
> : Thanks
> :
> : Juse
> :
> :

Other Threads