이 질문에 대한 답변을 드릴 수 있을지 모르겠지만 희망합니다. 필자는 Windows에서 C 코드를 작성하기위한 기본 IDE로 사용되는 Delphi 7에서 간단한 텍스트 편집기를 작성했습니다. VM에서 Windows를 실행하고 빛이 필요했습니다. 어쨌든 새 파일을 열거 나 만들 때마다 새 탭을 가져 오는 TpageControl을 사용합니다. 꽤 표준. 이제 Delphi에서 TPageControl은 플랫 속성을 갖지 않습니다.Delphi 7에서 TPageControl을 평평하게 만들기
NO 내가 tsButtons 또는 tsFlatButtons 경계를 설정할 수 없습니다
에 탭 스타일을 설정하는 의미하지 않는다 "없음"으로하고 탭 컨트롤에 텍스트 편집기를 추가 할 때 아주 나쁜 보인다.
TpageControl을 플랫하게 만들 수있는 방법이 있습니까?
편집 : 여기에 평면 지원하는 오픈 소스 PageControl에
내가 무엇을 발견 :
procedure TCustomTabExtControl.WndProc(var Message: TMessage);
begin
if(Message.Msg=TCM_ADJUSTRECT) and (FFlat) then
begin
Inherited WndProc(Message);
Case TAbPosition of
tpTop : begin
PRect(Message.LParam)^.Left:=0;
PRect(Message.LParam)^.Right:=ClientWidth;
PRect(Message.LParam)^.Top:=PRect(Message.LParam)^.Top-4;
PRect(Message.LParam)^.Bottom:=ClientHeight;
end;
tpLeft : begin
PRect(Message.LParam)^.Top:=0;
PRect(Message.LParam)^.Right:=ClientWidth;
PRect(Message.LParam)^.Left:=PRect(Message.LParam)^.Left-4;
PRect(Message.LParam)^.Bottom:=ClientHeight;
end;
tpBottom : begin
PRect(Message.LParam)^.Left:=0;
PRect(Message.LParam)^.Right:=ClientWidth;
PRect(Message.LParam)^.Bottom:=PRect(Message.LParam)^.Bottom-4;
PRect(Message.LParam)^.Top:=0;
end;
tpRight : begin
PRect(Message.LParam)^.Top:=0;
PRect(Message.LParam)^.Left:=0;
PRect(Message.LParam)^.Right:=PRect(Message.LParam)^.Right-4;
PRect(Message.LParam)^.Bottom:=ClientHeight;
end;
end;
end else Inherited WndProc(Message);
end;
나는 그것이 작동하지 않습니다 기본 응용 프로그램에서 비슷한 시도 할 때 일입니다. 그것은 심지어 컴파일되지 않습니다.
트릭을 할해야 평면 버튼을 사용합니다. 나는 자주 사용한다. – Hemant
고마워,하지만 내 질문에 내가 tsFlatButtons 싶지 않아 언급했다. – wonderer
그런 다음 평평하지 않은 버튼을 사용하십시오. 요점은 탭이 어떤 종류의 단추 이건 관계없이 페이지 컨트롤이 평평해진다는 점입니다. –