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

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

Questions (Windows Mobile) Post any question regarding Basic4ppc.

WVGA Issue

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-28-2008, 04:07 PM
JesseW's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2008
Posts: 251
Default WVGA Issue

I'm trying to get the MobileWebbs app/screensaver I created (which can be found in the my creations forum) to work without a title bar and menu/status bar on my new Touch HD which features WVGA 480x800, and I'm unable to get the menu/status bar at the bottom of the form to vanish. Either that, or it is a black spot which shows the addition screen from VGA to WVGA.

Here's my App_Start sub: (the form name is MobileWebbs instead of Form1)

Code:
Sub App_Start
    flb.New1(
"MobileWebbs",B4PObject(1))
    flb.FullScreen2(cPPC,
True'On the device it will remove the title bar too
    MobileWebbs.Line (00, MobileWebbs.Width, MobileWebbs.Height, cBlack, BF)  'Create black background
    timer1.Interval = 20
    timer1.Enabled = 
True
    MobileWebbs.Show
End Sub

Here's what I've tried:
1) changing the cPPC constant to True (after reviewing FormLib help file) didn't change anything.
2) unchecked File/Compile/Optimized, which gave me an error "Cannot file file ilasm.exe" when trying to compile to device exe, and brought up web page showing to install .net cf 2.0. Went to activesync, to add/remove programs, selected .net cf 2.0, and it reported that it was already installed (but was unchecked on activesync list of applications)
3) tried forced qvga, but that pixelated the display (to be expected) and slowed it down noticeably. Plus, the gray area I'm trying to get rid of is even larger.

Here's my device info:
---
HTC Blackstone (Touch HD)
WVGA 480x800
CE OS 5.2.20757 (Build 20757.1.4.0)
Processor: Qualcomm MSM7201A-528MHz
Memory: 195.83MB
ROM version: 1.14.401.3 (22273) WWE
ROM date: 10/24/08
Radio version: 1.09.25.14
Protocol version: 52.49a.25.26U
---

Here's a screenshot demonstrating what it's doing:
---

---
(I put a blue border around the screenshot because the blank area wasn't showing up on this webpage )
Any ideas?

Thanks
--Jesse

Last edited by JesseW : 11-28-2008 at 04:17 PM.
Reply With Quote
  #2 (permalink)  
Old 11-28-2008, 06:21 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

Quote:
Originally Posted by JesseW View Post
unchecked File/Compile/Optimized, which gave me an error "Cannot file file ilasm.exe" when trying to compile to device exe, and brought up web page showing to install .net cf 2.
I think you misread that web page. That message means that you don't have Compact Framework 1.1 installed on your desktop which is where Basic4ppc expects to find ilasm.exe for non-optimised compilation. I personally wouldn't bother installing it just to get legacy compilation.

As for your main problem I have no suggestions to make
Reply With Quote
  #3 (permalink)  
Old 11-28-2008, 06:35 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The legacy compiler will not help here. It creates applications which behave like Forced QVGA mode but are much slower.
Does this gray bar exist when you don't remove the menu bar?
Reply With Quote
  #4 (permalink)  
Old 11-28-2008, 09:40 PM
JesseW's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2008
Posts: 251
Default

Quote:
Originally Posted by agraham View Post
...As for your main problem I have no suggestions to make
Thanks... I appreciate your time

Quote:
Originally Posted by Erel View Post
...Does this gray bar exist when you don't remove the menu bar?
Erel, thanks for responding. Here's what I have w/o full screen



I simply remarked this line: flb.FullScreen2(True,True)
Hope this helps. Thanks again...

Jesse

Last edited by JesseW : 11-28-2008 at 09:44 PM.
Reply With Quote
  #5 (permalink)  
Old 11-29-2008, 06:33 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I don't think that you will be able to use full screen on this device. Maybe there is some incompatibility between .Net CF and this resolution.
Reply With Quote
  #6 (permalink)  
Old 11-29-2008, 03:13 PM
JesseW's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2008
Posts: 251
Default

Well darn! I didn't find the answer to removing the title bar while I was using my Polaris, which is qvga. I still have one that's being repaired. When I get it back, I'll retouch this issue and try full screen on that device.

Oddly enough, Opera 9.5 goes to full screen perfectly on both devices, but I don't know what method it uses. Could it be something with the SIP?

On the Polaris, while I was fiddling with the home screen, I wanted to remove the bottom status bar which contained the two soft menu's, one program, dcinobar.exe, worked under most circumstances, but the SIP gave it problems, similar to the pic above. Specifically, it would seem to work, but the first time a program used a SIP and put that little icon down there, the gray bar stayed with the icon there till you soft reset the device.

When I switched over to the vjay555 program (still on the Polaris), where you can set the top and bottom bar removals independently, (and I learned to tweak it properly) it seemed to work much better than dcinobar. But since I've not yet tired of tf3d and removed it, I've not tried either on the new HD.

You may be right, but I hope not. I sure like showing off that little b4p program I wrote on that large hi res screen, and it would be so nice to be able to use all of it. I'll write more later...

Jesse
Reply With Quote
  #7 (permalink)  
Old 11-29-2008, 03:48 PM
JesseW's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2008
Posts: 251
Default

Erel, I wasn't satisfied and just couldn't leave it alone, so I kept fiddling with it and actually got it to work in full screen. Here's what I found out, for your reference:

It's the Form.Height property that's the culprit. I changed all the instances of MobileWebbs.Height to a variable, which I set in app_start, AND ADDED 52 TO IT, and all is well. However, it's not transportable anymore. It's stuck to wvga that thinks it's vga???

Code:
Sub App_Start
    flb.New1(
"MobileWebbs",B4PObject(1))
    flb.FullScreen(
True'On the device it will remove the title bar too
    mw_w = MobileWebbs.Width
    mw_h = MobileWebbs.Height + 
52
    MobileWebbs.Line (
00, mw_w, mw_h, cBlack, BF)
    timer1.Interval = 
20
    timer1.Enabled = 
True
    MobileWebbs.Show
End Sub
I had to keep changing the value that was added to the height value, and was surprised it ended up being 52. I was expecting 160, the difference between vga and wvga, but that left way too much of the developing image cut off at the very bottom of the screen, so I just started at 40 and went up by 2, compiling and testing.

I'm not sure if this is of any use or value to you, but I'm glad I figured it out. Take care...

Jesse

Edit: Erel, I use Gyrator2 for auto screen rotation and noticed that when I rotated the screen, it removed my black background and messed everything up. I thought I'd let you know that actually starting the program in landscape orientation yields proper results. I was sure it wouldn't, but it did! It still works perfectly! So I'm really thinking now that it's not the difference between vga & wvga, but that we're seeing some system object, like the SIP icon or its placeholder, that pushes the .height value up by a certain amount. Man, I'm excited now!!!

Last edited by JesseW : 11-29-2008 at 03:56 PM.
Reply With Quote
  #8 (permalink)  
Old 11-29-2008, 04:43 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Form.Height doesn't change when you remove the menu bar. So after removing the menu bar you get another 52 pixels.
Reply With Quote
  #9 (permalink)  
Old 11-30-2008, 11:18 PM
JesseW's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2008
Posts: 251
Default

Erel, is it always 52 pix (wouldn't that be easy???) or does it depend on device and/or screen res? Appreciate your help
Reply With Quote
  #10 (permalink)  
Old 12-01-2008, 05:25 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Yes. Basic4ppc decreases this constant value in order to return the available work screen on regular devices and in normal mode (including the bars).
So if you want to get the full screen height you should add 52.
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
Baffling Library Issue Louis Questions (Windows Mobile) 1 03-16-2008 05:49 AM
return issue Cableguy Questions (Windows Mobile) 1 09-21-2007 06:01 AM
Retrieveimage issue Cableguy Questions (Windows Mobile) 0 06-02-2007 05:49 PM


All times are GMT. The time now is 07:57 AM.


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