Search found 16375 matches

by doublemax
Fri Sep 24, 2021 5:07 pm
Forum: Compiler / Linking / IDE Related
Topic: Cygwin help
Replies: 3
Views: 90

Re: Cygwin help

I don't know if this 10+ year old post from Vadim is still relevant, but maybe it helps:
http://wxwidgets.blogspot.com/2011/06/c ... dgets.html
by doublemax
Fri Sep 24, 2021 4:04 pm
Forum: Compiler / Linking / IDE Related
Topic: Cygwin help
Replies: 3
Views: 90

Re: Cygwin help

Are you sure you need Cygwin? Or is it just about MinGW? (In which case you don't need Cygwin)
by doublemax
Fri Sep 24, 2021 3:20 pm
Forum: C++ Development
Topic: wxBitmapComboBox dropdown list doesn't fit screen
Replies: 6
Views: 248

Re: wxBitmapComboBox dropdown list doesn't fit screen

This seems related to the absolute screen size. I made the first test in a VM at 1440x900 where it showed the error. Now i tried at 1680x1050 and i get about the same result as PB.
by doublemax
Fri Sep 24, 2021 3:13 pm
Forum: C++ Development
Topic: wxTreeListCtrl column width uncontrollable
Replies: 4
Views: 193

Re: wxTreeListCtrl column width uncontrollable

Which platform and wxWidgets version are you using? When i take the "treelist" sample under Windows and change the column width in the following line to any value, it does exactly what it should. tree->AppendColumn("Component", wxCOL_WIDTH_AUTOSIZE, wxALIGN_LEFT, wxCOL_RESIZABLE | wxCOL_SORTABLE);
by doublemax
Fri Sep 24, 2021 7:15 am
Forum: C++ Development
Topic: wxBitmapComboBox dropdown list doesn't fit screen
Replies: 6
Views: 248

Re: wxBitmapComboBox dropdown list doesn't fit screen

The text is still not "crisp". However, i tested it and the problem still exists when the app is marked as "dpi-aware".

Please open a bugreport at http://trac.wxwidgets.org/

Thanks
widgets-hidpi.png
widgets-hidpi.png (75.48 KiB) Viewed 182 times
by doublemax
Fri Sep 24, 2021 12:40 am
Forum: C++ Development
Topic: Generate UI with xrc file, wxChoice control operation has error.
Replies: 2
Views: 102

Re: Generate UI with xrc file, wxChoice control operation has error.

I tested the code you posted on Trac and it worked for me.

Make sure you're linking the correct wx libraries and that they were built with the same configuration as your app.
by doublemax
Thu Sep 23, 2021 9:24 pm
Forum: C++ Development
Topic: wxBitmapComboBox dropdown list doesn't fit screen
Replies: 6
Views: 248

Re: wxBitmapComboBox dropdown list doesn't fit screen

As the text on your screenshot is blurry, i think you didn't build the sample as "dpi-aware" but your screen uses a font-scaling > 100%
by doublemax
Thu Sep 23, 2021 4:33 pm
Forum: C++ Development
Topic: 2 Panels with different sizers
Replies: 2
Views: 123

Re: 2 Panels with different sizers

Put both panels into so sizer, so that normally they would be displayed next to each other. Then just Hide() the one you don't want to be visible and Show() the other one. Another option would be to make the video panel a child of the image panel, so that it lies over it. Then Show() or Hide() just ...
by doublemax
Thu Sep 23, 2021 11:44 am
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 21
Views: 799

Re: Looking for a tile layout kind of widget.

Take the client width of the parent. Calculate how many tiles you can fit in a row
Calculate the x-offset of the first item, so that the tiles are centered.
Loop over all tiles and set their x- and y-position.

Set virtual size of the scrolledwindow.

Repeat when ever the client width changes.
by doublemax
Thu Sep 23, 2021 10:51 am
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 21
Views: 799

Re: Looking for a tile layout kind of widget.

apoorv569 wrote:
Thu Sep 23, 2021 9:44 am
doublemax wrote: No.

However, if all tiles have the same size, id would be relatively easy to calculate all positions yourself without any sizer.
So I can get rid of the WrapSizer completely and calculate the wrapping behavior and positioning manually? Like making
a custom sizer in a way?
Yes.
by doublemax
Wed Sep 22, 2021 2:16 pm
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 21
Views: 799

Re: Looking for a tile layout kind of widget.

Is it possible to always align/show all items in center?
No.

However, if all tiles have the same size, id would be relatively easy to calculate all positions yourself without any sizer.
by doublemax
Wed Sep 22, 2021 12:28 pm
Forum: C++ Development
Topic: wxTreeListCtrl column width uncontrollable
Replies: 4
Views: 193

Re: wxTreeListCtrl column width uncontrollable

What's the question, what do you want to achieve?
by doublemax
Wed Sep 22, 2021 12:26 pm
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 21
Views: 799

Re: Looking for a tile layout kind of widget.

Check out wxWrapSizer: https://docs.wxwidgets.org/trunk/classwx_wrap_sizer.html Oh! This is nice, this does fix the problem somewhat. I noticed that when I expand the window size, more stuff appears, but once I get expand it to the point that the scrollbar disappears, and then I make the window sma...
by doublemax
Wed Sep 22, 2021 8:07 am
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 21
Views: 799

Re: Looking for a tile layout kind of widget.

The problem I have now is, how do I limit the amount of buttons shown at once, and also the size of button. Because as of now, you can see the more buttons I add more they shrink and try to fit inside the sizer.
Check out wxWrapSizer: https://docs.wxwidgets.org/trunk/classw ... sizer.html
by doublemax
Tue Sep 21, 2021 5:25 am
Forum: C++ Development
Topic: XRC issue for some PNG graphics.
Replies: 4
Views: 287

Re: XRC issue for some PNG graphics.

I usually don't use XRC, so i don't know too much about it, but i know that the .xml file you posted is not an XML resource file. Check one of the .xrc files in <wxdir>/samples/xrc/rc/ to see how the look like. What you have is a binary converted to C source file. You include them and create a bitma...