The document is a Pascal source code for a Turbo Vision File Manager demo, specifically focusing on a color selection dialog. It defines a TColorDialog class that allows users to load and preview color palettes. The code includes methods for handling events, loading palettes from files, and managing the application's color settings.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
23 views2 pages
Colors
The document is a Pascal source code for a Turbo Vision File Manager demo, specifically focusing on a color selection dialog. It defines a TColorDialog class that allows users to load and preview color palettes. The code includes methods for handling events, loading palettes from files, and managing the application's color settings.
var PalName: FNameStr; begin if (Event.What = evCommand) and ((Event.Command = cmPreview) or (Event.Command = cmOK)) then LoadPalette; inherited HandleEvent(Event); end;
function TColorDialog.Valid(Command: Word): Boolean;
var PalName: FNameStr; begin Valid := inherited Valid(Command); if Command = cmFileOpen then LoadPalette else if Command = cmCancel then begin Application^.GetPalette^ := SavePalette; DoneMemory; Application^.ReDraw; end; end;
procedure SelectNewColors; var D: PColorDialog; begin D := New(PColorDialog, Init(PaletteMask, 'Select Color', '~P~alette Name', fdOpenButton, 100)); Application^.ExecuteDialog(D, nil); end;
Review- The Soul of Mbira Twenty Years On- A Retrospect Reviewed Work(s)- The Soul of Mbira- Music and Traditions of the Shona People of Zimbabwe by Paul Berliner Review by- Keith Goddard and John M. Chernoff