Yesid Hernandez wrote:
>
> I appreciate your help, that worked ok. I was thinking maybe it would be 
> clear to have a delCurve() method, or something like this because for me 
> was not clear the SetPending and SetRelease methods. IMHO.

i think i will add as documentation how to do it.

> 
> I have another questions:
> 
> 1. I need to move the points for plot, viewing the curves sample I saw 
> there is a a2dStToolContr, the constructor for this object is 
> a2dStToolContr <cid:part1.03090705.04050208@gmail.com> (a2dCanvasView 
> <cid:part2.00090100.02010700@gmail.com> *view, wxFrame *where)

where tells wxFrame to display statusbar text in.
I actually don;t know if a wxDialog can have a statusbar.

But wxFrame can:
wxFrame::CreateStatusBar

But you can set that parameter to NULL.
Maybe i should extend to use a wxWindow* which gets an event, and it can choose 
whatever it wants to display
the text stored within the event.

, my
> problem is that the canvas is located in a wxDialog not a wxFrame, so 
> when I set this property I get a error. The other questions is that the 
> points are supossed to be move only in the x axis.

void a2dVertexCurve::OnHandleEvent(a2dHandleMouseEvent &event)

     void SetEditMode( wxUint32 editmode ) { m_editmode = editmode; }

search a2dCURVES_EDIT_FIXED_X or a2dCURVES_EDIT_FIXED_Y

> 
> 2. As I can move the points directly within the plot, I want to be move 
> from some spinCtrls, unfortunately I didn't find the way to do this neither.


That can be done with something like this:

m_root->GetCommandProcessor()->Submit(new a2dCommand_VertexCurveMovePoint( 
MyCurve, x, y, index ));

In case of being in editing mode, the orginal ( not the blue one ), can be 
retreived like this:

a2dVertexCurve* original = wxStaticCast( PROPID_Original.GetPropertyValue( 
MyCurve ).Get(), a2dVertexCurve );

Where MyCurve is a pointer to the a2dVertexCurve that is being the editcopy.

> 
> Well, again thanks for any help you can give me. With this experience 
> I'm writing some how to with this control, to share it with everyone.

Difficult sentence ;-) Whatever, happy hacking,

Klaas



-- 
Unclassified

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to