Basic4ppc - Windows Mobile Development  

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

Questions & Help Needed Post any question regarding Basic4ppc.


Another newbie question: How to refere to the active form?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2007, 06:50 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default Another newbie question: How to refere to the active form?

Hi,

My question is probably very stupid by I have not been able to locate this information in the help, neither in my searches on this forum.

How can I make reference to the active form?

I have two forms in my applet and I would be able to get the height/width of the form which is shown on the screen. I was creating a global variable that I was planning to update each time I change the form on the screen but I have thought that maybe there is a more natural way to do it.

Is there a variable or a method that refers to the active form?

Thanks again for your help!

Regards,

Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French
PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...)
Reply With Quote
  #2 (permalink)  
Old 11-17-2007, 06:54 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,845
Default

No, you will need to track it yourself.
You could use the Control keyword to make it simpler.
BTW, both forms will always have the same size (on the device).
Screen orientation changes affect all forms.
In your case you could check the size of a specific form.
Reply With Quote
  #3 (permalink)  
Old 11-17-2007, 07:55 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default

Thank you Erel!

Very nice trick. I was not sure if the size change was not specific to the shown form. This trick will make my code simpler!

Regards,

Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French
PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...)
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
Newbie Question Stevenator65 Questions & Help Needed 9 05-30-2008 08:53 PM
SQLite external library newbie question JamesC Questions & Help Needed 2 05-29-2008 03:48 AM
Newbie question - arrays and tables BjornF Questions & Help Needed 3 05-15-2008 09:29 AM
How to check if Form is active Mr_Gee Questions & Help Needed 5 05-07-2008 03:00 PM
Newbie - question about loadXML yildi Questions & Help Needed 6 11-12-2007 11:43 PM


All times are GMT. The time now is 07:32 AM.


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