If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Notebook.ActivePage problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-05-09, 08:53
helloise helloise is offline
Registered User
 
Join Date: Oct 2009
Posts: 6
Notebook.ActivePage problem

i have the following code:
procedure TCallMain.FormShow(Sender: TObject);
var
Reg : TRegistry;
begin
if LoggingIn then begin
NoteBook2.ActivePage := 'CALL';

Reg := TRegistry.Create;
Reg.RootKey := HKEY_LOCAL_MACHINE;
if Reg.OpenKey(RegKey, True) = True then begin
try
NoteBook1.ActivePage := Reg.ReadString('page');
except
NoteBook1.ActivePage := 'CALLS';
end;
end;
Reg.CloseKey;
Reg.Free;
// NoteBook1.ActivePage := 'CALLS';
end;
and am interested inthe line:
NoteBook1.ActivePage := 'CALLS';

how do i access this page called "CALLS"??
i dont know how all of this work and must do maintenance on this app specifically that page..

can anyone help please?
Reply With Quote
  #2 (permalink)  
Old 11-07-09, 15:02
markusv markusv is offline
Registered User
 
Join Date: Oct 2009
Location: South Africa, the land of mystery
Posts: 5
Setting the activepage of a notebook

If the page 'Calls' is the second page on the notebook then:
Notebook.Activepageindex := 1;

Notebook indexes are zero based
Reply With Quote
  #3 (permalink)  
Old 11-10-09, 01:32
helloise helloise is offline
Registered User
 
Join Date: Oct 2009
Posts: 6
i solved my problem thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On