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.

big OK button in msgbox

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-12-2009, 06:18 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 78
Default big OK button in msgbox

How to realize a big ok button in a messagebox "cMsgboxOK" so that it can be pressed with the finger?
Reply With Quote
  #2 (permalink)  
Old 09-12-2009, 06:30 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The message box is not customizable.
You can however show a panel with a large button instead of the msgbox.
__________________
Basic4android documentation
Reply With Quote
  #3 (permalink)  
Old 09-13-2009, 03:17 AM
Newbie
 
Join Date: Sep 2009
Posts: 6
Default

Is there some sort of panel that can be made smaller? Maybe a quarter of the pocket pc screen. I have several used for such an animal
Reply With Quote
  #4 (permalink)  
Old 09-13-2009, 04:56 AM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

Try this (note that I use form1.text for dubug only):

Code:
Sub Globals
    
'Declare the global variables here.
    jump = -10
End Sub

Sub App_Start
    AddForm(
"Form1""Form1")
    AddPanel(
"Form1""Panel1"0, Form1.Height, Form1.Width, 100)
    AddTimer(
"Timer1")
    panel1.color = cRed
    AddButton(
"Form1""B2"005050)
    form1.text = panel1.top
    timer1.interval = 
10
    AddButton(
"Panel1""B1"90205050)
    Form1.Show
    
End Sub

Sub Timer1_Tick
    panel1.top = panel1.top + jump
    form1.text = panel1.top

    
If panel1.top + panel1.height <= form1.height Then
        panel1.top = form1.height - panel1.height
        timer1.enabled = 
False
    
End If
End Sub

Sub b2_Click
    timer1.enabled = 
True
End Sub
Sub B1_Click

    AppClose
End Sub
Reply With Quote
  #5 (permalink)  
Old 09-14-2009, 10:11 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 78
Default

how to realize that the app waits on a click on the ok button in the panel like it works at msgbox?
Reply With Quote
  #6 (permalink)  
Old 09-14-2009, 10:52 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

As long as the customized panel in the top-most z-order, the app will wait for the button click, as long as there is no other loops or for-next going on...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #7 (permalink)  
Old 09-14-2009, 11:02 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 78
Default

excuse me, what das it mean "in the top-most z-order"
Reply With Quote
  #8 (permalink)  
Old 09-15-2009, 08:57 AM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

Z-order is the order in which controls (visible or invisible) controls on the form are sorted.
Use textbox1.sentToBack to send a control (textbox1 in this case) to be the last one. This means if anything else is at the same place it will be drawn on top of this textbox. Use control.BringToFront for the opposite action. The last one you place is the last on the z order. So, "last on the z-order" means - totaly visible, on top of others. If your panel (like in the sample code above) is the last one and is visible, the user can click the button. Note that the program does not necessarily wait, this depends on what you do after you show the panel. But if it's there you can click it.
Reply With Quote
  #9 (permalink)  
Old 09-16-2009, 07:52 AM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

Georg - did you manage to use this code? is it working ok? I think of publishing it as an added module and would like to have some feedback if you've used it.

Best regards,
Ariel
Reply With Quote
  #10 (permalink)  
Old 09-20-2009, 07:43 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 78
Default

Ariel - I used this code. But it doesn't work like I wont. I need a wait after calling the OK panel, because there a some commands behind calling the panelok the sub.

p.E.

sub test
....
....
panelok
.... ' here the app should wait
....
form1.show
end sub

Last edited by Georg : 09-20-2009 at 05:49 PM.
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
MsgBox with a big OK-button on the device schimanski Questions (Windows Mobile) 2 02-21-2009 03:50 PM
Msgbox Question cdeane Questions (Windows Mobile) 2 05-04-2008 10:23 PM
MsgBox does not work? skipper Bug Reports 2 01-05-2008 10:28 AM
Msgbox Vito Questions (Windows Mobile) 2 11-19-2007 09:05 AM


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


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