Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TouchButton Position
Author Message
PhillipMorris Offline
Junior Member
**

Posts: 23
Joined: Aug 2009
Post: #1
TouchButton Position
How do I set the position of a TouchButton inside the new TouchButtonBar ?

Actions speak louder than words
27-03-2010 20:20
Find all posts by this user Quote this message in a reply
Sascha Lange Offline
Administrator
*******

Posts: 298
Joined: Dec 2008
Post: #2
RE: TouchButton Position
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.

mirabyte Software-Entwickler / Software-Engineer
27-03-2010 22:12
Find all posts by this user Quote this message in a reply
PhillipMorris Offline
Junior Member
**

Posts: 23
Joined: Aug 2009
Post: #3
RE: TouchButton Position
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...

Actions speak louder than words
28-03-2010 11:13
Find all posts by this user Quote this message in a reply
Sascha Lange Offline
Administrator
*******

Posts: 298
Joined: Dec 2008
Post: #4
RE: TouchButton Position
Each button has its own OnClick and Mouse-Events.

TouchButton myButton = new TouchButton();
myButton.ButtonClick += new .....
myButton.MouseDown += new....
myButton.MouseUp += new ...

mirabyte Software-Entwickler / Software-Engineer
(This post was last modified: 28-03-2010 13:14 by Sascha Lange.)
28-03-2010 12:28
Find all posts by this user Quote this message in a reply
PhillipMorris Offline
Junior Member
**

Posts: 23
Joined: Aug 2009
Post: #5
RE: TouchButton Position
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 ???

Actions speak louder than words
28-03-2010 12:52
Find all posts by this user Quote this message in a reply
Sascha Lange Offline
Administrator
*******

Posts: 298
Joined: Dec 2008
Post: #6
RE: TouchButton Position
Sorry, my fault. I edited my post above. Use ButtonClick instead of OnButtonClick.

mirabyte Software-Entwickler / Software-Engineer
28-03-2010 13:14
Find all posts by this user Quote this message in a reply
PhillipMorris Offline
Junior Member
**

Posts: 23
Joined: Aug 2009
Post: #7
RE: TouchButton Position
Perfecto

Thanks a lot, my friend...

Actions speak louder than words
28-03-2010 13:25
Find all posts by this user Quote this message in a reply
Post Reply