Laurent Veilleux wrote:
> ok so a2dGetCmdh()->GetFill() dosn't return a global or default fill
> but the last fill used in an object ???

Searching for 'a2dGetCmdh()'...
C:\DATA\ART2D\WXART2D\modules\canvas\include\cancom.h(638):A2DCANVASDLLEXP 
extern a2dCentralCanvasCommandProcessor* 
a2dGetCmdh();
1 occurrence(s) have been found.

A2DCANVASDLLEXP extern a2dCentralCanvasCommandProcessor* a2dGetCmdh();

//! used application broad to get the central command processor, when using 
Canvas module
//! Essential this a2dDocviewGlobals->GetDocviewCommandProcessor()
a2dCentralCanvasCommandProcessor* a2dGetCmdh()
{
        return wxDynamicCast( a2dDocviewGlobals->GetDocviewCommandProcessor(), 
a2dCentralCanvasCommandProcessor );
}

So you are right :-)

> 
> 
> 
> I use that and it seems to work
> 
> a2dFill* fill = a2dGetCmdh()->GetFill()->TClone(a2dObject::clone_flat );
> fill->SetStyle((a2dFillStyle)(commandEvent.GetSelection()));
> a2dGetCmdh()->Submit( new a2dCommand_ChangeCentralStyle( a2dGetCmdh(),fill));

Yes this clones the last used fill.

-- 
Unclassified

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to