FormToolkit
을 사용하여 Section
을 만듭니다.SWT 섹션 - 제목 배경 그라디언트를 설정할 수 없습니다.
setTitleBarGradientBackground
API가 제목 표시 줄의 색칠에 영향을주지 않는 이유는 무엇입니까?
FormToolkit
을 사용하여 Section
을 만듭니다.SWT 섹션 - 제목 배경 그라디언트를 설정할 수 없습니다.
setTitleBarGradientBackground
API가 제목 표시 줄의 색칠에 영향을주지 않는 이유는 무엇입니까?
버그 신고 here (Bug 213193)가 있습니다. 불행하게도 당신이이 조만간 해결 될 것으로 예상 할 수있다처럼
지금 노력하고 있습니다 ... 보이지 않는 - RCP에서 같은 섹션의 배경 그라데이션의 위쪽 색상을 설정합니다.
Section#setTitleBarBackground
Section#setTitleBarGradientBackground
은 섹션 클래스에서 사용되지 않는 색상 (Section#COLOR_GBG
)을 설정합니다.
Section#setTitleBarBorderColor
- 효과가 없습니다./** * Sets the color of the title bar gradient background when TITLE_BAR style * is used. This color is used at the height where title controls end * (toggle, tool bar). * * @param color * the title bar gradient background */ public void setTitleBarGradientBackground(Color color) { putTitleBarColor(COLOR_GBG, color); }
을하지만
Section#onPaint(PaintEvent e)
에서 살펴 경우는COLOR_GBG
의 사용을 찾을 수 없습니다 :
코드는 다음과 같은 방식으로 구현되어, Section
소스 코드 쇼를 검사.