Another 3.0 upgrade inconsistency Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Another 3.0 upgrade inconsistency

Post by ONEEYEMAN »

Hi, ALL,
Looks like I found another upgrade inconsistency:

Code: Select all

wxTextCtrl *text = new wxTextCtrl( parent, wxID_ANY, "Huge text that should be split between mutiple lines", wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY );
text->Enable( false );
The text is displayed with the scrollbar.
In 2.8 and earlier the scrollbar is enabled and you can still scroll the text, but can't edit and can't give it a focus.
In 3.0 both text and scrollbar are disabled.

Is there a way to enable it without using wxScrolled<T>?
I will be able to test it Monday and reply back.

The reason for using the text control is because it displays a Coppyright notice and it is preferred to use text control and not label.

I don't think it matters much in this case - but just for completeness - RHEL6, GTK2.24, wx-3.0.2 (packaged) upgrade from wx-2.8.10.

Thank you.
Manolo
Can't get richer than this
Can't get richer than this
Posts: 827
Joined: Mon Apr 30, 2012 11:07 pm

Re: Another 3.0 upgrade inconsistency

Post by Manolo »

Since the text has already the wxTE_READONLY style, why do you text->Enable( false )?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Another 3.0 upgrade inconsistency

Post by ONEEYEMAN »

Hi, Manolo,
Readonly text can be selected and later on copied to somewhere. Also it can acquire focus.
Disabled one cannot.

Thank you.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Another 3.0 upgrade inconsistency

Post by ONEEYEMAN »

Manolo,
After consulting with our management, it looks like we can live with just read-only text.
It is weird however, that thhis situation occurs on the upgrade and didn't happen before.

I might send the e-mail to wx-dev/wx-users ML to check...

Thank you.
Post Reply