Files
mcde/programs
lotherk e987e0379f MCDE dtpaint: airbrush and text tools (D3)
Airbrush sprays random foreground/background dots in a 15-pixel square
while dragging; Text opens a prompt dialog, then fills the text box with
the background colour and draws the string in the foreground colour with
the GC's font (the image stays 1:1 at any zoom).  The prompt's OK button
is a gadget whose callback widget is the SelectionBox itself, so the text
field is found there, not under XtParent.  Measured under Xvfb: spray dots
on the canvas; 'Hello dtpaint' appears at the clicked point.
2026-11-22 06:56:08 +00:00
..