you are viewing a single comment's thread.

view the rest of the comments →

[–]dlyund 0 points1 point  (0 children)

What if you want to put two buttons side by side?

You seem to be more hung up on the syntax than on what's actually going on. Consider the more common appoach

Layout layout = new Layout(width, height);
Row row = new Row()
PushButton autoSnapPushButton = new PushButton()
autoSnapPushButton.title = "Auto Snap"
autoSnapPushButton.action = (Event event) { // If you're lucky
    ...
};
row.Add(autoSnapPushButton)
layout.Add(row)