Search found 115 matches

by deepti
Sat Aug 25, 2018 4:28 pm
Forum: Platform Related Issues
Topic: wxStaticBox on Mac shows "Title" even when label is set to empty
Replies: 5
Views: 706

Re: wxStaticBox on Mac shows "Title" even when label is set to empty

Thanks for your reply @PB.
I am using the 3.1.0 version of wxWidgets, and yet see this issue.
Should i be using the GIT repo of 3.1.0 for the fix ?
Please let me know
by deepti
Sat Aug 25, 2018 12:15 pm
Forum: Platform Related Issues
Topic: wxStaticBox on Mac shows "Title" even when label is set to empty
Replies: 5
Views: 706

wxStaticBox on Mac shows "Title" even when label is set to empty

Hi All,

wxStaticBox on Mac shows "Title" even when it's label is set to "".
But on Windows, this problem is not seen.
How can i get rid of this?

Please help!
by deepti
Fri Aug 24, 2018 6:22 pm
Forum: C++ Development
Topic: Dialog which is similar to a Compose mail template using wxWIdgets
Replies: 4
Views: 437

Dialog which is similar to a Compose mail template using wxWIdgets

Hi All, I am looking for a control which can give me a dialog which looks similar to the "Compose Mail" option. Attached is a screenshot of what I am looking for. Is it possible to get something like this in wxWidgets, without me having to add each of them individually to a wxDialog? Please help! co...
by deepti
Thu Aug 16, 2018 6:28 pm
Forum: C++ Development
Topic: wxValidator : Display error message when validation fails
Replies: 6
Views: 496

Re: wxValidator : Display error message when validation fails

Hi PB, There is this function at the end of the page in the link I sent: virtual bool wxValidator::Validate(wxWindow * parent) virtual This overridable function is called when the value in the associated window must be validated. Parameters parent The parent of the window associated with the validat...
by deepti
Thu Aug 16, 2018 6:08 pm
Forum: C++ Development
Topic: wxValidator : Display error message when validation fails
Replies: 6
Views: 496

Re: wxValidator : Display error message when validation fails

Hi PB, I found that from the documentation for wxValidator in this site : http://docs.wxwidgets.org/trunk/classwx_validator.html#abe48368bac7f540f0c20b1436e5c71af Using the if (!textCtrl->Validate() ) is not helping either. I need a message box to be displayed when the datatype of the value entered ...
by deepti
Thu Aug 16, 2018 10:31 am
Forum: C++ Development
Topic: wxValidator : Display error message when validation fails
Replies: 6
Views: 496

wxValidator : Display error message when validation fails

Hi, I am creating an instance of wxTextCtrl. However, depending on the type (text, integer or decimal), the wxTextCtrl instance should display a message when user enters a wrong value. For example, if the type is text, and the user enters a numeric value, a message should be displayed saying the val...
by deepti
Wed Aug 15, 2018 11:03 am
Forum: C++ Development
Topic: Freeing of memory used by controls
Replies: 2
Views: 238

Re: Freeing of memory used by controls

Thank you for the reply!!!
by deepti
Wed Aug 15, 2018 10:23 am
Forum: C++ Development
Topic: Freeing of memory used by controls
Replies: 2
Views: 238

Freeing of memory used by controls

Hi,

There is a dialog I've created which has all controls created using "new". I have read that just calling "Destroy()" when the dialog is closed is sufficient. And wxWidgets internally frees up memory taken up by all controls. Could you please confirm that this is the case?

Thank you!
by deepti
Wed Aug 15, 2018 10:17 am
Forum: C++ Development
Topic: wxCalendarCtrl - date not getting set correctly
Replies: 4
Views: 399

Re: wxCalendarCtrl - date not getting set correctly

Thanks for your response @PB. I noticed that and corrected the code to the following, and the asserts are now gone: int day, month, year; month = atoi(l_tokenizer[1].c_str()); year = atoi(l_tokenizer[0].c_str()); if (l_tokenizer_day.count() > 1) day = atoi(l_tokenizer_day[0].c_str()); wxDateTime dt(...
by deepti
Wed Aug 15, 2018 8:38 am
Forum: C++ Development
Topic: wxCalendarCtrl - date not getting set correctly
Replies: 4
Views: 399

wxCalendarCtrl - date not getting set correctly

I have the following piece of code which creates a wxCalendarCtrl and sets it with a given date coming in the form of a string. wxCalendarCtrl* date = new wxCalendarCtrl(win, ++m_controlCount, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, !wxCAL_SHOW_HOLIDAYS); wxDateTime::wxDateTime_t day, m...
by deepti
Fri Aug 10, 2018 10:50 am
Forum: C++ Development
Topic: wxNotebook with 4 pages - how to manage change in height?
Replies: 7
Views: 648

Re: wxNotebook with 4 pages - how to manage change in height?

@doublemax, thanks a lot for your response. Setting the proportion to 1 helped the listbox expand till the bottom. Isn't there anything we can do with the remaining controls at the right? Introducing an empty static text between the controls seems to be the only way to me..so that they are evenly sp...
by deepti
Fri Aug 10, 2018 6:06 am
Forum: C++ Development
Topic: wxNotebook with 4 pages - how to manage change in height?
Replies: 7
Views: 648

Re: wxNotebook with 4 pages - how to manage change in height?

Please see the screenshot below (sorry had to blur out some parts since its our official app). The arrow shows the extra space which has cropped up after adding new controls to another page. Is there a way the listbox and other controls at the right (static texts and buttons) can automatically place...
by deepti
Thu Aug 09, 2018 7:45 pm
Forum: C++ Development
Topic: wxNotebook with 4 pages - how to manage change in height?
Replies: 7
Views: 648

Re: wxNotebook with 4 pages - how to manage change in height?

Hi,

Yes, every page has an associated sizer. And the notebook itself also has a sizer associated.

Thank you!
by deepti
Thu Aug 09, 2018 7:16 pm
Forum: C++ Development
Topic: wxNotebook with 4 pages - how to manage change in height?
Replies: 7
Views: 648

wxNotebook with 4 pages - how to manage change in height?

I have an instance of "wxNotebook", with 4 pages in it. Previously, all 4 pages were adjusted to be of the same height by manipulating the height of the controls in each page. But now, I added a few more controls in one of the pages. This increased the height of the remaining 3 pages as well. But it...