Search found 105 matches
- Tue Jul 27, 2021 5:35 pm
- Forum: C++ Development
- Topic: How to assign a Bitmap to a menu item
- Replies: 8
- Views: 3099
Re: How to assign a Bitmap to a menu item
It looks like wxBitmapComboBox may give me what I desire.
- Fri Jun 25, 2021 1:00 am
- Forum: C++ Development
- Topic: How to assign a Bitmap to a menu item
- Replies: 8
- Views: 3099
Re: How to assign a Bitmap to a menu item
I checked the sample. I #include'd "wxlogo.xpm" and Appended wxlogo_xpm per the sample. It compiled fine and ran fine, but no logo icon.
Is it the size of the icon? Most of what i want to use is png Don't they resize? Maybe i should try a huge panel.
Is it the size of the icon? Most of what i want to use is png Don't they resize? Maybe i should try a huge panel.
- Thu Jun 24, 2021 1:11 pm
- Forum: C++ Development
- Topic: How to assign a Bitmap to a menu item
- Replies: 8
- Views: 3099
Re: How to assign a Bitmap to a menu item
I want to create a panel with a menu that has icons next to it. Like the Quit menu in this example: https://zetcode.com/gui/wxwidgets/menustoolbars/ Perhaps the menu need not be on a button. Only the title is visible until the button is clicked. Perhaps that is standard for a wxmenu. I've been searc...
- Wed Jun 23, 2021 8:31 pm
- Forum: C++ Development
- Topic: How to assign a Bitmap to a menu item
- Replies: 8
- Views: 3099
Re: How to assign a Bitmap to a menu item
You must call ::wxInitAllImageHandlers() This solved the crash. But the icons are still not appearing on the button. Maybe a button was the wrong metaphor. I'm trying to create a panel with a toolbar and a button that launches applications like the "Applications" button om Mate-panel and ...
- Wed Jun 23, 2021 8:29 pm
- Forum: General Forum Issues
- Topic: Error "The submitted form was invalid"
- Replies: 58
- Views: 110812
- Tue Jun 22, 2021 11:04 pm
- Forum: C++ Development
- Topic: How to assign a Bitmap to a menu item
- Replies: 8
- Views: 3099
How to assign a Bitmap to a menu item
I keep getting a segfault at the assignment: //static const wxBitmap defaultmap(_T("/usr/local/src/wxWidgets/samples/webview/wxlogo.xpm")); const wxBitmap defaultmap(_T("/usr/share/pixmaps/mybird-bin-icon.png")); static bool didit=false; //wxBitmap("/usr/local/src/wxWidgets/...
- Wed May 20, 2020 3:58 pm
- Forum: C++ Development
- Topic: Can't make wxTextCtrl fit more than 10 digits.
- Replies: 4
- Views: 1211
Re: Can't make wxTextCtrl fit more than 10 digits.
Thanks! I will try it
- Wed May 13, 2020 3:03 pm
- Forum: C++ Development
- Topic: Can't make wxTextCtrl fit more than 10 digits.
- Replies: 4
- Views: 1211
Re: Can't make wxTextCtrl fit more than 10 digits.
I want space for the dots too.
This did indeed work. I'm surprised that a custom box for ip addresses, allowing only legal addresses has not been developed before.
I have four in this project and undoubtedly more down the road. A custom control sounds like a good idea.
This did indeed work. I'm surprised that a custom box for ip addresses, allowing only legal addresses has not been developed before.
I have four in this project and undoubtedly more down the road. A custom control sounds like a good idea.
- Wed May 13, 2020 3:35 am
- Forum: C++ Development
- Topic: Can't make wxTextCtrl fit more than 10 digits.
- Replies: 4
- Views: 1211
Can't make wxTextCtrl fit more than 10 digits.
Trying to have boxes fit fourteen digit initializers. Only 12 digits fit. using sizers. Snippet: wxBoxSizer *RangeBox = new wxBoxSizer(wxHORIZONTAL); wxTextCtrl *AssignmentRangeStart = new wxTextCtrl(this, ID_IPRANGESTART, _("000.000.000.000ABC")); wxTextCtrl *AssignmentRangeEnd = new wxTe...
- Sat Oct 13, 2018 9:54 pm
- Forum: Platform Related Issues
- Topic: Don't understand warning
- Replies: 10
- Views: 3763
Re: Don't understand warning
Sorry, that didn't make any difference
- Tue Oct 09, 2018 11:38 pm
- Forum: Platform Related Issues
- Topic: Don't understand warning
- Replies: 10
- Views: 3763
Re: Don't understand warning
Found that link: https://forums.wxwidgets.org/viewtopic.php?f=1&t=44230 Re EVT_ERASEBACKGROUND, apparently not, at least in this incarnation tony@MSI src $ grep EVT_ERASEBACKGROUND *.cpp tony@MSI src $ I do have: wxEVT_ERASE_BACKGROUND The code here http://dpaste.com/3XASJTT is a workaround that...
- Tue Oct 09, 2018 9:49 pm
- Forum: Platform Related Issues
- Topic: Don't understand warning
- Replies: 10
- Views: 3763
Re: Don't understand warning
Hi. One difference was that on wxGTK you can't override erasing the background for transparency, gtk will always erase it. IIRC with the file dialog there was a problem when expanding and another when selecting. Doublemax suggested using the universal file dialog and that worked. I've been looking f...
- Tue Oct 09, 2018 6:34 pm
- Forum: Platform Related Issues
- Topic: Don't understand warning
- Replies: 10
- Views: 3763
Re: Don't understand warning
I'll try -Wno-attributes. The problem with wxGTK is that it behaves differently from wxMSW. I want the same behavior and look on both platforms. I don't really care if my application looks and behaves like other gtk applications, I want it to be the same on all platforms. In regard to your warning, ...
- Tue Oct 09, 2018 5:40 pm
- Forum: Platform Related Issues
- Topic: Don't understand warning
- Replies: 10
- Views: 3763
Don't understand warning
Linux wxwidgets 3.0.4 compiled without gtk and with universal and X11 gcc 7.3.0 My application compiles but the screen is full of these messages while compiling. They don't occur when wxwidgets is compiled with gtk. /usr/include/wx-3.0-X11/wx/univ/window.h:18:28: warning: attribute ignored in declar...
- Sun Apr 22, 2018 11:53 pm
- Forum: C++ Development
- Topic: How to find wxProcess pointer in wxProcessEvent handler? [solved]
- Replies: 2
- Views: 1260
Re: How to find wxProcess pointer in wxProcessEvent handler?
My apologies for not responding sooner. I read your response about an hour after you posted it. I swirched to the modified Process as shown in my first post. I think that should be the default but ... Anyway, thanks for the prompt response. BTW, I had another error in my code, I was checking status ...