Sign in Join

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

Mailing lists / lazarus / 2012-02

Updating applications

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Hans-Peter Diettrich

When I tried to run an old application, I ran into problems with TNotebook, whose interface was changed some time ago.

How can I update forms which contain old TNotebook components, to e.g. TPageControl, without loosing all the controls in the pages?

DoDi

Reply by email

zeljko
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 5 lines
When I tried to run an old application, I ran into problems with TNotebook, whose interface was changed some time ago. How can I update forms which contain old TNotebook components, to e.g. TPageControl, without loosing all the controls in the pages?

What has been changed in TPageControl ... I don't remember that I had some problems with TPageControl in lfms... ?

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120210/51aad1af/attachment.html>

Reply by email

Hans-Peter Diettrich
to zeljko
Show quoted text 14 lines
On Friday 10 of February 2012 12:36:42 Hans-Peter Diettrich wrote: > When I tried to run an old application, I ran into problems with > TNotebook, whose interface was changed some time ago. > > How can I update forms which contain old TNotebook components, to e.g. > TPageControl, without loosing all the controls in the pages? What has been changed in TPageControl

TNoteBook is not (any more) related to TPageControl, and (now) doesn't have visible tabs/pages.

I found this workaround:

1) Open the project in an older Lazarus version, which supports the old version of TNoteBook.

2) Add a TPageControl.

3) For every notebook page do a Cut&Paste into a new Page. Copy won't work, because the controls are renamed by Paste! Update the Caption of the Page.

DoDi

Reply by email

zeljko
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 16 lines
zeljko schrieb: > On Friday 10 of February 2012 12:36:42 Hans-Peter Diettrich wrote: > > When I tried to run an old application, I ran into problems with > > > > TNotebook, whose interface was changed some time ago. > > > > > > > > How can I update forms which contain old TNotebook components, to e.g. > > > > TPageControl, without loosing all the controls in the pages? > > What has been changed in TPageControl TNoteBook is not (any more) related to TPageControl, and (now) doesn't have visible tabs/pages.

I've asked about TPageControl, I don't use TNotebook in my projects so don't know anything about it.
So my question is still valid.

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120210/b1022ea2/attachment.html>

Reply by email