How to resolve the algorithm Hello world/Graphical step by step in the Standard ML programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Hello world/Graphical step by step in the Standard ML programming language
Table of Contents
Problem Statement
Display the string Goodbye, World! on a GUI object (alert box, plain window, text area, etc.).
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Hello world/Graphical step by step in the Standard ML programming language
Source code in the standard programming language
open XWindows ;
open Motif ;
val helloWindow = fn () =>
let
val shell = XtAppInitialise "" "demo" "top" [] [XmNwidth 400, XmNheight 300 ] ;
val main = XmCreateMainWindow shell "main" [XmNmappedWhenManaged true ] ;
val text = XmCreateLabel main "show" [ XmNlabelString "Hello World!"]
in
(
XtManageChildren [text];
XtManageChild main;
XtRealizeWidget shell
)
end;
You may also check:How to resolve the algorithm Guess the number step by step in the DCL programming language
You may also check:How to resolve the algorithm Terminal control/Clear the screen step by step in the Logo programming language
You may also check:How to resolve the algorithm Sieve of Eratosthenes step by step in the Go programming language
You may also check:How to resolve the algorithm Sum and product of an array step by step in the Zoea programming language
You may also check:How to resolve the algorithm Iterated digits squaring step by step in the Raku programming language