Search found 59 matches

by kea_
Tue Oct 21, 2008 9:56 am
Forum: C++ Development
Topic: wxRichTextCtrl SaveFile as xml
Replies: 3
Views: 785

wxRichTextCtrl SaveFile as xml

Hello together,

I have a wxRichTextCtrl (rtc).
If I try to Save a file (rtc->SaveFile("d:\myfile.xml");)
I get the error: The text couldn't be saved.
I just can save it with the attribute wxRICHTEXT_TYPE_TEXT.
But then I can't save images to the file.

Has any body an idea?

Greetings and thanks
kea_
by kea_
Fri Oct 03, 2008 12:50 pm
Forum: C++ Development
Topic: wxString Find in Unicode
Replies: 2
Views: 563

Thanks for your answer, it seems to be an unicode problem. Because I compiled the wxWidgets-2.8.9 widthout unicode an created width code::blocks a new wxWidget-Project width not enabled unicode an the find works fine. wxString s = "key = aaäa"; int i = s.Find("="); result: 4 I've had a look in the w...
by kea_
Fri Oct 03, 2008 7:52 am
Forum: C++ Development
Topic: wxString Find in Unicode
Replies: 2
Views: 563

wxString Find in Unicode

Hello together, first I programmed width ansi and now I do it width unicode. Now my problem. I have classes created in ansi they uses the wxString::Find() function. But unfortunately it wouldn't work like before. Example 1: wxString s = wxString::FromUTF8("hallo = aaäöaa"); int i = s.Find(_T("=")); ...
by kea_
Tue Sep 23, 2008 6:48 am
Forum: Component Writing
Topic: How to set the LabelBackgroundColour of a wxSheet
Replies: 2
Views: 1388

thank you for your help.

Ok, I have to have a look in the source of the wxSheet.
Sorry that I give you a thank so late. I was very bussy the last time.

Greetings kea_
by kea_
Mon Sep 15, 2008 6:05 am
Forum: Component Writing
Topic: How to set the LabelBackgroundColour of a wxSheet
Replies: 2
Views: 1388

How to set the LabelBackgroundColour of a wxSheet

Hello together, does any body know how to set the label background colour of the column of a wxSheet. The wxSheet does it in default as gray and I like to have it in blue. I tried it with override the function wxSheet::DrawColLabels(wxDC& dc, const wxArrayInt& cols) but then the labels where not cor...
by kea_
Wed Sep 03, 2008 12:00 pm
Forum: Component Writing
Topic: Draw a rectangle width floating colours?
Replies: 3
Views: 1561

Yes, that was what I'm was locking for.
I could not find it but it was in front of my face.

Thank you very much
:D
kea_
by kea_
Wed Sep 03, 2008 8:13 am
Forum: Component Writing
Topic: Draw a rectangle width floating colours?
Replies: 3
Views: 1561

Draw a rectangle width floating colours?

Hello together, I like to write my own button but I don't know how floating the colours for that button. Assuming I like to have left of the button a red colour and on the right a blue colour. How can I do that? Part of my source: void cpTitle::OnPaint(wxPaintEvent &event){ wxBufferedPaintDC dc(this...
by kea_
Fri Jul 25, 2008 5:45 am
Forum: C++ Development
Topic: On fire event the application chrashes
Replies: 3
Views: 548

Hello to all, I solved the problem. Just pointed to the MyEvtHandler once an called the function ProcessEvent more times. See the code below. void csDatabase::CallEvent(){ csDatabase db; db.SetId(0); MyEvtHandler *met; met->ProcessEvent(db); CallEvent2(db, met); } void csDatabase::CallEvent2(csDatab...
by kea_
Fri Jul 25, 2008 5:28 am
Forum: C++ Development
Topic: On fire event the application chrashes
Replies: 3
Views: 548

Hello Max, thank you for your answer. I show you the complete code. In the way I do it it works but just for one time. I tryed it in your way but then it wouldn't work. Did I do something wrong in the base? Database.h #ifndef __csDatabase_h__ #define __csDatabase_h__ #include <wx/event.h> // For com...
by kea_
Thu Jul 24, 2008 2:15 pm
Forum: C++ Development
Topic: On fire event the application chrashes
Replies: 3
Views: 548

On fire event the application chrashes

Hello together, I have written a class who is sending an event. If I fire the event one time it works everything fine. But if I fire the event 2 times my application crashes. Can any body give me a helping hand? Part of my source: void csDatabase::CallEvent(){ csDatabase db; db.SetId(0); MyEvtHandle...
by kea_
Thu Jul 24, 2008 1:22 pm
Forum: C++ Development
Topic: wxNotifyEvent does not work
Replies: 9
Views: 1229

Yeahhh....., juhuiiiii......,

it works, great....

Thank you for your great help!!!

kea_
by kea_
Tue Jul 22, 2008 8:08 am
Forum: C++ Development
Topic: wxNotifyEvent does not work
Replies: 9
Views: 1229

Yes I've seen this stuff...
Thank you for the link.

But it didn't help me before.
I've got error over error....
So I needed help with an example who is working.
But maybe I'm to stupid.

Greetings Kea_
by kea_
Tue Jul 22, 2008 6:22 am
Forum: C++ Development
Topic: wxNotifyEvent does not work
Replies: 9
Views: 1229

Hello Rabah, thank you for your example. I had a lot of problems ( I had to use: wxStaticCastEvent(wxCommandEventFunction, & fn), (wxObject *) NULL ), instead of: wxStaticCastEvent(csDatabaseFunction, & fn), (wxObject *) NULL ), ) to compile your example but now it works. Excepting for the fire of t...
by kea_
Mon Jul 21, 2008 1:14 pm
Forum: C++ Development
Topic: wxNotifyEvent does not work
Replies: 9
Views: 1229

Hello,

thanks for the answer...

Do you have an example that works?
Can you show it to me?

Thanks
kea_
by kea_
Mon Jul 21, 2008 12:03 pm
Forum: C++ Development
Topic: wxNotifyEvent does not work
Replies: 9
Views: 1229

wxNotifyEvent does not work

Hello together, I try to program my own class with an event in it. But unfortunately I get the error: invalid static_cast from type 'void(fmFrame::*)(wxCommandEvent&)' to type 'void(wxEvtHandler::*)(csDatabase&)' I do not know what's wrong. Can any body give me a helping hand? I'm using the wxDev-C+...