Search found 12401 matches

by doublemax
Thu Jul 19, 2018 8:50 pm
Forum: Component Writing
Topic: Dark skinned application that flashes when started
Replies: 10
Views: 56

Re: Dark skinned application that flashes when started

Was your EVT_ERASE_BACKGROUND event handler completely empty (that's how it should be) ? Anyway, with the current wxWidgets version it's best to call SetBackgroundStyle( wxBG_STYLE_PAINT ) in the constructor, then the background will not be erased and no EVT_ERASE_BACKGROUND event will be generated....
by doublemax
Thu Jul 19, 2018 7:45 pm
Forum: Component Writing
Topic: Dark skinned application that flashes when started
Replies: 10
Views: 56

Re: Dark skinned application that flashes when started

BTW: The installer fails with an error message when not started as administrator.
by doublemax
Thu Jul 19, 2018 7:20 pm
Forum: C++ Development
Topic: Confused about wxThreadHelper and how to use it
Replies: 1
Views: 17

Re: Confused about wxThreadHelper and how to use it

My first problem is that the "Bind" line does'nt compile, and i don't understand why. Try: Bind(wxEVT_MYTHREAD, &CommManager::OnSerialRxCompleted, this); should i pause the thread in his own event? I think that would defy the purpose of using a thread. But as you already suspected, th...
by doublemax
Thu Jul 19, 2018 6:57 pm
Forum: Component Writing
Topic: Dark skinned application that flashes when started
Replies: 10
Views: 56

Re: Dark skinned application that flashes when started

sensarea.png
sensarea.png (60.48 KiB) Viewed 20 times

I captured a video of the screen to see exactly what's going on. The white background is not in all areas, only in the icons and custom sliders. But not in the custom radio buttons. You should check if there is a difference in their drawing code.
by doublemax
Thu Jul 19, 2018 10:10 am
Forum: Component Writing
Topic: Dark skinned application that flashes when started
Replies: 10
Views: 56

Re: Dark skinned application that flashes when started

I thought you might have forgotten to catch the wxEVT_ERASE_BACKGROUND event or set the background style of the window to wxBG_STYLE_PAINT, but then you should have gotten a flicker on every redraw.

Can you build an executable and upload it somewhere so i can see the effect?
by doublemax
Thu Jul 19, 2018 10:04 am
Forum: Compiler / Linking / IDE Related
Topic: wxmsw31ud.lib [SOLVED]
Replies: 2
Views: 22

Re: wxmsw31ud.lib [SOLVED]

In a standard build there is no lib by that name. It might be the name of the lib for a monolithic build, but i've never done that, so i don't know what its name is.
by doublemax
Thu Jul 19, 2018 9:06 am
Forum: Component Writing
Topic: Dark skinned application that flashes when started
Replies: 10
Views: 56

Re: Dark skinned application that flashes when started

Does it only happen once at the start? What happens if you move a window from another application across your window? Does it look fine or does it flicker?
by doublemax
Wed Jul 18, 2018 5:36 pm
Forum: C++ Development
Topic: User sizable panel?
Replies: 8
Views: 83

Re: User sizable panel?

Unless you're building a GUI editor, i just can't think of any situation where it makes sense to resize an individual control. You can of course catch the mouse motion event, check if the mouse is near the edge of a control, change the mouse cursor and if the user clicks, you capture the mouse and r...
by doublemax
Wed Jul 18, 2018 7:50 am
Forum: C++ Development
Topic: wxScrolledWindow - scrollbar thumb position staying at the top always
Replies: 4
Views: 68

Re: wxScrolledWindow - scrollbar thumb position staying at the top always

First try calling Focus() on any of the newly added controls. This should scroll the control into view (i looked into the source code). If you need to calculate the scroll position yourself, you need: GetVirtualSize() - get virtual size of the window GetClientSize() - get size of the visual portion ...
by doublemax
Tue Jul 17, 2018 7:17 pm
Forum: C++ Development
Topic: wxScrolledWindow - scrollbar thumb position staying at the top always
Replies: 4
Views: 68

Re: wxScrolledWindow - scrollbar thumb position staying at the top always

What is it that I am missing here in order to update the scrollbar thumb position? Please help! Which part of the code you posted do you expect to scroll the window to the bottom? You could try to just Focus() one of the newly added controls. I think there is some code in wxWidgets that automatical...
by doublemax
Tue Jul 17, 2018 2:36 pm
Forum: C++ Development
Topic: wxDataViewListCtrl with bitmap column crashes at ~5000 rows
Replies: 3
Views: 44

Re: wxDataViewListCtrl with bitmap column crashes at ~5000 rows

wxBitmap bitmap(empty_xpm); The problem here is that you create a new bitmap from the source data each time. Move that line outside the loop, then the same bitmap data will be shared by all bitmaps and there shouldn't be a GDI handle problem. wxBitmap bitmap(empty_xpm); // Add rows. for (size_t i =...
by doublemax
Tue Jul 17, 2018 2:30 pm
Forum: C++ Development
Topic: wxStaticBitmap help text when mouse hovers
Replies: 5
Views: 50

Re: wxStaticBitmap help text when mouse hovers

I would set a long timeout, then the user can hide the tooltip by clicking outside.
by doublemax
Tue Jul 17, 2018 12:39 pm
Forum: C++ Development
Topic: wxStaticBitmap help text when mouse hovers
Replies: 5
Views: 50

Re: wxStaticBitmap help text when mouse hovers

thanx, the description says "and a native MSW version which can be only used with text controls"? I develop for Windows. I don't think that's true. I'm pretty sure i've used it for other controls already. Make a small test to confirm. Or is this what you meant with "trigger it yourse...
by doublemax
Tue Jul 17, 2018 11:51 am
Forum: C++ Development
Topic: wxStaticBitmap help text when mouse hovers
Replies: 5
Views: 50

Re: wxStaticBitmap help text when mouse hovers

wxRichToolTip is nice, but you have to trigger it yourself. You can't set it up so that it automatically appears like a normal tooltip.
http://docs.wxwidgets.org/trunk/classwx ... l_tip.html
by doublemax
Mon Jul 16, 2018 12:58 pm
Forum: C++ Development
Topic: DrawBitmap() fails on Memory DC
Replies: 4
Views: 52

Re: DrawBitmap() fails on Memory DC

Then i can only guess that the 1 bit depth is the problem. Check the bitmap after loading "Logo.bmp". Is it 1 or 24 bit depth? I believe the problem is either a) that wxMemoryDC doesn't work for 1 bit bitmaps or b) the loaded bitmap is 24 or 32 bit and drawing such a bitmap into a 1bit bit...

Go to advanced search