Search found 7 matches

by arnoldemu
Thu Feb 23, 2017 8:23 pm
Forum: C++ Development
Topic: wxCmdLineParser - repeated options and parameters
Replies: 1
Views: 780

wxCmdLineParser - repeated options and parameters

Hi, I hope somebody can help me. I would like an option or a parameter to appear multiple times on the command-line for a program I am writing. This is in addition to being able to give a list of files to operate on. I am not sure wxCmdLineParser will support it. 1. I can define a parameter to appea...
by arnoldemu
Mon Oct 17, 2016 7:15 am
Forum: General Development
Topic: wxwidgets and sdl/sdl2 (linux and windows) - no sdl events
Replies: 6
Views: 4853

Re: wxwidgets and sdl/sdl2 (linux and windows) - no sdl events

Hi, Do you call "event.Skip()" in you keyboard handler? You need the keyboard event to be propagated up the chain and in the end let the system handle them. Thank you. No I don't. I will try that. For embedding SDL on wxMac and wxLinux I currently use wxWidgets for keyboard and joystick e...
by arnoldemu
Mon Oct 17, 2016 7:10 am
Forum: C++ Development
Topic: wxTextCtrl "hard" maximum
Replies: 1
Views: 1225

wxTextCtrl "hard" maximum

Hi, I can set a max text length on a wxTextCtrl with SetMaxLength. I see this as setting a "soft" maximum limit - i.e. the limit defined by the wxTextCtrl itself and which I can control directly. Some OSes have a maximum supported "hard" limit for a wxTextCtrl. e.g. in the docume...
by arnoldemu
Mon Oct 17, 2016 7:05 am
Forum: General Development
Topic: singleton modeless dialog
Replies: 1
Views: 1158

singleton modeless dialog

Hi, I have a modeless dialog which is also a singleton. The class declaration: class CAutoTypeDialog : public wxDialog { private: CAutoTypeDialog(wxWindow* parent); ~CAutoTypeDialog(); static CAutoTypeDialog *m_pInstance; public: // creator static CAutoTypeDialog *CreateInstance(wxWindow *pParent) {...
by arnoldemu
Tue Dec 30, 2014 4:11 pm
Forum: C++ Development
Topic: transparency in toolbar buttons (windows and linux)
Replies: 2
Views: 2522

Re: transparency in toolbar buttons (windows and linux)

I thought I had tried an alpha channel before but it seems I didn't. I have added an alpha channel and now it's working in linux. :) For others this is the information about my setup: Details: RGB PNG with alpha channel. Works :) Toolbar defined in XRC generated from a wxFormbuilder project: e.g. <o...
by arnoldemu
Mon Dec 29, 2014 1:22 pm
Forum: C++ Development
Topic: transparency in toolbar buttons (windows and linux)
Replies: 2
Views: 2522

transparency in toolbar buttons (windows and linux)

Hi, I am using wxgtk under Linux and wxmsw under windows. I have some buttons on a toolbar that have images. I want to set a mask or transparency colour so that the background of the icons is transparent and the colour of the toolbar shows through. I can't work out how to do this successfully for bo...
by arnoldemu
Mon Dec 29, 2014 1:18 pm
Forum: General Development
Topic: wxwidgets and sdl/sdl2 (linux and windows) - no sdl events
Replies: 6
Views: 4853

wxwidgets and sdl/sdl2 (linux and windows) - no sdl events

Hi, I am trying to use wxwidgets and sdl (or sdl2) together. I am using sdl events. I poll the events during the idle time of my app and handle them (I am specificaly interested in keyboard and joystick input). If the sdl/sdl2 window is created separately then all is good on Linux and windows. sdl o...