Jump to content


Photo

Setting ActivePage in TNxNotebook.AddPage


  • Please log in to reply
4 replies to this topic

#1 MasterEvil

MasterEvil
  • Members
  • 104 posts
  • Location:Germany

Posted 02 December 2006 - 12:40 PM

Hello Boki,

I've installed the new version of your component suite (have run an old version for some time now) and I'm glad to see, that nearly every issue that I previously needed to write myself is now solved smile.gif
Thanks for that!

But you've made one change which I don't understand and which my my program crash very badly.
In TNxNotebook.AddPage you've comment out the line ActivePage := Page;
Why? If you add a new page it will show up and thus ActivePage must be set on it.
Maybe you set this later in a drawing routine or something.
But I add pages in runtime and need to have this before showing up on the screen.

greetz and thanks again!
Steffen

#2 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 03 December 2006 - 01:16 PM

not sure that this is the case
but when u add a page
the new page doesn't have to be the new active page
in my app, im adding several pages at once
and i need the first one to be active (not the last one added)
so why make each new page active (events are triggered when that happens) and eventually the user will have to manually set the active page back to the first one?

original TPageControl acts this way as well

if this is not the case you talked about, then ignore this reply

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 04 December 2006 - 08:34 PM

Hello,

Yes, now ActivePage need to be set manually.

New version will be out tomorow.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 04 December 2006 - 11:13 PM

good to know about the new version
cause i need it before releasing my new version
which is scheduled for the begining of next week

can u write in short
what fixes were made to the nxPageControl?
(the new update post in announcements do not contain changes for this component

thanks

#5 MasterEvil

MasterEvil
  • Members
  • 104 posts
  • Location:Germany

Posted 05 December 2006 - 02:50 PM

ok, then I need to change my code a bit wink.gif

greetz
Steffen




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users