Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-06

TSpinEdit - a modest propoal

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alejandro Gonzalo

When ReadOnly is True the up/down buttons remain although they don't now do anything.? In that case the number display are should instead occupy the entire component width.? This way there would be a way to display a number directly without first converting to a string. ?
Not a big thing but now is the time to do the little things. ?
A. G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130614/4bcdd77b/attachment.html>

Reply by email

Mattias Gaertner
to Alejandro Gonzalo
When ReadOnly is True the up/down buttons remain although they don't now do anything.? In that case the number display are should instead occupy the entire component width.?This way there would be a way to display a number directly without first converting to a string. ? Not a big thing but now is the time to do the little things.

Feel free to implement and send a patch.

Mattias

Reply by email

Bart
to Alejandro Gonzalo: When ReadOnly is True the up/down buttons remain although they don't now do anything.? In…
Alejandro Gonzalo wrote
When ReadOnly is True the up/down buttons remain although they don't now do anything. In that case the number display are should instead occupy the entire component width.

Why should they?
I'm not even sure this can be accomplished across widgetsets.

This way there would be a way to display a number directly without first converting to a string.

You lost me there.
Besides a Value property the control also has a Text property. But none of this should have anything to do with wether or not the up/down arrows are visible.

Bart

Reply by email

Mattias Gaertner
to Bart
Show quoted text 8 lines
On 6/15/13, Alejandro Gonzalo wrote: > When ReadOnly is True the up/down buttons remain although they don't now do > anything. In that case the number display are should instead occupy the > entire component width. Why should they? I'm not even sure this can be accomplished across widgetsets.

That's not a big problem.
It is only a visual thing. It does not need extra events. You can implement it only in some interfaces, document it via the 'Restricted' and add a widgetset capability flag, so that applications know if the current widgetset supports it.

Show quoted text 7 lines
> This way there would be a way to display a number > directly without first converting to a string. You lost me there. Besides a Value property the control also has a Text property. But none of this should have anything to do with wether or not the up/down arrows are visible.

Yes, I didn't understand that neither. Probably it gets more clear when seeing the patch.

Mattias

Reply by email