Search found 1604 matches

by catalin
Tue May 12, 2020 11:09 pm
Forum: C++ Development
Topic: Using wxWidgets with custom main function
Replies: 3
Views: 1420

Re: Using wxWidgets with custom main function

You probably just need the call to

Code: Select all

    wxApp::SetInstance(pApp);
by catalin
Mon May 11, 2020 11:48 am
Forum: C++ Development
Topic: how to UnDo SetBackgroundColour()
Replies: 2
Views: 829

Re: how to UnDo SetBackgroundColour()

RTFM: "pass wxNullColour to reset to the default colour".
by catalin
Tue May 05, 2020 2:20 pm
Forum: C++ Development
Topic: Button hover effect
Replies: 3
Views: 920

Re: Button hover effect

Sure, you can do that.
Whether it is a good idea, worth the time and effort -- that can be another topic.
by catalin
Tue May 05, 2020 4:09 am
Forum: C++ Development
Topic: Window doesn't show child widgets
Replies: 2
Views: 968

Re: Window doesn't show child widgets

Try to avoid links and include some minimal code in the post (see the code tags too).
by catalin
Tue May 05, 2020 2:55 am
Forum: C++ Development
Topic: Why are my wxButtons always flat
Replies: 12
Views: 2137

Re: Why are my wxButtons always flat

Ged 512 wrote: Tue May 05, 2020 1:38 am AXIAL0->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_SCROLLBAR));

What do I do wrong?
This is what you are doing wrong.
By setting a custom background color you lose the native look (any gradient / 3D effect that native drawing had). Just don't do it.
by catalin
Tue May 05, 2020 2:49 am
Forum: C++ Development
Topic: Button hover effect
Replies: 3
Views: 920

Re: Button hover effect

how can I set some "transition" ? In particular I want to "Hover changes" to be applied gradually. Is it even possible ? That is not possible using wxButton. You can create your custom widget and paint it yourself, but that will not look native. https://wiki.wxwidgets.org/Painti...
by catalin
Sun May 03, 2020 11:25 pm
Forum: C++ Development
Topic: Two more wxTextCtrl crash when close
Replies: 4
Views: 917

Re: Two more wxTextCtrl crash when close

can wxFrame has only one wxTextCtrl? No OnClose or OnQuit in frame just call Destroy() This could be your problem. Calls Destroy() on what? the frame, a text ctrl, all of them? You should show more code, or even better, try modifying one of the samples and see if you get the same error there. You c...
by catalin
Thu Apr 30, 2020 12:21 pm
Forum: General Forum Issues
Topic: How to change my nickname?
Replies: 1
Views: 15919

Re: How to change my nickname?

Apparently it can be edited from the administration screen. So one option is to send a private message to a moderator, with your new nickname.
Unfortunately I couldn't find any other way myself. Let's wait just a bit longer and see if someone else has a better idea.
by catalin
Thu Apr 30, 2020 9:09 am
Forum: Platform Related Issues
Topic: Support to Dark Mode on Windows 10.
Replies: 12
Views: 15520

Re: Support to Dark Mode on Windows 10.

Hi and welcome, Maybe "Platform Related Issues" would have been a better category, but don't worry about it, any moderator can move it at any time. I don't know much about dark mode in Windows, but as far as I remember, it does not apply in any way to win32 API, which was used to implement...
by catalin
Wed Apr 29, 2020 8:11 pm
Forum: C++ Development
Topic: Best way to display updateable text
Replies: 3
Views: 706

Re: Best way to display updateable text

Do try wxStaticText. Static is rather because it is not editable, but programmatically you can change its value.
Another option is a read-only wxTextCtrl.
by catalin
Mon Apr 20, 2020 9:00 am
Forum: C++ Development
Topic: wxListEvent
Replies: 3
Views: 902

Re: wxListEvent

YuMERA wrote: Sun Apr 19, 2020 11:53 pmHow I know what is mouse button is pressed (LEFT or RIGHT)
You probably need wxGetMouseState(), then check for left/right button state.
by catalin
Sat Apr 18, 2020 5:52 pm
Forum: C++ Development
Topic: How to do a basic GUI with two panels
Replies: 10
Views: 2561

Re: How to do a basic GUI with two panels

Is there a good tutorial on how to populate the list box? Or some sample code? Did you look at the code in `widgets` sample? If they each take half the horizontal space that is good enough for this round. The properties on the list box don't seem to have that setting and the parent boxsizer, which ...
by catalin
Sat Apr 18, 2020 5:05 pm
Forum: C++ Development
Topic: wxColourPickerCtrl Showing Color When It is wxNullColor
Replies: 5
Views: 887

Re: wxColourPickerCtrl Showing Color When It is wxNullColor

I found this to be rather misleading. I wonder when explicitly a wxNullColor as an argument is provided showing color as black (the default color) can be considered as a bug? What else would you expect it to show then? Mind that providing a hole in the screen so that it will actually show the wall ...