Search found 107 matches
- Tue Dec 11, 2018 2:43 pm
- Forum: C++ Development
- Topic: wxDialog.ShowModal vs wxMessageDialog.ShowModal
- Replies: 9
- Views: 1606
Re: wxDialog.ShowModal vs wxMessageDialog.ShowModal
Does the message box cover the button? If yes, there should be a paint event, otherwise it wouldn't be redrawn. No, message box doesn't cover the button. Check if any button method gets called when the message box closes. bool wxCustomButton::Enable(bool enable /* = true */) method isn't called whe...
- Tue Dec 11, 2018 2:11 pm
- Forum: C++ Development
- Topic: wxDialog.ShowModal vs wxMessageDialog.ShowModal
- Replies: 9
- Views: 1606
Re: wxDialog.ShowModal vs wxMessageDialog.ShowModal
I noticed, that button's OnPaint event isn't triggered when I close message box. Looks like this is the reason. Should this event be triggered and why it is not (if it should)?
- Tue Dec 11, 2018 8:05 am
- Forum: C++ Development
- Topic: wxDialog.ShowModal vs wxMessageDialog.ShowModal
- Replies: 9
- Views: 1606
Re: wxDialog.ShowModal vs wxMessageDialog.ShowModal
No, it is not just redraw problem. If a overlap the button with another dialog, then nothing changes, the button still looks disabled. The problem indeed might be in button state logic. I think, that drawing process is executed when modal dialog already has been shown, thus IsEnabled() returns false...
- Mon Dec 10, 2018 7:12 pm
- Forum: C++ Development
- Topic: wxDialog.ShowModal vs wxMessageDialog.ShowModal
- Replies: 9
- Views: 1606
Re: wxDialog.ShowModal vs wxMessageDialog.ShowModal
First thing you need to check: In the "bad" case, does the button refresh properly if you force a redraw, e.g. by moving another window accross? If yes, it's just a redraw problem. If not it means that its internal state is wrong. If I move mouse on the button, then it redraws correctly? ...
- Mon Dec 10, 2018 4:58 pm
- Forum: C++ Development
- Topic: wxDialog.ShowModal vs wxMessageDialog.ShowModal
- Replies: 9
- Views: 1606
wxDialog.ShowModal vs wxMessageDialog.ShowModal
Hi guys, Could anyone explain the difference between these two methods? Why I'm asking. I've got custom button with overloaded OnPaint function. .h file #pragma once #include <memory> #include <wx/wx.h> #include "wxCustomControl.h" class wxCustomButtonDrawerInterface; class wxCustomButton:...
- Mon Dec 03, 2018 9:02 pm
- Forum: C++ Development
- Topic: wxComboCtrl process text changing
- Replies: 4
- Views: 1084
Re: wxComboCtrl process text changing
Thanks, guys, for your help.
I've just checked. Yes, it is so =)This is because EVT_TEXT is a text control event which fires when the text is entered from the keyboard
- Mon Dec 03, 2018 6:42 pm
- Forum: C++ Development
- Topic: wxComboCtrl process text changing
- Replies: 4
- Views: 1084
wxComboCtrl process text changing
Hi all, I've got control we developed here . Now I need to handle date (or time) changing. wxCustomDateTimePicker is inherited from wxComboCtrl. As described in wxComboCtrl's documentation: EVT_TEXT(id, func): Process a wxEVT_TEXT event, when the text changes. So in constructor of wxCustomDateTimePi...
- Tue Nov 27, 2018 11:54 am
- Forum: C++ Development
- Topic: bold text inside of wxToolTip (wxRichToolTip)
- Replies: 3
- Views: 607
Re: bold text inside of wxToolTip (wxRichToolTip)
Unfortunately it doesn't.doublemax wrote:But i doubt wxRichToolTip supports it.
So the only way is to create custom tooltip control?
- Tue Nov 27, 2018 10:38 am
- Forum: C++ Development
- Topic: bold text inside of wxToolTip (wxRichToolTip)
- Replies: 3
- Views: 607
bold text inside of wxToolTip (wxRichToolTip)
Hello, Is there a way to mark up some text inside of tooltip with bold? I tried wxRichToolTip with '\b' and '\b0' tags, but it didn't help. So is there possible to solve the problem using standard (or generic) wx controls or it is needed to create custom tooltip control (if so, then I'd like to see ...
- Mon Nov 26, 2018 7:05 am
- Forum: C++ Development
- Topic: wxRadioButton event handler
- Replies: 1
- Views: 1164
wxRadioButton event handler
Hi all, I've got several wxRadioButtons on my form. I need to handle wxEVT_RADIOBUTTON for every of the buttons inside of one function. I created several IDs for my buttons: const wxWindowIDRef ID_NONEUSERAUTH = wxWindow::NewControlId(); const wxWindowIDRef ID_PASSUSERAUTH = wxWindow::NewControlId()...
- Thu Nov 22, 2018 4:26 pm
- Forum: C++ Development
- Topic: Best way to change dialog's content depending on user's choice
- Replies: 4
- Views: 950
Re: Best way to change dialog's content depending on user's choice
Ok, thank you, guys.
Will try to implement the solution with two sizers.
Will try to implement the solution with two sizers.
- Thu Nov 22, 2018 4:04 pm
- Forum: C++ Development
- Topic: Best way to change dialog's content depending on user's choice
- Replies: 4
- Views: 950
Re: Best way to change dialog's content depending on user's choice
Thanks for the answer. If we talk about "two sizers" solution, then how can I place these two sizers in the one position of external (parent) sizer? As a parent sizer I use wxBoxSizer(wxVERTICAL) and I don't know how to add two sizers on the one position...actually, I don't need to place t...
- Thu Nov 22, 2018 2:19 pm
- Forum: C++ Development
- Topic: Best way to change dialog's content depending on user's choice
- Replies: 4
- Views: 950
Best way to change dialog's content depending on user's choice
Hi, I've got dialog with table (lets say with two columns: name and type). Depending on the type of selected row I need to display options available for this type. If type of selected item is A I need to display following options: first_choice.png If the type is B then: second_choice.png So the ques...
- Mon Nov 12, 2018 3:05 pm
- Forum: C++ Development
- Topic: wxTextCtrl vertical text alignment
- Replies: 5
- Views: 1726
Re: wxTextCtrl vertical text alignment
The second scenario is exactly what I did: wxFont font = wxFont(10, wxFONTFAMILY_ROMAN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, "Tahoma"); m_idControl = new wxTextCtrl(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, FromDIP(wxSize(370, 30)), wxTE_READONLY); m_idControl ->SetFon...
- Mon Nov 12, 2018 1:07 pm
- Forum: C++ Development
- Topic: wxTextCtrl vertical text alignment
- Replies: 5
- Views: 1726
wxTextCtrl vertical text alignment
Hi, is it possible to align text vertically? Height of wxTextCtrl is bigger than font height. The text inside has top alignment and it looks very bad. I don't want to change the font of the text because increased font will stand out from other text. I use wxWidgets 3.1.1. Current OS is Windows, but ...