Search found 4529 matches

by ONEEYEMAN
Thu Nov 12, 2020 9:59 pm
Forum: C++ Development
Topic: Switch layout on button press.
Replies: 53
Views: 1062

Re: Switch layout on button press.

Hi,
You need to call Layout() on the top-most sizer you Hide()/Show() all controls.

Thank you.
by ONEEYEMAN
Thu Nov 12, 2020 7:32 pm
Forum: C++ Development
Topic: Switch layout on button press.
Replies: 53
Views: 1062

Re: Switch layout on button press.

Hi,
You don't have to delete any controls you create.
You do however should take care of any and all memory allocation for any non-GUI object.

Thank you.
by ONEEYEMAN
Thu Nov 12, 2020 6:21 pm
Forum: wxCode
Topic: wxGraphicsContext has not been declared
Replies: 10
Views: 688

Re: wxGraphicsContext has not been declared

Hi,
Please stop using the MONOLITHIC build.
It is used very rarely and it might create problems in the long run.

Thank you.
by ONEEYEMAN
Thu Nov 12, 2020 5:55 pm
Forum: C++ Development
Topic: Switch layout on button press.
Replies: 53
Views: 1062

Re: Switch layout on button press.

Hi,
Why are you still talking about 2 frame classes?
Have just one and show/hide the controls on demand...

Thank you.
by ONEEYEMAN
Thu Nov 12, 2020 4:15 pm
Forum: C++ Development
Topic: Switch layout on button press.
Replies: 53
Views: 1062

Re: Switch layout on button press.

Hi,
You don't need to resize anything.
Just call Layout() and the frame will be properly sized.

Thank you.
by ONEEYEMAN
Wed Nov 11, 2020 11:08 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile error WxWidgets 2.8.12 on Windows 7
Replies: 15
Views: 564

Re: Compile error WxWidgets 2.8.12 on Windows 7

Hi,
Why not upgrade wxWidgets to version 3.1.4? Is there a reason?
2.8.12 is very old and misses a lot of bug fixes...

Thank you.
by ONEEYEMAN
Wed Nov 11, 2020 9:18 am
Forum: C++ Development
Topic: Updating OBJ Vars in Threads
Replies: 12
Views: 282

Re: Updating OBJ Vars in Threads

Hi, Hi, Just google for std::vector. As I said wxVector is for backward compatibility only. Also - I don't think you need a timer. Just spawn a thread every time the file is added to the vector. Thank you. Hi ONEEYEMAN, I'll give a try to the std::vector in the new build. May I ask a clarify on the ...
by ONEEYEMAN
Wed Nov 11, 2020 8:18 am
Forum: Compiler / Linking / IDE Related
Topic: Zlib1.dll file was not found
Replies: 4
Views: 187

Re: Zlib1.dll file was not found

Hi,
You should NEVER!!! NEVER EVER!!! use an unofficial resource to build something.
ALWAYS CHECK WITH THE OFFICIAL WEBSITE!!!

(I just wish all those outdated YouTube videos will be put down so that people will stop using them).

Thank you.
by ONEEYEMAN
Wed Nov 11, 2020 8:07 am
Forum: C++ Development
Topic: My Frame don't fit to content
Replies: 6
Views: 187

Re: My Frame don't fit to content

Hi,
Possible.
But before going this route - what constraint did you set on the frame?

Did you call "SetSizeHints()"?
Did you call the constructor with:

Code: Select all

new Frame( NULL, wxID_ANY, wxDefaultPosition, wxSize( X, Y ) );
Did you set any minimum/client size?

Thank you.
by ONEEYEMAN
Tue Nov 10, 2020 7:23 pm
Forum: C++ Development
Topic: Updating OBJ Vars in Threads
Replies: 12
Views: 282

Re: Updating OBJ Vars in Threads

Hi,
Just google for std::vector.

As I said wxVector is for backward compatibility only.

Also - I don't think you need a timer.
Just spawn a thread every time the file is added to the vector.

Thank you.
by ONEEYEMAN
Tue Nov 10, 2020 5:36 pm
Forum: C++ Development
Topic: Updating OBJ Vars in Threads
Replies: 12
Views: 282

Re: Updating OBJ Vars in Threads

Hi, I presume when you are saying global - you mean class members. I also want to point out that wx containers classes exists only for backward compatibility and it is strongly recommended to use STL. Is you vectors read-only inside the thread or thread will change them as well? Anyway those vectors...
by ONEEYEMAN
Tue Nov 10, 2020 5:25 pm
Forum: C++ Development
Topic: Switch layout on button press.
Replies: 53
Views: 1062

Re: Switch layout on button press.

Hi,
@PB, don't "Assume" anything - its a bad word. ;-)
@OP - what is the purpose of such switch? Maybe you don't need 2 frames at all...

Thank you.
by ONEEYEMAN
Tue Nov 10, 2020 5:21 pm
Forum: C++ Development
Topic: My Frame don't fit to content
Replies: 6
Views: 187

Re: My Frame don't fit to content

Hi,
Did you set any constraints on the frame?
Did you pass any size parameter to its constructor?

Thank you.
by ONEEYEMAN
Tue Nov 10, 2020 7:41 am
Forum: C++ Development
Topic: Remnant of the toolbar
Replies: 6
Views: 208

Re: Remnant of the toolbar

doublemax,
Stupid me :D - it is actually wxMDIClientWindow.
However, trying to hide it on the iconizing, doesn't work - see the attachment.
after1.PNG
after1.PNG (22.83 KiB) Viewed 157 times
by ONEEYEMAN
Tue Nov 10, 2020 5:25 am
Forum: Platform Related Issues
Topic: wxDataViewModel::Cleared issuing queries to my tree model (wxGTK)
Replies: 6
Views: 226

Re: wxDataViewModel::Cleared issuing queries to my tree model (wxGTK)

Hi, From the documentation: If the data represented by the model is changed by something else than its associated wxDataViewCtrl, the control has to be notified about the change. Depending on what happened you need to call one of the following methods: Are you removing the items externally, or by ca...