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.


Working with screen resolutions


Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 11-20-2007, 12:41 PM
Junior Member
 
Join Date: Nov 2007
Posts: 23
Default

Thanks for your help RandomCoder and Erel. I'll give that a go. Erel, I tried the code you posted, and it *almost* works, but the spacing between widgets is a bit wrong sometimes.
Reply With Quote
  #22 (permalink)  
Old 02-12-2008, 11:03 AM
Newbie
 
Join Date: Feb 2008
Posts: 4
Default

Sub App_Start
Reg.New1
'check and adjust the screen resolution ---------------
Reg.RootKey(Reg.rtLocalMachine)
key = "drivers\display\gpe"
If CPPC Then
logicalpixelsX=0
logicalpixelsY=0
logicalpixelsX=reg.GetValue(key, "logicalpixelsX")
logicalpixelsX=reg.GetValue(key, "logicalpixelsY")
If logicalpixelsX = 96 Then resX = 1 Else resX = logicalpixelsX/96
If logicalpixelsY = 96 Then resY = 1 Else resY = logicalpixelsX/96
Else 'PC
resX =1
resY =1
End If
'change controls
AdjustControls ("frmMain")
................
End Sub

Sub AdjustControls (FormName)
controls() = GetControls(FormName)
For i = 0 To ArrayLen(controls())-1
name = controls(i)
Control(name).Top = resY * Control(name).Top
Control(name).Left = resX * Control(name).Left
Control(name).Width = resX * Control(name).Width
Control(name).Height = resY * Control(name).Height
'Control(name).FontSize = Control(name).FontSize - seems Windows sets fonts properly itself.
Next
End Sub
Reply With Quote
  #23 (permalink)  
Old 02-12-2008, 12:12 PM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default VGA screen issues

Yes I have an AXIN x51v and have the same problem when optimized compiled.

I have read the many posts dealing with this topic and the various workarounds, but haven't tried them myself as the app' that I am working on at the moment uses the Calendar control for which these "workarounds" don't help.

I'll will be interested to hear hows the workarounds work for others.

For the moment, I noticed Erel put a tutorial up on the forum recently that summarises the situation well. Have a look at

Working with VGA screens

Erel notes that the Calendar control issue with VGA screens will be fixed in the future, so I'll just have to wait until then.

Burd
Reply With Quote
  #24 (permalink)  
Old 02-12-2008, 04:47 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 98
Default

When I opt comp. i got half screen I turned off opt. comp. and it was full screen This is with a X51v I now use an Ipaq 111 6.0 which has no problem.
Reply With Quote
  #25 (permalink)  
Old 02-12-2008, 10:22 PM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

Does the Ipaq 111 have a QVGA screen or VGA?
Reply With Quote
  #26 (permalink)  
Old 02-13-2008, 03:04 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 98
Default

No. But it is clear and bright. I don't think I used the vga on my X51v or X50v. Which I still have
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
Working with VGA screens Erel Tutorials 23 Yesterday 11:09 PM
Forelayer not working(?) Cableguy Questions & Help Needed 5 08-16-2008 12:52 PM
working with date gjoisa Questions & Help Needed 3 03-29-2008 10:40 AM
working with FormExDesktop_1.2 Cableguy Questions & Help Needed 20 01-28-2008 07:02 PM
Supporting multiple resolutions davidmw Basic4ppc Wishlist 2 07-24-2007 12:34 PM


All times are GMT. The time now is 02:43 AM.


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