Search found 54 matches

by jms
Thu Jul 12, 2007 1:52 pm
Forum: C++ Development
Topic: Add new type question about PropertyGrid
Replies: 3
Views: 925

Unfortunately, adding custom value types to wxPropertyGrid 1.2.x is a somewhat complex ordeal (version 1.3, in SVN, improves this significantly). For instance, you also need to create a new property class that uses the value type. Probably the easiest way to deal with this kind of scenario is to sim...
by jms
Thu Jan 25, 2007 3:59 pm
Forum: C++ Development
Topic: wxPropertyGrid crash (bug, trouble, destroying)
Replies: 8
Views: 2094

I'm unable to reproduce the crash by copy-pasting (most of) your code in a minimal sample. I use different compiler (VC7) but that's probably not it. Did you check if it crashes when you replace wxPropertyGrid with another control (say, wxListBox)? Also, did you try to use Close instead of Destroy? ...
by jms
Tue Jan 23, 2007 8:32 pm
Forum: C++ Development
Topic: wxPropertyGrid crash (bug, trouble, destroying)
Replies: 8
Views: 2094

Ok, to resolve this I need more info. Could you post the code you use to create the frame and the property grid? Also, what compiler you are using?
by jms
Mon Jan 22, 2007 3:23 pm
Forum: C++ Development
Topic: wxPropertyGrid crash (bug, trouble, destroying)
Replies: 8
Views: 2094

Hi,

Did you already post this on wxPropertyGrid forum on SourceForge? I'm only asking since someone posted almost identical problem there recently.

Jaakko
by jms
Sat Jan 06, 2007 12:55 pm
Forum: C++ Development
Topic: wxPropertyGrid problem
Replies: 4
Views: 1772

Ok, I have now changed SetPropertyValue to refresh parent as well. Try the latest development snapshot.
by jms
Thu Jan 04, 2007 7:33 pm
Forum: C++ Development
Topic: Custom properties with wxPropGrid
Replies: 2
Views: 1343

Re: Custom properties with wxPropGrid

Ideally, the user would have to choose the date on a calendar (wxCalendarCtrl). I have seen there is a wxDateProperty, but, in the example I have, it does not use a calendar. To use the date picker control, you need to define wxPG_ALLOW_WXADV for wxPropertyGrid and all projects using it. Perhaps th...
by jms
Thu Jan 04, 2007 7:18 pm
Forum: C++ Development
Topic: wxPropertyGrid problem
Replies: 4
Views: 1772

Something like this (in the EVT_PG_CHANGED handler) worked for me (assuming that by Center you actually meant Position): wxPGId id = event.GetProperty(); if ( pProped->GetPropertyName(id) == wxT("Position") || pProped->GetPropertyName(pProped->GetPropertyParent(id)) == wxT("Position&q...
by jms
Sat Dec 16, 2006 3:14 pm
Forum: C++ Development
Topic: wxPropertyGrid compiling error
Replies: 3
Views: 1329

IIRC the oldest version of GCC which I used to compile wxPropertyGrid with wxPython bindings was GCC 3.4.2, so there is good chance the this problem is caused by your relatively old compiler version. However, to eliminate the possibility that the SWIG is somehow accidentally defined, add code like t...
by jms
Sat Dec 16, 2006 2:21 pm
Forum: C++ Development
Topic: wxPropertyGrid compiling error
Replies: 3
Views: 1329

Hi Lupus,

Looks like it occurs in the "#ifdef SWIG" section, which is reserved for the wxPython bindings. For me, it compiles just fine with both Visual C++ 7.1 and GCC 4.0 (on SUSE Linux 10.1). What version of GCC are you using?

Jaakko
by jms
Mon Oct 30, 2006 9:12 am
Forum: C++ Development
Topic: wxComboBox flickering.
Replies: 5
Views: 1650

For Windows XP, you could try using WS_EX_COMPOSITED, using something like this:

Code: Select all

#if defined(__WXMSW__)
        HWND hWnd = (HWND)comboBox->GetHWND();

        ::SetWindowLong( hWnd, GWL_EXSTYLE,
                         ::GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_COMPOSITED );

#endif

by jms
Mon Oct 16, 2006 9:22 am
Forum: C++ Development
Topic: wxValidator question
Replies: 1
Views: 1004

Re: wxValidator question

Hi, Why we get the validator of child control and validate the value of parent control? if ( validator && !validator->Validate((wxWindow *)this) ) This means that we pass wxFrame to the validator of text control. Actually, the argument of Validate is 'parent', which is used, for instance, wi...
by jms
Thu Sep 21, 2006 5:36 pm
Forum: Open Discussion
Topic: Microsoft Virtual PC 2004 is free // use for Linux testing
Replies: 12
Views: 5181

priyank_bolia wrote:Also I tell you that it virtually impossible to run Windows Vista or Open Suse 10.1
FWIW, I'm running Suse Linux 10.1 in VMWare Server, and its fine after some tweaking. Though I'll probably need to check out Virtual PC too.
by jms
Thu Sep 21, 2006 11:00 am
Forum: Open Discussion
Topic: Microsoft Virtual PC 2004 is free // use for Linux testing
Replies: 12
Views: 5181

You know, VMWare Server is free as well, and despite its name can be used to run desktop OS basicly in the same way as with VMWare Workstation.
by jms
Fri Sep 15, 2006 5:38 am
Forum: Announcements and Discoveries
Topic: ANN : Enhanced wxTreeListCtrl
Replies: 44
Views: 25494

I think modifiying the existing code to use wxBufferedPaintDC should require lot of changes in lot of places. If you have time, can you please have a look the control and suggest where I can use the wxBufferedPaintDC ? If so, I can send my modified copy that uses mouse move event to paint the heade...
by jms
Sat Sep 09, 2006 10:42 am
Forum: C++ Development
Topic: Query Regarding Focusing windows
Replies: 8
Views: 1782

Well, assuming this is at all possible on OS X, maybe you should post your problem on wx-users mailing list, since wxMac devs don't frequent the forums.

Also, I noticed you posted about this matter on wx-dev. Wx-users is indeed more appropriate for this type of question.