Search found 184 matches
- Wed Mar 27, 2024 3:37 pm
- Forum: General Development
- Topic: Porting wxWidgets to Rust?
- Replies: 5
- Views: 12639
Re: Porting wxWidgets to Rust?
I'm not sure how many here are familiar with Rust (for one I'm not). So trying to provide background information will help make a good conversation. For example I don't know why you are even talking of porting to Rust if as you say C++ port works fine Because there aren't any native UI frameworks f...
- Tue Oct 24, 2023 4:49 pm
- Forum: C++ Development
- Topic: wxStdDialogButtonSizer default button keypress
- Replies: 13
- Views: 18119
Re: wxStdDialogButtonSizer default button keypress
No, I don't want that. I want to use my own code. His code was merely illustrative.
- Tue Oct 24, 2023 2:59 pm
- Forum: C++ Development
- Topic: wxStdDialogButtonSizer default button keypress
- Replies: 13
- Views: 18119
Re: wxStdDialogButtonSizer default button keypress
I just said I did. I call SetDefault() on the OK button in the wxDialog::OnInit() and that works. I didn't know there was a wxDialog::AddStdDialogButtonSizer() function, though. I'm using wxFormsBuilder and they simply add buttons manually instead of using the convenience function. Since StdDialogBu...
- Tue Oct 24, 2023 1:15 pm
- Forum: C++ Development
- Topic: wxStdDialogButtonSizer default button keypress
- Replies: 13
- Views: 18119
Re: wxStdDialogButtonSizer default button keypress
I just made a PR here. We'll see if it's accepted.
- Tue Oct 24, 2023 12:50 pm
- Forum: C++ Development
- Topic: wxStdDialogButtonSizer default button keypress
- Replies: 13
- Views: 18119
Re: wxStdDialogButtonSizer default button keypress
Yes, just tried SetDefaultItem() but this doesn't "highlight" the button. wxButton->SetDefault() does highlight it. I'm thinking about proposing a patch for wxWidgets since it clearly should set the OK button as default on Windows. I don't know what the etiquette is on Mac or Linux but I'l...
- Mon Oct 23, 2023 10:27 am
- Forum: C++ Development
- Topic: wxStdDialogButtonSizer default button keypress
- Replies: 13
- Views: 18119
Re: wxStdDialogButtonSizer default button keypress
CreateProjectDlg::CreateProjectDlg( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); wxBoxSizer* bSizer5; bSizer5 = new wxB...
- Mon Oct 23, 2023 7:47 am
- Forum: C++ Development
- Topic: wxStdDialogButtonSizer default button keypress
- Replies: 13
- Views: 18119
Re: wxStdDialogButtonSizer default button keypress
I cannot reproduce this on Windows with this code #include <wx/wx.h> class MyApp : public wxApp { bool OnInit() override { wxDialog dlg(nullptr, wxID_ANY, "Test"); wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL); mainSizer->Add(new wxTextCtrl(&dlg, wxID_ANY), wxSizerFlags().Border(...
- Sun Oct 22, 2023 10:22 pm
- Forum: C++ Development
- Topic: wxStdDialogButtonSizer default button keypress
- Replies: 13
- Views: 18119
wxStdDialogButtonSizer default button keypress
When I use a wxStdDialogButtonSizer on my dialog with OK and Cancel buttons it doesn't seem to respond to <Enter> to press the OK button. I could of course do this manually with an OnKey event or something but I was wondering why wxStdDialogButtonSize doesn't support this behavior (on Windows). Woul...
- Wed Sep 14, 2022 1:11 pm
- Forum: C++ Development
- Topic: Popupwindow above taskbar icon
- Replies: 9
- Views: 9441
Re: Popupwindow above taskbar icon
I did find this.
Obviously, I'd need to find corresponding API's on MacOS-X and GTK+ to implement it in wxWidgets.
Obviously, I'd need to find corresponding API's on MacOS-X and GTK+ to implement it in wxWidgets.
- Wed Sep 14, 2022 10:24 am
- Forum: C++ Development
- Topic: Popupwindow above taskbar icon
- Replies: 9
- Views: 9441
Re: Popupwindow above taskbar icon
Wouldn't a simple solution simply be positioning the wxPopupWindow in the corner where the tray is located?
Next problem would be how to figure out where the tray is actually at. It should be possible since many other Windows apps do this as well.
Next problem would be how to figure out where the tray is actually at. It should be possible since many other Windows apps do this as well.
- Tue Sep 13, 2022 9:19 pm
- Forum: C++ Development
- Topic: Popupwindow above taskbar icon
- Replies: 9
- Views: 9441
Re: Popupwindow above taskbar icon
Thanks, that may be an option.
But let's assume I want to use my own PopupWindow regardless. How can I still make this work the way I want to?
- Tue Sep 13, 2022 11:55 am
- Forum: C++ Development
- Topic: Popupwindow above taskbar icon
- Replies: 9
- Views: 9441
Re: Popupwindow above taskbar icon
I want the popup to remain above the taskbar icon until I close it. I'm currently using the notification message but it disappears after 2 seconds.
- Tue Sep 13, 2022 7:29 am
- Forum: C++ Development
- Topic: Popupwindow above taskbar icon
- Replies: 9
- Views: 9441
Popupwindow above taskbar icon
I'm attempting to make a small popup window appear above the taskbar icon (wxTaskBarIcon) for my wxTimerTray app m_notificationWindow = new wxPopupWindow(this); wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL); sizer->Add(new NotificationPanel(m_notificationWindow)); m_notificationWindow->SetSizer(siz...
- Sun Apr 25, 2021 4:12 am
- Forum: Open Discussion
- Topic: Suggesting a feature
- Replies: 10
- Views: 17319
Re: Suggesting a feature
I need to underline the recipients that have been found in the address book. Outlook Express works the same way.
- Sat Apr 24, 2021 8:30 pm
- Forum: General Development
- Topic: Porting wxWidgets to Rust?
- Replies: 5
- Views: 12639
Porting wxWidgets to Rust?
There are currently very few (if any) UI frameworks available for Rust, and certainly not targeting multi-platform native widget frameworks. I was thinking that a lot of stuff implemented in C++ wxWidgets wouldn't need to be implemented such as wxString, wxHashMap, etc. since these are all part of R...