Search found 68 matches

by Rob'
Wed Jan 06, 2016 1:56 pm
Forum: Component Writing
Topic: Dialog creation and destruction
Replies: 4
Views: 3632

Dialog creation and destruction

I have some general questions: To show a dialog I use the following code: myDialog* dlg = new myDialog(this); dlg->ShowModal(); dlg->Destroy(); or alternativly: myDialog dlg(this); dlg.ShowModal(); My questions are: When I have to pass the this-pointer as the parent window and what happens, if I pas...
by Rob'
Thu Nov 19, 2015 12:36 pm
Forum: C++ Development
Topic: wxGridCellBoolRenderer RefCounter
Replies: 0
Views: 2161

wxGridCellBoolRenderer RefCounter

Hi,

in my grid I use a class for showing bool values wich is derived from wxGridCellBoolRenderer. Each time I change the cell value also the the reference counter is being increased. Why does it so and how to prevent from it?

Thanks in advance!
Rob'
by Rob'
Tue Nov 10, 2015 9:16 am
Forum: C++ Development
Topic: wxGrid: How to show a string in the top left cell?
Replies: 2
Views: 480

Re: wxGrid: How to show a string in the top left cell?

Yes, I mean the corner cell.

Thanks for your help.
Rob'
by Rob'
Mon Nov 09, 2015 11:14 am
Forum: C++ Development
Topic: wxGrid: How to show a string in the top left cell?
Replies: 2
Views: 480

wxGrid: How to show a string in the top left cell?

Hi,

I would like to show a string in the top left cell. What is the best way to do that?

Thanks in advance!
Rob'
by Rob'
Thu Oct 22, 2015 2:36 pm
Forum: C++ Development
Topic: wxStatusBar field width
Replies: 6
Views: 941

Re: wxStatusBar field width

Pity, it's a little bit inconvenient.

Thank you doublemax!

Rob'
by Rob'
Thu Oct 22, 2015 9:13 am
Forum: C++ Development
Topic: wxStatusBar field width
Replies: 6
Views: 941

Re: wxStatusBar field width

A fixed size for 1 field and -1 for the others means: 1 field gets the specified size, all other fields gets the same size (the remaining rest divided by FieldCount - 1). But this is not what I want. I want to change the size of only 1 field, while the others keep their size and the last field holds...
by Rob'
Wed Oct 21, 2015 10:44 am
Forum: C++ Development
Topic: wxStatusBar field width
Replies: 6
Views: 941

Re: wxStatusBar field width

If you change the size of one field, at least one other needs to change too. Of course, the right field should fill the remaining place. You could call SetStatusWidths() with a fixed width for the field you want to change and "-1" for all others. Does this mean 1. to read the width of eac...
by Rob'
Tue Oct 20, 2015 4:13 pm
Forum: C++ Development
Topic: wxStatusBar field width
Replies: 6
Views: 941

wxStatusBar field width

Hi,

is it possible to change the width of a single field w/o affecting the width of the others? GetStatusWidth() returns the width of the n-th field, whereas SetStatusWidths() sets the width of all fields.

Thanks in advance.
Rob!
by Rob'
Sat Oct 03, 2015 7:45 am
Forum: C++ Development
Topic: wxComboBox modified flag
Replies: 2
Views: 555

Re: wxComboBox modified flag

Thanks! That works.

Rob'
by Rob'
Thu Sep 24, 2015 7:50 am
Forum: C++ Development
Topic: wxComboBox modified flag
Replies: 2
Views: 555

wxComboBox modified flag

I'm looking for a modified flag, similar to the wxTextCtrl. Or how can I check wether or not the selection was changed by user?

Thanks in advance.
Rob'
by Rob'
Wed Sep 01, 2010 5:52 am
Forum: C++ Development
Topic: wxConfig ignores wxCONFIG_USE_GLOBAL_FILE
Replies: 5
Views: 1383

Okay, that is a little bit strange for me. But I will follow your advice to use wxRegKey.

Thank you much.

Rob'
by Rob'
Tue Aug 31, 2010 5:01 am
Forum: C++ Development
Topic: wxConfig ignores wxCONFIG_USE_GLOBAL_FILE
Replies: 5
Views: 1383

Okay, I will do so. But what's about this: wxConfigBase::wxConfigBase(...) ... For wxRegConfig, thie GLOBAL flag refers to HKLM key while LOCAL one is for the usual HKCU one. I thought wxConfig was made for platform independence and is redirected internally to the appropriate classes. Why should I u...
by Rob'
Mon Aug 30, 2010 8:29 pm
Forum: C++ Development
Topic: wxConfig ignores wxCONFIG_USE_GLOBAL_FILE
Replies: 5
Views: 1383

The following code I have placed in the App::OnInit(): wxConfig* globalConfig = new wxConfig(wxTheApp->GetAppName(), wxTheApp->GetVendorName(), wxEmptyString, wxEmptyString, wxCONFIG_USE_GLOBAL_FILE); globalConfig->Write(wxT("ValueName"), wxT("GGG")); wxString global = globalConf...
by Rob'
Sun Aug 29, 2010 4:15 pm
Forum: C++ Development
Topic: wxConfig ignores wxCONFIG_USE_GLOBAL_FILE
Replies: 5
Views: 1383

wxConfig ignores wxCONFIG_USE_GLOBAL_FILE

I created a class of wxConfig, wich should read/write from/to HKLM...: wxConfig globalConfig(wxTheApp->GetAppName(), wxTheApp->GetVendorName(), wxEmptyString, wxEmptyString, wxCONFIG_USE_GLOBAL_FILE); It reads/writes from/to HKCU.., the same behavior as if I use the flag wxCONFIG_USE_LOCAL_FILE. Is ...
by Rob'
Fri Aug 27, 2010 5:37 pm
Forum: C++ Development
Topic: wxListBox: find items wich begin with a given string
Replies: 2
Views: 811

Thanks for your reply.

I have changed it to wxListCtrl. So I can use the FindItem method. A lot of work :( , but now it works as desired. :D

Rob'