LoginSignup
0
1

More than 5 years have passed since last update.

C++ Builder XE4, 10.2 Tokyo > TStringGrid > Classic表示にする > DrawingStyleオプション: gdsClassic

Last updated at Posted at 2017-04-14
動作環境
C++ Builder XE4
Windows 7 Pro (32bit)
RAD Studio 10.2 Tokyo Update 2 (追記: 2017/12/28)

TStringGridのセルの枠が見えにくい。

http://stackoverflow.com/questions/28107621/how-to-change-the-color-of-tstringgrid-grid-lines
によると、DrawingStyleオプションを変更することで、昔(C++ Builder 6?)のスタイルに戻せるとのこと。

Unit1.cpp
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
    : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::B_toClassicClick(TObject *Sender)
{
    StringGrid1->DrawingStyle = gdsClassic;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::B_toThemedClick(TObject *Sender)
{
    StringGrid1->DrawingStyle = gdsThemed;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::StringGrid1Click(TObject *Sender)
{

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

Themed

qiita.png

Classic

qiita.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1