Search found 16361 matches

by doublemax
Tue Sep 21, 2021 5:25 am
Forum: C++ Development
Topic: XRC issue for some PNG graphics.
Replies: 4
Views: 92

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

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

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

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

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

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: 9
Views: 210

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

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: 9
Views: 210

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

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

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....
by doublemax
Fri Sep 17, 2021 7:39 am
Forum: C++ Development
Topic: Calling Non-Wx Object
Replies: 1
Views: 161

Re: Calling Non-Wx Object

In general the way you did it is just fine. The only issue could arise if the method you call takes a long time to execute, because that would block the GUI. In that case you should move the processing to a different thread. By the way, I've searched for info on scope in WxWidgets and haven't found ...
by doublemax
Thu Sep 16, 2021 11:34 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 12
Views: 389

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

Riser wrote:
Thu Sep 16, 2021 11:00 pm
Nope, it's there.
With adding i didn't mean copying the file into the folder, i meant adding the source file to the project so that it gets compiled and linked. If the wxChartViewer constructor is not found, that's the only explanation i can think of.
by doublemax
Thu Sep 16, 2021 10:27 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 12
Views: 389

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

It looks like you only forgot to add wxchartviewer.cpp to the project.
by doublemax
Thu Sep 16, 2021 7:23 am
Forum: C++ Development
Topic: Clipboard<->UI best practices
Replies: 1
Views: 162

Re: Clipboard<->UI best practices

https://docs.wxwidgets.org/trunk/classw ... event.html

I'm usually not a big friend of wxUpdateUIEvent , because it can slow down an application significantly if you have many GUI elements. But your case seems perfect for it.