Search found 91 matches

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

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: "); switch(eve...
by Sickboy
Thu Mar 22, 2007 11:17 am
Forum: C++ Development
Topic: wxSockets hell
Replies: 10
Views: 1741

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 addr; m...
by Sickboy
Thu Mar 22, 2007 12:09 am
Forum: C++ Development
Topic: wxSockets hell
Replies: 10
Views: 1741

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 Message(le...
by Sickboy
Mon Mar 05, 2007 8:55 am
Forum: C++ Development
Topic: file encryption via file stream
Replies: 5
Views: 1292

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: 1163

We stopped developing wxWebcore build after this answer from the wxWebcores main developer:

http://groups.google.de/group/comp.soft ... b618e3628f
by Sickboy
Thu Feb 22, 2007 1:35 pm
Forum: C++ Development
Topic: wxHTMLWindows and other stuff [after hours of research]
Replies: 5
Views: 1259

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: 287

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: 862

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); if (!...
by Sickboy
Fri Jan 12, 2007 2:45 pm
Forum: C++ Development
Topic: wxFileDialog default directory and dragging cursor
Replies: 4
Views: 818

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: 1163

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: 991

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: 991

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: 1048

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 inside your wi...
by Sickboy
Fri Jan 13, 2006 1:45 pm
Forum: C++ Development
Topic: Maximized Frame
Replies: 11
Views: 1611

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: 577

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();
}