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.

Again: Minimize button

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-12-2009, 07:18 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default Again: Minimize button

In a complex program I want to minimize the main form and I don't get it done.

To isolate the problem, I have written a most simple test program as follows:

Sub App_Start
Form1.show
flb1.New1("Form1" ,B4PObject(1))
flb1.FullScreen2(False,False)
flb1.MinimizeBox=True
End Sub

On the PC it runs very well, a minimize button is added and clicking on it the form is minimized.

However on the device the button stays an X and the behaviour is still closing the application.

I must be overlooking something, but what?

Harry
Reply With Quote
  #2 (permalink)  
Old 08-13-2009, 05:27 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

From the help on Form:

Quote:
The first form that is shown will be the main form.
Program ends when the user closes the main form (or using AppClose).
When closing non main forms the forms actually hide and can be visible again using Form.Show
I understand that what happens to you is because the form you are trying to minimize is the main form, the first form that the program shows.

A workaround - call another form first (the form that you want to show after you minimize ) and immediately the form you want to show.

If the form is the only one, and you want to minimize the program - use notifyicon.dll
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 08-13-2009 at 05:29 AM.
Reply With Quote
  #3 (permalink)  
Old 08-13-2009, 06:21 AM
Basic4ppc Expert
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 571
Send a message via Skype™ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by HARRY View Post
However on the device the button stays an X and the behaviour is still closing the application.

I must be overlooking something, but what?
The 'X'-button IS the minimize button on the device!

Standard is the 'Ok' button which closes the form. With MinimizeBox=True you set it to the 'X'-button and the form will be minimized.

Be aware that many task managers change the function of the 'X' button to a real close button. If you use such task manager it may have a function to put your application on an exclusion list.

Greetings,
Markus
Reply With Quote
  #4 (permalink)  
Old 08-14-2009, 08:32 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Thanks for your remarks, I solved my 'problem' with ShowTodayScreen from the Hardware library.

Harry
Reply With Quote
  #5 (permalink)  
Old 11-05-2010, 09:11 PM
Junior Member
 
Join Date: Oct 2010
Location: Piaseczno, Poland
Posts: 19
Default

Is there any way to acutally minimize the main form via runtime instead of minimize button? I want my app to hide in background in a Timer.Tick event.
But I don't want to get the user back in the TodayScreen or HomeScreen, but only to hide my app into background.

I have only one form and I use it as fullscreen...
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
HIDE TITLE BAR ? hide title, minimize , max and Close button (FOR DESSKTOP EXE) pegamaster Questions (Windows Mobile) 2 03-27-2012 05:42 PM
Minimize Application akr Questions (Windows Mobile) 5 08-15-2009 10:05 PM
Hide, Minimize and into Notifytray Basseman Code Samples & Tips 2 02-07-2009 05:51 PM
Sample minimize and Notify icon HARRY Questions (Windows Mobile) 4 12-20-2008 02:24 PM
minimize or close? Byak@ Questions (Windows Mobile) 3 09-28-2008 04:18 PM


All times are GMT. The time now is 10:22 AM.


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