Search found 16365 matches

by doublemax
Wed Sep 22, 2021 2:16 pm
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 17
Views: 434

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

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: 17
Views: 434

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: 17
Views: 434

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

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

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: 5
Views: 334

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

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: 5
Views: 334

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.
by doublemax
Sun Sep 19, 2021 5:34 pm
Forum: C++ Development
Topic: Programm crashes on Exit
Replies: 14
Views: 279

Re: Programm crashes on Exit

I have just removed the sizer completely and crash doesn't happen( I tried to reproduce 20 times) so I guess this solved the issue. For this project I can live without a sizer. There is no problem with sizers in general, there must have been a mistake in your sizer code. If you show the code you re...
by doublemax
Sun Sep 19, 2021 4:36 pm
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 17
Views: 434

Re: Looking for a tile layout kind of widget.

Is it also possible to use normal widgets like wxButton or wxTextCtrl for example, inside a wxHtmlWindow? Theoretically yes, but i requires jumping through some hoops and i would advise against it anyway. If you want to use standard controls, you could just build the layout using sizers, wxStaticBi...
by doublemax
Sun Sep 19, 2021 4:30 pm
Forum: C++ Development
Topic: Programm crashes on Exit
Replies: 14
Views: 279

Re: Programm crashes on Exit

The call stack points to the deletion of an item in a box sizer. If you don't put the datepickers into a sizer, i think the problem must be somewhere else.
by doublemax
Sun Sep 19, 2021 3:48 pm
Forum: C++ Development
Topic: Looking for a tile layout kind of widget.
Replies: 17
Views: 434

Re: Looking for a tile layout kind of widget.

There is nothing in wxWidgets that does this, and i also don't know any external component for it.

I'd use a wxHtmlWindow for that. Even with its limitations, it's sufficient for this function and lightweight compared to a wxWebView control.
by doublemax
Sat Sep 18, 2021 4:38 pm
Forum: C++ Development
Topic: paste date to wxDatePickerCtrl from clipboard
Replies: 5
Views: 512

Re: paste date to wxDatePickerCtrl from clipboard

Thanks it worked. I used IsMouseInWindow() to check if mouse is on the DatePicker. Is there a better way? For instance - the date is 05/06/2021. I click on "05"(it's highlighted) and move the mouse the other way. Is there a way to detect if "05" is highlighted? No. But why do you need that? If the ...
by doublemax
Sat Sep 18, 2021 11:12 am
Forum: C++ Development
Topic: paste date to wxDatePickerCtrl from clipboard
Replies: 5
Views: 512

Re: paste date to wxDatePickerCtrl from clipboard

It should be possible. Unfortunately wxDatePickerCtrl doesn't support wxClipboardTextEvent, so you'd have to handle that yourself: - catch wxEVT_CHAR key event on the wxDatePickerCtrl - in the event handler, check if CTRL-V was pressed - if yes, check if the clipboard contains any text https://docs....