Added a few links in the documentation Basics page
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
88b4e6fab6
commit
3507b6cf9f
@ -24,15 +24,15 @@ World!" program that uses FLTK to display the window.</P>
|
||||
#include <FL/Fl_Box.H>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
Fl_Window *window = new Fl_Window(300,180);
|
||||
Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!");
|
||||
box->box(FL_UP_BOX);
|
||||
box->labelsize(36);
|
||||
box->labelfont(FL_BOLD+FL_ITALIC);
|
||||
box->labeltype(FL_SHADOW_LABEL);
|
||||
window->end();
|
||||
window->show(argc, argv);
|
||||
return Fl::run();
|
||||
<A href="Fl_Window.html">Fl_Window</A> *window = new <A href="Fl_Window.html#Fl_Window.Fl_Window">Fl_Window</A>(300,180);
|
||||
<A href="Fl_Box.html">Fl_Box</A> *box = new <A href="Fl_Box.html#Fl_Box.Fl_Box">Fl_Box</A>(20,40,260,100,"Hello, World!");
|
||||
box-><A href="Fl_Widget.html#Fl_Widget.box">box</A>(<A href="common.html#boxtypes">FL_UP_BOX</A>);
|
||||
box-><A href="Fl_Widget.html#Fl_Widget.labelsize">labelsize</A>(36);
|
||||
box-><A href="Fl_Widget.html#Fl_Widget.labelfont">labelfont</A>(<A href="drawing.html#fonts">FL_BOLD</A>+<A href="drawing.html#fonts">FL_ITALIC</A>);
|
||||
box-><A href="Fl_Widget.html#Fl_Widget.labeltype">labeltype</A>(<A href="common.html#labels">FL_SHADOW_LABEL</A>);
|
||||
window-><A href="Fl_Group.html#Fl_Group.end">end</A>();
|
||||
window-><A href="Fl_Window.html#Fl_Window.show">show</A>(argc, argv);
|
||||
return <A href="Fl.html#Fl.run">Fl::run</A>();
|
||||
}
|
||||
</PRE></UL>
|
||||
|
||||
@ -55,7 +55,7 @@ Fl_Box *box = new <A href="Fl_Box.html#Fl_Box">Fl_Box</A>(20,40,260,100,"He
|
||||
<P>Next, we set the type of box and the size, font, and style of the label:</P>
|
||||
|
||||
<UL><PRE>
|
||||
box->box(FL_UP_BOX);
|
||||
box-><A href="Fl_Widget.html#Fl_Widget.box">box</A>(FL_UP_BOX);
|
||||
box-><A href=Fl_Widget.html#Fl_Widget.labelsize>labelsize</A>(36);
|
||||
box-><A href=Fl_Widget.html#Fl_Widget.labelfont>labelfont</A>(FL_BOLD+FL_ITALIC);
|
||||
box-><A href=Fl_Widget.html#Fl_Widget.labeltype>labeltype</A>(FL_SHADOW_LABEL);
|
||||
|
Loading…
Reference in New Issue
Block a user