Search found 91 matches

by Sickboy
Thu Mar 22, 2007 11:40 am
Forum: C++ Development
Topic: wxSockets hell
Replies: 10
Views: 2694

The sending function you can see in my first posting. It's the timer event handler, but now with m_SendingSocket instead of m_server. The receive function on the client side is the one from the example: void MyFrame::OnSocketEvent(wxSocketEvent& event) { wxString s = _("OnSocketEvent: "...
by Sickboy
Thu Mar 22, 2007 11:17 am
Forum: C++ Development
Topic: wxSockets hell
Replies: 10
Views: 2694

Thanks for the quick help. Now my server sends without an error message, but my client OnSocketEvent event handler doesn't respond on the sent packages :? That's how i establish the connection on the client side. void MyFrame::OnOpenConnection(wxCommandEvent& WXUNUSED(event)) { wxIPV4address add...
by Sickboy
Thu Mar 22, 2007 12:09 am
Forum: C++ Development
Topic: wxSockets hell
Replies: 10
Views: 2694

wxSockets hell

I'm using the Sockets example i just want to sent datas from the server to the connected clients every 500ms. for this i created a timer in the server class which calls following event: void MyFrame::OnTimer(wxTimerEvent&event) { if (m_server->IsConnected()) { const wxChar* buf1 = _("Test M...
by Sickboy
Mon Mar 05, 2007 8:55 am
Forum: C++ Development
Topic: file encryption via file stream
Replies: 5
Views: 1821

Please let me know how you use the TEA in a wxStream.

Thanks
by Sickboy
Wed Feb 28, 2007 9:26 am
Forum: C++ Development
Topic: wxWebcore / ATTRIBUTE_PRINTF error
Replies: 4
Views: 1715

We stopped developing wxWebcore build after this answer from the wxWebcores main developer: http://groups.google.de/group/comp.soft-sys.wxwindows/browse_thread/thread/4b3cdc124c2ce577/046ec3b618e3628f?lnk=gst&q=wxWebcore+%2F+wxChar+%2F+ATTRIBUTE_PRINTF+problem&rnum=1&hl=de#046ec3b618e3628f
by Sickboy
Thu Feb 22, 2007 1:35 pm
Forum: C++ Development
Topic: wxHTMLWindows and other stuff [after hours of research]
Replies: 5
Views: 2032

You should use wxActiveX and take a look at the wxIE example which shows how to use the IE controlled by the wxActiveX interface. That's easy... If you ever will port your app to Linux many people suggest to use wxMozilla. My suggestion for linux is: Try to work without a html window if you can ;) w...
by Sickboy
Thu Feb 22, 2007 11:58 am
Forum: C++ Development
Topic: wxScrolledWindow Scrollbar recalculation [Redhat 8 only]
Replies: 0
Views: 461

wxScrolledWindow Scrollbar recalculation [Redhat 8 only]

How can i force a wxScrolledWindow to recalculate its virtual size, so that the scrollbars will be refreshed on wxGTK 2.6.3 ?? This is the solution for wxMSW, but it has no effect on wxGTK 2.6.3 and only on Redhat 8.0 :-/ On Ubuntu, Suse, Fedora it works fine. wxSize size = m_targetWindow->GetBestVi...
by Sickboy
Wed Jan 24, 2007 1:04 pm
Forum: Component Writing
Topic: Disable scrollbar and sunken border in wxIE
Replies: 0
Views: 1091

Disable scrollbar and sunken border in wxIE

void wxIEHtmlWin::DisableBorderAndScroll() { HRESULT hr = S_OK; IDispatch *iDisp = NULL; hr = m_webBrowser->get_Document(&iDisp); wxAutoOleInterface<IHTMLDocument2> hd(IID_IHTMLDocument2, iDisp); if (! hd.Ok()) return ; // get HTMLbody element IHTMLElement *_body = NULL; hd->get_body(&_body...
by Sickboy
Fri Jan 12, 2007 2:45 pm
Forum: C++ Development
Topic: wxFileDialog default directory and dragging cursor
Replies: 4
Views: 1295

Answer of question1 is: wxFD_CHANGE_DIR

Concerning question2:
I've seen this bug before... can't remember exactly, how to fix it...
by Sickboy
Fri Jan 12, 2007 12:47 pm
Forum: C++ Development
Topic: wxWebcore / ATTRIBUTE_PRINTF error
Replies: 4
Views: 1715

wxWebcore / ATTRIBUTE_PRINTF error

g++ -c -o obj-gnu/wxwebcore_KWQCString.o -DNDEBUG -O2 -D_THREAD_SAFE -pthread -W -Wall -Ijscore -Ijscore/ForwardingHeaders -Ijscore/kjs -Ijscore/pcre -Ijscore/bindings -Ijscore/bindings/c -Ijscore/bindings/jni -Iwebcore -Iwebcore/ForwardingHeaders -Iwebcore/kwq -Iwebcore/khtml -Iwebcore/khtml/css -...
by Sickboy
Fri Nov 10, 2006 2:43 pm
Forum: C++ Development
Topic: wxListCtrl
Replies: 7
Views: 1574

Well we need to add a new Arrange() method which would compute
the new positions and move the items to them. The most useful part of code to study is probably wxListLineData::CalculateSize().

Unfortunately i don't have time to do this at the moment :?
by Sickboy
Fri Nov 10, 2006 9:20 am
Forum: C++ Development
Topic: wxListCtrl
Replies: 7
Views: 1574

He's speaking about the wxGTK where the wxListCtrl isn't natively supported. It happens when you use the wxLC_ICON style.
I'm lookin for a solution too.
by Sickboy
Mon Jul 10, 2006 9:26 am
Forum: C++ Development
Topic: Adding widgets to dialogs
Replies: 6
Views: 1590

You can't show a Dialog as a part of a window. Create a button "Color..." and use void YourClass::OnColorButtonPressed(wxCommandEvent &e) { wxColourDialog dlg(this); if (dlg.ShowModal() == wxID_OK) { m_YourColorStorage = dlg.GetColourData(); } } if u want to create the color selection ...
by Sickboy
Fri Jan 13, 2006 1:45 pm
Forum: C++ Development
Topic: Maximized Frame
Replies: 11
Views: 2340

Try to get the wxFrame double-click event and ignore it.
by Sickboy
Fri Jan 13, 2006 12:28 pm
Forum: C++ Development
Topic: Calling ShowFullScreen from Constructor Problem.
Replies: 1
Views: 798

U can just set the window to fullscreen if it already exists, not in the constructor! I would do it in the wxApp derived myApp::OnInit() after the frame will be created.

Code: Select all

MyApp::OnInit()
{
   m_frame = new MyFrame();
   // m_frame->Show();
   m_frame->ShowFullScreen();
}