Search found 207 matches

by spectrum
Thu Apr 09, 2009 10:35 am
Forum: C++ Development
Topic: How to control wxMessageBox
Replies: 4
Views: 746

hi maty,

for personalized messages/behaviour, i would create my own class derived from wxDialog.

greetings
by spectrum
Thu Apr 09, 2009 10:33 am
Forum: C++ Development
Topic: memory leak with wxSocket
Replies: 2
Views: 798

hi tsu,

often, so small memory leaks are bugs of the windows dll functions. At the end, wxWidgets use the OS API'es. Please check using some program as Rational Purify, or others, the exact function/module that cause the leak.

greetings,
Angelo
by spectrum
Thu Apr 09, 2009 10:29 am
Forum: C++ Development
Topic: wxGenericDirCtrl, how show a relative path
Replies: 0
Views: 387

wxGenericDirCtrl, how show a relative path

Hi all,

i need to hide all the folders above the pointed path folder. The control don't seems to allow this, is there any chance ?

greetings
by spectrum
Tue Apr 07, 2009 11:25 am
Forum: C++ Development
Topic: how to use cURL in wxwidgets application?
Replies: 1
Views: 954

hi smallwolw,

curl/libcurl has nothing to do with wxWidgets.

You can probably download wxCurl.

there is also a "samples" directory.

http://curl.haxx.se/libcurl/wx/



greetings
by spectrum
Tue Apr 07, 2009 11:19 am
Forum: C++ Development
Topic: wxSkinButton strange effect
Replies: 2
Views: 567

hi upCASE,

thanks for the clarifications,

don't spend time now, just track it down. I have seen the code, i can fix the button up event teporary, checking the id.

many thanks
by spectrum
Mon Apr 06, 2009 4:32 pm
Forum: C++ Development
Topic: wxSkinButton strange effect
Replies: 2
Views: 567

wxSkinButton strange effect

Hi all, i am experiencing a strange effect on wxSkinButton: 1) i click a skin button ank keep the mouse button pressed. 2) i move with the mouse over another wxSkinButton, 3) i release the button. The last one i am over post the button clicked event. I was expecting that releasing the mouse button o...
by spectrum
Mon Apr 06, 2009 4:20 pm
Forum: C++ Development
Topic: timezone difficulty
Replies: 1
Views: 440

hi rodrigod,

try this:

int hour = wxDateTime::Now().ToUTC().GetHour();

timezone = wxDateTime::Now().GetHour() - hour;
timezone *= 3600;

greetings
by spectrum
Mon Apr 06, 2009 8:37 am
Forum: C++ Development
Topic: wxToggleButton and Background/Foreground colour
Replies: 5
Views: 736

Hi Elmi,

did you try a button->Refresh() after setting the background color ?

greetings
by spectrum
Thu Mar 12, 2009 2:38 pm
Forum: C++ Development
Topic: wxMessageDialog and SetBackgroundColour
Replies: 0
Views: 333

wxMessageDialog and SetBackgroundColour

I can't set in any way the color of the dialog window.

SetBackgroundColour (wxColour("#ffff00"));
ClearBackground ();

do nothing,

any help is appreciated.

Greetings
by spectrum
Fri Feb 27, 2009 10:31 am
Forum: C++ Development
Topic: ListView, inherited from wxDataViewCtrl
Replies: 0
Views: 371

ListView, inherited from wxDataViewCtrl

Hi all,

i created a ListView object, inherited from wxDataViewCtrl.
Seems i cannot in any way change the list background color.

wxWindows::SetBackgroundColour is not working at all.

Anyway, i am using testing 2.9.0, even if i don't thing it is the issue.

in any help,

thanks
by spectrum
Mon Feb 09, 2009 12:41 pm
Forum: C++ Development
Topic: Destroy for wxDialog based window
Replies: 4
Views: 1685

thanks all,

i solved finally.

I was using a custom render, created a single time but assigned to 2 columns. Now i create 2 render objects, 1 per column, and all works fine.

Many thanks

spec.
by spectrum
Mon Feb 09, 2009 9:16 am
Forum: C++ Development
Topic: Destroy for wxDialog based window
Replies: 4
Views: 1685

thanks all, Jim, i was not decreasing the reference count, and this was a first good reason for the crash. Note that wxDataViewModel is reference counted, derives from wxObjectRefData and cannot be deleted directly as it can be shared by several wxDataViewCtrls. This implies that you need to decreas...
by spectrum
Sun Feb 08, 2009 4:57 pm
Forum: C++ Development
Topic: Destroy for wxDialog based window
Replies: 4
Views: 1685

Destroy for wxDialog based window

Hi all, i am trying to destroy a wxDialog based object using "Destroy" inside OnCancel. My first question is, is it necessary ? I can't find a clear answer in the documentation, but i want be sure the memory allocated from the dialog object is released, and don't seems that clicking on the [X] destr...
by spectrum
Fri Jan 30, 2009 7:11 pm
Forum: C++ Development
Topic: how do I use a proxy with wxhttp?
Replies: 1
Views: 1348

hi ninja, this is a really intetresting post. First of all, is interesting that the documentation don't talk about the SetProxyMode method of wxHTTP. It is undocumented on the official documentation, probabvly becouse it do nothing. Looking wxHTTP 2.8.9, and 2.9.0, it only set the "m_proxy_mode" pro...
by spectrum
Fri Jan 30, 2009 5:19 pm
Forum: C++ Development
Topic: wxctb crashes : start_thread
Replies: 3
Views: 604

Hi killerbot,

i never used it for serial port, anyway is quite strange, i assume it should work, can you post some code on how you allocate and use wxctb object ?

thanks