On Apr 12, 2007, at 1:20 AM, Giovanni wrote:

> any samples on resizing a control dynamically change the size of a
> control on  mousein(this is an event I would like to add to such  
> control).

Rb has 2 events for every RectControl; MouseEnter and MouseExit. In  
these events you could change the size when the mouse enters or  
leaves the control. For example, the following code would double the  
height and width when the mouse enters the control's area:

Sub MouseEnter()
   me.Height=me.Height*2
   me.Width=me.Width*2
End Sub

The following code would return the height and width to the original  
size:

Sub MouseExit()
   me.Height=me.Height/2
   me.Width=me.Width/2
End Sub

HTH

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to