Курсовая работа: Скріпт мова управління віконним інтерфейсом на С++
{
Win(Tx,Ty,Tw,Th,7);
Box3D(Tx-1,Ty-1,Tw+2,Th+2,0);
setcolor(0);
outtextxy(Tx+5,Ty+3,Txt);
return;
}
/***************************************************************************
** Function Name : ComboBox **
** **
** Desciption : Allow user choice to be made through list combo **
** style by triggle <UP>, <DOWN> and <ENTER>. **
** **
** Parameters : Tx => Coordinate-X for the ComboBox. **
** Ty => Coordinate-Y for the ComboBox. **
** Tw => Width of the ComboBox. **
** Opt => The List of selection string. **
** Allowed Maximum of 50 array of string. **
** OptCnt => Total Number of choice. **
***************************************************************************/
const char *ComboBox(int Tx,int Ty,int Tw,const char *Opt[],int OptCnt)
{
int ComboCnt=0,Th=12;
char ComboK=1,FKey=0;
char Fstr[80];
/*== Draw ComboBox==*/
Win(Tx,Ty,Tw,Th,7);
Box3D(Tx-1,Ty-1,Tw+2,Th+2,0);
Box3D(Tx+Tw-31,Ty,15,Th,1); /*== Draw Up Arrow Button ==*/