5 #include <ml_text_label.h>
7 /*----- The following standard boilerplate code must appear -----*/
9 /* Main entry point to the app. */
10 static void app_main (ml_session);
13 handle_request (rws_request rq)
15 return ml_entry_point (rq, app_main);
18 /*----- End of standard boilerplate code -----*/
21 app_main (ml_session session)
23 pool pool = ml_session_pool (session);
27 /* Create the top-level window. */
28 w = new_ml_window (session, pool);
30 /* Create the text widget. */
31 text = new_ml_text_label (pool, "Hello, World!");
33 /* Pack the text widget into the window. */
34 ml_window_pack (w, text);