Related
Hi,
I have an application which has been running nicely on Harrier and iMate devices, well any PPC devices really because of their rectangular screen shape.
My client has gone and bought some Palm Treo 700wx devices, and they have a smaller square screen.
In the resource of my project the screens are designed to fit PPC. When it runs on the Treo the Treo automatically pops up a scroll bar to allow the whole view to be seen.
The issue is when I first go into the app I can't see the top of the screen, about 20 odd pixels heigh aren't displayed. The scroll bar still displays and I can scroll down to the bottom of the view, and when I scroll up again the top of the screen is still out of sight.
If I exit the app just by tapping on the x in the top right corner (so the app is still running, not exiting properly via my Exit button which shuts down the app), I exit the app and then when I go back into the app the screens are displayed correctly, there is no missing space at the top of the screen.
If I exit the app via my exit button and then start the app again, the top of the view is missing again.
Does anyone know why the screen isn't displayed correctly when I first enter the app, or why it should come right when reloading the view again? Has anyone else had problems with screen layout when putting PPC apps on the square Treo 700wx?
Thanks
It sounds like you have a 'refresh' problem. I haven't encountered this my self and it is really hard to diagnose when you don't even tell us what language your app is written in, but basically here is what I think happens:
When your app is launched, part of its window doesn't get properly painted (not sure why exactly).
When you click the X the app isn't closed, but minimized.
When you return to it the window is maximized and repainted. Second repaint goes correctly.
The quick solution to this would be to force a window refresh just after the app is fully started.
Sorry I forgot to add the language.. it's written in eVC++ 3.0
I'll give the refresh a go, thanks
Further Questions..
I thought that minimising and then maximising the screen fixed the problem, but only partially..
Because the screen in resource is designed for regular PPC it is bigger than the Treo 700 screen size, so the OS automatically shows a scroll bar.
The new issue I'm seeing is to do with the scroll bar. The steps I take to reproduce the issue are:
1. Go to View1, and I scroll down the view (I'm using CView not CDialog)
2. Go to View2
3. Go back to View1. When I go back to the first view the scrollbar is scrolled down in the position I left it.
4. Scroll up to top of view and some of the controls in the wrong place. Some controls I dynamically create in OnInitialUpdate, and as part of the Create() I pass in CRect to tell it where to create the control.
If I set CRect.top to say 10, it's created 10 down from the top of the visible screen. The problem is that because I've scrolled the view previously the view draws it 10 down on the visible portion of the view.
I had thought that the easiest solution would be to always reset the scroll bar to the top of the view before creating my controls, but I'm not sure how to force the OS scroll bar to the top of the view. I've tried SetScrollPos(0,0) or ScrollWindow(0, y). ScrollWindow moves the actual view up or down, but the OS scrollbar is still in the same position.
Any ideas on how to set my view window to the top and to reset the scrollbar?
Thanks again
How to refresh a view?
I have sorted the issue mentioned just above, by finding the scroll position and factoring in that when I set the value of CRect area of the controls I need to dynamically draw.
I'm now just left with the first issue, of when I first start up the app the top part of the window and scrollbar are covered by the Title/Taskbar at the top of the screen.
If I close the app via the x button and restart the app, the issue resolves itself. Or if I open up any dlg like the About screen or even display an AfxMessageBox, when I close the dialog the original screen is redrawn correctly, in the correct position and scroll bar fully shown.
I have tried calling RecalcLayout(), RefreshWindow(), UpdateWindow(), Sending WM_SIZE messages and a whole range of things, but I can't seem to get the screen refreshing correctly apart from when I open any dialog and close that dialog.
When you close a dialog what messages get sent to the previous view that force it to redraw? Does anyone have any suggestions how I can force a refresh myself?
Thanks again
Did you try InvalidateRect?
I am getting a bit rusty with MFC, since I now try to do things the hard way and use pure win 32, but this should work.
If you can't use it as a class member, call the API directly using you view GetSafeHwnd() function for window handle). Use NULL for lpRect to redraw the whole window and FALSE for bErase to prevent flickering.
Note that UpdateWindow() only triggers repaint if part of the window becomes invalid (the contents needs redrawing).
No I hadn't thought of using InvalidateRect(), so I should give it a go.
In the end I just wanted the issue fixed so opted for a quick 'n dirty solution of displaying a temp CDialog as soon as the app starts and calling EndDialog() immediately in the OnInitDialog() so the dialog disappears before you see it.
It worked and the original screen gets updated to correct size, layout and scroll bar.
Cheers.
Surely not. I zoom in on a photo using circular gesture but i can not drag the photo to see all of it while zoomed. Am I missing something????
Yes, you are.
Long press the pic and enjoy.
Yeah this took me ages to work out too!
Don't click and drag. Click and hold the stylus on the picture and after a sec or two you get a little window appear that shows where you are on the picture. then you can drag around
Thanks guys for informing....I also thought that it was not possible on HD ...
Thanks again
There's this thing called a "manual".
Comes in handy sometimes
yes you are rite
NightStand is a simple alarm clock application with large numbers to be easily seen.
It allows for the phone to dim the screen but keeps it from turning off for that middle of the night glance to see what time it is.
Features Include:
Alarm with 8 sounds
Custom Color of the Digits
5 Minute Snooze Button
Solve an easy math problem to help you wake up (to you turn alarm off)
Automatically runs on AC power (optional)
Keep the device awake or let it go to sleep (optional)
12/24 Hour setting
How To Use:
When you run the application click on the configure button (upper right corner) to set all the settings
Three sliders allow you to set the custom color.
Alarm toggle to set the alarm and the sound.
AC Toggle to set Auto mode.
When the alarm is going off, click the snooze button to snooze or click anywhere on the screen to stop the alarm.
Update 1.1
The alarm should now go off regardless of what phase the phone is in (device awake or sleep), the app is running or not.
Screen is flipped
Update 1.2
Added an option to flip the screen
Update 1.2.1
Minor Update to start NightStand with correct orientation, Flip Screen option takes effect right away
Updated to work on HD2
Update 1.2.2
Fixed shifted screen on WVGA resolution (I think)
Added toggle for math question on exit
Phone stays awake while alarm is going off (for heavy sleepers like myself )
Looks nice.
A couple of issues on my TP2. The display is rotated the wrong way, and sliding the keyboard our causes it to get distorted. I'd prefer to use it with the keyboard out as I can tilt my phone .
I like it though, nice start.
P.S. let me know if you want the thread moving to the Development & Hacking apps forum from the Diamond one.
Dave
I just uploaded an updated version, try it out and let me know if it works better with the keyboard out.
Thanks
It crashes if you run the app with the keyboard out, and it is still upside down if I open the Keyboard after running the app.
Ta
Dave
it rotates correctly on my tp2, thanks just what i was looking for
Awesome work!I really like the big number.but,why not add a toggle button to turn off the backlight in the settings.I think it will waste lots of power when the device keeps dim.Perhaps you can add a sensor to lighten the lcd when we want to see what's the time now.
This Doesnt Work on my HTC HD2 even tho it suports WVGA Screens, WHY??
thanx.
hermanm said:
NightStand is a simple alarm clock application with large numbers to be easily seen.
It allows for the phone to dim the screen but keeps it from turning off for that middle of the night glance to see what time it is.
Features Include:
Alarm with 8 sounds
Custom Color of the Digits
5 Minute Snooze Button
Solve an easy math problem to help you wake up (to you turn alarm off)
Automatically runs on AC power (optional)
12/24 Hour setting
How To Use:
When you run the application click on the configure button (upper right corner) to set all the settings
Three sliders allow you to set the custom color.
Alarm toggle to set the alarm and the sound.
AC Toggle to set Auto mode.
When the alarm is going off, click the snooze button to snooze or click anywhere on the screen to stop the alarm.
Click to expand...
Click to collapse
DaveShaw said:
It crashes if you run the app with the keyboard out, and it is still upside down if I open the Keyboard after running the app.
Ta
Dave
Click to expand...
Click to collapse
same here. Great work though! Love it.
XDAPPCgeeks said:
it rotates correctly on my tp2, thanks just what i was looking for
Click to expand...
Click to collapse
does yours work when u slide open the keyboard and tilt it? i know i can use changescreen to change to rotation but it doesn't work with the keyboard open.
edit: i've jus hard reset and it works fine now even with keyboard open. Sorry for any inconvenience.
Same here, on my HD2 it's a nasty mix of colour. it needs something else to add?
remotek said:
This Doesnt Work on my HTC HD2 even tho it suports WVGA Screens, WHY??
thanx.
Click to expand...
Click to collapse
same here, on my HD2 I've got only two color squares in the corners and one big rectangle in the middle... so no clock. settings and exit "square" button work well.
Not working on my HD2 either. Two boxes of colour on each side of the left hand side of the screen - one to change settings and one to exit plus a big box in the middle which is meant to be the digits i guess.
I got an error starting the program:
Can't find PInvoke DLL 'libgles_cm.dll'.
I got the same error on my omnia.
Can't find PInvoke DLL 'libgles_cm.dll'.
Please try to fix it. This is the program that I have been waiting for. Too Cool.
Robb
I got an error starting the program:
Can't find PInvoke DLL 'libgles_cm.dll'. (using HTC wm 6.1)
If you get the libgles_cm error i just uploaded a cab, give it a try
I got this error message when opening this program:
"MissingMethodException
This application requires a newer version of the Microsoft® .NET Compact Framework than the version installed on this device."
Please help.
you need .net 3.5
1.1 now has the correct orientation, but the display is messed up if I put the phone in Landscape and then open it.
Only a minor annoyance.
Dave
any way you could send me some screenshots so i can see if i can fix it..
Ok now working on my Omnia after installing 1.1 and the libgs cab you posted.
Two things.
First, if you have SPB Mobile Shell 3.0.1 installed, the app comes up but is shifted slightly. I believe this is because they do something with the top windows start bar. Not a huge deal but something I thought you could check into.
Secondly, Could you have a setting to determine which way to have the screen flip? I would like it 180 from where it is now. My power plug ends up on the bottom and so the phone won't sit level. If it was landscape but the other way, it would be perfect for the omnia.
Thanks,
Robb
Hi all,
I picked up my Galaxy on Monday although I haven't really had a proper play with it yet as i'm waiting for screen protector and case first
Anyway, one thing I did try out was playing some films. Depending on the resolution of the film some of them look perfect whilst the others looked squeezed together. I remember seeing something similar on the HTC Desire when I tried it out but it had the option to adjust the ratio and make do with top and bottom borders instead.
Is this possible with the Galaxy video player as I can't seem to find an option to change the ratio?
Thanks,
Dazz
When you are playing a file... bring up the play/pause menu by tapping the screen... you'll see a box in the right hand bottom corner of the play bar... tap it to cycle the aspect ratios.
crabby
Thanks crabby thats great, I thought it was the stop button
Just thought I would start a thread that could be useful about things you didn't know about your HTC one
I only found out tonight that if you swipe down your notification bar with 2 fingers it takes you straight to the shortcut tabs
That made me realise there are probably loads of features and gestures I don't know about?
Here is a list compiled from the thread...
1 : Swipe down with 2 fingers on notification bar takes you straight to shortcuts (Android 4.2 version only)
2 : If you scroll with 2 fingers in contacts, gallery, music, and many other apps, it scrolls much faster (using it in the contacts list goes through the alphabet, using it in the text converstaion list goes through dates of conversations)
3 : You can pinch zoom text-messages
4 : Double tap your Bluetooth button with camera active to remotely take a snap
5 : In camera, from the top swipe down and it'll switch from back to front camera and viceversa
6 : Tapping on the statusbar while in the app drawer or blinkfeed, music, people, and message app brings you straight up
7 : You don't have to pull up the lock or the time on the lock screen - swipe up anywhere to unlock your phone. Same goes for answering a call
8 : You can increase the volume on your tv via the volume rocker on your phone instead of the on screen buttons
9 : Quickly double tapping the home button brings up the recent apps list
10 : Three finger swipe from left to right on the homescreen brings you to share files menu
11 : You can adjust the brightness of the torch/flashlight with the volume rocker
12 : Hold down the power button and tap the home key to take a screenshot
13 : Holding the back button in the browser brings you to history
14 : In the photo gallery's edit>effects screen (under the magic wand icon), you can customise every preset by tapping and holding its thumbnail and dragging it to the "customise" bar that appears on the right. You can even start applying custom effects from scratch by doing this with the "no effects" thumbnail. You can then save the created preset
Also on that screen, pressing the 'A' button provides options go change the white balance of the picture (as you would normally pre-select in the camera app). A = 'as shot' but you can change it to cloudy, fluorescent, etc and also a couple of options the camera app doesn't have - shady and tungsten.
15 : If you have the camera app open and turn off the phone, the lockscreen will be inactive, meaning when you press the power button again you go straight back to the camera app, no need to unlock
16 : Select "Show Magnifier" in the Accessibility menu and you get a magnifying lens that pops up when you are editing text
17 : Long press home for google now (depending on setup sometimes home and up also takes you to google now)
18 : In Google play if you are listening to a song and have the album artwork up (the screen where you have your pause/play, next/previous track)
You can swipe right to left to skip the track it left to right to go to the previous track. There's a cool sliding in/out animation too.
The coolest feature though, is that you don't have to press back to get back to your library or playlist. You can swipe down from the songbtitle and your library of songs is waiting behind it.
19 : In the Stock Browser go to Menu>Settings>Labs to switch on "Quick Controls". Slide thumb from left or right edge to open quick controls and hide app and URL bars.
Also swipe across the keyboard to easily switch to the numbers and symbols pages!
20 : You can access HTC's hidden Self diagnostic tool by following steps:
Go to dialer,
Dial *#*#3424#*#*
You will enter HTC's self diagnostic tool
You can check if all the parts and sensors on your device is working.
21 : If you're watching tv and have the tv remote enabled and you're getting a call it automatically mutes the tv.
22 : There's a visualizer and karaoke player embedded in the HTC music app. Just click the musical note icon when playing a popular song that's on Gracenote. The app will automatically download lyrics and sync them to the song.
By default, this only works on Wi-Fi. This can be changed in Music settings.
23 : You can also set a different wallpaper for the lockscreen than for the homescreen by going to settings -> personalize -> lockscreen and then settings for the wallpaper lockscreen.
24 : Rotating your calculator to landscape provides scientific functions like sin cos and tan.
25 : if you leave the TV app open to your remote and you lock your phone...it unlocks right back Into the TV remote. I've also noticed it just turning itself on when I pick it up!
26 : There's a cool trick in the camera app.
If you touch to focus, and hold your finger there for about a second, it will activate Focus and Exposure lock, until you tap on another spot, which will turn it off again. It's a handy feature, especially when you want to recompose. (android 4.2 version only)
wakers said:
Just thought I would start a thread that could be useful about things you didn't know about your HTC one
I only found out tonight that if you swipe down your notification bar with 2 fingers it takes you straight to the shortcut tabs
That made me realise there are probably loads of features and gestures I don't know about?
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Not trying to rain on your parade but that is a Android feature introduced in 4.2.
You should go to settings and then display and you can now set the home key as the menu button when long pressing.
In the HTC keyboard settings, you can enable Swype and in advanced you can even set the swype colour.
Another one, if you scroll with 2 fingers in gallery, music, and many other apps, it scrolls much faster
Pretty known one.. In the browser menu, you can enable flash player
There are lots of fun features with zoe's after you've made them (comparable to GS4) like sequence shot, removing objects, and waaay more
sent from my HTC One using Tapatalk 4 (VIP)
I don't how the heck my phone got scratch!
Also, turn off HTC-gestures if you want more than 3-point touch capability.
pepporony said:
I don't how the heck my phone got scratch!
Click to expand...
Click to collapse
This.
*deleted mean drunken rambling*
Sorry
ArmedandDangerous said:
Also, turn off HTC-gestures if you want more than 3-point touch capability.
Click to expand...
Click to collapse
Wow, that had stumped me since I got the One. Thanks for that!!!
Too bad you can only give one thanks per post
If you mix alcohol and water and put it in a sandwich bag and freeze it, it will make a handheld icepack which will help you keep your overclocked processor, battery, and hands cold while charging, gaming, and torrenting.
Sent from my HTC One using xda app-developers app
nullkill said:
Not trying to rain on your parade but that is a Android feature introduced in 4.2.
You should go to settings and then display and you can now set the home key as the menu button when long pressing.
Click to expand...
Click to collapse
I'm just wishing Sprint releases this update soon
Sent from my HTCONE using xda premium
nullkill said:
Not trying to rain on your parade but that is a Android feature introduced in 4.2.
You should go to settings and then display and you can now set the home key as the menu button when long pressing.
Click to expand...
Click to collapse
Don't know why you think your raining on my parade just saying didn't know you could use 2 fingers
Knew about the long press on the home key though
Sent from my HTC One using xda premium
Also one more thing many have not realized yet. There is no file limit size when transferring files to the phone. No more FAT32 4GB file restrictions. That's the benefit of having ONLY MTP, but you lose out on faster transfers and universal USB Mass Storage support. You can fit a 20GB movie in if you want and if you have the space.
wakers said:
Just thought I would start a thread that could be useful about things you didn't know about your HTC one
I only found out tonight that if you swipe down your notification bar with 2 fingers it takes you straight to the shortcut tabs
That made me realise there are probably loads of features and gestures I don't know about?
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Didn't know that two finger pulldown.
On CM it's pulldown from the clock, I couldn't figure out how to do it with Sense.
This is great!
sassafras
sassafras_ said:
Didn't know that two finger pulldown.
On CM it's pulldown from the clock, I couldn't figure out how to do it with Sense.
This is great!
sassafras
Click to expand...
Click to collapse
the two finger pulldown is an AOSP 4.2 built in feature, the CM implementation is an option to swipe from left or right edge, AOKP has it as well, this can be disabled and the 2 swipe feature functions as normal.
djkinetic said:
the two finger pulldown is an AOSP 4.2 built in feature, the CM implementation is an option to swipe from left or right edge, AOKP has it as well, this can be disabled and the 2 swipe feature functions as normal.
Click to expand...
Click to collapse
Now I know. Having used CM10.1 almost exclusively for the last year and change, I sort of forgot that it wasn't exactly the same as AOSP.
To add to this thread: I bet a lot of people don't know that USB Audio out is built in and switches on-demand. I can finally use my phone with my Fiio E7!
sassafras
You can pinch zoom text-messages.
You can mute your phone when you turn it arround ( back to front)
Ringtone goes quieter when you take it out your pocket up to your ear.
Sent from my HTC One using xda premium
Double tap your Bluetooth button with camera active to remotely take a snap.
----------------------o('_')o----------------------
Sent from an HTC One with using xda app:
TrickDroid ROM 5.6
Bulletproof 1.10
In camera, from the top swipe down and it'll switch from back to front camera and viceversa.
Sent from my HTC myTouch 4g using xda premium
Wow I really thought this thread was pointless, no offense op, but some of these tips are really useful! Thanks guys.
Maybe it should be posted here the aroma freeze fix:
I know some people have problems shutting down their phone when this happens
If aroma installer freezes on you do the following:
1. Hold device's light sensor up to a bright light source (any lamp will do)
2. Hold power button down until buttons on bottom begin to blink, keep holding and phone will turn off!
Sent from my Tricked out HTC One
When booting into hboot it isn't necessary to hold both power and volume down
just power the device on and immediately hold the volume down and keep it held down until your in hboot
Sent from my HTC One using xda app-developers app