Anonymous user
Window creation/X11: Difference between revisions
m
→{{header|Standard ML}}
(→{{header|Tcl}}: + standard ML) |
|||
Line 1,761:
XMapWindow w;
XFlush dp ;
XDrawString w (DefaultGC dp) (XPoint {x=10,y=
XFlush dp ;</lang>
=={{header|Tcl}}==
Tcl does not come with a low-level connection to the X protocol, as it has long been distributed with [[Tk]] which offers a [[Simple Windowed Application|much higher-level interface]] (and which is portable to other platforms too). This means that the interface has to be crafted directly. This can be done with either [http://www.swig.org/ SWIG] or [[critcl]]. This example shows how to do it the latter way:
|