Sha256: 397012828305f094e780e451d86e1d692b498f37743219b3372e11576afcfcd6
Contents?: true
Size: 1.15 KB
Versions: 13
Compression:
Stored size: 1.15 KB
Contents
--- :wxBannerWindow: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby class MyFrame < Wx::Frame def initialize(...) # ... create the frame itself ... # Create and initialize the banner. banner = Wx::BannerWindow.new(self, Wx::TOP) banner.set_text("Welcome to my wonderful program", " Before doing anything else, you need to connect to the online server.\n" + " Please enter your credentials in the controls below.") # And position it along the top edge of the window. sizer = Wx::VBoxSizer.new sizer.add(banner, Wx::SizerFlags.new.expand) # ... add the rest of the window contents to the same sizer ... set_sizer_and_fit(sizer) end # ... end ```
Version data entries
13 entries across 13 versions & 1 rubygems