Color Drag and Drop Demo
This page explains the Color Drag & Drop demonstration.
This small demonstration of Motif and X Window application programming
illustrates several skills. The mains ones that you are intended to notice
are Drag and Drop, Mouse Handling and Color Manipulation.
The illustrations below show two separate applications that interact by allowing
the user to
Drag and Drop of Color information between the windows.
The window titled 'draw' is a slightly modified version of an application
from the book "The X Window System, Programming and Aplications with Xt/OSF Motif Edition"
by Douglas Young.
The small colored window titled "xcolorswish" is a small demonstration program
created by the Interfacers to demonstrate the coding required for
Drag and Drop, Mouse Handling and Color Manipulation.
xcolorswish & draw interaction
The user can drag and drop colors between the color pane of the 'xcolorswish'
application and each shape in 'draw's window.
Before
The color is grabbed with the middle button.
After
And dropped on the Blue rectangle (which turns to puke)
Your comments are greatly
appreciated. Please direct them to
paulsons@cts.com
The pages at interfacer.cts.com are
copyrighted by the Interfacers.
i.e. assume a "Copyright 1995 Interfacers" on all
pages except where another author is specifically credited.