Search found 78 matches

by KaReL
Mon Jun 15, 2009 10:54 am
Forum: C++ Development
Topic: Bounty offered for bugfix in wx:
Replies: 0
Views: 698

Bounty offered for bugfix in wx:

Please contact me for solving this issue: http://trac.wxwidgets.org/ticket/10545

I've also a couple of other things if you can solve this
by KaReL
Wed Jan 09, 2008 9:19 am
Forum: C++ Development
Topic: Remove file to recycle bin
Replies: 1
Views: 1078

Remove file to recycle bin

Hi,


Has anyone some portable code for removing a file to the recycle bin (windows), Trash Can (linux) and Trash (Mac)?


Thanks!
by KaReL
Fri Nov 09, 2007 3:47 pm
Forum: C++ Development
Topic: [wxListView] change 1 cell only
Replies: 0
Views: 633

[wxListView] change 1 cell only

Hi,


In MSW I saw it doesn't seem possible to control the font/colour/... of 1 cell in a wxListCtrl.

How could I 'hack' around it?


Thanks!
by KaReL
Wed Dec 06, 2006 10:26 am
Forum: C++ Development
Topic: [wxString] problem when initializing
Replies: 4
Views: 1974

Ok,


I don't know what's wrong. Let's just blame Microsoft. I did a complete rebuild of the project, and now it seems that wxChar is being converted to wchar_t in the preprocessed file...

So I found the solution now (provide a wxConv).


Greetz & thx!
by KaReL
Wed Dec 06, 2006 7:57 am
Forum: C++ Development
Topic: [wxString] problem when initializing
Replies: 4
Views: 1974

[wxString] problem when initializing

Hi, I have a problem initializing a wxString... wxUSE_UNICODE=0 wxUSE_WCHAR_T=1 wxString str( "Hello" ); ==> cannot convert parameter 1 from 'const char [6]' to 'int' wxString str = "Hello"; ==> cannot convert from 'const char [6]' to 'wxString' std::string s("Hello"); ...
by KaReL
Sun Nov 06, 2005 8:15 am
Forum: C++ Development
Topic: Events in console application
Replies: 3
Views: 2103

Events in console application

Hi, First things first... What I want to achieve is a multithreaded server which does a lot of things on unix/windows/mac without showing any frames. That brings me to my question: Is it possible to use events in console applications? (The answer would be no, I guess). So the second thing to ask is:...
by KaReL
Wed Oct 05, 2005 11:44 pm
Forum: The Code Dump
Topic: Standalone copy of wxImage
Replies: 3
Views: 3034

I don't know why you make it so difficult?? // creates an identical copy of the image (the = operator // just raises the ref count) wxImage Copy() const; Where the code would become: wxImage * m_pOldImg = new wxImage( "image.bmp", wxBITMAP_TYPE_BMP, -1 ); wxImage * m_pNewImg = &(m_pOld...
by KaReL
Fri Sep 09, 2005 1:49 pm
Forum: Announcements and Discoveries
Topic: ORDER THE WXWIDGETS BOOK HERE
Replies: 3
Views: 2231

How can it be in the US it is Julian which is selling the book, and in the UK, it's Kevin?
I thought it is the author? (ofcourse there are more then those 2 people who wrote it right?)
by KaReL
Fri Sep 09, 2005 1:42 pm
Forum: The Code Dump
Topic: wxGauge... with an attached formattable label!
Replies: 3
Views: 2839

Am I correct to notice that you: 1/ use wrong wxWindowId's (namely 1 & 2, if you don't care, you should use wxID_ANY) 2/ First you paint the gauge, and underneath you paint the label? If ( 2 == true ) { wxLogWarning( wxT("I think a lot of people would prefer to have the label painted ON TOP...
by KaReL
Mon Jun 20, 2005 8:29 pm
Forum: C++ Development
Topic: Capturing keys
Replies: 2
Views: 1312

Yeps, no luck...

If i capture both EVT_KEY_DOWN as EVT_CHAR(_HOOK), it works like charm, but it's a little weird. As when the baseclass is a wxFrame, EVT_CHAR(_HOOK) receives all the events...
by KaReL
Mon Jun 20, 2005 12:07 pm
Forum: C++ Development
Topic: Capturing keys
Replies: 2
Views: 1312

Capturing keys

Hi, I just wanted to capture all keys on a wxDialog... I tried both with EVT_CHAR and EVT_CHAR_HOOK. This captures all the 'special keys' fine (the ones in wxKeyCode). But it does NOT capture default keys like 'A', 'B', 'C', etc... If I change the baseclass to wxFrame it captures them correctly... I...
by KaReL
Fri Jun 17, 2005 6:18 pm
Forum: The Code Dump
Topic: Torrentfile-implementation under wx
Replies: 5
Views: 3550

So it doesn't actually download the file specified by the .torrent? No, you need to do the downloading yourself... The only thing this class does is make it more easy to work with .torrents. That's it. This class can even be used as a baseclass for TnGBc (The next Generation Bittorrent client). Bec...
by KaReL
Fri Jun 17, 2005 4:29 am
Forum: The Code Dump
Topic: Storage container for sorting keys(cross-compiler stl::map)
Replies: 9
Views: 5222

And some compilers don't understand STL (which in fact? :p)... Mostly because of STL-thingies... Ryans macro's and my modifications should work on nearly all compilers.
by KaReL
Thu Jun 16, 2005 3:11 pm
Forum: C++ Development
Topic: Programming with threads and sockets
Replies: 17
Views: 5367

Or you can use wxMutex/Semaphore ;)
by KaReL
Thu Jun 16, 2005 2:53 am
Forum: C++ Development
Topic: Programming with threads and sockets
Replies: 17
Views: 5367

mmm, what i am just thinking about is this:

what if you create a thread, with a wxEvtHandler object inside... Will it be able to receive events?

-- edit --
Non est possibil