From 02b14d5fdd6fcccecd2e44b72e9dfe0d6eddaaa4 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 22 Oct 2002 20:08:37 +0000 Subject: [PATCH] Add section on the main() function to the editor example. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/editor.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/documentation/editor.html b/documentation/editor.html index 6ea65ec2b..963b59229 100644 --- a/documentation/editor.html +++ b/documentation/editor.html @@ -570,6 +570,28 @@ void set_title(Fl_Window* w) { } +

The main() Function

+ +

Once we've created all of the support functions, the only thing left +is to tie them all together with the main() function. +The main() function creates a new text buffer, creates a +new view (window) for the text, shows the window, loads the file on +the command-line (if any), and then enters the FLTK event loop: + +

+

Compiling the Editor

The complete source for our text editor can be found in the test/editor.cxx source file. Both the Makefile and Visual C++