Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Making Tab page visibility True/False selectively

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-29-2008, 07:24 AM
Newbie
 
Join Date: Sep 2008
Posts: 2
Default Making Tab page visibility True/False selectively

Hi,
In app_start I declared a tab control having four tab pages, I use four check boxes as visibility option for these tab pages.

Is it possible to make tab page visibility True/False by checking/unchecking the check boxes accordingly?
Reply With Quote
  #2 (permalink)  
Old 09-29-2008, 03:38 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

From what I can see, the Tabcontrol doesn't have this functionality
However, I've had a little play and think that it can be achieved programatically. You need to keep track of the tab pages using an array list and then add and remove as required.
Attached is a little example that I have knocked up for you, it requires the ControlsEx library.
The tab pages are not kept in the original order but this could probably be achieved by disposing of the tab control and then recreating it each time with the desired pages present.

Regards,
RandomCoder
Attached Files
File Type: sbp TabControl.sbp (1.3 KB, 19 views)
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 02:46 AM
Newbie
 
Join Date: Sep 2008
Posts: 2
Default

Thanks RandomCoder, your solution works fine
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
making B4PPC portable Cableguy Questions (Windows Mobile) 6 01-09-2009 06:09 PM
making more fast gjoisa Questions (Windows Mobile) 2 07-18-2008 08:23 AM
Freezing/disabling tabpage selectively mozaharul Questions (Windows Mobile) 1 05-29-2008 07:11 AM
Using true and false klaus Code Samples & Tips 2 01-30-2008 03:12 PM
True/False values and SQL tables skipper Questions (Windows Mobile) 6 01-18-2008 08:13 AM


All times are GMT. The time now is 02:31 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0