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.
I've done a search in both the Leo forums as well as xda in general and can't see a solution for my problem:
I am unable to scroll within excel mobile. Whenever I drag my finger across the screen it selects cells rather than scrolling. This isn't a problem if I wish to move up and down as the vertical scroll bar is visible and can be used. However, the horizontal scroll bar doesn't display even though it is selected in the menu.
Can anyone suggest what I can do to fix this? Thanks in advance.
bump
can anyone help?
When you open Excel, click on the right side of the screen (= scroll bar) and the scroll-button will appear. Use that to scroll up and down. The same goes for the horizontal scroll bar (well, it's on the bottom of the Excel screen and you scroll from left to right ;-)). Should be there, otherwise I wouldn't know.
Thanks for the reply but unfortunately the horizontal scroll bar isn't visible on the screen, even though when I go into view -> show the horizontal scroll bar checkbox is ticked.
The vertical scroll bar also works like a "normal" scroll bar in that the scrolling part is always the same size; it doesn't increase in size when the scroll bar is tapped on. However, I seem to remember that's how it used to work when I first got the phone, so perhaps in all the various tweaks and things I've done since I've unwittingly edited something that is affecting it?!
Oh well.
You're not in full screen mode are you?
And have you tried opening a new document?
No not in full screen mode, and I have opened various different (existing) spreadsheets, and tried creating a new one and the same thing happens in all of them.
I've solved the problem. A little look into HD2Tweak and I spotted an option for horizontal scroll bar which was set to none. I changed it to normal and a quick soft reset later and I was able to see the horizontal scroll bar again; not just in Excel but other apps too.
I don't remember switching it to none, but am just glad it's working again now!
Hi,
Few days back, I came through a tutorial on google developer site for creating a slide view.
The contral was more or less was like images attached:
I contsists of 3 tabs/fragments - 1 main & 2 partially displayed on left & right (previous & next). User can slide left and right for the next and previous tab are displayed in the swipe animation fashion.
I tried searching for this tutorial but not able to find it again. It was provided with its full code and was somewhere in the gestures section.
If anyone has a clue what I'm talking about. Please help.
Thank You
Hi All
I've just (stupidly?) upgraded the firmware on my Galaxy Note 3 to the new 4.4.2. I use the built-in web browser and have discovered that despite being able to have a number of windows open simultaneously (I currently have nine according to the tab in the top right corner), I'm only able to preview a maximum of four and can no longer scroll through all the open pages and tap on the one I want to access. If I close a page, one that I already have open pops up at the bottom, and if I open a new page, the oldest one gets bumped from the list but seems to still be open.
I've been through the settings available and can't seem to find any options to change this. Has anyone experienced this and knows how to fix it? Otherwise I'm open to any suggestions
Thank you!
- am.
Using AT&T 950. Some of the apps go blank on some screens. Others are blocked out at the bottom of the screen by the navigation bar.
For example:
Ebay app - when I click on the search icon, the screen goes blank, but I still see the keyboard and top info bar. It will allow me to type and when I click enter, the search does come up. I can't see what s being typed, but do see the results.
Navigon - When I go to the map manager, the screen goes black again. (except for the top and bottom menu bars). If I rotate the phone to landscape and then back to portrait, it then shows up.
Podcasts - when on the Collection screen, the Download text is half covered up at the bottom with the bottom menu bar.
There's more but I think this gives a good representation. I was running the latest standard release. I did update using Windows Preview for Developers didn't fix it. Thanks in advance.
Will