Search found 151 matches

by tomay3000
Mon Oct 21, 2019 12:07 pm
Forum: General Development
Topic: Is there any chance that wxWidgets will use its own renderer to draw its own controls like Qt in the future!?
Replies: 1
Views: 69

Is there any chance that wxWidgets will use its own renderer to draw its own controls like Qt in the future!?

Hello,
I was wondering if wxWidgets will use its own renderer to draw its own controls like Qt in the future!?

TIA.
by tomay3000
Sat Oct 19, 2019 8:18 pm
Forum: C++ Development
Topic: How to use key combination to trigger some hidden functions?
Replies: 3
Views: 75

Re: How to use key combination to trigger some hidden functions?

Good,
I am gonna try it.

What about simple key combination like CTRL-SHIFT-D, should I use some accelerator class (I think - which I have never used before) or what else!?

TIA.
by tomay3000
Fri Oct 18, 2019 11:48 pm
Forum: C++ Development
Topic: How to use key combination to trigger some hidden functions?
Replies: 3
Views: 75

How to use key combination to trigger some hidden functions?

Hello,
I need to know how to use key combination to trigger some hidden functions (using only keyboard keys).
When the user press the exact sequence of keyboard keys, a message box will appear telling him if he wants to activate this specific feature (like Debugging mode for example).

TIA.
by tomay3000
Wed Oct 09, 2019 6:01 pm
Forum: Announcements and Discoveries
Topic: [ANN] wxSerialPort is born
Replies: 0
Views: 181

[ANN] wxSerialPort is born

Hello, I would like to announce that I have finished creating wxSerialPort which is a wrapper around the boost-asio serial_port . This library is composed of two files: serialport.h and serialport.cpp . It encapsulates boost::asio::serial_port and adds timeout support and other more useful functions...
by tomay3000
Fri Sep 13, 2019 10:34 pm
Forum: C++ Development
Topic: What is the correct way of converting a wxString?
Replies: 4
Views: 115

Re: What is the correct way of converting a wxString?

strBuf is indeed a wxString used as container, I have updated my question. And yes I am receiving data from an external device. And only these conversions worked for me (notice the cast), any other conversion without any cast didn't work wxString str5((const char *)strBuf.wc_str()); wxString str6((...
by tomay3000
Fri Sep 13, 2019 8:03 pm
Forum: C++ Development
Topic: What is the correct way of converting a wxString?
Replies: 4
Views: 115

What is the correct way of converting a wxString?

Hello, I have written a simple Serial Port wrapper that takes many read function overloads, one of these overloads takes a wxString as parameter. I have learned that I should pass the writable buffer of the wxString like this: wxString strBuf('\0', 1024); wxStringBuffer(strBuf, strBuf.size()); This ...
by tomay3000
Sun Sep 01, 2019 11:00 pm
Forum: C++ Development
Topic: How to compare two wxBitmaps?
Replies: 1
Views: 84

How to compare two wxBitmaps?

Hello,
How to compare two wxBitmaps, I mean not pixel by pixel of course, but just the objects, because I can't find any == or != operators in the documentation.

TIA.
by tomay3000
Tue Aug 27, 2019 9:58 pm
Forum: C++ Development
Topic: How to prevent a wxButton from gaining the focus by pressing the TAB from the keyboard?
Replies: 3
Views: 104

How to prevent a wxButton from gaining the focus by pressing the TAB from the keyboard?

Hello,
As asked in the title, how to do so, or simply remove this wxButton from the tab navigation order at all, and allow the focus to be set only by a mouse click.

TIA.
by tomay3000
Sun Aug 18, 2019 12:43 pm
Forum: Platform Related Issues
Topic: [wxMSW][3.1.3] How to Set a wxComboBox item data without getting the wxEVT_TEXT event to be sent?
Replies: 5
Views: 120

Re: [wxMSW][3.1.3] How to Set a wxComboBox item data without getting the wxEVT_TEXT event to be sent?

You solution gave me an idea: May be I can do it like setting a bool member variable like bool m_bSetting to true before Set() and false after it, using the help of wxCriticalSectionLocker or wxMutexLocker and make an if (m_bSetting) check before I call Set() . I haven't tried it yet, but if it won'...
by tomay3000
Sun Aug 18, 2019 9:58 am
Forum: Platform Related Issues
Topic: [wxMSW][3.1.3] How to Set a wxComboBox item data without getting the wxEVT_TEXT event to be sent?
Replies: 5
Views: 120

Re: [wxMSW][3.1.3] How to Set a wxComboBox item data without getting the wxEVT_TEXT event to be sent?

When I said: Set(), I was talking about wxItemContainer::Set() not wxTextEntry::SetValue(), that is the item data "wxArrayString" of the list box associated with the combobox.

For some reason wxEVT_TEXT is sent if I call wxItemContainer::Set(), and I don't like that behaviour.
by tomay3000
Sun Aug 18, 2019 9:46 am
Forum: Platform Related Issues
Topic: [wxMSW][3.1.3] How to Set a wxComboBox item data without getting the wxEVT_TEXT event to be sent?
Replies: 5
Views: 120

[wxMSW][3.1.3] How to Set a wxComboBox item data without getting the wxEVT_TEXT event to be sent?

Hello, I have subclassed wxComboBox to create my own vesion " wxComboBoxEx " that filters the content when the combobox text changes. The problem is that, when I call Set() on the combobox within wxEVT_TEXT handler, it sends the wxEVT_TEXT again and I found myself in a recursive loop. I want to Set(...
by tomay3000
Thu Aug 01, 2019 10:56 pm
Forum: C++ Development
Topic: How to convert an int to a base 2 (binary) wxString?
Replies: 2
Views: 100

Re: How to convert an int to a base 2 (binary) wxString?

I found out that I can do it via std::bitset

Thank you for the hint anyway.
by tomay3000
Thu Aug 01, 2019 3:15 pm
Forum: C++ Development
Topic: How to convert an int to a base 2 (binary) wxString?
Replies: 2
Views: 100

How to convert an int to a base 2 (binary) wxString?

Hello,
I could not find any wx function that converts an int to a base 2 (binary) wxString.

TIA.