Search found 141 matches

by coderrc
Mon Jun 04, 2018 5:22 pm
Forum: C++ Development
Topic: Manually calling an Event Handler Function?
Replies: 7
Views: 3464

Re: Manually calling an Event Handler Function?

for multi-thread signaling I use QueueEvent so that the UI functions get called from the UI thread. If its all on the same thread, then I will either call the function directly with a dummy parameter, or do what PB suggests. For me the choice depends on whether or not the code in question does any w...
by coderrc
Mon May 14, 2018 1:15 pm
Forum: C++ Development
Topic: Scroll checklistbox by dragging?
Replies: 5
Views: 1811

Re: Scroll checklistbox by dragging?

what I have done in the past is use the wxEVT_MOTION event, with the caveat that my system's touchscreen registers as a mouse. You may find that you need to bind the OnMotion function recursively starting with your parent container, otherwise if the drag starts on a text item, rather than the contai...
by coderrc
Fri Mar 23, 2018 11:40 am
Forum: Platform Related Issues
Topic: wxDirDialog looks strange on win7
Replies: 15
Views: 4191

Re: wxDirDialog looks strange on win7

Unfortunately it´ll be a pain in the as for me, as I am using wxSmith and mixing autogenerated stuff mixed with manual stuff can be problematic sometimes. protip: build out your ui first, then copy all the generated files into a new project using a standard IDE and work from there. That way if you ...
by coderrc
Fri Mar 23, 2018 11:35 am
Forum: C++ Development
Topic: standard of c++11
Replies: 9
Views: 3094

Re: standard of c++11

ONEEYEMAN wrote: But if I don't know which options were selected during wx compilation, then it will be hard to select exact same configuration.
isnt that why wx-config exists?
by coderrc
Wed Mar 21, 2018 11:28 am
Forum: C++ Development
Topic: Show/Hide controls
Replies: 7
Views: 4662

Re: Show/Hide controls

Hi, Nunki, The book you are talking abouit is seriously outdated. Just look at the year it was published. As much as I don't disagree, I still think there is some value to spending the 3 or 4 hours it takes to read the wxwidgets book when you are starting from zero wxwidgets experience. As old as i...
by coderrc
Wed Mar 14, 2018 6:24 pm
Forum: Open Discussion
Topic: Why do they switch from wxWidgets?
Replies: 10
Views: 25391

Re: Why do they switch from wxWidgets?

because c++ is a "difficult" programming language and as such requires a skilled programmer.

Python and JS can be used by anyone who knows how to type.
by coderrc
Tue Mar 06, 2018 1:28 pm
Forum: C++ Development
Topic: Reading file created with wxDataOutputStream::WriteString
Replies: 12
Views: 3825

Re: Reading file created with wxDataOutputStream::WriteString

Sorry I wasnt reading fully, just skimming. I guess what you want then would be something like std::stringstream ss; { std::ifstream file(filename, std::ifstream::in | std::ios::binary); ss << file.rdbuf(); } but i think your issue //try to read the rest of the file. const std::string s(std::istream...
by coderrc
Tue Mar 06, 2018 1:10 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling under Ubuntu 16.04 & wxDialUpManager
Replies: 14
Views: 3250

Re: Compiling under Ubuntu 16.04 & wxDialUpManager

are you running the program as a user that is a member of the groups "dip" and "dialout"?
by coderrc
Tue Mar 06, 2018 12:59 pm
Forum: C++ Development
Topic: Reading file created with wxDataOutputStream::WriteString
Replies: 12
Views: 3825

Re: Reading file created with wxDataOutputStream::WriteString

std::ifstream file(filename, std::ifstream::in | std::ios::binary)
klas.marcks wrote:how to read the binary file once the zip file is unpacked.
by coderrc
Wed Feb 28, 2018 1:26 pm
Forum: C++ Development
Topic: Connect problem
Replies: 4
Views: 1236

Re: Connect problem

the square ... is not a frame but a shape just on wxPaintDC, so the object itself can not perceive that someone is acting on it. Is my thought correct or wrong? you are correct. In this case, whatever the DC comes from (panel, frame, button, etc) will receive the event. What I would do is make an i...
by coderrc
Wed Feb 14, 2018 12:55 pm
Forum: Platform Related Issues
Topic: wxComboBox black panel
Replies: 5
Views: 2365

Re: wxComboBox black panel

I dont want to lead you down a rabbit hole, but my first guess would be that its a theme issue. Like maybe your current theme doesnt specify combobox colors so it defaults to a different theme's settings. the fastest way to test would be to try some other themes and see if it affects the combobob co...
by coderrc
Thu Feb 08, 2018 5:18 pm
Forum: C++ Development
Topic: Handling scrolling events in wxScrolled with wxWindow
Replies: 6
Views: 2454

Re: Handling scrolling events in wxScrolled with wxWindow

do you call event.skip in your handler?
by coderrc
Thu Feb 08, 2018 1:04 pm
Forum: General Development
Topic: Recommendation for c++ gui builder?
Replies: 10
Views: 11228

Re: Recommendation for c++ gui builder?

I have always used graph paper to do my initial layouts. Simple, easy-to-use, rarely crashes. ;) +1 for graph paper, even though I prefer engineering paper to graph paper. Either way, Its super handy to be able to just sketch out what you want and send that up the chain for design approval rather t...
by coderrc
Tue Jan 30, 2018 4:33 pm
Forum: General Development
Topic: Need wxSingleChoiceDialog using wxHtmlListBox?
Replies: 8
Views: 3641

Re: Need wxSingleChoiceDialog using wxHtmlListBox?

I'd probably put the "more meaningful description" as both a tooltip on mouse over and as a separate text field placed somewhere reasonable on the GUI upon selection of a test.
by coderrc
Mon Jan 29, 2018 6:49 pm
Forum: C++ Development
Topic: SetReadOnly of wxGrid turns it impossibly slow
Replies: 4
Views: 1383

Re: SetReadOnly of wxGrid turns it impossibly slow

does using wxWindowUpdateLocker
have any effect?