Search found 63 matches

by Big Muscle
Sun Mar 24, 2019 2:48 pm
Forum: C++ Development
Topic: How to manually validate wxTextCtrl value
Replies: 15
Views: 333

Re: How to manually validate wxTextCtrl value

Actually, it is a solution. Just the one you do not like. ;) Really not. If we have wxWidgets with wxTextCtrl and wxValidate support then "copy all wxWidgets internal code and re-implement your own validation" is really not the solution, but rather some kind of hack. Hi, I wasn't talkoing about re-...
by Big Muscle
Fri Mar 22, 2019 6:07 pm
Forum: C++ Development
Topic: How to manually validate wxTextCtrl value
Replies: 15
Views: 333

Re: How to manually validate wxTextCtrl value

Nope, it's not solution. What's the point in recopying wxWidgets' internal code into my application to make wxWidgets work correctly? :roll:
by Big Muscle
Wed Mar 20, 2019 8:48 am
Forum: C++ Development
Topic: How to manually validate wxTextCtrl value
Replies: 15
Views: 333

Re: How to manually validate wxTextCtrl value

When user types in the control, it does not call Validate() at all. There is OnChar event which is invoked on every key press and it is either allowed or rejected.
by Big Muscle
Tue Mar 19, 2019 10:46 am
Forum: C++ Development
Topic: How to manually validate wxTextCtrl value
Replies: 15
Views: 333

Re: How to manually validate wxTextCtrl value

Currently, I need it for numeric validation, so I use "wxFloatingPointValidator<float> val(digits, NULL, wxNUM_VAL_ZERO_AS_BLANK);". If I call your code in the debugger: wxValidator* validator = m_textCtrl->GetValidator(); if ( validator ) validator->Validate(m_textCtrl); it jumps into class WXDLLIM...
by Big Muscle
Tue Mar 19, 2019 10:04 am
Forum: C++ Development
Topic: How to manually validate wxTextCtrl value
Replies: 15
Views: 333

How to manually validate wxTextCtrl value

Hello, I have a wxTextCtrl control with wxValidator. When user is typing on the keyboard, the validation is correctly processed on each key press and it does not allow him to enter invalid values. But when I call SetValue/WriteText functions, the validation is not processed and it allows setting any...
by Big Muscle
Thu Feb 28, 2019 12:25 pm
Forum: Platform Related Issues
Topic: GTK: wxButton appearance in wxScrolled
Replies: 13
Views: 597

Re: GTK: wxButton appearance in wxScrolled

I will not create new topic about it, but I noticed this problem does not apply to buttons only. There is some more global theming problem with wxScrolled. For example, applying wxBORDER_* flag on wxScrolled<wxPanel> results in obsolete border appearance which does not correspond to used theme. Norm...
by Big Muscle
Wed Feb 20, 2019 11:32 am
Forum: Platform Related Issues
Topic: wxStaticText color/transparent background
Replies: 0
Views: 91

wxStaticText color/transparent background

Hello, is there any way how to create control which draws the text with background color, supports transparency and works on different platforms (or at least MSW and GTK+2) ? If I use wxStaticText: wxGTK - background is transparent, SetBackgroundColour is not respected wxMSW - SetBackgroundColour is...
by Big Muscle
Tue Jan 29, 2019 7:52 am
Forum: Platform Related Issues
Topic: GTK: wxButton appearance in wxScrolled
Replies: 13
Views: 597

Re: GTK: wxButton appearance in wxScrolled

After some experiments, I noticed that GTK+3 has some problem with sizers. Application started directly on X-server startup works correctly, application started manually later does not display controls put in sizers. So I made some modification to remove sizers and I can confirm that "wxButton appea...
by Big Muscle
Mon Jan 28, 2019 10:59 am
Forum: Platform Related Issues
Topic: GTK: wxButton appearance in wxScrolled
Replies: 13
Views: 597

Re: GTK: wxButton appearance in wxScrolled

It took almost 2 hours to rebuild on Raspberry but now it is done. The application starts and no controls are visible at all, so hard to answer the question :-/
by Big Muscle
Mon Jan 21, 2019 12:05 pm
Forum: Platform Related Issues
Topic: GTK: wxButton appearance in wxScrolled
Replies: 13
Views: 597

Re: GTK: wxButton appearance in wxScrolled

I'm not sure about GTK+3. I have no experience with it.
Is it possible to use it just by rebuilding my app only, or does it require complete wxWidgets rebuild / additional system packages?
by Big Muscle
Mon Jan 14, 2019 8:38 am
Forum: Platform Related Issues
Topic: GTK: wxButton appearance in wxScrolled
Replies: 13
Views: 597

Re: GTK: wxButton appearance in wxScrolled

Sure. They are:

Good:
good.jpg
good.jpg (47.93 KiB) Viewed 551 times
Bad:
bad.jpg
bad.jpg (51.79 KiB) Viewed 551 times
by Big Muscle
Mon Jan 14, 2019 7:34 am
Forum: Platform Related Issues
Topic: GTK: wxButton appearance in wxScrolled
Replies: 13
Views: 597

Re: GTK: wxButton appearance in wxScrolled

Hello,
it is the real Raspberry with Raspbian 9.6 installed.
If it is the theme specific why would it influence only buttons on wxScrolledWindow and not the other buttons?
by Big Muscle
Fri Jan 11, 2019 9:43 am
Forum: Platform Related Issues
Topic: GTK: wxButton appearance in wxScrolled
Replies: 13
Views: 597

GTK: wxButton appearance in wxScrolled

Hello, I develop an C++ application for Raspberry PI using wxWidgets (GTK2). When I create a button in wxPanel, it looks correctly. But if I change wxPanel to wxScrolledWindow (or wxScrolled<wxPanel>), the buttons appearance changes it - thick white border appears around it. Even if I change the but...
by Big Muscle
Tue Sep 06, 2011 10:28 am
Forum: C++ Development
Topic: wxTreeListCtrl [SVN]
Replies: 1
Views: 314

wxTreeListCtrl [SVN]

Hello, I don't know whether this is appropriate place to send this request but I will try :) Current SVN revision contains new class wxTreeListCtrl which I see to be a very good idea. It is a facade for wxDataViewCtrl so it stores a lot of time spent by writing own data view model. However, I miss s...
by Big Muscle
Wed Aug 17, 2011 7:36 pm
Forum: C++ Development
Topic: Fatal exception handling
Replies: 16
Views: 3319

Re: Fatal exception handling

I already thought about wxLaunchDefaultApplication("crashlog.txt") which would display the generated crashlog in system's default viewer. Windows MessageBox function would work in the handler but since I use my own handler (via SetUnhandledExceptionFilter function) I can just return EXCEPTION_CONTIN...