|
메모 컨포넌트를 동적으로 생성하고
BoderStyle을 bsDialog로 설정하였읍니다.
메모 컨포넌트가 동적으로 생성되는 장소를 스크린에서
마무스 포인터가 Down되는 위치입니다.
음... 그리고 메모 컨포넌트의 Parent는 애플리케이션에 위치한
StrGrid(StringGrid 컴포넌트)입니다요...!
문제는 이렇게 설정해놓고 메모 컨포넌트를 생성하면
스크롤바가 장동으로 같이 생성된다는 것입니다.
그래서 스크롤바를 ssNone로 설정하였읍니다.
그런데도 결과는 마찮가지였읍니다.
부디 해결책이나 아님 왜 그런 현상이 일어나는지 설명이라도 부탁합니다.
소스
if (Button == mbLeft || (Button != mbRight && Button != mbMiddle))
{
POINT P;
GetCursorPos(&P);
Screen->Cursor = crNone;
Dotcom = new TMemo(this);
Dotcom->Visible = false;
Dotcom->Parent = StrGrid;
Dotcom->Left = P.x-17;
Dotcom->Top = P.y-17;
Dotcom->Width = 35;
Dotcom->Height = 35;
Dotcom->Font->Name = "MS Gothic";
Dotcom->Font->Size = 22;
Dotcom->Font->Color =TColor(RGB(0,0,0));
Dotcom->BorderStyle = bsDialog;
Dotcom->ScrollBars = ssNone;
Dotcom->Color =TColor(clInfoBk);
Dotcom->Font->Charset = SHIFTJIS_CHARSET;
Dotcom->Text = StrGrid->Cells[CCol][RRow];
Dotcom->Visible = true;
StrGrid->SetFocus();
}
|