Skip to content

Instantly share code, notes, and snippets.

@fulopm

fulopm/Client.hx Secret

Created August 15, 2016 08:53
Show Gist options
  • Save fulopm/c90dd931d0b24ac725782b282f4fbdbc to your computer and use it in GitHub Desktop.
Save fulopm/c90dd931d0b24ac725782b282f4fbdbc to your computer and use it in GitHub Desktop.
package ui;
import haxe.ui.HaxeUIApp;
import haxe.ui.components.Label;
import haxe.ui.components.Button;
import haxe.ui.containers.VBox;
class UI {
var UIApp:HaxeUIApp;
var pane:VBox;
var label1:Label;
var button1:Button;
public function new() {
UIApp = new HaxeUIApp();
UIApp.ready(onReady, onEnd);
}
public function createAndShowGUI() : Void{
pane = new VBox();
label1 = new Label();
label1.text = "Test";
pane.addComponent(label1);
button1 = new Button();
button1.text = "OK";
pane.addComponent(button1);
UIApp.addComponent(pane);
}
public static function onReady() : Void {
}
public static function onEnd() : Void {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment