Newbie-Homemade Dialog Box needed

enonod

Well-Known Member
Licensed User
Longtime User
I have read as many threads as I can find and my conclusion is that there is no facility for user defined dialog box (even via API). If a new Form is used it is always full screen and width\height do not work. Such a large dalog is not good.

Is there no way a second Form can be resized?
Is there a way to use API calls to produce a popup window with controls in Modal mode?
 

enonod

Well-Known Member
Licensed User
Longtime User
Well thank you both, I don't know how I missed that, except I wasn't looking for Pane.
I must comment that this forum seems to bring out the best. Often similar forums being asked 'stupid questions' results in rudeness or sarcasm.
Thanks
 

agraham

Expert
Licensed User
Longtime User
In Cableguy's input panel if you add

B4X:
Sub txt1_LostFocus
   txt1.focus
End Sub

Then it will act like a modal dialogue box and not allow the user to do anything else until it is closed

EDIT: Probably obvious but for completeness I should have mentioned for Erels' example
B4X:
Sub txtName_LostFocus
   txtName.focus
End Sub
also makes a modal dialog box.

EDIT EDIT: Only works on the desktop - not the device!
 
Last edited:

enonod

Well-Known Member
Licensed User
Longtime User
Thank you for that agraham
 
Top