tabbuttons.cpp
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:1k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include "tabbuttons.h"
  5. //---------------------------------------------------------------------------
  6. #pragma package(smart_init)
  7. #pragma link "fcButton"
  8. #pragma link "fcButtonGroup"
  9. #pragma link "fcClearPanel"
  10. #pragma link "fcImgBtn"
  11. #pragma link "fcLabel"
  12. #pragma resource "*.dfm"
  13. TTabBtnGroupForm *TabBtnGroupForm;
  14. //---------------------------------------------------------------------------
  15. __fastcall TTabBtnGroupForm::TTabBtnGroupForm(TComponent* Owner)
  16.         : TForm(Owner)
  17. {
  18. }
  19. //---------------------------------------------------------------------------
  20. void __fastcall TTabBtnGroupForm::fcButtonGroup1Change(
  21.       TfcCustomButtonGroup *ButtonGroup, TfcButtonGroupItem *OldSelected,
  22.       TfcButtonGroupItem *Selected)
  23. {
  24.   PageControl1->ActivePage =
  25.      (TTabSheet * )FindComponent("TabSheet"+IntToStr(Selected->Button->Tag));
  26. }
  27. //---------------------------------------------------------------------------