Search found 14 matches

by var_null
Sat Mar 21, 2020 8:24 am
Forum: C++ Development
Topic: Is there a way to disable the higlighting effect on a wxBitmapButton? [wxWidgets 3.1.3]
Replies: 4
Views: 251

Is there a way to disable the higlighting effect on a wxBitmapButton? [wxWidgets 3.1.3]

Hello, Is there a way to disable the blue highlighting effect on a wxBitmapButton when the cursor hovers over it and also when it is clicked?

Thanks
by var_null
Sat Mar 21, 2020 4:58 am
Forum: C++ Development
Topic: Problem setting Image1 (wxImage) to wxBitmapButton [wxWidgets 3.1.3]
Replies: 2
Views: 176

Problem setting Image1 (wxImage) to wxBitmapButton [wxWidgets 3.1.3]

Hello, Added a wxImage (called Image1) element with wxSmith, the original png image was converted to code, which is very long so I'm ommiting it Have the following code: Project__Frame::Project__Frame(wxWindow* parent,wxWindowID id) { ... static const char *Image1_XPM[] = { ... }; Image1 = new wxIma...
by var_null
Fri Mar 20, 2020 10:52 pm
Forum: Platform Related Issues
Topic: ...msw\bitmap.cpp(842): assert ""image.IsOk()"" failed in wxBitMap::CreateFromImage(): invalid image [wxWidgets 3.1.3]
Replies: 2
Views: 279

Re: ...msw\bitmap.cpp(842): assert ""image.IsOk()"" failed in wxBitMap::CreateFromImage(): invalid image [wxWidgets 3.1.

Thank you very much, never imagined I just needed another "\", it works great now
But how could that path have worked under Linux?
The Linux version has a different path
by var_null
Fri Mar 20, 2020 9:49 pm
Forum: Platform Related Issues
Topic: ...msw\bitmap.cpp(842): assert ""image.IsOk()"" failed in wxBitMap::CreateFromImage(): invalid image [wxWidgets 3.1.3]
Replies: 2
Views: 279

...msw\bitmap.cpp(842): assert ""image.IsOk()"" failed in wxBitMap::CreateFromImage(): invalid image [wxWidgets 3.1.3]

Hello, the following code compiles and runs fine under Linux: https://i.postimg.cc/B6PPn01C/Screenshot-20200320-184650.png staticboxsizer_Logo = new wxStaticBoxSizer(wxHORIZONTAL, Panel1, wxEmptyString); staticbitmap_logo = new wxStaticBitmap(Panel1, ID_STATICBITMAP2, wxBitmap(wxImage(_T("C:\Logo_0....
by var_null
Wed Mar 18, 2020 8:05 am
Forum: Compiler / Linking / IDE Related
Topic: error: allocating an object of abstract class type 'wxImageHandler' [wxSmith, wxWidgets 3.1.3] [Solved]
Replies: 3
Views: 457

Re: error: allocating an object of abstract class type 'wxImageHandler' [wxSmith, wxWidgets 3.1.3]

Hello, thanks for your reply In fact wxSmith generated #include "wx/wxImagePanel.h" ... wxImagePanel* imagepanel_Logo; ... imagepanel_Logo = new wxImagePanel(Panel1, ID_IMAGEPANEL1, wxDefaultPosition, wxSize(250,46), wxTAB_TRAVERSAL, _T("ID_IMAGEPANEL1")); imagepanel_Logo->SetStretch(false); And the...
by var_null
Wed Mar 18, 2020 7:08 am
Forum: Compiler / Linking / IDE Related
Topic: error: allocating an object of abstract class type 'wxImageHandler' [wxSmith, wxWidgets 3.1.3] [Solved]
Replies: 3
Views: 457

error: allocating an object of abstract class type 'wxImageHandler' [wxSmith, wxWidgets 3.1.3] [Solved]

Hello, I used wxSmith to create the GUI for my program Everything was fine until I added a bitmap (staticboxsizer_Logo--> imagepanel_logo --> staticbitmap_logo): Now I'm getting the following errors: /bin/sh -c 'make -j4 -e -f Makefile' ----------Building project:[ file - Debug ]---------- make[1]: ...
by var_null
Tue Mar 17, 2020 6:30 am
Forum: C++ Development
Topic: Unable to add items to wxComboBox using std::vector
Replies: 4
Views: 279

Re: Unable to add items to wxComboBox using std::vector

Thanks, everything works fine now :)
by var_null
Sun Mar 15, 2020 6:45 pm
Forum: C++ Development
Topic: Unable to add items to wxComboBox using std::vector
Replies: 4
Views: 279

Re: Unable to add items to wxComboBox using std::vector

Thank you very much for your reply Could you please explain to me how to define the void MedCen__Frame::loadComboBoxItems() function in the header file? (MedCen_Main.h) I've been googling a bit and I've seen examples of how to define other kind of functions, however I'm not sure about how to proceed...
by var_null
Sun Mar 15, 2020 5:24 pm
Forum: C++ Development
Topic: Unable to add items to wxComboBox using std::vector
Replies: 4
Views: 279

Unable to add items to wxComboBox using std::vector

Tried to do it this way: MedCen__Main.cpp: void MedCen__Frame::loadComboBoxItems() { std::vector<std::string> IdTypes; IdTypes.reserve(4); IdTypes.push_back("Social Security Card"); IdTypes.push_back("Driver's License"); IdTypes.push_back("Passport"); IdTypes.push_back("Department of Defense ID Card...
by var_null
Fri Feb 28, 2020 5:09 pm
Forum: Compiler / Linking / IDE Related
Topic: How to build wxWidgets projects with Eclipse 2019.12 on Linux? [CDT-Project]
Replies: 3
Views: 246

How to build wxWidgets projects with Eclipse 2019.12 on Linux? [CDT-Project]

I already installed wxWidgets following these instructions: https://wiki.codelite.org/pmwiki.php/Main/WxWidgets31Binaries#toc2 Added "/usr/include/wx-3.1-unofficial/" under "Project Properties--> C/C++ Build--> Settings--> Cross GCC Compiler--> Includes" and "Project Properties--> C/C++ Build--> Set...
by var_null
Fri Feb 28, 2020 3:51 pm
Forum: Compiler / Linking / IDE Related
Topic: How to build wxWidgets projects with Visual Studio Code on Linux?
Replies: 1
Views: 170

How to build wxWidgets projects with Visual Studio Code on Linux?

How to build wxWidgets projects with Visual Studio Code on Linux? I already installed wxWidgets following these instructions: https://wiki.codelite.org/pmwiki.php/Main/WxWidgets31Binaries#toc2 I can see wxWidgets files are here: /usr/include/wx-3.1-unofficial/wx (for example, app.h) I can compile wx...