summaryrefslogtreecommitdiffstats
path: root/tools/statepropbuilder/apps/spbuilder/code/sp/builder/visframe.cpp
blob: 66f224ee0c029b0f78fff8025c7a6dcc6314bb16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//---------------------------------------------------------------------------

#include <vcl.h>
#include <sp/interface.hpp>
#pragma hdrstop

#include "visframe.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFrame2 *Frame2;
//---------------------------------------------------------------------------
__fastcall TFrame2::TFrame2(TComponent* Owner , int dindex )
        : TFrame(Owner),
          m_DrawableIndex( dindex )
{
}
//---------------------------------------------------------------------------
void __fastcall TFrame2::VisibilityCheckBoxClick(TObject *Sender)
{
    SPSetVisible( SPGetCurrentState() , m_DrawableIndex , this->VisibilityCheckBox->State != cbUnchecked );
}
//---------------------------------------------------------------------------