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

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

Code Samples & Tips Share your recent discoveries and ideas with other users.

formlib.fullscreen(false) doesn't work

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2008, 03:07 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Unhappy formlib.fullscreen(false) doesn't work

Code:
Sub Globals
f=
0
End Sub

Sub App_Start
flib.New1(
"form1",B4PObject(1))
 Form1.show
End Sub

Sub Button1_Click
If f=0 Then
flib.FullScreen(
true)
f=
1
Else
flib.FullScreen(
false)
End If
End Sub
flib.FullScreen(false) doesn't return titles...why?
Reply With Quote
  #2 (permalink)  
Old 08-13-2008, 03:14 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

FormLib.FullScreen is a one way function.
You will need to use the Door library to return the title bar or menu:
Code:
'obj and obj2 are Objects (from the door library)
Sub Globals
    
'Declare the global variables here.

End Sub

Sub App_Start
    Form1.Show
    flb.New1(
"form1",B4PObject(1))
    obj.New1(
false)
    obj2.New1(
false)
    obj2.FromControl(
"form1")
    obj2.Value = obj2.GetProperty(
"Menu")

    flb.FullScreen(
true)
End Sub

Sub ReturnTitle
    obj.FromControl(
"form1")
    obj.SetProperty(
"MaximizeBox",true)
    obj.SetProperty(
"ControlBox",true)
    obj.SetProperty(
"FormBorderStyle","Sizable")
    obj.SetProperty(
"WindowState","Normal")
End Sub

Sub ReturnMenu
    obj.FromControl(
"form1")
    obj.SetProperty2(
"Menu",obj2.Value)
End Sub
Reply With Quote
  #3 (permalink)  
Old 08-13-2008, 03:21 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

thanks Erel
Reply With Quote
  #4 (permalink)  
Old 08-13-2008, 06:35 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

@Erel

Issues like this, should be placed in a "closed" forum, like "Known limitations", because every once in a while, someone atrts up a thread like this one, without first searching the forum....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
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 Tab page visibility True/False selectively Wietze Questions (Windows Mobile) 2 10-01-2008 02:46 AM
formlib.fullscreen(false)..? TWELVE Questions (Windows Mobile) 3 06-19-2008 09:11 AM
fullscreen(false) problems kolbe Questions (Windows Mobile) 1 03-22-2008 01:39 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 10:02 PM.


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