📄 uibutton.h
字号:
/*********************************************************************/
// 文 件 名: uiButton.h
// 程序说明: Button控件
// 程序设计: 党德华
// 2001.10.19 设计完成 说明文档:R004-S209-0001
// 程序审查: 宋军霞
// 2002.01.22 审查完成 说明文档:R004-S209-0001
// 项目编号: R004-S209
// 版 本: V1.0
// 版 权: Reality Plus Technology (ShenZhen) Co.,Ltd.
/*********************************************************************/
#ifndef _GUI_BUTTON_H_
#define _GUI_BUTTON_H_
#include <typedefine.h>
#define _DEBUG_BUTTON 0
#define GUI_BUTTON_CAPTION_SIZE 31 //最大字符数
#define BUTTON_BORDER_COLOR GUI_BLACK //边框颜色
#define BUTTON_NORMAL_BACK GUI_WHITE //正常显示的背景色
#define BUTTON_INVERT_BACK GUI_BLACK //反显时的背景色
#define BUTTON_NORMAL_FONT GUI_BLACK //正常显示的文字颜色
#define BUTTON_INVERT_FONT GUI_WHITE //反显时的文字颜色
/*button style*/
//文字对齐方式
#define BUTTON_ALIGN_CENTER 0x0000 //居中,默认
#define BUTTON_ALIGN_LEFT 0x0001 //居左
#define BUTTON_ALIGN_RIGHT 0x0002 //居右
//形状
#define BUTTON_ROUND 0x0000 //两端半圆,默认
#define BUTTON_BOTTOM_CLOSE 0x0010 //矩形,底边封口
#define BUTTON_BOTTOM_OPEN 0x0020 //矩形,底边开口
#define BUTTON_TOP_CLOSE 0x0040 //矩形,顶边封口
#define BUTTON_TOP_OPEN 0x0080 //矩形,顶边开口
#define BUTTON_WIN3D 0x0100 //类似WINDOW中的BUTTON
#define BUTTON_TITLE 0x0200 //放置于TITLE BAR上的BUTTON
#define BUTTON_BORDER_HATCH 0x0400 //矩形,带虚线边框
#define BUTTON_BORDER_SOLID 0x0800 //矩形,带实线边框
#define BUTTON_BORDER_NONE 0x1000 //矩形,无边框
#define BUTTON_NORMAL 0
#define BUTTON_INVERT 1
// 数据结构
typedef struct tagGuiButton //96-16
{
TGuiControl base ; //40
/* extention attribute */
char caption[GUI_BUTTON_CAPTION_SIZE+1] ;
}TGuiButton;
/*********************************************************************/
//para: left,top,right,bottom:refer to window or vport
//dest: create button
//return:
// fail: NULL
// sucess: button handle
/*********************************************************************/
DLL_EXP(HNDL) guiButton_Create( WORD left, WORD top,WORD right, WORD bottom,const char* caption, WORD style) ;
/*********************************************************************/
//para: button handle & button caption
//dest: set button caption
//return:
// fail: STATUS_ERR
// sucess: STATUS_OK
/*********************************************************************/
DLL_EXP(STATUS) guiButton_SetCaption( HNDL handle, const char* caption );
/*********************************************************************/
//para: button handle
//dest: get button caption
//return:
// fail: NULL
// sucess: caption string's pointer
/*********************************************************************/
DLL_EXP(char *) guiButton_GetCaption( HNDL handle);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -