Unexpected change of TGLVEntry method

Dear Rooters

Sorrowly, until now I have not received any response to my topic
"Problem hiding group frame", see:
root.cern.ch/phpBB2/viewtopic.ph … da48ab0d42

Regarding my 2nd problem I have meanwhile found that methods in
class TGLVEntry have been changed between root versions.

Root 4.00/03 contains the following method:
virtual const char *GetName() const { return fName->GetString(); }

which has been replaced in root 4.03/01 with method:
virtual const char *GetTitle() const { return fName->GetString(); }

Sorrowly, this replacement of a method has not been reported
in any of the development notes (at least when searching for
name TGLVEntry).

Is it possible to list changes in methods which break user code
in a special note, or at least include in a special chapter in
future release notes?

Best regards

this change was forced by introduction
of TGWindow::GetName method,
which returns unique window name used in
"SavePrimitive" facility.

I hope that will require not critical chages in
code. Sorry for inconviniance.

Thanks. Regards. Valeriy

Dear Valeriy

Thank you for your explanation.
Meanwhile, I decided to use GetItemName()->GetString()
to be on the safe side.

Best regards

since TGWindow is now derived from
TNamed TNamed::GetTitle/SetTitle is
used to get/set text for widgets with text, e.g.
TGTextButton, TGLabel, TGGroupFrame etc.

Regards. Valeriy

Hi Valeriy

Thank you for this information. It is good to know that there is now a
common way to name all widgets.

Best regards

Hi Christian,

I would like to correct Valeriy. TGWindow is not derived TName class. The methods Get/SetTitle are declared in the TGLabel class.

Cheers, Ilka

Hi Ilka

Now I am confused. Looking at the class index I cannot find any
connection between TGLVEntry and TGLabel.

Best regards

Hi Christian,
TGWindow is not derived TName class,
but from TObject where both methods
GetName/SetName, GetTitle/SetTitle exist.
For most text related widgets (please point me “who is missed”)
GettTitle/SetTitle is used to get/set the_text.

This feature is used in gui builfer’s
quick handler.

Regards. Valeriy

Dear Christian,

My remark was not related with the TGLVEntry. It was about TNamed::GetTitle/SetTitle methods mentioned by Valeriy in relation with TGWindow<—TName inheritance.

Best regards, Ilka