Search found 13538 matches

by doublemax
Sun Jun 16, 2019 6:48 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 28
Views: 249

Re: Help? GTK events do/dont's for dummies (nothing works)

Can you provide a minimal compilable sample that uses your component?
by doublemax
Fri Jun 14, 2019 8:40 pm
Forum: C++ Development
Topic: wxDC / antialiasing
Replies: 2
Views: 41

Re: wxDC / antialiasing

For antialiased drawing you need to use wxGraphicsContext: https://docs.wxwidgets.org/trunk/classwx_graphics_context.html Fortunately there is also a wxGCDC which provides a wxDC compatible API: https://docs.wxwidgets.org/trunk/classwx_g_c_d_c.html However, drawing text should be antialiased even wh...
by doublemax
Fri Jun 14, 2019 8:20 am
Forum: Platform Related Issues
Topic: multiple dialog windows stay open on remote access
Replies: 9
Views: 114

Re: multiple dialog windows stay open on remote access

In case I/we can narrow down the issue further, where are to find those mailing lists and how is one possible to subscribe there?
https://groups.google.com/forum/#!forum/wx-users
by doublemax
Fri Jun 14, 2019 5:06 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 28
Views: 249

Re: Help? GTK events do/dont's for dummies (nothing works)

Okay, I respected you, but you have nothing at all to back that up with
Except that's i'm using wx for 15 years and that you're the only person who has problems like this.
by doublemax
Fri Jun 14, 2019 5:02 am
Forum: Compiler / Linking / IDE Related
Topic: cannot find -lwxmsw31u_core and -lwxbase31u build errors code blocks with
Replies: 13
Views: 126

Re: cannot find -lwxmsw31u_core and -lwxbase31u build errors code blocks with

If a missing reference doesn't start with "wx" and you're working under Windows, there's a good chance it's a Windows function. So it's always worth a try to Google "msdn GetThemeColor". In this particular case, the first hit would have been: https://docs.microsoft.com/en-us/windows/desktop/api/uxth...
by doublemax
Fri Jun 14, 2019 4:58 am
Forum: Component Writing
Topic: Is it possible to show autocomplete dropdown manually
Replies: 4
Views: 71

Re: Is it possible to show autocomplete dropdown manually

I can get auto completions including Chinese characters by custom wxtextcomplete, but the dropdown doesn't show automatically.
If it doesn't show automatically (which an autocomplete usually does), when exactly does it show?

What platform are you testing on?
by doublemax
Fri Jun 14, 2019 4:55 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 28
Views: 249

Re: Help? GTK events do/dont's for dummies (nothing works)

I expected it to be more mature (more tested) than it is.
wxWidgets is very mature and works well. It's just not suited for your purpose. Just like a fork doesn't work well to eat soup.
by doublemax
Thu Jun 13, 2019 5:45 pm
Forum: C++ Development
Topic: Foreground color ignored using wxGraphicsContext
Replies: 7
Views: 60

Re: Foreground color ignored using wxGraphicsContext

FWIW, i think nobody should use wxClientDC for drawing. Ever.

What about a "normal" wxPaintDC?
by doublemax
Thu Jun 13, 2019 5:43 pm
Forum: Compiler / Linking / IDE Related
Topic: cannot find -lwxmsw31u_core and -lwxbase31u build errors code blocks with
Replies: 13
Views: 126

Re: cannot find -lwxmsw31u_core and -lwxbase31u build errors code blocks with

These are all linker errors (not compiler errors), which means you have gotten very far already ;)

This should be the final step:
viewtopic.php?p=183340#p183340
by doublemax
Thu Jun 13, 2019 5:01 pm
Forum: C++ Development
Topic: Foreground color ignored using wxGraphicsContext
Replies: 7
Views: 60

Re: Foreground color ignored using wxGraphicsContext

What happens if you comment out the two stipple-related calls? Does it draw with the correct color? I think the bitmap does override the color if it doesn't have a mask. In that case just the bitmap is used.

If that's not it, try to create a minimal, compilable sample that shows the issue.
by doublemax
Thu Jun 13, 2019 4:50 pm
Forum: C++ Development
Topic: Foreground color ignored using wxGraphicsContext
Replies: 7
Views: 60

Re: Foreground color ignored using wxGraphicsContext

Is there a dc->SetBrush(brush) following? Otherwise this won't do anything.
by doublemax
Thu Jun 13, 2019 4:48 pm
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 28
Views: 249

Re: Help? GTK events do/dont's for dummies (nothing works)

It's not an application. It's a module, like wxWidgets is itself. Actually, this source file is an emulation of GLUT, which is itself a module, that provides a service. I don't think wxWidgets is suitable for that. wxWidgets only purpose is to write applications, it's not intended to write modules ...
by doublemax
Thu Jun 13, 2019 4:45 pm
Forum: Component Writing
Topic: Is it possible to show autocomplete dropdown manually
Replies: 4
Views: 71

Re: Is it possible to show autocomplete dropdown manually

I am trying to write a custom autocomplete combobox
Why? What are you missing from wxWidgets's built-in autocomplete functionality?

https://docs.wxwidgets.org/trunk/classw ... entry.html
Check the different wxTextEntry::AutoComplete(...) methods
by doublemax
Thu Jun 13, 2019 4:34 pm
Forum: C++ Development
Topic: Foreground color ignored using wxGraphicsContext
Replies: 7
Views: 60

Re: Foreground color ignored using wxGraphicsContext

Which method do you use to set the foreground color? I only see wxDC::SetTextForeground which is only relevant for text.

For filled polygons the brush is what determines the color.
by doublemax
Thu Jun 13, 2019 5:19 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 28
Views: 249

Re: Help? GTK events do/dont's for dummies (nothing works)

At least under Windows you must create a wxPaintDC in a paint event handler.

The rest of the code is so different from any "normal" application, it's very hard to follow and to spot potential problems.