Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Form Visible? In Focus?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2008, 10:34 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default Form Visible? In Focus?

I'm looking for a property that I can view to see whether a form is visible or not.

I have an application (Pocket Forecast) that can be configured to get an update and refresh the screen. The problem is that if the program is minimized that I don't want to refresh the screen (but I want to continue getting updates). The application can be maximized by other programs such as Task Manager.

The only way I can think of is to check to see whether the form is in focus or is visible, and if it isn't then not to update the screen.

Is there a way to do this?
Reply With Quote
  #2 (permalink)  
Old 12-03-2008, 03:54 AM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default

Quote:
Originally Posted by digitaldon37 View Post
I'm looking for a property that I can view to see whether a form is visible or not.

I have an application (Pocket Forecast) that can be configured to get an update and refresh the screen. The problem is that if the program is minimized that I don't want to refresh the screen (but I want to continue getting updates). The application can be maximized by other programs such as Task Manager.

The only way I can think of is to check to see whether the form is in focus or is visible, and if it isn't then not to update the screen.

Is there a way to do this?
I found the Form property "WindowState" (implemented via the Door library) but it didn't work for what was needing, since I am using the hardware library function ShowToday. It did work on the PC version since it was being minimized through the minimize button (set the state to "Minimized") but since I was using ShowToday the WindowState returned "Normal" on the PDA.

So I found the answer to my question, although it didn't fix my problem. And I hadn't noticed that Klaus had added some code that was exactly what I needed - I should have looked more closely in the first place.
Reply With Quote
  #3 (permalink)  
Old 12-03-2008, 09:26 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by digitaldon37 View Post
I'm looking for a property that I can view to see whether a form is visible or not.

I have an application (Pocket Forecast) that can be configured to get an update and refresh the screen. The problem is that if the program is minimized that I don't want to refresh the screen (but I want to continue getting updates). The application can be maximized by other programs such as Task Manager.

The only way I can think of is to check to see whether the form is in focus or is visible, and if it isn't then not to update the screen.

Is there a way to do this?
Agraham wrote another great lib, System state, which can tell you
which application has focus/is active
as long as the "active != Pocket Forecast" you don't have to update the screen :-)
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make the title bar invisible and menu bar visible in full screen on the device mozaharul Questions (Windows Mobile) 2 08-17-2008 08:46 AM
Focus pmu5757 Questions (Windows Mobile) 2 03-21-2008 06:16 PM
Focus pmu5757 Basic4ppc Wishlist 2 03-21-2008 06:11 PM
Control.Visible problem in optimise compile agraham Bug Reports 1 01-14-2008 07:54 PM
Visible property for menus alfcen Basic4ppc Wishlist 2 11-11-2007 12:15 PM


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


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0