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.

Problem With Form Size

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-04-2008, 03:26 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default Problem With Form Size

Maybe I'm just a little rusty having not played with B4PPC for a few weeks, but this problem seems to have got the better of me....

I have one Form that is hidden using it's visible property, this is accessible via the taskbar (my application is used on the desktop only!)
At a set time I want to display another Form much like a message box but with added options/controls.
This I've been able to do easily enough but for some reason I cannot change its size
The Form always occupies the same area as the first hidden Form would occupy. Setting the Form Height and Width does nothing.
I've tried refreshing the Form afterwards but this has no effect. As I am already using the door library to remove the control box I have also tried using this to set the Form height and Width but still no joy.

Are my problems due to having the first Form hidden and if so how can I overcome this?
I've tried Setting the Form screen size in the IDE but this affects both Forms

What I would like to acheive is a pop up message box with custom controls that will allow the user to accept, cancel or be reminded in x amount of days.

If needed I can attach my code but as I'm using several libraries I thought it best to ask the question first as am sure to have overlooked something really simple.

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #2 (permalink)  
Old 09-04-2008, 04:20 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

If you want to set different sizes to different forms you should use agraham's http://www.basic4ppc.com/forum/addit...libraries.html
Reply With Quote
  #3 (permalink)  
Old 09-04-2008, 04:39 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

This is normal behaviour. All the B4ppc forms in an app are the same size. If you want more flexibility on the desktop then try my FormExDesktop library http://www.basic4ppc.com/forum/addit...libraries.html

Note that despite what it implies in the help you can no longer mix standard Forms and FormExs in an app. You used to be able to when I originally wrote the library but changes in B4ppc over time mean that the first Form shown, even after a FormEx, becomes the main form and the app closes when that form is closed.

When the latest version of B4ppc is released I will be releasing a new version fully compatible with modules so I will update the help then, once I have characterised the behaviour properly.

EDIT :- Damn (again !) Erel got in while I was composing a reply.

Last edited by agraham : 09-04-2008 at 04:41 PM.
Reply With Quote
  #4 (permalink)  
Old 09-04-2008, 06:49 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks guys.

Guess its about time I upgraded to the next version but will this mean that I need to place my existing code into modules or are modules just an added feature that can be used if desired?

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #5 (permalink)  
Old 09-04-2008, 06:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Quote:
but will this mean that I need to place my existing code into modules or are modules just an added feature that can be used if desired?
The new (beta) version is backwards compatible. All your code will appear in the main module and you can continue to work as usual.
Reply With Quote
  #6 (permalink)  
Old 09-04-2008, 06:58 PM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thats great news, thanks Erel!

##### New subscription on its way #####

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #7 (permalink)  
Old 09-05-2008, 10:23 AM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default Using FormExDesktop....

I'm now trying to move my app across to use the FormExDesktop library as suggested above, but after adding a FormEx Object called AdvancedProperties I seem unable to use the Form I created within the IDE.

I've tried AdvancedProperties.New1("FormName") which has added the Form from the IDE but none of the controls that were placed within it. Where have I gone wrong?

Regards,
RandomCoder.

PS, Still waiting for PayPal to process my payment, then I'll be bang up to date
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #8 (permalink)  
Old 09-05-2008, 10:32 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by RandomCoder View Post
Where have I gone wrong?
Does the demo work for you? There is a lot of detail in there showing how to do a lot of things with a FormEx.

You do realize that FormEx replaces, not enhances, a standard form! If the form shows without controls it sounds as though you have started the app with Formname.Show (from which all the controls have been stolen) and not AdvancedProperties.Run.
Reply With Quote
  #9 (permalink)  
Old 09-05-2008, 10:32 AM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

With a little more experimentation I have found where I am going wrong....
Instead of using the normal FormName.Show this needed to be replaced by AdvancedProperties.Run so as to call up the new extended form.

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #10 (permalink)  
Old 09-05-2008, 10:35 AM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Agraham your far too quick for me
I'm sure there will be plenty more hurdles for me to jump yet so I'm sure that I will be needing your help in the non too distant future.

Thanks,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
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
Newbie: Form Size 264h enonod Questions (Windows Mobile) 7 04-28-2008 11:14 AM
Changing the size of a form magi6162 Questions (Windows Mobile) 1 10-24-2007 07:38 AM
screen size to form size relation Cableguy Basic4ppc Wishlist 2 08-14-2007 09:40 PM
Form size problem on PC? agraham Bug Reports 12 07-05-2007 12:00 PM
Menu changes Form Size BPak Questions (Windows Mobile) 2 05-06-2007 05:56 AM


All times are GMT. The time now is 02:14 AM.


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