⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapu.cpp

📁 一套及时通讯的原码
💻 CPP
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "mapu.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "fcButton"
#pragma link "fcImgBtn"
#pragma link "fcLabel"
#pragma resource "*.dfm"
TMapForm *MapForm;
//---------------------------------------------------------------------------
__fastcall TMapForm::TMapForm(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------


void __fastcall TMapForm::FormShow(TObject *Sender)
{
  //Hide the image if there is not enough colors to display the background.
  if ((GetDeviceCaps(Image2->Canvas->Handle, BITSPIXEL) *
       GetDeviceCaps(Image2->Canvas->Handle, PLANES)) <= 8)
     Image2->Visible = False;
}
//---------------------------------------------------------------------------

void __fastcall TMapForm::fcImageBtn2Click(TObject *Sender)
{
  //Set the title based on the clicked on buttons caption.
  fcLabel4->Caption = ((TfcImageBtn *)Sender)->Caption;

  //Now perform the locate on the table to get the county statistics
  TLocateOptions loptions;
  loptions.Clear();
  loptions << loPartialKey;
  Table1->Locate("CountyName",fcLabel4->Caption,loptions);
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -