View Full Version : Display on Pocketpc
telterry
11-02-2004, 04:39 AM
Has anyone managed to get their app to display ok on a pocketpc machine. My app displays but is so small as to be unusable, I have searched for flash settings on the pocketpc to get it to display bigger but cannot find any reference.
thadsmith
11-02-2004, 02:09 PM
I haven't done this yet, but we are planning on having our app run on the pocketpc so I've been giving it some thought.
Obviously if you try to view a typical app on a pocket pc it's going to try to scale it down to the screen resolution (it's a "feature" of windows ce). Basically what you'll have to do is have a webapp that drives sending your app to the browser (a jsp for instance) that detects what kind of browser the client is running and generates the code to your app accordingly. It can detect it by checking the http USER_AGENT variable:
<% if ( request.getHeader("USER_AGENT").equalsIgnoreCase("windows ce"))
{
%>
<canvas width="10" height="10">
...
<% } else { %>
<canvas width="800" height="600">
...
You can probably do this on the client by wrapping your app inside of an html page that kicks off a script before loading your app and redirects to another location if the browser is on a pocket pc device.
Thad Smith
telterry
11-02-2004, 11:47 PM
thadsmith,
Thanks for your prompt reply I will give this s try and post my results
telterry
11-03-2004, 08:52 AM
Thadsmith,
Having played around a bit with Internet Explorer I found that if you untick the 'Fit to Screen' option in 'View' the display works very well. Obviously you have to set the fonts etc. smaller to get a decnt bit of screen real estate but as I say it works very well. Now all I am waiting for is the compile option for Laszlo and realtime ordering on a show stand becomes so much easier.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.