Spec Button Shortcut Indication
Hi, The following looks different in my Dark Theme image vs a Standard image (same version #30848): ButtonModel new label: 'Click Me'; shortcut: $C asShortcut; action: [ self inform: 'OK, you clicked me !' ]; openWithSpec. The difference is the C that is underlined. Is this intentional ? Is there a way to have a shortcut, but not the underlining ? Thx, Sven
2014-06-23 22:53 GMT+02:00 Sven Van Caekenberghe <sven@stfx.eu>:
Hi,
The following looks different in my Dark Theme image vs a Standard image (same version #30848):
ButtonModel new label: 'Click Me'; shortcut: $C asShortcut; action: [ self inform: 'OK, you clicked me !' ]; openWithSpec.
The difference is the C that is underlined. Is this intentional ?
Is there a way to have a shortcut, but not the underlining ?
Thx,
Sven
I don't see any difference in 30848 and 40038. Both show underlined char. (even with the dark theme). It is intentional, and new (this year). I don't think it is possible to suppress the underlining.
The difference is the C that is underlined. Is this intentional ?
Itâs intentional that the C is underlined.
Is there a way to have a shortcut, but not the underlining ?
This is not planned, but itâs doable :) If you dig in ButtonModel, you should find if easily (or maybe in MorphicButtonAdapter) Ben
Thanks, Nicolai & Ben, I am going for my own ButtonModel subclass which overwrites #label, integrated by overwriting #newButton on my ComposableModel subclass - until there is another solution. On 25 Jun 2014, at 10:13, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote:
The difference is the C that is underlined. Is this intentional ?
Itâs intentional that the C is underlined.
Is there a way to have a shortcut, but not the underlining ?
This is not planned, but itâs doable :) If you dig in ButtonModel, you should find if easily (or maybe in MorphicButtonAdapter)
Ben
Benjamin Van Ryseghem (Pharo) wrote
Itâs intentional that the C is underlined.
Cool!! One of the few good ideas from Windoze... ----- Cheers, Sean -- View this message in context: http://forum.world.st/Spec-Button-Shortcut-Indication-tp4764414p4764778.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
On 25 Jun 2014, at 20:40, Sean P. DeNigris <sean@clipperadams.com> wrote:
Benjamin Van Ryseghem (Pharo) wrote
Itâs intentional that the C is underlined.
Cool!! One of the few good ideas from Windozeâ¦
Now we have to remove it! ;) Ben
----- Cheers, Sean -- View this message in context: http://forum.world.st/Spec-Button-Shortcut-Indication-tp4764414p4764778.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (4)
-
Benjamin -
Nicolai Hess -
Sean P. DeNigris -
Sven Van Caekenberghe