// // ICListSlider::ICListSlider // ICListSlider::ICListSlider(IControl *parent) : ICSlider(parent), knobPct(-1.0F), resizeKnob(TRUE) { // Default style sliderStyle |= STYLE_BUTTONS | STYLE_NODRAWCLIENT; sliderStyle &= ~STYLE_SQUARETHUMB; // Create a var to handle the slider value VarSys::CreateInteger(DynVarName("value"), 0, VarSys::DEFAULT); // Point the var at it sliderVar = new IFaceVar(this, DynVarName("value")); }
// // ICListBox::ICListBox // ICListBox::ICListBox(IControl *parent) : IControl(parent), listBoxStyle(0), selectedVar(NULL), indexVar(NULL), slider(NULL), itemConfig(NULL), sliderCfg(NULL), desiredTop(-1), reposition(FALSE), cellPad(2), updateVar(FALSE) { // Default color SetColorGroup(IFace::data.cgClient); // Default styles controlStyle |= (STYLE_DROPSHADOW | STYLE_TABSTOP); // Default list bos styles listBoxStyle |= STYLE_VSLIDER; // Hook mouse click messages inputHook = TRUE; // Create container control container = new ListContainer(this); // Default sounds soundClick = IFace::Sound::MENU_POPUP; soundDblClick = IFace::Sound::MENU_COMMAND; // Create local variables topVar = new IFaceVar(this, VarSys::CreateInteger(DynVarName("top"), 0, VarSys::DEFAULT, &top)); VarSys::CreateInteger(DynVarName("count"), 0, VarSys::DEFAULT, &count); VarSys::CreateInteger(DynVarName("vis"), 0, VarSys::DEFAULT, &vis); // Update the range UpdateRange(TRUE); ClearSelected(FALSE); }