FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

MENUS

Let popup menus display background colour


I made some popup menus and in PG, the coloured background showed through the menu title area. But when compiled, the menu title area had a white background instead. To get the black text on the coloured background was just a matter of tweeking the popup filter in the DrawTitle function; I deleted the ERASERECT(t) command and the def RBOX(t, t$) instructions and used PRINT %(l,b-2) t$; instead with text mode 2. This seemed to show the title in black with the colour of a backround rectangle showing through between the letters.

The more I look at Chris's filter's the more I see ways of changing them slightly. I've changed another to allow command keys to be attached to buttons easily.

Stu Cram