Ejemplo n.º 1
0
/* Constructor for a TCheckBox to be associated with a MS-Windows
  interface element created by MS-Windows from a resource definition.
  Initializes its data fields using passed parameters.  Data transfer
  is enabled for the TCheckBox. */
TCheckBox::TCheckBox(PTWindowsObject AParent, int ResourceId,
                     PTGroupBox AGroup, PTModule AModule)
               : TButton(AParent, ResourceId, AModule)
{
  Group = AGroup;
  EnableTransfer();
}
Ejemplo n.º 2
0
void TCostTypeDialog::SetupWindow()
{
  TDialog::SetupWindow();

  // INSERT>> Your code here.
  EnableTransfer();
  TransferData(tdSetData);
  //SetInputsState();
  //SetLiteralsState();
  //SetTermsState();
}
Ejemplo n.º 3
0
//
/// Constructor used for resources.
//
TCheckList::TCheckList(TWindow* parent, int resourceId, TCheckListArray& items,
                       TModule* module)
:
  TListBox(parent, resourceId, module)
{
  for(int i = 0; i < (int)items.Size(); i++)
    Items.Add(items[i]);
  
  EnableTransfer();

  TRACEX(OwlControl, OWL_CDLEVEL, "TCheckList constructed from resource @" << (void*)this);
}
Ejemplo n.º 4
0
//
/// Constructor to create a window.
//
TCheckList::TCheckList(TWindow* parent, int id, int x, int y, int w, int h,
                       TCheckListArray& items, TModule* module)
:
  TListBox(parent, id, x, y, w, h, module)
{
  Attr.Style |= LBS_NOTIFY | LBS_OWNERDRAWVARIABLE | LBS_NOINTEGRALHEIGHT;
  Attr.Style &= ~LBS_HASSTRINGS;
  Attr.Style &= ~LBS_SORT;

  for(int i = 0; i < (int)items.Size(); i++)
    Items.Add(items[i]);

  EnableTransfer();

  TRACEX(OwlControl, OWL_CDLEVEL, "TCheckList constructed @" << (void*)this);
}