📄 wb_rgbctl.c
字号:
/******************************************************************************
FILE: WB_RGBCtl.h
SERVICES: AEE RGB Custom Control
GENERAL DESCRIPTION:
This is a custom control which is used to select a numeric value between 0
and 255. It is used by the WhiteBoard application to allow users to
specify Red, Green and Blue color values for drawing shapes.
The control behaves just like an IListCtl, Showing a single selected
entry at a time. Pressing the Up and Down keys increases or decreases
the numeric value. Pressing the Left or Right keys causes an EVT_CTL_TAB
event to be posted. The primary difference between this control and
a IMenuCtl is that a seperate menu item does not need to be created
for each of the 256 possible color values. This provides a significant
memory savings.
The CRGBCtl allows the user to enter two different color values, one
for the fill color and the other the border color. Which value the
control displays depends on the value passed to the CRGBCtl_SetMode
function.
This is NOT a true BREW control. It simply uses an interface that makes
it behave like one. The primary difference between this control
and true BREW controls is that this control is not derived from IControl.
Therefore, special handling is occasionally required when using this control.
PUBLIC CLASSES AND STATIC FUNCTIONS:
Classes:
IDisplay
INITIALIZATION & SEQUENCING REQUIREMENTS:
See Exported Routines
Copyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -