mirabyte Forum

Full Version: TouchButton Position
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I set the position of a TouchButton inside the new TouchButtonBar ?
Use the alignment properties.

For vertical alignment you can choose between top, center and bottom.
For horizontal alignment you can choose between left, right, center and block.

Also you have the option to set the space between the buttons in pixels and the space to left, top, right and bottom side.
Thanks Sascha,

I finally managed to do it.

Now I am trying to find the way to handle button click events of the touchbuttonbar.

Please help...
Each button has its own OnClick and Mouse-Events.

TouchButton myButton = new TouchButton();
myButton.ButtonClick += new .....
myButton.MouseDown += new....
myButton.MouseUp += new ...
I am programming in VB.NET

The above code is sth like this in VB.NET

Dim MyButton as New TouchButton
AddHandler MyButton.OnButtonClick, AddressOf MyButtonClickEvent

Sub MyButtonClickEvent
[...]
End Sub

...but sth is wrong.

Any ideas ???
Sorry, my fault. I edited my post above. Use ButtonClick instead of OnButtonClick.
Perfecto

Thanks a lot, my friend...
Reference URL's