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.


Newbie: Form Size 264h


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-27-2008, 06:28 PM
Knows the basics
 
Join Date: Oct 2007
Posts: 90
Default Newbie: Form Size 264h

I understand why 264 height is shown for the form, but because it is possible to turn off the status bar etc. and thus utilise the space, how do I recover that space?
It seems that setting the screen size automatically deducts the area in question.
I have searched but could not find a solution.
Thank you
Reply With Quote
  #2 (permalink)  
Old 04-27-2008, 06:52 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 672
Default

Hello enonod,

you can use the FullScreen method provided by the FormLib:

Code:
Sub App_Start
      Form1.show
      flb.New1("Form1",B4PObject(1))
      flb.FullScreen(True)
End Sub

specci48
Reply With Quote
  #3 (permalink)  
Old 04-27-2008, 07:02 PM
Knows the basics
 
Join Date: Oct 2007
Posts: 90
Default

Thank you specci48, I have much to learn
Reply With Quote
  #4 (permalink)  
Old 04-27-2008, 07:33 PM
Knows the basics
 
Join Date: Oct 2007
Posts: 90
Default

Sorry, (if you can catch this post) I tried the following in app start sub but the image jumps to the top left of desktop screen, without this it used to be at screen centre.
Can you help please?
Form1.Show
flb.New1("Form1",B4PObject(1))
flb.FullScreen(True)
gw.New1("Form1",0,0,Form1.Width,form1.Height)
Reply With Quote
  #5 (permalink)  
Old 04-28-2008, 10:54 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

You should not remove the title bar on the desktop.
Usually FullScreen is called like this:
Code:
flb.FullScreen(cPPC)
That way it only removes the title bar on the device.
On the desktop you can change the screen size under designer - Tools - Screen Size.
Reply With Quote
  #6 (permalink)  
Old 04-28-2008, 11:27 AM
Knows the basics
 
Join Date: Oct 2007
Posts: 90
Default

Thank you Erel. I am struggling a bit to convert my mind from Delphi to this syntax.
In this instance I am having trouble understanding how I would discover cPPC and know to use that instead of True.
Would reading up on Visual Basic assist me in any way with this conversion I am going through?
Reply With Quote
  #7 (permalink)  
Old 04-28-2008, 12:08 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

cPPC returns True when running on a device and False when running on the desktop.
Reply With Quote
  #8 (permalink)  
Old 04-28-2008, 12:14 PM
Knows the basics
 
Join Date: Oct 2007
Posts: 90
Default

Thank you.
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
Problem With Form Size RandomCoder Questions & Help Needed 15 09-05-2008 03:03 PM
Another newbie question: How to refere to the active form? yildi Questions & Help Needed 2 11-17-2007 08:55 PM
Changing the size of a form magi6162 Questions & Help Needed 1 10-24-2007 08:38 AM
screen size to form size relation Cableguy Basic4ppc Wishlist 2 08-14-2007 10:40 PM
Form size problem on PC? agraham Bug Reports 12 07-05-2007 01:00 PM


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


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