Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Realbasic > Re: Hiding a Ta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 3226 of 3326
Post > Topic >>

Re: Hiding a Tab Panel

by Steve Garman <news@[EMAIL PROTECTED] > Jun 10, 2007 at 08:14 AM

Dale Arends wrote:

> Can't do that.  It has some controls that I need while the program is 
> running.  I just don't want the tabPanel visible.

Are you sure the controls must be on a TabPanel in the first place?
If not, just put them on the pasteboard but off the window.

If the tabpanel is essential at debug time, you could try something like 
this

   #if not DebugBuild
     dim c as Control
     dim r as RectControl
     for i as Integer = self.ControlCount -1 DownTo 0
       c = self.Control( i )
       if c isa RectControl and c.TabPanelIndex = 5 then
         r = RectControl( c )
         r.Parent = nil
         r.Left = -9999
       end if
     next i
     TabPanel1.Remove( 4 )
   #endif
 




 5 Posts in Topic:
Hiding a Tab Panel
Dale Arends <dalearend  2007-06-09 16:46:11 
Re: Hiding a Tab Panel
Aaron Ballman <aaron@[  2007-06-09 15:04:11 
Re: Hiding a Tab Panel
Dale Arends <dalearend  2007-06-09 23:38:14 
Re: Hiding a Tab Panel
Steve Garman <news@[EM  2007-06-10 08:14:19 
Re: Hiding a Tab Panel
Dale Arends <dalearend  2007-06-10 19:11:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 20:41:55 CDT 2008.