Search found 75 matches

by ValeV
Wed Nov 04, 2020 11:58 am
Forum: Platform Related Issues
Topic: GUI appearance changed
Replies: 4
Views: 269

Re: GUI appearance changed

That was it! The resource.rc wasn't there (like in your screenshot), so I added the file via right clicking on project. It was confusing, because in some other projects, the file is not visible like in your screenshot, but the GUI is still fine. Seems like now I know the answer - manually inserting ...
by ValeV
Wed Nov 04, 2020 11:10 am
Forum: Platform Related Issues
Topic: GUI appearance changed
Replies: 4
Views: 269

Re: GUI appearance changed

My resource file content: aaaa_logo ICON "drive.ico" #include "wx/msw/wx.rc" Actually, looking at the screenshot it seems you somehow do not include your resource.rc file in your project any more: Even the frame icon is missing. Where do you include resource.rc file? I checked project's .cbp file, b...
by ValeV
Wed Nov 04, 2020 10:17 am
Forum: Platform Related Issues
Topic: GUI appearance changed
Replies: 4
Views: 269

GUI appearance changed

Hi, I am having troubles with wxWidgets loading correct GUI appearance. I am working on Windows 10, wxWidgets 3.1.2, CodeBlocks, GCC. I was making app, all was going well, appearance was ok: before.jpg I don't know what I changed in my project files, but the appearance changed to: after.jpg You can ...
by ValeV
Thu Oct 01, 2020 6:15 am
Forum: C++ Development
Topic: SetFont for whole application
Replies: 2
Views: 189

Re: SetFont for whole application

Thank you for the example, I will take a look.
by ValeV
Wed Sep 30, 2020 12:56 pm
Forum: C++ Development
Topic: SetFont for whole application
Replies: 2
Views: 189

SetFont for whole application

Hi, I am trying to change font for all text in the application. I understand I should use SetFont() ( https://forums.wxwidgets.org/viewtopic.php?t=28801 ), which I use on main wxPanel (all widgets are inside it). Since I am using wxSmith, my problem is that the code for widgets is created automatica...
by ValeV
Wed Aug 12, 2020 7:12 am
Forum: C++ Development
Topic: try/catch doesn't catch wxWidgets exception
Replies: 2
Views: 168

Re: try/catch doesn't catch wxWidgets exception

Thank you, using GetRootItem() works a-ok.
by ValeV
Tue Aug 11, 2020 1:45 pm
Forum: C++ Development
Topic: try/catch doesn't catch wxWidgets exception
Replies: 2
Views: 168

try/catch doesn't catch wxWidgets exception

wxTreeItemId parent; wxTreeItemId focusedItem = TreeCtrl1->GetFocusedItem(); wxString clicked_structure = TreeCtrl1->GetItemText(focusedItem); parent = TreeCtrl1->GetItemParent(focusedItem); try { wxString s = TreeCtrl1->GetItemText(parent); } catch(...) { wxMessageBox("CATCH-A-BALL"); return; } If...
by ValeV
Thu Jun 13, 2019 9:37 am
Forum: C++ Development
Topic: wxStaticLine resizing
Replies: 14
Views: 838

Re: wxStaticLine resizing

>FlexGridSizer1->Add(StaticLine1, 0, wxALL, 5); Line is not visible. >FlexGridSizer1->Add(StaticLine1, 0, wxALL|wxSHAPED, 5); Not visible, on resize it becomes square like in my previous picture, but just on the left side of the window. >FlexGridSizer1->Add(StaticLine1, 0, wxEXPAND|wxALL|wxSHAPED, 5...
by ValeV
Tue Jun 11, 2019 6:14 am
Forum: C++ Development
Topic: wxStaticLine resizing
Replies: 14
Views: 838

Re: wxStaticLine resizing

Full code below. Again, I use wxSmith so I didn't write any of this code manually. BinaryConverterFrame::BinaryConverterFrame(wxWindow* parent,wxWindowID id) { //(*Initialize(BinaryConverterFrame) wxBoxSizer* BoxSizer1; wxFlexGridSizer* FlexGridSizer1; wxMenu* Menu1; wxMenu* Menu2; wxMenuBar* MenuBa...
by ValeV
Mon Jun 10, 2019 12:07 pm
Forum: C++ Development
Topic: wxStaticLine resizing
Replies: 14
Views: 838

Re: wxStaticLine resizing

Yes, but when I resize the window, the horizontal line becomes a square That looks like you set a proportion > 0 when adding it to the sizer. Try 0. If that doesn't fix it, please show the sizer code for that dialog. Properties are the same as on a screenshot from my earlier post. Here is the code:...
by ValeV
Mon Jun 10, 2019 6:25 am
Forum: C++ Development
Topic: wxStaticLine resizing
Replies: 14
Views: 838

Re: wxStaticLine resizing

I'm mildly confused. On the screenshot i only see a horizontal line. And FWIW, as the two gui parts are already enclosed in a wxStaticBox, IMHO they don't need an additional visual separation. At most i would put a spacer with a fixed height between them. Yes, but when I resize the window, the hori...
by ValeV
Fri Jun 07, 2019 1:19 pm
Forum: C++ Development
Topic: Button is focused when I run application
Replies: 9
Views: 734

Re: Button is focused when I run application

doublemax wrote:
Fri Jun 07, 2019 10:48 am
But what about first button being focused on application start (my original question)?
Try setting the focus to the frame.

Code: Select all

this->SetFocus();
I see, I put focus on highest label, though your code works better. Thank you. :)
by ValeV
Fri Jun 07, 2019 11:57 am
Forum: C++ Development
Topic: wxStaticLine resizing
Replies: 14
Views: 838

Re: wxStaticLine resizing

Sorry, I forgot to add :shock: , when I resize the window (make it bigger), I don't want the staticLine to get bigger vertically (so it becomes like a square), I want it to expand just horizontally.
by ValeV
Fri Jun 07, 2019 11:38 am
Forum: C++ Development
Topic: wxStaticLine resizing
Replies: 14
Views: 838

wxStaticLine resizing

CodeBlocks with Mingw, wxWidget 3.1.2, wxSmith I can't figure out how to set wxStaticLine options to resize vertically, but with fixed height. I tried setting default width and height, checking "Shaped" option and setting max height size to 1, which normally works, but doesn't work when I resize the...