Search found 11711 matches

by doublemax
Sat Feb 24, 2018 7:05 pm
Forum: C++ Development
Topic: wxListCtrl getting content of cell via wxListEvent
Replies: 1
Views: 7

Re: wxListCtrl getting content of cell via wxListEvent

http://docs.wxwidgets.org/trunk/classwx_list_ctrl.html#ac346d7aa18722fb54580d4c4ed5cf113 However, according to that documentation, the column is only returned under Window. Under other platforms you could try to use the mouse position and iterate over the column widths to determine over which column...
by doublemax
Sat Feb 24, 2018 4:34 pm
Forum: C++ Development
Topic: When drag the sash line of wxSplitterWindow, the target line has offset
Replies: 12
Views: 114

Re: When drag the sash line of wxSplitterWindow, the target line has offset

Is it possible that you're running on a HiDPI screen, but your application is not marked as dpi-aware? The problematic method is most likely wxSplitterWindow::DrawSashTracker(), which uses wxScreenDC to write directly onto the screen. Maybe the conversion from client coordinates to screen coordinate...
by doublemax
Sat Feb 24, 2018 2:39 pm
Forum: C++ Development
Topic: wxBitmap from image array? [SOLVED]
Replies: 6
Views: 3397

Re: wxBitmap from image array? [SOLVED]

gtafan wrote:Is there a way to get rgba values back from wxBitmap?
The easiest way is to convert it to a wxImage.

Otherwise, there is raw bitmap access:
http://docs.wxwidgets.org/trunk/classwx_pixel_data.html
by doublemax
Sat Feb 24, 2018 11:24 am
Forum: C++ Development
Topic: When drag the sash line of wxSplitterWindow, the target line has offset
Replies: 12
Views: 114

Re: When drag the sash line of wxSplitterWindow, the target line has offset

Please add this information to your post on the mailing list and/or open a ticket for it.
by doublemax
Sat Feb 24, 2018 10:49 am
Forum: C++ Development
Topic: When drag the sash line of wxSplitterWindow, the target line has offset
Replies: 12
Views: 114

Re: When drag the sash line of wxSplitterWindow, the target line has offset

I think the checkbox "Enable Desktop composition" in the performance options is what triggers it.

When i switch that on, i don't get the same redraw issue as you, but the whole redraw becomes slow and flickery.
by doublemax
Sat Feb 24, 2018 9:38 am
Forum: C++ Development
Topic: wxGridBagSizer error: AddGrowableCol(): invalid column index
Replies: 1
Views: 16

Re: wxGridBagSizer error: AddGrowableCol(): invalid column index

Try calling AddGrowableCol() after all elements have been inserted.
by doublemax
Sat Feb 24, 2018 9:36 am
Forum: C++ Development
Topic: When drag the sash line of wxSplitterWindow, the target line has offset
Replies: 12
Views: 114

Re: When drag the sash line of wxSplitterWindow, the target line has offset

Very strange. Even if i comment out the wxSP_LIVE_UPDATE, i don't see that problem with any wx version.

Can you test this on another PC?
by doublemax
Sat Feb 24, 2018 9:34 am
Forum: C++ Development
Topic: Not able to shrink window
Replies: 9
Views: 128

Re: Not able to shrink window

Victory wrote:
I don't think it makes sense for a bitmap button to be smaller than the bitmap.


Can you please tell the reasoning behind that?.

If the button is smaller than the bitmap, the bitmap will be cut off.

You can still call SetMinSize() on the button to override that.
by doublemax
Fri Feb 23, 2018 6:41 pm
Forum: C++ Development
Topic: one UI language, another internal
Replies: 3
Views: 31

Re: one UI language, another internal

Thanx, might there be a problem with: Only one wxTranslations instance is active at a time ?? I've never tried it, but i think you can still have another instance that you don't mark as active with Set(). You'll just have to call wxTranslations::GetTranslatedString() manually for each string you wa...
by doublemax
Fri Feb 23, 2018 5:14 pm
Forum: C++ Development
Topic: one UI language, another internal
Replies: 3
Views: 31

Re: one UI language, another internal

Can't you just create another instance of wxTranslations that you manage yourself?

http://docs.wxwidgets.org/trunk/classwx ... tions.html
by doublemax
Fri Feb 23, 2018 5:10 pm
Forum: C++ Development
Topic: When drag the sash line of wxSplitterWindow, the target line has offset
Replies: 12
Views: 114

Re: When drag the sash line of wxSplitterWindow, the target line has offset

Everything on the Wiki should be taken with a grain of salt, many things are heavily outdated.

Try with the "splitter" sample that comes with wxWidgets, that's the only valid point of reference.
by doublemax
Fri Feb 23, 2018 8:28 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidget 3.0 linking error while compiling my project in DEBUG mode
Replies: 4
Views: 41

Re: wxWidget 3.0 linking error while compiling my project in DEBUG mode

I can't tell you exactly where, but there must be a configuration mismatch between your project and wxWidgets. Can you build any of the samples that come with wxWIdgets, e.g. the "minimal" sample? If yes, compare your project settings with the ones if the sample. Especially check the "...
by doublemax
Fri Feb 23, 2018 8:23 am
Forum: C++ Development
Topic: Not able to shrink window
Replies: 9
Views: 128

Re: Not able to shrink window

But, with the button object returning this cached size of (49, 43), the button refuses to shrink and everything else takes proportionately big space. Is this size correct or not? I don't think it makes sense for a bitmap button to be smaller than the bitmap. And i don't understand how this can have...
by doublemax
Fri Feb 23, 2018 12:02 am
Forum: C++ Development
Topic: Event fails to call event function [SOLVED]
Replies: 3
Views: 55

Re: Event fails to call event function [SOLVED]

BTW, if I use wxQueueEvent() instead of wxPostEvent(), it crashes. Why is this? Because wxQueueEvent expects a pointer to an event that was created on the heap and deletes it afterwards. (As stated in the documentation...) http://docs.wxwidgets.org/trunk/group__group__funcmacro__events.html#gae921d...
by doublemax
Thu Feb 22, 2018 9:57 pm
Forum: C++ Development
Topic: Event fails to call event function [SOLVED]
Replies: 3
Views: 55

Re: Event fails to call event function [SOLVED]

I only took a quick glance at the code, my first guess would be: Derive EditWindowEvent from wxCommandEvent instead of wxEvent, because only those propagate upwards in the window hierarchy.

Go to advanced search