Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


Control.Visible problem in optimise compile


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-14-2008, 07:18 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,704
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default Control.Visible problem in optimise compile

If TextBox1 and Table1 are added at design time then this code leaves the controls visible when run from the optimising compiler. The IDE and legacy compile leaves them invisible as expected.
Code:
Sub App_Start
	Form1.Show
	Msgbox("1")
	Table1.dispose
	TextBox1.Dispose
	AddTable("Form1","Table1",20,20,100,100)
	AddTextBox("Form1","TextBox1",20,150,100,22,"")
	Table1.Visible=false	
	TextBox1.Visible=false	
End Sub
This code, adding the initial controls at runtime works fine in the optimising compiler.
Code:
Sub App_Start
	Form1.Show
	AddTable("Form1","Table1",0,0,100,100)
	AddTextBox("Form1","TextBox1",0,150,100,22,"")
	Msgbox("1")
	Table1.dispose
	TextBox1.Dispose
	AddTable("Form1","Table1",20,20,100,100)
	AddTextBox("Form1","TextBox1",20,150,100,22,"")
	Table1.Visible=false	
	TextBox1.Visible=false	
End Sub
Reply With Quote
  #2 (permalink)  
Old 01-14-2008, 07:54 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default

Thanks agraham.
This is the same bug that caused the problem in the original thread.
It will be fixed in the next release (one week from now).
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
How to make the title bar invisible and menu bar visible in full screen on the device mozaharul Questions & Help Needed 2 08-17-2008 08:46 AM
Change Control positions and sizes after compile. burd27 Questions & Help Needed 9 03-03-2008 03:44 PM
Visible property for menus alfcen Basic4ppc Wishlist 2 11-11-2007 12:15 PM
Problem compile SQLlite manu Questions & Help Needed 12 08-02-2007 09:26 AM
How can I compile Nkieto Questions & Help Needed 3 05-01-2007 05:53 AM


All times are GMT. The time now is 11:06 AM.


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