Int_AddItemComboBox, Int_CreateComboBox, Int_ShowComboBox
Int_AddItemComboBox
Description
Int_AddItemComboBox( intInt_Index, char *Int_Text);
This function adds a string item to a combo box.
Int_Index parameter is the index of the combo box in the dialog box. Values are ranging from 1 to 3.
Parameters
Int_CreateComboBox
Description
Int_CreateComboBox( char *Int_Caption, char *Int_Text1, char *Int_Text2, char *Int_Text3, char *Int_Text4, char *Int_Text);
This creates and initializes a dialog box with combo boxes.
Parameters
Return Values
//Int_CreateComboBox example - display a combo box.
char *pText1;
char *pText2;
char *pCmb1Txt1, *pCmb1Txt2, *pCmb1Txt3;
char *pCmb2Txt1, *pCmb2Txt2, *pCmb2Txt3;
char *pStr;
char buf[256];
SetCommandText("Int_CreateComboBox example. Working...");
strcpy(buf, "API Example - Int_CreateComboBox");
Int_CreateTextWindow(buf,0,RGB(0,0,128),RGB_WHITE,100);
pText1="&Centrifugation Area";
pText2="&Number Of Slides";
pCmb1Txt1="Circular, 17.5 mm";
pCmb1Txt2="Circular, 2x17.5 mm";
pCmb1Txt3="Rectangular, 15x25 mm";
pCmb2Txt1="8";
pCmb2Txt2="16";
pCmb2Txt3="24";
pStr="API Example";
Int_CreateComboBox("API Example - CreateComboBox", pText1, pText2, NULL, NULL, pStr);
Int_AddItemComboBox(1,pCmb1Txt1);
Int_Cmb1 = Int_GetKeyValue("luc_1.ini", "ComboBox", "Int_Cmb1", 1);
Int_Cmb2 = Int_GetKeyValue("luc_1.ini", "ComboBox", "Int_Cmb2", 1);
Int_AddItemComboBox(1,pCmb1Txt2);
Int_AddItemComboBox(1,pCmb1Txt3);
Int_AddItemComboBox(2,pCmb2Txt1);
Int_AddItemComboBox(2,pCmb2Txt2);
Int_AddItemComboBox(2,pCmb2Txt3);
Int_ShowComboBox();
Int_SetKeyValue("luc_1.ini", "ComboBox", "Int_Cmb1", Int_Cmb1);
Int_SetKeyValue("luc_1.ini", "ComboBox", "Int_Cmb2", Int_Cmb2);
Int_CloseTextWindow();
Note
The system registers Int_Cmb1, Int_Cmb2 and Int_Cmb3 global variables - selected items of combo boxes. This function should be called prior to the other Int_CmbXXX functions.
Int_ShowComboBox
Description
Int_ShowComboBox();
This function displays a dialog box with combo boxes.
Note
For example macro, see Int_CreateComboBox function description.
See Also
Int_CreateComboBox, Int_AddItemComboBox