-
Notifications
You must be signed in to change notification settings - Fork 73
2461 v100 (feat) Add KryptonCalcInput edit control #2462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…andling for improved functionality
…sources and references
…proach like datepicker.
Don't forget to add a demo to the 'Demo' repo |
Had a brief look around. |
Haven't thought about that yet, but could look into it in a followup PR. |
Conflicts... |
if (AutoSize) | ||
{ | ||
var graphics = Graphics.FromHwnd(Handle); | ||
var newWidth = (int)Math.Ceiling(graphics.MeasureString(Value.ToString(), Font).Width); |
There was a problem hiding this comment.
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?
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.
(red cross is custom
ButtonSpecs
button with click event (not default), see TestForm)