Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


TabControl created dynamically won't show


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-14-2008, 03:14 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default TabControl created dynamically won't show

Anyone else run into this?

I have a completely blank form. On this form, I create a label at the top; a scrollbar along the right side, and a TabControl which occupies the remainder of the form.

For each object/control, I am first adding it using AddObject, then New, etc.

I create four tab pages. On each page, I create a panel. On each panel, I create a series of labels, and maybe a button or two.

When the form is closed, every control on the form gets disposed of.

No problem so far.

If I try to re-open the form, my TabControl doesn't show. The label shows up, the scrollbar shows up... no errors are reported anywhere. The TabControl just doesn't appear. I know it's there, though - if I MsgBox out the top, left, width, and height of the TabControl, I get the same four values as when it did appear.

Why would dynamic creation of a TabControl work properly only once?


Gary

__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6

Last edited by willisgt : 03-14-2008 at 03:31 PM.
Reply With Quote
  #2 (permalink)  
Old 03-14-2008, 03:25 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default Code

I thought it might me helpful to post part of the code. The MsgBox'es around line 460 are for diagnostic purposes.

Gary
Attached Files
File Type: sbp problem.sbp (17.1 KB, 5 views)
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #3 (permalink)  
Old 03-14-2008, 03:42 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,899
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by willisgt View Post
I thought it might me helpful to post part of the code.
Sorry but for me there's too much missing and what is there is too arcane to get any sense out of this code. Can you post some simple code that actually runs and displays the problem?
Reply With Quote
  #4 (permalink)  
Old 03-14-2008, 04:00 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default Working (?) Code

This code actually works... (sorry, this is what I should have posted before)

Gary
Attached Files
File Type: sbp problem.sbp (22.7 KB, 7 views)
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #5 (permalink)  
Old 03-14-2008, 04:32 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 672
Default

./data/colors.bmp is still missing...
Reply With Quote
  #6 (permalink)  
Old 03-14-2008, 04:49 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default colors.bmp

Sorry...

Attached Files
File Type: zip problem.zip (7.2 KB, 7 views)
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #7 (permalink)  
Old 03-14-2008, 05:20 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,899
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

I suspect a visibility bug in TabControl. See the fully pared down demo I've posted in the Bugs forum.
Reply With Quote
  #8 (permalink)  
Old 03-14-2008, 06:54 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,899
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

In case you are not monitoring the Bugs forum Erel has fixed the bug in ControlEx.dll ControlsEx update
Reply With Quote
  #9 (permalink)  
Old 03-14-2008, 10:39 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default

Wow. Thanks to everyone who helped track this down, and special thanks to Erel for the quick fix!

Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show contact details ? taximania Questions & Help Needed 3 07-05-2008 08:19 PM
Creating a Calendar control dynamically? willisgt Questions & Help Needed 5 01-06-2008 10:48 AM
after used showtodayscreen how to show again blackiice Questions & Help Needed 3 10-25-2007 04:26 AM
keyboard show bdiscount Questions & Help Needed 1 09-24-2007 03:21 PM
Creating a multiline textbox dynamically (at runtime)? willisgt Questions & Help Needed 2 09-12-2007 10:06 PM


All times are GMT. The time now is 04:24 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0