This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wx/wx.h> | |
class MyFrame : public wxFrame | |
{ | |
public: | |
MyFrame() : wxFrame(NULL, wxID_ANY, "Test") | |
{ | |
wxSizer* sizer = new wxBoxSizer(wxHORIZONTAL); | |
sizer->Add(new wxStaticText(this, wxID_ANY, "Press to enlarge"), wxSizerFlags().Border().Centre()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl6 | |
use Term::ANSIColor; | |
constant @months = <January February March April May June July | |
August September October November December>; | |
my @days = <Su Mo Tu We Th Fr Sa>; | |
sub center(Str $text, Int $width) { |
NewerOlder