Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-07

Latest Chanhes brakes the WinCE Notebook/Tab controls

11 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tommi Prami

Hello,

I just updated the latest SVN truck version (Revision : 31692)

Compiling of the our winCE project will fail with message :

C:\lazarus\lcl\interfaces\wince\wincewscomctrls.pp(69,20) Error: There is no method in an ancestor class to be overridden: "class TWinCEWSCustomNotebook.GetPageRealIndex(const
TCustomNotebook,LongInt):LongInt;"

-Tee-

Reply by email

Bart
to Hans-Peter Diettrich: Right, this widgetset deserves an update. Please remove that method from…

It is Felipe's work in progress I think.

Bart

Hans-Peter Diettrich wrote 26 lines
Tommi Prami schrieb: > I just updated the latest SVN truck version (Revision : 31692) > > Compiling of the our winCE project will fail with message : > > C:\lazarus\lcl\interfaces\wince\wincewscomctrls.pp(69,20) Error: There > is no method in an ancestor class to be overridden: "class > TWinCEWSCustomNotebook.GetPageRealIndex(const > TCustomNotebook,LongInt):LongInt;" Right, this widgetset deserves an update. Please remove that method from wincewscomctrls.TWinCEWSCustomNotebook, and try again. DoDi -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Hans-Peter Diettrich
to Tommi Prami: I just updated the latest SVN truck version (Revision : 31692) Compiling of the our winCE…
Show quoted text 8 lines
I just updated the latest SVN truck version (Revision : 31692) Compiling of the our winCE project will fail with message : C:\lazarus\lcl\interfaces\wince\wincewscomctrls.pp(69,20) Error: There is no method in an ancestor class to be overridden: "class TWinCEWSCustomNotebook.GetPageRealIndex(const TCustomNotebook,LongInt):LongInt;"

Right, this widgetset deserves an update.

Please remove that method from wincewscomctrls.TWinCEWSCustomNotebook, and try again.

DoDi

Reply by email

Tommi Prami
to Hans-Peter Diettrich: Right, this widgetset deserves an update. Please remove that method from…
Hans-Peter Diettrich wrote 16 lines
Tommi Prami schrieb: > I just updated the latest SVN truck version (Revision : 31692) > > Compiling of the our winCE project will fail with message : > > C:\lazarus\lcl\interfaces\wince\wincewscomctrls.pp(69,20) Error: > There is no method in an ancestor class to be overridden: "class > TWinCEWSCustomNotebook.GetPageRealIndex(const > TCustomNotebook,LongInt):LongInt;" Right, this widgetset deserves an update. Please remove that method from wincewscomctrls.TWinCEWSCustomNotebook, and try again.

Works...

-TP-

Reply by email

Felipe Monteiro de Carvalho
to Hans-Peter Diettrich: Yes, based on my supplied patch, that's why I can explain what remains to do. The mapping…
Hans-Peter Diettrich wrote
Eventually another Delphi compatible rename should be made. As I just found out, Delphi defines PageIndexFromTabIndex for my TabToPageIndex. But since this is a private method in TPageControl, and the LCL used other names for the same purpose, a rename is not required.

But does the Delphi one do the same as yours? From the name I'd guess it does the opposite.

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Hans-Peter Diettrich: Yes, based on my supplied patch, that's why I can explain what remains to do. The mapping…
Hans-Peter Diettrich wrote
I'd suggest to remove GetPageRealIndex from the widget classes at all, to prevent possibly incompatible overrides. When ever required, a widget should use PageToTabIndex instead of GetPageRealIndex, and TabToPageIndex for NotebookPageRealToLCLIndex.

I removed GetPageRealIndex in trunk

Felipe Monteiro de Carvalho

Reply by email

Hans-Peter Diettrich
to Bart: It is Felipe's work in progress I think. Bart
It is Felipe's work in progress I think.

Yes, based on my supplied patch, that's why I can explain what remains to do.

The mapping between logical Pages and visible Tabs in the TCustomNotebook was scattered into multiple unrelated places, e.g. TCustomPage and the widgetsets. The new TCustomNotebook does this mapping itself, in TabToPageIndex and PageToTabIndex, and these methods should be used by the widgetsets.

I'd suggest to remove GetPageRealIndex from the widget classes at all, to prevent possibly incompatible overrides. When ever required, a widget should use PageToTabIndex instead of GetPageRealIndex, and TabToPageIndex for NotebookPageRealToLCLIndex.

Eventually another Delphi compatible rename should be made. As I just found out, Delphi defines PageIndexFromTabIndex for my TabToPageIndex. But since this is a private method in TPageControl, and the LCL used other names for the same purpose, a rename is not required.

DoDi

Reply by email

Hans-Peter Diettrich
to Felipe Monteiro de Carvalho: On Thu, Jul 14, 2011 at 4:19 PM, Hans-Peter Diettrich But does the Delphi one do the same…
Show quoted text 8 lines
On Thu, Jul 14, 2011 at 4:19 PM, Hans-Peter Diettrich wrote: > Eventually another Delphi compatible rename should be made. As I just found > out, Delphi defines PageIndexFromTabIndex for my TabToPageIndex. But since > this is a private method in TPageControl, and the LCL used other names for > the same purpose, a rename is not required. But does the Delphi one do the same as yours?

The added methods cover both directions.

From the name I'd guess it does the opposite.

From and To can be a bit confusing ;-)

DoDi

Reply by email