Search found 64 matches

by ne01982
Sat May 19, 2007 9:55 pm
Forum: C++ Development
Topic: Doesn
Replies: 3
Views: 1191

Hi, I don't believe, that my post will solve your problem, but sometimes some functions cause unexcepted results. Well, in my application I change the background colour too, to switch between different themes. I also tried several functions to repaint my window, but only the combination of Hide() a...
by ne01982
Sun May 06, 2007 6:52 pm
Forum: C++ Development
Topic: Set an icon to my app
Replies: 5
Views: 11610

Set an icon to my app

Hi everyone.

My main windown inherits from wxApp.

How can I change the icon off my app?

Thanks
by ne01982
Sun May 06, 2007 6:45 pm
Forum: C++ Development
Topic: how to change the size of a wxPanel inside a sizer
Replies: 22
Views: 3726

It
by ne01982
Thu May 03, 2007 8:40 pm
Forum: C++ Development
Topic: how can I delete WxPanels durin execution?
Replies: 9
Views: 1541

Auria wrote:Is the panel of the bigger panel explicitely removing teh smaller one inside it? if so don,t do that the deletion of children is automatic, that will only cause double deletes
No, I don
by ne01982
Thu May 03, 2007 8:11 pm
Forum: C++ Development
Topic: Doesn
Replies: 3
Views: 1191

Doesn

Hi, I have several wxPanel inside a Vertical Sizer, that is inside a scrolledWindow. When I do setBackgraounColor to one of those panels, this is what happens (attach one). I have try doing: scrolledWindow->Layout(); and verticaSizer->Layout(); But is still the same result. What can I do?
by ne01982
Thu May 03, 2007 8:26 am
Forum: C++ Development
Topic: how can I delete WxPanels durin execution?
Replies: 9
Views: 1541

The problem of that method in my app, is that the panel that I want to destroy, has got inside another wxPanel.
When I use that method in the first one, is only destroy the second one (the smallest), an the application stopped in

Code: Select all

 pPanel->Destroy(); 
I don
by ne01982
Thu May 03, 2007 7:42 am
Forum: C++ Development
Topic: how can I delete WxPanels durin execution?
Replies: 9
Views: 1541

megabyte wrote:

Code: Select all

if (pSizer->Detach(pPanel)) {
 delete pPanel;
}
That doesn
by ne01982
Wed May 02, 2007 6:52 pm
Forum: C++ Development
Topic: how can I delete WxPanels durin execution?
Replies: 9
Views: 1541

Thank you, but the sizer->remove (wxWindow* window) method is deprecated.

It only exist the sizer->Remove(wxSizer* sizer), but what I want to delete is inherited from wxPanel (and from wxWindow) .


what can I do?

Thanks AGAIN ;)
by ne01982
Wed May 02, 2007 4:30 pm
Forum: C++ Development
Topic: how can I delete WxPanels durin execution?
Replies: 9
Views: 1541

how can I delete WxPanels durin execution?

Hi, In my little app, I have a scrolledWindow (with a vertical boxSizer) where I have several wxPanels. Each panel has got a delete button, and I want tha when that button is pushed the correspondign wxPanel be delete from the scrolledWindow. And also I will like that If I have got 4 wxpanel, and I ...
by ne01982
Wed Apr 25, 2007 8:39 pm
Forum: C++ Development
Topic: how to change the size of a wxPanel inside a sizer
Replies: 22
Views: 3726

You should try reproducin the issue in a minimal compilable sample (or just strip all code that doesnt have anything to do with the error) this way its easier cause people can actually see everything and try things When I use setSizer and I add the smallPanel to the sizer of the panel, th app doesn...
by ne01982
Wed Apr 25, 2007 6:49 pm
Forum: C++ Development
Topic: how to change the size of a wxPanel inside a sizer
Replies: 22
Views: 3726

Don
by ne01982
Wed Apr 25, 2007 5:24 pm
Forum: C++ Development
Topic: how to change the size of a wxPanel inside a sizer
Replies: 22
Views: 3726

Auria wrote:Learn inheritance ;)

eveything that derives from wxWindow, includin wxPanel, has that method in it.
Im sorry, but my wxPanels doesn
by ne01982
Tue Apr 24, 2007 6:31 pm
Forum: C++ Development
Topic: how to change the size of a wxPanel inside a sizer
Replies: 22
Views: 3726

On the container that contains the components you want the sizer to size - i.e. on the wxWindow that is the parent of the objects you add to this sizer. (Note again, i have never used flex grid sizer, these are just general sizer tips) So, I understand tha you arte talking about my wxPanelSequenceE...
by ne01982
Tue Apr 24, 2007 11:30 am
Forum: C++ Development
Topic: how to change the size of a wxPanel inside a sizer
Replies: 22
Views: 3726

Auria wrote:You never seem to call SetLayout(mWxFlexGridSizer), then mWxFlexGridSizer probably shouldn't be expected to work (unless flexgridsizers work in ways im unaware of)
But SetLayout(mWxFlexGridSizer) over what?
??????->SetLayout(mWxFlexGridSizer);

thanks