![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
|
|||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |