Search found 293 matches

by Elmi
Thu Apr 19, 2018 12:13 pm
Forum: C++ Development
Topic: wxComboBox with different font in each line
Replies: 1
Views: 536

wxComboBox with different font in each line

Hi, I have a wxComboBox which works as font selector list. Means every entry in this combo box is the name of a font. Now I want to make this more user-friendly and not only show the name of the font but also how it looks like. So I want to set the font itself for each entry which would end up with ...
by Elmi
Mon Jun 12, 2017 10:59 am
Forum: Platform Related Issues
Topic: Win10: UserConfigDir not writable
Replies: 1
Views: 566

Win10: UserConfigDir not writable

Hi, my application saves some UI-data on program exit and therefore makes use of this path: wxString sPath=wxStandardPaths::Get().GetUserConfigDir()+wxFileName::GetPathSeparator()+_T(".myconfigdata"); This works fine with all operating systems but not with later versions of Windows 10. There this fi...
by Elmi
Thu Jun 08, 2017 8:39 am
Forum: C++ Development
Topic: wxWidgets does not use Windows theme
Replies: 3
Views: 1411

Re: wxWidgets does not use Windows theme

"Generate manifest" is enabled for all configurations. And the VS settings look the same like for all other applications that work well...
by Elmi
Thu Jun 08, 2017 7:50 am
Forum: C++ Development
Topic: wxWidgets does not use Windows theme
Replies: 3
Views: 1411

wxWidgets does not use Windows theme

Hi, I'm running my wxWidgets application under Windows 7. There all buttons are shown in this flat, rounded style of the standard Win 7 theme, at least when I run it from within Visual Studio. Now under some strange conditions (which I don't really understand) it happens that the Win7 theme is not u...
by Elmi
Fri May 12, 2017 11:10 am
Forum: C++ Development
Topic: Speed up filling a wxComboBox
Replies: 1
Views: 636

Speed up filling a wxComboBox

Hi, currently I add elements to a wxComboBox by calling Append(wxString). Now there is a scenario, where >2000 elements are added which is quite slow. So is there a possibility to do this is a faster way? E.g. by avoiding any updates in the wxComboBox until all calls to Append() have been done? Thanks
by Elmi
Thu Apr 13, 2017 12:43 pm
Forum: C++ Development
Topic: Logging functionality
Replies: 3
Views: 771

Logging functionality

Hi, I know about wxLog but I'm not sure if it is really what I want to have (at least from what I understand in the documentation this is more for logging wxWidgets-internal events). What I want to do: log events out of my application into a file. All log entries are done by code within the applicat...
by Elmi
Fri Apr 07, 2017 12:08 pm
Forum: C++ Development
Topic: Add wxPanel to a wxToolBar?
Replies: 2
Views: 633

Re: Add wxPanel to a wxToolBar?

You are of course right! MY mistake: I expected SetSizer() to be a member of wxPanel but since it is a member of wxWindow everything is fine. Thanks for kicking me into the right direction :-)
by Elmi
Fri Apr 07, 2017 11:50 am
Forum: C++ Development
Topic: Catch wxScrolledWindow events
Replies: 4
Views: 1225

Re: Catch wxScrolledWindow events

May be this answer is a bit late ... just in case somebody else has a similar problem:

wxScrolledWindow has a EVT_SCROLLWIN which itself can be assigned to a function void OnScroll(wxScrollWinEvent& event) that receives the scroll events.
by Elmi
Fri Apr 07, 2017 11:45 am
Forum: C++ Development
Topic: Add wxPanel to a wxToolBar?
Replies: 2
Views: 633

Add wxPanel to a wxToolBar?

Hello,

Is there a possibility to add a wxPanel (which itself contains a Layout and some control elements) to a wxToolBar? I only found some functions AddTool(), AddControl(),... which are not suitable for this.

Thanks!
by Elmi
Wed Jan 13, 2016 1:49 pm
Forum: Platform Related Issues
Topic: thread problem
Replies: 6
Views: 2807

Re: thread problem

What is "do_something()" - are you performing some GUI operations there?
by Elmi
Wed Jan 13, 2016 11:03 am
Forum: Platform Related Issues
Topic: Background colour of checkboxes with Windows 7
Replies: 0
Views: 1447

Background colour of checkboxes with Windows 7

Hi, when running my wxWidgets application under Windows 7 with no changes made to the system-UI, the checkboxes come with a white text background: https://picload.org/image/wdgwiii/wxbackground.png Other elements like static texts do not show this behaviour. So what do I have to do to let the checkb...
by Elmi
Fri Jun 19, 2015 1:15 pm
Forum: C++ Development
Topic: wxProgressDialog: hide or bring to background?
Replies: 2
Views: 730

Re: wxProgressDialog: hide or bring to background?

Yes, this did not let the message box appear on top of the progress dialogue...
by Elmi
Fri Jun 19, 2015 11:02 am
Forum: C++ Development
Topic: wxProgressDialog: hide or bring to background?
Replies: 2
Views: 730

wxProgressDialog: hide or bring to background?

Hi, I'm opening a wxProgressDialog to show a longer running operation is in progress. During this operation some errors may happen which are noticed with a message box. My problem: in Release build the message box appears below of the wxProgressDialog. So I added a call wxProgressDialog->Hide() befo...
by Elmi
Wed Jun 10, 2015 6:10 am
Forum: C++ Development
Topic: Get size/height of a font?
Replies: 2
Views: 947

Get size/height of a font?

Hi,

is there a possibility to get the height of a font outside of an OnPaint()-event? The only method I found to evaluate a fonts size is by using GetTextExtent() which requires an OnPaints()'s wxDC...

Thanks!
by Elmi
Tue Feb 10, 2015 12:14 pm
Forum: C++ Development
Topic: wxScrolledWindow: use maximum available height of screen
Replies: 1
Views: 728

wxScrolledWindow: use maximum available height of screen

Hi, I have a dialogue which can have a large height (elements in this dialogue are created dynamically). In some cases the necessary height of wxDialog could become larger than the available height on a screen. So I added a wxScrolledWindow that itself holds the panel where the elements are arranged...