Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.


True VGA IS POSSIBLE with Basic4Ppc


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-04-2007, 10:35 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,138
Default True VGA IS POSSIBLE with Basic4Ppc

Hi guys...

yes its true...
Althoug not directly suported by Basic4ppc, True VGA enable devices CAN take advantage of the 600+480 screen resolution...

How?

Simple:

Copy the suplied file and rename it to the exe file...
eg:to run the basic4ppc ide in true vega mode add to the exe directory the file and rename it to Basic4ppc.exe.0409.MUI....

The same should be added to the final compiled app, of course, renaming the file to YourApp.exe.0409.MUI

PS: in order to upload the file I added the extension ".txt", so you must delete that part of the filename

The only "bugs" in this trick is that the font size used by the basic4ppc form designer is still double pixell so we must reduce it manualy...and some controls like combo box are also stuck in double pixel...the buttons look ok though....

I've found that a good replacement for "standart" 9 pixel font is 6, or even 5 pixel....

PS: EREL could you please adda "Control font size" option in the from designer that would affect all the controls added?
Or atleast,(i already serached but only found the ide font variable in an ini file...), tell us how this could be done without having to go over every control to change it.....
Attached Files
File Type: txt Basic4ppc.exe.0409.MUI.txt (10.5 KB, 84 views)
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

Last edited by Cableguy : 09-04-2007 at 10:58 PM.
Reply With Quote
  #2 (permalink)  
Old 09-05-2007, 06:27 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
Default

Very interesting... Cableguy can you upload a zip file with a complete example?
About the font size, you could use the new GetControls and ControlType keywords to change the font of all the controls.
Code:
Sub Globals
    'Declare the global variables here.
    Dim ctrls(0)
End Sub

Sub App_Start
    Form1.Show
    ctrls() = GetControls("")
    For i = 0 To ArrayLen(ctrls())-1
        Control(ctrls(i)).FontSize = 5
    Next
End Sub
Reply With Quote
  #3 (permalink)  
Old 09-10-2007, 09:06 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,138
Default

Sorry I missed this one...
A zip?....

Do you have a vga able device?
just put the file in the apps forlder and you'll see what I mean....
Somehow the more graphic controls like the combobox, check box, etc, are not affected by this tweak, the same with the fonts setted in dll controls like my aboutpanel....don't know if a dll similar control is affected in the same way.....
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #4 (permalink)  
Old 10-13-2007, 07:09 AM
Knows the basics
 
Join Date: Oct 2007
Posts: 90
Default

I have just found this and tried it but failed.
I have wm5 vga device, copied the file to the same directory as Basic4PPC.exe, tried every combination of rename but got the message that it is not a valid ppc program. I ran Basic4PPC but nothing unusual happened.
What have I missed please?
Reply With Quote
  #5 (permalink)  
Old 10-13-2007, 10:59 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,138
Default

It works on any program (more or less), just delete the .txt...

Image your program is called myapp, then the file name would be myapp.0409.MUI....

It was teste in my device wich is a TRUE vga capable device not a qvga...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #6 (permalink)  
Old 10-13-2007, 11:30 AM
Knows the basics
 
Join Date: Oct 2007
Posts: 90
Default

On the device I have program files\Basic4PPC.
In that directory I have Basic4PPC.exe and your file renamed to Basic4PPC.0409.MUI.exe
If I run the first it does not run in VGA mode, it is normal.
If I run the second it says Not a valid ppc application.

I must be doing something wrong.

Also, I don't understand the extension 0409.MUI, why is it added and what does it do?

Further help appreciated
Reply With Quote
  #7 (permalink)  
Old 10-13-2007, 11:49 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,138
Default

Sorry my mistake on the previous post....

it should have read....
myapp.exe.0409.mui

This, as I understand it, makes a call to a system file changing it's visusl parameters....

For further information please google it...
As I'm still also looking for a more effective way of achieveing this...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #8 (permalink)  
Old 10-13-2007, 12:02 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,138
Default

Found this re-stating and explaining a bit better the procedure...

http://www.aximsite.com/boards/windo...ile-5-0-a.html
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #9 (permalink)  
Old 10-13-2007, 12:33 PM
Knows the basics
 
Join Date: Oct 2007
Posts: 90
Default

Thank you Cableguy. Reading the article caused me to realise I mis-read\understood your original post and put .exe on the end of the mui file.

Sorry for wasting your time, it now works.
Reply With Quote
  #10 (permalink)  
Old 10-13-2007, 12:53 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,138
Default

If someone can learn anything, then no time is waisted, even if it is just to realise that nothing was taught.
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
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
Using true and false klaus Code Samples & Tips 2 01-30-2008 03:12 PM
True/False values and SQL tables skipper Questions & Help Needed 6 01-18-2008 08:13 AM


All times are GMT. The time now is 01:16 AM.


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