Hi Hussein, 

ah, thank you very much for this hint. 
As you see, I am quite new to the XMLMind customization topic ;)

all the best,
Roman


> -----Urspr?ngliche Nachricht-----
> Von: Hussein Shafie [mailto:hussein at pixware.fr] 
> Gesendet: Montag, 21. Februar 2005 17:05
> An: Huditsch Roman
> Cc: xmleditor-support at xmlmind.com
> Betreff: Re: [XXE] Giving an alert on finishing a process command
> 
> Huditsch Roman wrote:
> > I would like to define a button, which should onClick copy 
> the current 
> > file to a specified directory.
> > So far so good, but after the copying process is finished, I would 
> > like to alert a user-defined message like "Document released".
> > Is that possible? I could not find any clue how to do this 
> in the DTD 
> > part for the process element...
> > 
> > Here are my definitions so far:
> > 
> >     <cfg:button toolTip="Freigeben" icon="icons/release.gif">
> >             <cfg:command name="release"/>
> >     </cfg:button>
> >     ...
> >     <cfg:command name="release">
> >             <cfg:process showProgress="false">
> >                     <cfg:copyDocument
> > to="R:\Produktion\Legislations\source"/>
> >                     ???
> >             </cfg:process>
> >     </cfg:command>
> 
> Your "Freigeben" button should invoke a macro-command like 
> the one below, instead of directly invoking the "release" 
> process-command.
> 
> ---
>    <cfg:command name="release_onClick">
>      <cfg:macro>
>        <cfg:sequence>
>       <cfg:command name="release" />
>       <cfg:command name="alert" parameter="Document released." />
>        </cfg:sequence>
>      </cfg:macro>
>    </cfg:command>
> ---
> 
> More info about command "alert" in
> http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s01.html
> 
> See also command "status" 
> (http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s63.html)
> and command "beep
> "(http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06
> s04.html)
> 
> 

Reply via email to