Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I create a toggle button with slate?

By toggle button I mean a normal button which remains pressed after one click and returns normal after a second click (the style is toggled).

It seems that it can be done with SCheckbox, but I can't understand how. Here is what I have tried:

 SNew(SCheckBox)
            .Style(&FCoreStyle::Get().GetWidgetStyle< FCheckBoxStyle >("ToggleButton"))
            [
                SNew(STextBlock)
                .Text(RadioText)
            ];
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.