<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Steve,<br>
<br>
I came across that earlier. There are many other stupidities in it.
If I had realised they were there, I would not have switched all my
notebooks from orpheus to tpagectrl.<br>
<br>
The last frustrating one was if a tabsheet is visible and you set its
Visible property to true, the focus switches to it. We have a
situation where in insert mode certain tabs are made invisble. When
the user finishes, they are made visible again.. but the blasted focus
changes. <br>
<br>
A major failing is that it has no way of telling you which page it is
going to switch to in the Change event. I had to add another event in
that does support it.<br>
<br>
There are more gotchas.... when you are making the tabs invisible.
Pages property has physical pages, the Tabs property has the visible
pages... Wait for it... Tabs [2] is not the same as Pages [2] if
there are some invisible pages. So if there are pages 1 2 and 3 and
all are visible then index 2 gets the middle page. If you now make the
middle page/tab invisible, index 2 fetches the last page. Great fun
for coding when I was writing the OnDrawTab.<br>
<br>
Steve Peacocke wrote:
<blockquote
cite="mid:f1657d310708271646v26b69da1rbb28c36743e938c@mail.gmail.com"
type="cite">
<pre wrap="">Searching the newsgroups and web came up with a blank on this one so I
thought I'd throw it to you people to see if any of you are having
this problem as well.
I have a TPageControl with 8 separate tabs. Three of those tabs are
made invisible on startup, to be made visible on certain conditions.
I have noted that if I compile the application with the main
(starting) tab selected, then the tab will be blank - i.e. nothing
will appear on the tab. It's like everything isset to invisible,
except that items on that tab are never invisible. When I click on
another tab and click back to the main tab, then everything appears as
it should.
However, when I compile the application with another tab selected,
then on starting, I simply change to the main tab (in code, e.g. :
pcCfg.ActivePage := tsMain), then all is displayed as it should.
Puzzling. Is this a bug? can anyone else duplicate that?
The interesting thing about it is that it ocurs in 2 of the
applications that I look after, and it has only just started occuring
recently (may be after update #2).
Steve
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title>Signature</title>
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.2802" name="GENERATOR">
<div align="left">
<div align="left"><strong><font size="2"><font color="#666666"
face="Verdana">Rohit Gupta</font></font></strong></div>
<div align="left"><strong><font size="2"><font color="#666666"
face="Verdana">
B.E. Elec. M.E. Mem IEEE
Associate IEE</font></font></strong></div>
<div align="left"><strong><font size="2"><font color="#666666"
face="Verdana">Technical Manager</font></font></strong></div>
<div align="left"><strong><font color="#666666" face="Verdana" size="2">Computer
Fanatics Limited</font></strong></div>
<div align="left"><strong></strong> </div>
<div align="left"><font color="#666666" face="Verdana" size="2"><strong>Tel</strong>
+64 9 4892280</font></div>
<div align="left"><font color="#666666" face="Verdana" size="2"><strong>Fax</strong>
+64 9 4892290</font></div>
<div align="left"><font color="#666666"><font face="Verdana" size="2"><strong>Email
</strong></font><a href="mailto:rohit@cfl.co.nz"><font color="#0080ff"
face="Verdana" size="2">rohit@cfl.co.nz</font></a></font><font
color="#666666"><font face="Verdana" size="2"><strong></strong></font></font></div>
<div align="left"><font color="#666666"><font face="Verdana" size="2"><strong>Web
</strong></font><a href="http://www.cfl.co.nz/"><font color="#0080ff"
face="Verdana" size="2">www.cfl.co.nz</font></a></font></div>
<div> </div>
<div>
<hr></div>
<div align="left"><span
style="font-size: 7.5pt; color: rgb(153, 153, 153); font-family: Verdana;"><font
size="1"><span style="font-size: 10pt; font-family: 'Courier New';"
lang="EN-NZ"><font color="#000000"><font color="#808080" face="Verdana"
size="1">This email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright. If
you are not the intended recipient, you must not use, distribute or
copy this email or attachments. If you have received this in error,
please notify us immediately by return email and then delete this email
and any attachments.</font> <o:p></o:p></font></span></font></span></div>
</div>
</div>
</body>
</html>