Search found 43 matches

by Nick
Fri Nov 29, 2019 11:40 am
Forum: C++ Development
Topic: Statusbar Beginner
Replies: 3
Views: 119

Re: Statusbar Beginner

The style flag is a bit mask. Try this: CreateStatusBar(3, wxSTB_DEFAULT_STYLE | wxSB_SUNKEN); But depending on the OS/theme it's also possible that the visual style is ignored and the status bar always looks the same. And both the way you presented above and the way I posted the question, Style's ...
by Nick
Fri Nov 29, 2019 11:16 am
Forum: C++ Development
Topic: GetSize or GetClientSize Beginner wxWidgets 3.1.3
Replies: 7
Views: 163

Re: GetSize or GetClientSize Beginner wxWidgets 3.1.3

wxMessageBox( wxString::Format("client size: %d %d", EdNote->GetClientSize().x, EdNote->GetClientSize().y) ); Alternative: wxLogMessage( "client size: %d %d", EdNote->GetClientSize().x, EdNote->GetClientSize().y ); Wow, it worked! Now I can play with this command! But I also enjoyed learning about ...
by Nick
Fri Nov 29, 2019 10:50 am
Forum: C++ Development
Topic: Statusbar Beginner
Replies: 3
Views: 119

Statusbar Beginner

I tried 2 ways to change the style of the Statusbar but none of them work! I'm trying to follow what I read in the wxFrame and wxStatusbar Class but something is missing I wish the first form works because it has less code written Attempt 1 CreateStatusBar(3, wxSB_SUNKEN); // Does not display correc...
by Nick
Fri Nov 29, 2019 10:28 am
Forum: C++ Development
Topic: GetSize or GetClientSize Beginner wxWidgets 3.1.3
Replies: 7
Views: 163

Re: GetSize or GetClientSize Beginner wxWidgets 3.1.3

In most cases use GetSize(). If you call GetSize() of a wxFrame, it will return the complete outer size including border, caption bar, menu bar etc. If you call GetClientSize(), it will return only the inner part where you can put your own content. Yes, I understood the difference between the 2 com...
by Nick
Fri Nov 29, 2019 9:06 am
Forum: C++ Development
Topic: GetSize or GetClientSize Beginner wxWidgets 3.1.3
Replies: 7
Views: 163

Re: GetSize or GetClientSize Beginner wxWidgets 3.1.3

Hi, Why do you want to set the size of the frame? Also, getting the sizes of the controls inside frame won't help. You should use sizers to calculate the sizes and position controls. Thank you. Trying to explain even more detailed Problem 1 I have a window that I don't know the size! So I needed to...
by Nick
Thu Nov 28, 2019 11:53 pm
Forum: C++ Development
Topic: GetSize or GetClientSize Beginner wxWidgets 3.1.3
Replies: 7
Views: 163

GetSize or GetClientSize Beginner wxWidgets 3.1.3

I can't find an example on the Internet of how I use these commands. GetSize or GetClientSize The problem that occurred when I found out that wxSize is one thing and SetClientSize is a different one. So I wanted to venture into learning how to get the size of widgets I Tried: wxMessageBox(EdNote->Ge...
by Nick
Mon Sep 02, 2019 11:12 pm
Forum: Platform Related Issues
Topic: Clarification on wxGTK
Replies: 3
Views: 454

Re: Clarification on wxGTK

Hi, wxGTK Is it dependency to install wxWidgets? wxGTK is wxWidgets. It's the standard wxWidgets for Linux, just as wxMSW is the one for Windows, wxMac for OSX. (That's a simplification but it's true enough for normal use.) To better understand, on a clean system, I just installed wxWidgets v.3.1.2...
by Nick
Mon Sep 02, 2019 12:06 am
Forum: Platform Related Issues
Topic: Clarification on wxGTK
Replies: 3
Views: 454

Clarification on wxGTK

https://www.wxwidgets.org/docs/faq/gtk/ I couldn't quite understand what it is wxGTK Doubt 1: wxGTK Is it dependency to install wxWidgets? If it's dependency: Where do I download it? My question is because when looking at the only packages available for Slackware, being the same version, they are c...
by Nick
Wed Aug 21, 2019 2:27 am
Forum: C++ Development
Topic: Multiple wxFrame Doubt II
Replies: 11
Views: 291

Re: Multiple wxFrame Doubt II

Another problem. That I believe I got it wrong! I will post the statements from the beginning, because I believe they were declared wrong Tips.h #include <wx/button.h> #include <wx/frame.h> #include <wx/grid.h> #include <wx/srchctrl.h> #include <wx/stattext.h> #include <wx/textctrl.h> //(*Headers(Fr...
by Nick
Wed Aug 21, 2019 2:10 am
Forum: C++ Development
Topic: Multiple wxFrame Doubt II
Replies: 11
Views: 291

Re: Multiple wxFrame Doubt II

Example based on "minimal" sample: bool MyApp::OnInit() { if ( !wxApp::OnInit() ) return false; m_frame1 = new Frame1("this is frame 1"); m_frame2 = new Frame2("this is frame 2"); ShowFrame1(); // success: wxApp::OnRun() will be called which will enter the main message // loop and the application w...
by Nick
Tue Aug 20, 2019 11:16 pm
Forum: C++ Development
Topic: Multiple wxFrame Doubt II
Replies: 11
Views: 291

Re: Multiple wxFrame Doubt II

I'd still use the wxApp object as global "manager" for the display of all frames and the communication between them. Well, I think then I will have to consider your suggestion a lot! Because I believe you must have countless reasons I don't know, and why it's truly easier to do and to control. Than...
by Nick
Tue Aug 20, 2019 1:18 pm
Forum: C++ Development
Topic: Multiple wxFrame Doubt II
Replies: 11
Views: 291

Re: Multiple wxFrame Doubt II

Summary of the program I am trying to do. I want a program where I can register various information such as Tips for: C, C ++, Linux, wxWidgets, Cooking Recipes, Remedies, Electronics Tips, General Knowledge. It's like an encyclopedia of information. Where I will consult with a word and have the des...
by Nick
Tue Aug 20, 2019 1:11 pm
Forum: C++ Development
Topic: Multiple wxFrame Doubt II
Replies: 11
Views: 291

Re: Multiple wxFrame Doubt II

One day, what I want is something like this https://oi890.photobucket.com/albums/ac109/x01001000x/Forum%20wxWidgets/A.png~original And the Tips displayed something like this and can put images, colors and etc ... https://oi890.photobucket.com/albums/ac109/x01001000x/Forum%20wxWidgets/B.png~original ...
by Nick
Tue Aug 20, 2019 1:04 pm
Forum: C++ Development
Topic: Multiple wxFrame Doubt II
Replies: 11
Views: 291

Re: Multiple wxFrame Doubt II

These are all typical cases where you would normally show a modal dialog instead of a wxFrame. This would make the whole logic much easier. The problem with using Modal Dialogs is that I could not use previous Windows if I had to! :D Example: When I register a Hashtags for example Find. Her synonym...
by Nick
Tue Aug 20, 2019 10:01 am
Forum: C++ Development
Topic: Multiple wxFrame Doubt II
Replies: 11
Views: 291

Re: Multiple wxFrame Doubt II

Example based on "minimal" sample: Your idea is good, and of course I learn from it too, mainly because I will do the codes by hand in the future. But I will explain my current motives. I am still learning how to use. And in the meantime I am creating a small database to register what I learn. And ...