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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Build proper desktop apps in B4PPC with this awesome Forms library

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 11-27-2007, 09:33 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default Form disappearing...

I have been playing around with the FormExDesktop example and I thought I understood how it worked, but apparently not.

In the example attached I have first created a form with two buttons and then used the New1 method to create an extended form. When I try to show the form it just shows on the screen and then disappears. Putting a msgbox command before the end of the App_Start sub prevents the form from disappearing. No errormessages.

I am obviously doing something wrong but I can't understand what.

Any help would be appreciated.

all the best / Björn
Attached Files
File Type: zip Reference program.zip (9.7 KB, 27 views)
Reply With Quote
  #22 (permalink)  
Old 11-27-2007, 02:46 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

To start the app off you need to do either a Show on a native B4PPC Form or a Run on a FormEx Form (but not both). Both of these methods start a message handling loop which the application needs in order to keep running. You are Showing a FormEx so replace your "Show" with "Run" and it works OK.

Show on a FormEx is different to a Show on a native Form. On a FormEx form it just makes it visible. On a native form the first Show in AppStart starts the message loop. Thereafter both Shows do much the same.

See the comments in the FormExDesktop example at the "Start Application" reqion that try to explain the constraints. I guess that I should have made that plain in the help file. Sorry.

Note that Close on a FormEx actually closes and disposes the FormEx. On a native Form it only hides it. Trap the Closing event on a FormEx as shown in the example "Closing events - makes it more like B4PPC" region and call CancelClose and Hide to get B4PPC behaviour. FormEx5 and FormEx6 - MDI Child windows - are not protected like this in the example and so get disposed if you close them.
Reply With Quote
  #23 (permalink)  
Old 11-27-2007, 02:55 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default

That explains it, thank you ! / Björn
Reply With Quote
  #24 (permalink)  
Old 07-29-2008, 08:03 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Missing the cs file for merging, and for a minor mod...
I think I can do it my self, but wouldn't want to spoil your work...
I would like to ask you to add an "FormIcon" propertie, so that we could set the....form's icon....
Also, some merging with notify lib would be nice...
Thanks...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #25 (permalink)  
Old 07-29-2008, 08:18 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

Quote:
Originally Posted by Cableguy View Post
Missing the cs file for merging, and for a minor mod...
I'll think about that tomorrow.
Quote:
I would like to ask you to add an "FormIcon" propertie, so that we could set the....form's icon....
From http://www.basic4ppc.com/forum/addit...libraries.html post #2 "Updated FormExDesktop 1.4 now has an additional property that allows the forms' icon to be specified."
Quote:
Also, some merging with notify lib would be nice...
Do you mean the ControlsExDesktop library?

Last edited by agraham : 07-29-2008 at 08:21 PM.
Reply With Quote
Old 07-29-2008, 09:17 PM
Cableguy
This message has been deleted by Cableguy.
  #26 (permalink)  
Old 07-30-2008, 04:19 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

In case anybody comes across or revisits this thread FormExDesktop is now supported in this thread http://www.basic4ppc.com/forum/addit...libraries.html where the latest version is available.
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
Problem with B4PPC itself, on desktop mjcoon Questions (Windows Mobile) 2 06-06-2008 05:59 AM
control (build in) webcam on desktop Mr_Gee Questions (Windows Mobile) 9 05-22-2008 04:59 PM
Redirection from desktop to B4PPC on compile taximania Chit Chat 4 02-04-2008 07:05 PM
Using Windows API (Desktop) with b4ppc? jesb4ppc Questions (Windows Mobile) 5 08-27-2007 07:51 PM
Desktop: Forms with differnet sizes sloopa Questions (Windows Mobile) 2 05-06-2007 04:41 PM


All times are GMT. The time now is 10:10 PM.


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