Search found 3 matches

by Mastersgn
Wed Apr 30, 2008 4:44 pm
Forum: C++ Development
Topic: wxRichTextCtrl problem
Replies: 3
Views: 550

Ok, i solved with:

Code: Select all

parentCtrl->Remove((parentCtrl->GetLastPosition())-4,(parentCtrl->GetLastPosition())-3);
So first i add the image and then i remove the newline that the program adds...
by Mastersgn
Wed Apr 30, 2008 3:59 pm
Forum: C++ Development
Topic: wxRichTextCtrl problem
Replies: 3
Views: 550

Thanks!!!
I take this opportunity to get another question: when i add an image to the control (wxRichTextCtrl::AddImage),
it first add a newline and then add the image.
Why?..Can i remove this behavior?
Thanks
by Mastersgn
Wed Apr 30, 2008 3:37 pm
Forum: C++ Development
Topic: wxRichTextCtrl problem
Replies: 3
Views: 550

wxRichTextCtrl problem

Hi! I've a problem with wxRichTextCtrl because the enter key doesn't work (when i press enter key it change the control).I'm under win xp SP2 and i use wxPack (IDE: CodeBlocks). This is the implementation: personaltextctrl=new wxRichTextCtrl(panel,wxID_ANY,wxEmptyString,wxDefaultPosition,wxDefaultSi...