Laurent Veilleux wrote:
> m_currentinfo  is a font info object which is modified by my gui
> 
> I tried with a2dCommand_SetFont but how to process a a2dcommand
> I am doing that
> 
> (canvas doc is a ad2canvasDocument )
>    a2dCommandProcessor* commandProcessor= canvasDoc->GetCommandProcessor();
>     a2dCommand_SetFont* command = new a2dCommand_SetFont( 
> m_currentFontInfo );
>     commandProcessor->Submit (command);

There are two command processors. One for each document, and a central one.
The central one is the one you need here.

Something like this, taken from file canedit.cpp:

         a2dFontDialog dialog( this );
         if (dialog.ShowModal() == wxID_OK)
         {
             m_currentFont = dialog.GetFontData();
             a2dGetCmdh()->Submit( new a2dCommand_SetFont(m_currentFont) );
         }





-- 
Unclassified

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to