Search found 16371 matches

by doublemax
Fri Sep 24, 2021 7:15 am
Forum: C++ Development
Topic: wxBitmapComboBox dropdown list doesn't fit screen
Replies: 3
Views: 78

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 12 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: 1
Views: 54

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: 3
Views: 78

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: 1
Views: 75

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: 604

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: 604

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: 604

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: 1
Views: 62

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: 604

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: 604

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: 170

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...
by doublemax
Mon Sep 20, 2021 9:19 pm
Forum: C++ Development
Topic: edit scrollbar and properties of list in wxComboCtrl
Replies: 3
Views: 361

Re: edit scrollbar and properties of list in wxComboCtrl

1. Change size of the textfield in the wxComboCtrl. 2. Change the alignment of the items in the dropdown wxListCtrl - allign to the left. 3. Disable the horizontal scrollbar and add a vertical scrollbar. 1) if the control is inside a sizer, the sizer takes control over the size. But you can still a...
by doublemax
Mon Sep 20, 2021 4:57 am
Forum: Platform Related Issues
Topic: Is it possible that DllMain returns an error ??
Replies: 9
Views: 459

Re: Is it possible that DllMain returns an error ??

What's the error code you get from GetLastError()?
by doublemax
Sun Sep 19, 2021 9:38 pm
Forum: General Development
Topic: Make date input field with separators
Replies: 2
Views: 285

Re: Make date input field with separators

Currently there is no control in wxWidgets that does this.

There is however an old proposal that never made it into the code, because it doesn't work properly under GTK:
http://trac.wxwidgets.org/ticket/14535

Allegedly it works under Windows (i've never tested it).
by doublemax
Sun Sep 19, 2021 9:15 pm
Forum: Platform Related Issues
Topic: Is it possible that DllMain returns an error ??
Replies: 9
Views: 459

Re: Is it possible that DllMain returns an error ??

Application_A - successfully loads MyDll.dll
Application_B - fails to load MyDll.dll
Do both apps also use wxWidgets?
Do they both link to the same CRT as the DLL?

Try https://www.dependencywalker.com to check if there is any dependency that fails.