?
Solved

TpageControl Tabsheet hide??

Posted on 2003-03-16
8
Medium Priority
?
2,223 Views
Last Modified: 2007-12-19
hello,
I got a problem that is cause I want to hide a tabsheet in a TpageControl but, it aint working the only thing to hide is to destroy it??
is there no other way?? and how can I make it visible again then??

(i´m using win Xp and delphi 6)

plz help..
Greets
0
Comment
Question by:krydea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 1

Accepted Solution

by:
h_mohsenian earned 500 total points
ID: 8146294
use these 2 properties of each TTabSheet
  Visible
  TabVisible

for example put a TPageControl and 2 sheets in it, one sheet with Btn1, another sheet with Btn2,

// Button1 is in Tabsheet1
procedure TForm1.Button1Click(Sender: TObject);
begin
  TabSheet1.Visible := FALSE;
  TabSheet1.TabVisible := FALSE;
end;

and

// Button2 is in Tabsheet2
procedure TForm1.Button2Click(Sender: TObject);
begin
  TabSheet1.Visible := TRUE;
  TabSheet1.TabVisible := TRUE;
end;
0
 

Author Comment

by:krydea
ID: 8147207
doesn't work...
0
 

Author Comment

by:krydea
ID: 8147218
it does work:)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Expert Comment

by:h_mohsenian
ID: 8150132
ok ;-) now, is it all right ?
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 8150804
hi hamed :-)
0
 
LVL 1

Expert Comment

by:h_mohsenian
ID: 8151063
hi mikle, how are u ?
First of all , congratulations, you are in the first place now. :-), it was predictable ;-)

21th March is our new year and we are going to start the holydays. I dont know that did I told you or not , now I am a master student ( in Electrical Eng again, in CONTROL sub filed again ;-) ).

I wana work on Network Flow Control ( Congestion Avoidance - QoS , ...; ) by Control Theory Approach, for my master thesis.what is your idea? i think it can be an interesting subject

best wishes for you and your family.
Hamed ;-)
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 8152544
hi hamed,

can you leave your mail-adress here,
i never have it anymore :-(

or send me a mail to

info@meikl.de

meikl ;-)
0
 
LVL 1

Expert Comment

by:h_mohsenian
ID: 8153126
hi again , my email : h_mohsenian@yahoo.com and my univ email : mohsenianrad@mehr.sharif.edu I am waiting for your email ;-)

Hamed;-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

770 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