Solved

How to Make A outlook style Scroll box?

Posted on 2000-03-06
4
483 Views
Last Modified: 2008-01-09
A scroll box with pages in it ,how can
i make this?

{
I had found a VCL :XAZone can do this.
but How can i add and delete a page
in it at runtime??

who can give me a Sample of add and
delete pages in Xazone at runtime can also get the points. :)

XAZone download url
http://vcl.vclxx.com/DELPHI/D32FREE/XAZONE.ZIP
}

Thanks for help.
:)
0
Comment
Question by:keron
  • 2
4 Comments
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2590085
Listening
0
 

Expert Comment

by:zb_russia
ID: 2590308
[phlegmatically] Is higher to you already have answered (rwilson) - use the list (or generate from TList) plants, necessary to you, - TXAZoneControl, e.t.c.

I in this situation have done without by an array TActions, to which referred for want of pressing on "outlook toolbar".
0
 
LVL 17

Accepted Solution

by:
inthe earned 200 total points
ID: 2590487
hi,
here an exampe of using xazone component .

to add a zone:

procedure TForm1.Button1Click(Sender: TObject);
var
zone : TXAZoneArea;
begin
zone := TXAZoneArea.Create(Nil);
zone.Parent := XAZoneControl1;
zone.Color := clblue;
zone.Caption := 'The New Zone';
zone.Enabled := true;
zone.Active := true;
end;

to delete the zone:

procedure TForm1.Button2Click(Sender: TObject);
var
i : integer;
begin
with XAZoneControl1 do begin
for i := Controlcount -1  downto 0 do
begin
if( Controls[ i ] is TXAZoneArea )then
begin
if (Controls[ i ] as TXAZoneArea).Caption = 'The New Zone' then
// or
// if (Controls[ i ] as TXAZoneArea).Name = 'zone' then ...
begin
(Controls[i] as  TXAZoneArea).Active := false;
(Controls[i] as  TXAZoneArea).Enabled := False;
(Controls[i] as  TXAZoneArea).Hide;
(Controls[i] as  TXAZoneArea).Free;
end;
end;
end;
end;


Regards Barry
0
 
LVL 17

Expert Comment

by:inthe
ID: 2590491
opps forgot to give zone a name after i added it:

should be:

zone := TXAZoneArea.Create(Nil);
zone.Name := 'zone'; <-- forgot this ;-)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now