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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P 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, 06:18 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 06:54 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,702
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Control positions and sizes after compile. burd27 Questions (Windows Mobile) 16 04-21-2009 09:36 PM
How to make the title bar invisible and menu bar visible in full screen on the device mozaharul Questions (Windows Mobile) 2 08-17-2008 07:46 AM
Visible property for menus alfcen Basic4ppc Wishlist 2 11-11-2007 11:15 AM
Problem compile SQLlite manu Questions (Windows Mobile) 12 08-02-2007 08:26 AM
How can I compile Nkieto Questions (Windows Mobile) 3 05-01-2007 04:53 AM


All times are GMT. The time now is 03:12 PM.


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