Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips
Home Register FAQ Members List 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, 04:07 PM
Byak@'s Avatar
Senior Member
 
Join Date: Jul 2008
Posts: 125
Send a message via ICQ to Byak@
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, 04:14 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
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, 04:21 PM
Byak@'s Avatar
Senior Member
 
Join Date: Jul 2008
Posts: 125
Send a message via ICQ to Byak@
Default

thanks Erel
Reply With Quote
  #4 (permalink)  
Old 08-13-2008, 07:35 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
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

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
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
Making Tab page visibility True/False selectively Wietze Questions & Help Needed 2 10-01-2008 03:46 AM
formlib.fullscreen(false)..? TWELVE Questions & Help Needed 3 06-19-2008 10:11 AM
fullscreen(false) problems kolbe Questions & Help Needed 1 03-22-2008 02:39 AM
Using true and false klaus Code Samples & Tips 2 01-30-2008 04:12 PM
True/False values and SQL tables skipper Questions & Help Needed 6 01-18-2008 09:13 AM


All times are GMT. The time now is 07:02 PM.


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