Search found 207 matches

by spectrum
Tue Dec 30, 2008 3:10 pm
Forum: C++ Development
Topic: wxPropertyGrid, wxWidgets 2.9.0
Replies: 0
Views: 312

wxPropertyGrid, wxWidgets 2.9.0

Hi all, i am using wxPropertyGrid, is a very nice control that really can replace complicated dialogs for configiurations. anyway pg->AppendIn(s, new wxIntProperty ("Test", wxPG_LABEL, 1) ); pg->SetPropertyAttribute ("Test", wxPG_ATTR_MIN, (long)1 ); pg->SetPropertyAttribute ("Test", wxPG_ATTR_MAX, ...
by spectrum
Tue Dec 30, 2008 3:06 pm
Forum: C++ Development
Topic: How to insert a wxsizer with the index ?
Replies: 12
Views: 1730

Hi Jen,

sizer are not windows. So you cannot move them on the window space.
But eventually, put the sizer in a wxPanel, then move the panel.
Panel is a regular window.

regards
by spectrum
Tue Dec 30, 2008 12:56 pm
Forum: C++ Development
Topic: How to insert a wxsizer with the index ?
Replies: 12
Views: 1730

hi Jen,

sizers are not windows, they don't have any id, are just logical grouping classes.

Just create them dynamically and refer to the pointers.


wxBoxSizer *s = new wxBoxSizer(wxVERTICAL);

panel->Setsizer(s);

s->Add( the wxWindow based object you want);

greetings
by spectrum
Tue Dec 30, 2008 10:23 am
Forum: C++ Development
Topic: wxWizardPageSimple problem in wxMSW
Replies: 4
Views: 745

hi,

i cannot understand very well the problem, anyway

there is a wxFilePickerCtrl samples, see samples/filepicker.cpp,
there is a wxWizardPageSimple sample, see samples/wizard/wizard.cpp,

generally doing the things as in the samples everything work

greetings,
spectrum
by spectrum
Tue Dec 30, 2008 8:58 am
Forum: C++ Development
Topic: wxTCPClient - error
Replies: 10
Views: 2012

Hi shamuntoha, i think you better look the "ipc" sample on the wxWidgets sample directory, it have a DDE connection. Anyway, since i suppose the sample works fine, i would try: struct MyClient : public wxClient { virtual wxConnectionBase * OnMakeConnection(); }; wxConnectionBase * MyClient::OnMakeCo...
by spectrum
Mon Dec 29, 2008 10:34 pm
Forum: C++ Development
Topic: wxTCPClient - error
Replies: 10
Views: 2012

hi shamuntoha, i am not a great DDE expert but, seems the DDE Server side is accepting your connection but then inform you about a bad request. in this part int send_len = sizeof(send) / sizeof(int); connect->Execute(send, send_len,wxIPC_TEXT ); i cannot see what "send" variable is. try something li...
by spectrum
Mon Dec 29, 2008 9:22 pm
Forum: C++ Development
Topic: wxTCPClient - error
Replies: 10
Views: 2012

hi shamuntoha, first of all, i would suggest avoid using pointers name similar to wxwidgets classes: instead of wxConnectionBase *wxBase; wxTCPConnection *wxConnect; i would use wxConnectionBase *conn_base; wxTCPConnection *connection; then the problem is wxConnect = (wxBase)socket->OnMakeConnection...
by spectrum
Mon Dec 29, 2008 9:15 pm
Forum: C++ Development
Topic: wxDataViewCtrl
Replies: 2
Views: 603

hi tan, many thanks for the help, unfortunately is not so easy. using EVT_DATAVIEW_ITEM_VALUE_CHANGED, the event is triggered only with a double click on the item checkbox, and that could be good, but really strange, the event is not triggered if i click item 0. I would use that event if i could fin...
by spectrum
Mon Dec 29, 2008 4:50 pm
Forum: C++ Development
Topic: doubt with inexisting data types
Replies: 1
Views: 398

Hi Felipe, dataview control works very well, just include the right header: #include "wx/dataview.h" i suggest you to keep a bookmark on the browser for the documentation, every wxWidgets object documentation inform you on what header to include. http://docs.wxwidgets.org/stable/wx_classesbycat.html...
by spectrum
Mon Dec 29, 2008 4:44 pm
Forum: C++ Development
Topic: wxDataViewCtrl
Replies: 2
Views: 603

wxDataViewCtrl

Hi all, i am trying to use the checkbox feature of wxDataViewCtrl on wxWidgets 2.9.0, but the dataview sample is just a basic program. I am appending a toggle column to the model/view, but i cannot understand what is the correcty event to handle to check/uncheck the item, and how i can obtain inform...
by spectrum
Mon Dec 29, 2008 4:35 pm
Forum: C++ Development
Topic: wxListBox item height
Replies: 2
Views: 668

hi normunds, i can be wrong, but from a fast look of the documents i don't think you can have the correct line height. Maybe you can obtain it someway from the wxWindow::GetFont(), and then add some "delta". Maybe if you post what you want to achieve, someone easily will find you a different way to ...
by spectrum
Mon Dec 29, 2008 4:30 pm
Forum: C++ Development
Topic: SEGFAULT in GSocket::Input_Timeout
Replies: 4
Views: 893

hi anonbeat, looking your code, it is correct. Looking the backtrace, the segmatation fault seems driven by the Read, and in particular from wxFD_SET(m_fd, &readfds); but it should not cause the seg fault, even with a closed connection (invalid m_fd). What i think is that you are doing something wro...
by spectrum
Mon Dec 29, 2008 4:16 pm
Forum: C++ Development
Topic: Prevent Screensaver?
Replies: 3
Views: 640

hi LazyT, on unix/linux the screensaver engine can be different, and is not always gnome-related. But most of the time the graphic layer is based on X11/xorg. Take a look to "xset" command. On unix/linux, you could probably use something like #ifdef UNIX system ("xset s off"); #endif greetings
by spectrum
Sun Dec 28, 2008 11:11 am
Forum: C++ Development
Topic: sigtrap
Replies: 5
Views: 944

hi nkwinder, i am also on similar problems, and still investigating since i still didn't solved them. My problem is very similar, since the call stack show RtlpNtMakeTemporaryKey also, and you probably would see that DbgUiConvertStateChangeStructure is called from RtlpNtMakeTemporaryKey. SIGTRAP is ...
by spectrum
Sun Dec 28, 2008 10:54 am
Forum: C++ Development
Topic: Leaky wxCheckListBox?
Replies: 1
Views: 390

Hi brucey, wxCheckListBox is widely used, and i think it would be really an improbable bug, seems a too-macroscopic problem. wxCheckListBox is derived from wxControlWithItems and Clear is a part of it, i don't remeber to had problems with it. Maybe if you post some code it can help. Greetings, Spec