Skip to content

Conversation

tobitege
Copy link

@tobitege tobitege commented Aug 27, 2025

Implements #2461

Initial commit started with control as a button, later switched to actual input control.
First tried as custom visual popup, but had weird issue with clicks on the glyph being sent to underlying app,
so replaced that with a context menu approach, similar to the date time picker.

I put one in the TestForm Buttons demo page for testing.
Even used a small Python script to draw me a calculator glyph (will remove script if requested). 😄

Due to the late change with the popup, I still need to finetune the automatic sizing of it for e.g. the DropDownWidth being 0 (should then be parent control's width).

(K)Datagrid version would be separate PR, if there's enough interest.


image

(red cross is custom ButtonSpecs button with click event (not default), see TestForm)


{F6B305E0-CF51-4D6E-9543-12D3263E1933}

@tobitege tobitege added this to the Version 100 milestone Aug 27, 2025
@tobitege tobitege self-assigned this Aug 27, 2025
@tobitege tobitege added new feature A new feature has been requested. area:toolkit All issues related to the toolkit components. version:100-lts All things to do with V100 LTS. labels Aug 27, 2025
@PWagner1
Copy link
Contributor

Don't forget to add a demo to the 'Demo' repo

@giduac
Copy link
Contributor

giduac commented Aug 30, 2025

@tobitege

Had a brief look around.
Was wondering how you will support possible underlying datatypes (short, float, double, uint, etc..) when using this as a KDGV Column EditingControl...

@PWagner1
Copy link
Contributor

@tobitege

What's the status on this?

cc. @Smurf-IV & @giduac

@tobitege tobitege marked this pull request as ready for review September 19, 2025 17:05
@tobitege
Copy link
Author

Had a brief look around. Was wondering how you will support possible underlying datatypes (short, float, double, uint, etc..) when using this as a KDGV Column EditingControl...

Haven't thought about that yet, but could look into it in a followup PR.

@PWagner1
Copy link
Contributor

@tobitege

Conflicts...

if (AutoSize)
{
var graphics = Graphics.FromHwnd(Handle);
var newWidth = (int)Math.Ceiling(graphics.MeasureString(Value.ToString(), Font).Width);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a using missing?

@giduac giduac merged commit 0403983 into alpha Oct 2, 2025
2 checks passed
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. new feature A new feature has been requested. version:100-lts All things to do with V100 LTS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants