Search found 91 matches

by Sickboy
Wed Sep 03, 2008 8:50 am
Forum: The Code Dump
Topic: GUI2Data
Replies: 6
Views: 4281

sounds good. just a last question ;-) is it possible to compare functor, to achieve something like that ? template<class functor, class event> class GUI2Data : public wxEvtHandler { functor f; public: GUI2Data() {} GUI2Data(functor f):f(f) { } void Setfunctor(functor func) { f = func; } void OnSendD...
by Sickboy
Wed Sep 03, 2008 8:25 am
Forum: The Code Dump
Topic: GUI2Data
Replies: 6
Views: 4281

There is no other way, without the tr1 extension ?

Sorry that i'm askin but i'm quit new to this functor stuff and still have some problems to understand it :oops:
by Sickboy
Tue Sep 02, 2008 3:27 pm
Forum: The Code Dump
Topic: GUI2Data
Replies: 6
Views: 4281

Exactly what i was lookin for. But do you know to do the same thing just with STL instead of Boost ?
I mean instead of boost::function, boost::bind.

Thanks,
Stefan
by Sickboy
Sat Jun 28, 2008 10:29 am
Forum: C++ Development
Topic: wxInputStream::GetC() problem in unicode
Replies: 0
Views: 753

wxInputStream::GetC() problem in unicode

Hi, when i try to use the following method to read an ASCII formated file the result is an UTF-8 encoded wxString instead of a normal unicode string. When i use wxTextInputStream::Readline() the string is correctly, but wxTextInputStream is very slow and i have to parse large files (>200mb). bool Qu...
by Sickboy
Thu Apr 03, 2008 9:09 am
Forum: Announcements and Discoveries
Topic: wxWidgets 2.8.4 crash with gtk 2.12
Replies: 0
Views: 903

wxWidgets 2.8.4 crash with gtk 2.12

We discovered that many dialogs (eg. wxSingleChoiceDialog) crash in wxWidgets 2.8.4 with gtk versions newer than 2.11.

This bug has been fixed with the SVN revision 46513 and wxWidgets 2.8.5.

You can validate this bug by compiling samples/dialogs and open the SingleChoiceDialog.
by Sickboy
Sat Mar 22, 2008 11:57 pm
Forum: The Code Dump
Topic: Running wxWidgets app as a windows service
Replies: 19
Views: 52110

I can compile and install the service without problems but i'm not sure where to place my methods. I tried it in line 41: ... // INIT THE REAL SERVICE HERE AND LET THE MAIN LOOP RUN while(true) { wxSleep(2); ::wxBell(); } ... But if i start the service, the "Service Startup Dialog" doesn't...
by Sickboy
Wed Mar 05, 2008 8:58 am
Forum: C++ Development
Topic: Drawing on a transparent Fullscreen Dialog
Replies: 1
Views: 967

Drawing on a transparent Fullscreen Dialog

I have created a wxDialog and use SetFullscreen(true) and SetTransparent(0), to make a transparent fullscreen window. Now i try to draw a rectangle on it. <code> void myClass::OnPaint(wxPaintEvent &event) { wxPaintDC dc(this); wxBrush brush(255,0,0), dc.SetBrush(brush); dc.DrawRectangle(0,0,400,...
by Sickboy
Wed Oct 10, 2007 8:42 am
Forum: C++ Development
Topic: wxTreeCtrl bug in wxMSW 2.8.6 (Vista)
Replies: 0
Views: 696

wxTreeCtrl bug in wxMSW 2.8.6 (Vista)

I've compiled wxMSW and its Samples in Windows Vista.
The wxTreeCtrl example has a problem with the multiple selections.

-- Ctrl+MouseClick doesn't select the item.
-- Shift+MouseClick doesn't include the "currently selected" item into the selection.

Anyone has an idea how to fix this ?
by Sickboy
Mon Jul 30, 2007 12:06 pm
Forum: Component Writing
Topic: wxAUIMod
Replies: 2
Views: 2155

Theres an update available.
Update: 16-7-2007 Added "Icon" option, ported to 2_8_branch, separated the MDI changes into separate patch.
by Sickboy
Thu Jun 28, 2007 2:11 pm
Forum: Component Writing
Topic: wxAUIMod
Replies: 2
Views: 2155

wxAUIMod

Huge has released a bunch of mods to the wxAUI frame management code. These mods are designed to do a few things. Provide "Auto Notebooks", allowing you to drop panes on top of other panes to create notebooks. Provide MDI Child frame support. Allow windows to be placed in frames other than...
by Sickboy
Wed Jun 06, 2007 2:08 pm
Forum: C++ Development
Topic: wxAuiNotebook problem
Replies: 2
Views: 1628

I'm using wxMSW 2.8.4 and the solution is to add:

Code: Select all

tab_frame->m_tabs = NULL;
before

Code: Select all

delete tab_frame;
in

Code: Select all

wxAuiNotebook::RemoveEmptyTabFrames()
by Sickboy
Tue Jun 05, 2007 9:21 am
Forum: C++ Development
Topic: wxAuiNotebook problem
Replies: 2
Views: 1628

wxAuiNotebook problem

I'm using wxAui in an MDI application with the undocumented classes wxAuiMDIParentFrame, wxAuiMDIChildFrame and wxAuiMDIClientWindow. New documents will be opened in the wxAuiMDIClientWindow which is derived from the wxAuiNotebook. This works fine so far. I can open and close a much documents as i w...
by Sickboy
Fri May 04, 2007 8:55 pm
Forum: C++ Development
Topic: wxAui with mdi doc/view framework problem
Replies: 6
Views: 2289

I don't understand russian. But this was quite helpfull for me.
http://wxwidgets.info/?q=wxaui_tutorial_2_ru
by Sickboy
Thu Mar 22, 2007 12:54 pm
Forum: C++ Development
Topic: wxSockets hell
Replies: 10
Views: 2694

Thank you upCASE !
Discarding or reading the socket was the solution.
imho this should be part of the example...
anyway thanks again :)
by Sickboy
Thu Mar 22, 2007 12:25 pm
Forum: C++ Development
Topic: wxSockets hell
Replies: 10
Views: 2694

The SetEventHandler() is defined in the ctor of my client frame. // Create the socket m_sock = new wxSocketClient(); // Setup the event handler and subscribe to most events m_sock->SetEventHandler(*this, SOCKET_ID); m_sock->SetNotify(wxSOCKET_CONNECTION_FLAG | wxSOCKET_INPUT_FLAG | wxSOCKET_LOST_FLA...