Thread: Input Panel
View Single Post
  #8 (permalink)  
Old 06-11-2007, 08:35 PM
specci48's Avatar
specci48 specci48 is offline
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 634
Default

Hi Filippo,

since you can move your panel completly out of the form (on the device and desktop) with no change of getting it back, you should implement some borders like:
Code:
Sub MovePanel(Panel,x,y)
	Control(Panel).left=Min(Max(-Control(Panel).Width + 10,Control(Panel).left+(x-pX)),230)
	Control(Panel).top=Min(Max(-10,Control(Panel).top+(y-pY)),260)
End Sub
Now always a part of the top is accessible.
Reply With Quote