The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: none
Declaration: procedure DrawFrame (cv: TCanvas; fs: TFrameStyle; Left, Top, Right, Bottom: integer; White, Silver, Gray, Black, SimpleFCol: TColor);

The procedure DrawFrame draws a frame with different styles on the canvas cv. The parameter fs controls the style of the frame. The parameters Left..Bottom specify the boundary coordinates of the frame. The parameters White, Silver, Gray, and Black control the colors used to draw the frame. Normally, you should use the colors clWhite, clSilver, clGray, and clBlack, respectively; however, colors should be adjusted if drawing frames on colored (non-gray) backgrounds. The color of a simple frame (a rectangle) is determined by the parameter SimpleFCol.

Last Update: 2023-Feb-06