Skip to content

2914-V105-LTS-White bar is shown in a KryptonForm Sizable without buttons and text#3311

Open
mcpbcs wants to merge 3 commits intoalphafrom
2914-V110-White-bar-is-shown-in-a-KryptonForm-Sizable-without-buttons-and-text
Open

2914-V105-LTS-White bar is shown in a KryptonForm Sizable without buttons and text#3311
mcpbcs wants to merge 3 commits intoalphafrom
2914-V110-White-bar-is-shown-in-a-KryptonForm-Sizable-without-buttons-and-text

Conversation

@mcpbcs
Copy link
Copy Markdown

@mcpbcs mcpbcs commented Apr 10, 2026

Fixed an issue in KryptonForm where a white title bar area was still rendered
when ControlBox was set to false and the form Text was empty.

The form now correctly hides the non-client title area when no caption
or control buttons are present, ensuring consistent visual behavior.

#2914

Fixed an issue in KryptonForm where a white title bar area was still rendered
when ControlBox was set to false and the form Text was empty.

The form now correctly hides the non-client title area when no caption
or control buttons are present, ensuring consistent visual behavior.

#2914
@mcpbcs mcpbcs requested a review from a team as a code owner April 10, 2026 21:52
@mcpbcs mcpbcs added area:toolkit All issues related to the toolkit components. version:110 All things to do with V110. version:105-lts All things to do with V105 LTS. and removed version:110 All things to do with V110. labels Apr 10, 2026
@mcpbcs mcpbcs changed the title 2914-V110-LTS-White bar is shown in a KryptonForm Sizable without buttons and text 2914-V105-LTS-White bar is shown in a KryptonForm Sizable without buttons and text Apr 10, 2026
mcpbcs added 2 commits April 11, 2026 16:06
Add a protected internal virtual HasFormFrames() API to VisualForm with a
concrete KryptonForm implementation.

The KryptonForm override correctly evaluates FormBorderStyle and caption
content (Text / TextExtra), which fixes the white bar rendered in the
non-client area when a sizeable form loses focus with an empty caption.

This change avoids duplicated logic and provides a reusable contract
for non-client chrome handling.
Adjust KryptonForm.HasCaptionContent to consider ControlBox state
when determining caption usability.

This prevents treating certain ControlBox=false configurations as
usable captions, avoiding non-client repaint artifacts such as the
white bar when the form loses focus.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:toolkit All issues related to the toolkit components. version:105-lts All things to do with V105 LTS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants