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.


formlib.fullscreen(false)..?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2008, 08:53 AM
Knows the basics
 
Join Date: Apr 2008
Location: Duesseldorf, Germany
Posts: 71
Default formlib.fullscreen(false)..?

Hello all together,

is it possible to reverse the formlib.fullscreen(true) with an formlib.fullscreen(false) ?

It does not appear to work on the device and my forum search did not clarify this.

If the fullscreen(true) cannot be reversed,

- why is this so..?

- can this be implemented yet or are there restrictions by the OS..?

- are there workarounds to enable the user to switch between fullscreen and normal window mode..?


cheers

TWELVE
Reply With Quote
  #2 (permalink)  
Old 06-18-2008, 02:17 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
Default

The boolean argument in FullScreen determines if the title bar should be removed or not.
You can use the following code to return the title bar and menu bar:
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 06-19-2008, 01:04 AM
Knows the basics
 
Join Date: Apr 2008
Location: Duesseldorf, Germany
Posts: 71
Default

Hi Erel,

thx for your reply.I do not necessarily like to add one more lib just for this small task.That's one of the biggest disadvantages of B4P.You definitely need to add more of these external lib functions into the B4P core.I already have lost oversight what functionality is covered by what library and the often similar naming of the libraries doesn't make that task any easier.

Very often B4P programming isn't that logical i would expect as a programmer.FullScreen(false) is an excellent example for that.I've got some serious difficulties to understand the logic behind, especially when reading the poor documentation or some source code.That's kind of frustating.For Windows apps, i'm using PureBasic and this is a complete different world.
Everything is strict logical and i do not have any issues in understanding command, instructions or parameters.Regardless of this my PPC app has grown to 4500 lines source code over time, since i wrote my first post here in this forum.But even with that it did not reach the functionality of my purebasic Windows App, which has "only" 4500 lines of source code.
cheers

TWELVE
Reply With Quote
  #4 (permalink)  
Old 06-19-2008, 10:11 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
Default

Thank you for your feedback.
FormLib.FullScreen description was updated.

Since version 6.30 libraries are merged in the executable during compilation.
The cost of adding the door library to your project is minimal (executable size will be increased by less than 4KB).
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) doesn't work Byak@ Code Samples & Tips 3 08-13-2008 07:35 PM
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 04:05 PM.


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