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.

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: 64
Awards Showcase
Beta Tester 
Total Awards: 1
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: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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: 64
Awards Showcase
Beta Tester 
Total Awards: 1
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLite newbie question JamesC Chit Chat 1 08-01-2008 08:26 AM
Newbie Question Stevenator65 Questions (Windows Mobile) 9 05-30-2008 08:53 PM
Newbie question - arrays and tables BjornF Questions (Windows Mobile) 3 05-15-2008 09:29 AM
How to check if Form is active Mr_Gee Questions (Windows Mobile) 5 05-07-2008 03:00 PM
Newbie - question about loadXML yildi Questions (Windows Mobile) 6 11-12-2007 11:43 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