亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? propertyeditor.cpp

?? delphi做的類似與屬性編輯器一樣的控件
?? CPP
字號:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "PropertyEditor.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "VirtualTrees"
#pragma link "ThemeMgr"
#pragma link "VirtualTrees"
#pragma link "VirtualTrees"
#pragma link "VirtualTrees"
#pragma link "VirtualTrees"
#pragma resource "*.dfm"


TForm1 *Form1;
using  namespace WZZ_Editors_namespace;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
        PropertyLink = NULL;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::VST3Change(TBaseVirtualTree *Sender,
      PVirtualNode Node)
{
    // Start immediate editing as soon as another node gets focused.
    if(Node && (Node->Parent != Sender->RootNode) && (!Sender->TreeStates.Contains(tsIncrementalSearching)))
    {
      // We want to start editing the currently selected node. However it might well happen that this change event
      // here is caused by the node editor if another node is currently being edited. It causes trouble
      // to start a new edit operation if the last one is still in progress. So we post us a special message and
      // in the message handler we then can start editing the new node. This works because the posted message
      // is first executed *after* this event and the message, which triggered it is finished.
      PostMessage(this->Handle, WM_STARTEDITING, WPARAM(Node), 0);
    }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3CreateEditor(TBaseVirtualTree *Sender,
      PVirtualNode Node, TColumnIndex Column, IVTEditLink *EditLink)
{
        if(PropertyLink==NULL)
                PropertyLink = new WZZ_Editors_namespace::TPropertyEditLink();
        PropertyLink->QueryInterface(__uuidof(IVTEditLink), (void**)EditLink);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3Editing(TBaseVirtualTree *Sender,
      PVirtualNode Node, TColumnIndex Column, bool &Allowed)
{
    WZZ_Editors_namespace::PPropertyData Data;

    Data = (WZZ_Editors_namespace::TPropertyData*)Sender->GetNodeData(Node);
    Allowed = (Node->Parent != Sender->RootNode) && (Column == 1) && (Data->ValueType != WZZ_Editors_namespace::vtNone);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3GetHint(TBaseVirtualTree *Sender,
      PVirtualNode Node, TColumnIndex Column,
      TVTTooltipLineBreakStyle &LineBreakStyle, WideString &HintText)
{
  // Add a dummy hint to the normal hint to demonstrate multiline hints.
  if ((Column == 0) && (Node->Parent != Sender->RootNode))
    HintText = WZZ_Editors_namespace::PropertyTexts[Node->Parent->Index][Node->Index][WZZ_Editors_namespace::ptkHint] + "\x0D" + "(Multiline hints are supported too).";

}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3GetImageIndex(TBaseVirtualTree *Sender,
      PVirtualNode Node, TVTImageKind Kind, TColumnIndex Column,
      bool &Ghosted, int &ImageIndex)
{
  WZZ_Editors_namespace::PPropertyData Data;

  if ((Kind == ikNormal||Kind == ikSelected) && (Column == 0))
  {
    if( Node->Parent == Sender->RootNode)
      ImageIndex = 12; // root nodes, this is an open folder
    else
    {
      Data = (WZZ_Editors_namespace::TPropertyData*)Sender->GetNodeData(Node);
      if( Data->ValueType != WZZ_Editors_namespace::vtNone)
        ImageIndex = 14;
      else
        ImageIndex = 13;
    }
  }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3GetText(TBaseVirtualTree *Sender,
      PVirtualNode Node, TColumnIndex Column, TVSTTextType TextType,
      WideString &CellText)
{
  WZZ_Editors_namespace::PPropertyData Data;
  if(TextType == ttNormal)
  {
    switch( Column)
    {
    case  0:
        if( Node->Parent == Sender->RootNode)
        {
          // root nodes
          if (Node->Index == 0)
            CellText = "Description";
          else
            CellText = "Origin";
        }
        else
          CellText = WZZ_Editors_namespace::PropertyTexts[Node->Parent->Index][Node->Index][WZZ_Editors_namespace::ptkText];
        break;
    case  1:
          Data = (WZZ_Editors_namespace::TPropertyData*)Sender->GetNodeData(Node);
          CellText = Data->Value;

    }
  }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3IncrementalSearch(TBaseVirtualTree *Sender,
      PVirtualNode Node, const WideString SearchText, int &Result)
{
  AnsiString S, PropText;
  // Note: This code requires a proper Unicode/WideString comparation routine which I did not want to link here for
  // size and clarity reasons. For now strings are (implicitely) converted to ANSI to make the comparation work.
  // Search is not case sensitive.
  S = SearchText;
  StatusBar->SimpleText ="Searching for: ";
  StatusBar->SimpleText +=S;

  if(Node->Parent == Sender->RootNode)
  {
    // root nodes
    if(Node->Index == 0)
      PropText = "Description";
    else
      PropText = "Origin";
  }
  else
  {
    PropText = WZZ_Editors_namespace::PropertyTexts[Node->Parent->Index][ Node->Index][ WZZ_Editors_namespace::ptkText];
  }

  // By using StrLIComp we can specify a maximum length to compare. This allows us to find also nodes
  // which match only partially. Don't forget to specify the shorter string length as search length.
  Result = StrLIComp(S.c_str(), PropText.c_str(), min(S.Length(), PropText.Length()));

}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3InitChildren(TBaseVirtualTree *Sender,
      PVirtualNode Node, DWORD &ChildCount)
{
  switch(Node->Index)
  {
  case  0:
      ChildCount = 13;
      break;
  case  1:
      ChildCount = 8;
  }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3InitNode(TBaseVirtualTree *Sender,
      PVirtualNode ParentNode, PVirtualNode Node,
      TVirtualNodeInitStates &InitialStates)
{
  WZZ_Editors_namespace::PPropertyData Data;
  if(ParentNode == NULL)
    InitialStates << ivsHasChildren << ivsExpanded;
  else
  {
    Data = (WZZ_Editors_namespace::TPropertyData *)Sender->GetNodeData(Node);
    Data->ValueType = WZZ_Editors_namespace::ValueTypes[ParentNode->Index][ Node->Index];
    if( Data->ValueType == WZZ_Editors_namespace::vtDate)
      Data->Value = DateToStr(Now()).c_str();
    else
      Data->Value = WZZ_Editors_namespace::DefaultValue[ParentNode->Index][ Node->Index];
  }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3PaintText(TBaseVirtualTree *Sender,
      const TCanvas *TargetCanvas, PVirtualNode Node, TColumnIndex Column,
      TVSTTextType TextType)
{
  WZZ_Editors_namespace::PPropertyData Data;

  // Make the root nodes underlined and draw changed nodes in bold style.
  if( Node->Parent == Sender->RootNode)
    TargetCanvas->Font->Style = TFontStyles()<< fsUnderline;
  else
  {
    Data = (WZZ_Editors_namespace::TPropertyData *)Sender->GetNodeData(Node);
    if( Data->Changed)
      TargetCanvas->Font->Style = TFontStyles()<<fsBold;
    else
      TargetCanvas->Font->Style.Clear();
  }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3StateChange(TBaseVirtualTree *Sender,
      TVirtualTreeStates &Enter, TVirtualTreeStates &Leave)
{
  if (Enter.Contains(tsIncrementalSearching))
    // Note: Unicode will be converted to ANSI here, but for demonstration purposes we accept that for now.
    StatusBar->SimpleText ="Searching for: ";
    StatusBar->SimpleText += Sender->SearchBuffer;
  if (Leave.Contains(tsIncrementalSearching))
    StatusBar->SimpleText="";

//  if(ComponentState.Contains(csDestroying ))
//    StatusBar->SimpleText="Is Destroy...";
    //UpdateStateDisplay(Sender->TreeStates, Enter, Leave);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender)
{
        VST3->NodeDataSize = sizeof(WZZ_Editors_namespace::TPropertyData);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::VST3GetNodeDataSize(TBaseVirtualTree *Sender,
      int &NodeDataSize)
{
        NodeDataSize = sizeof(WZZ_Editors_namespace::TPropertyData);
}
//---------------------------------------------------------------------------


void __fastcall TForm1::WMStartEditing(TMessage & Msg)
{
        //TODO: Add your source code here
  PVirtualNode Node ;

  Node = (PVirtualNode)Pointer(Msg.WParam);
  // Note: the test whether a node can really be edited is done in the OnEditing event.
  VST3->EditNode(Node, 1);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美无人高清视频在线观看| 欧美国产一区在线| 欧美日韩中文字幕精品| 91在线国产观看| 91色|porny| 色综合久久久久综合99| 欧美在线制服丝袜| 欧美性大战久久久久久久蜜臀| 色噜噜狠狠成人中文综合| 一本大道久久a久久综合| 91成人免费在线| 欧美视频在线一区二区三区 | 欧美在线观看一区| 日本久久一区二区三区| 欧美色精品在线视频| 欧美日本在线视频| 欧美一级二级三级乱码| 精品国产免费久久 | 国产一区二区在线影院| 国产一区二区伦理| 成人一道本在线| 色婷婷综合久久久| 欧美日韩激情在线| 日韩亚洲国产中文字幕欧美| 国产欧美一区二区三区鸳鸯浴| 国产免费观看久久| 亚洲精选视频在线| 视频一区欧美精品| 精品一区二区三区不卡| 成人av先锋影音| 欧美情侣在线播放| 精品国产乱码久久| 国产精品乱人伦一区二区| 一区二区三区在线观看动漫| 日本大胆欧美人术艺术动态 | 日韩免费一区二区| 国产亚洲成av人在线观看导航| 亚洲欧美另类久久久精品| 香蕉影视欧美成人| 国产综合一区二区| 美女久久久精品| 亚洲国产精品久久艾草纯爱| 色综合久久久网| 国产成人午夜电影网| 91亚洲精品一区二区乱码| 欧美日韩亚洲另类| 精品噜噜噜噜久久久久久久久试看| 国产精品乱码久久久久久| 天天综合天天做天天综合| 国产一区视频网站| 欧美色涩在线第一页| 久久久久久久久久久久电影| 亚洲国产一区二区三区| 国产在线精品国自产拍免费| 欧美最猛性xxxxx直播| 久久亚洲精品小早川怜子| 亚洲亚洲精品在线观看| 精品一区二区三区欧美| 日本高清不卡aⅴ免费网站| 久久蜜桃香蕉精品一区二区三区| 亚洲一区在线观看免费观看电影高清| 九一久久久久久| 欧美午夜不卡视频| 国产精品素人一区二区| 蜜乳av一区二区| 在线亚洲人成电影网站色www| 久久亚洲精精品中文字幕早川悠里| 亚洲人精品一区| 日韩黄色在线观看| 一区二区三区av电影| 狠狠色综合播放一区二区| 色综合久久中文综合久久97| 国产女人18水真多18精品一级做| 麻豆成人久久精品二区三区红 | 欧美日韩一区二区三区视频 | 成人午夜电影网站| 日韩精品一区二区在线| 亚洲一二三四在线观看| 成人丝袜18视频在线观看| 精品卡一卡二卡三卡四在线| 亚洲va在线va天堂| 色偷偷88欧美精品久久久| 国产精品免费丝袜| 国产精品一区二区你懂的| 日韩欧美一二三| 亚洲成人免费在线| 日本道精品一区二区三区| 中文字幕av一区二区三区| 国产一区二区导航在线播放| 精品国精品国产| 麻豆国产91在线播放| 欧美一二三区精品| 午夜久久电影网| 欧美色电影在线| 亚洲一区二区中文在线| 91美女视频网站| 1000精品久久久久久久久| av电影天堂一区二区在线观看| 久久久久国产精品麻豆ai换脸 | 青青草97国产精品免费观看无弹窗版| 91视频免费播放| 亚洲视频免费在线观看| 波多野洁衣一区| 中文字幕 久热精品 视频在线| 成人激情免费网站| 国产精品无码永久免费888| 成人午夜电影网站| 中文字幕中文字幕在线一区 | 久久一二三国产| 国产福利精品一区二区| 久久久777精品电影网影网| 国模无码大尺度一区二区三区| 久久嫩草精品久久久精品| 国产成人在线免费| 欧美国产欧美亚州国产日韩mv天天看完整| 国产一区二区精品久久99| 欧美国产一区二区| 成人亚洲一区二区一| 亚洲人成网站在线| 在线观看中文字幕不卡| 亚洲成人午夜电影| 日韩欧美中文一区| 极品销魂美女一区二区三区| 国产欧美久久久精品影院| 99v久久综合狠狠综合久久| 亚洲另类中文字| 欧美精品在线一区二区| 久久精品国产亚洲aⅴ| 久久精品免费在线观看| 99热99精品| 一级精品视频在线观看宜春院| 欧美一区二区观看视频| 国产乱码精品一区二区三区忘忧草 | 国产91精品一区二区麻豆亚洲| 中文字幕色av一区二区三区| 欧美日韩在线观看一区二区| 麻豆久久久久久久| 国产精品国产精品国产专区不蜜| 欧美亚洲综合在线| 久久99精品国产.久久久久久| 国产校园另类小说区| 在线欧美日韩精品| 九九九久久久精品| 亚洲欧美在线另类| 欧美一级黄色片| 成人免费毛片高清视频| 亚洲成人av一区二区三区| 精品国产免费一区二区三区四区| 99re免费视频精品全部| 日韩高清在线不卡| 国产欧美一区二区精品婷婷| 欧美影院一区二区三区| 国产精品一区免费视频| 亚洲大片免费看| 欧美国产一区二区在线观看 | 丝袜美腿成人在线| 日本一区二区三区免费乱视频| 欧美另类高清zo欧美| 大胆欧美人体老妇| 丝袜亚洲另类欧美综合| 中文av字幕一区| 日韩一区二区高清| 一本到高清视频免费精品| 美国毛片一区二区| 一区二区三区av电影| 欧美经典一区二区三区| 在线91免费看| 91视频www| 国产成人一区二区精品非洲| 日韩黄色在线观看| 亚洲美女一区二区三区| 国产午夜三级一区二区三| 欧美一区二区视频在线观看2022| 精品国产乱码久久久久久免费| 欧美综合一区二区| www.成人在线| 国产精品一线二线三线精华| 奇米影视7777精品一区二区| 亚洲综合视频在线| 国产精品你懂的在线| 久久综合九色综合欧美98| 欧美久久婷婷综合色| 色8久久精品久久久久久蜜| 菠萝蜜视频在线观看一区| 九九精品一区二区| 日日骚欧美日韩| 亚洲国产一区二区三区 | 色综合色综合色综合色综合色综合 | 99久久er热在这里只有精品66| 另类成人小视频在线| 久久久久国产精品麻豆| 91精品国产入口| 欧美酷刑日本凌虐凌虐| 91官网在线观看| 色视频一区二区| 99久久精品久久久久久清纯| 国产精品91一区二区| 国产成人av影院| 国产高清不卡二三区| 国产精品一区三区|