Recent

Author Topic: TUpDown Orientation  (Read 3890 times)

dbannon

  • Hero Member
  • *****
  • Posts: 1490
    • tomboy-ng, a rewrite of the classic Tomboy
TUpDown Orientation
« on: June 24, 2021, 01:51:13 pm »
Hi Folks, I use the TUpDown Control in my app and use it with orientation = udHorizontal. Works fine on Linux and Windows, however, on the Mac it remains firmly vertical.

Is this a case of the underlying cocoa widgetset not supporting orientation or should I report it as a bug ?

I can of course use a couple of speedbuttons but the TUpDown seemed to work quite well.....

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

ChrisR

  • Full Member
  • ***
  • Posts: 214
Re: TUpDown Orientation
« Reply #1 on: June 24, 2021, 02:47:07 pm »
The LCL TUpDown maps on to the Cocoa NSStepper. This native control appears to only support the vertical up/down. Perhaps this limitation should be noted on the wiki:

https://wiki.freepascal.org/Cocoa_Internals/Widgetset

dbannon

  • Hero Member
  • *****
  • Posts: 1490
    • tomboy-ng, a rewrite of the classic Tomboy
Re: TUpDown Orientation
« Reply #2 on: June 24, 2021, 03:04:09 pm »
Yes, that makes sense Chris, Pity but not that hard to get around.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

Bart

  • Hero Member
  • *****
  • Posts: 4355
    • Bart en Mariska's Webstek
Re: TUpDown Orientation
« Reply #3 on: June 24, 2021, 06:55:16 pm »
It should be noted in issues.xml for cocoa widgetset as well, so please file a bugreport.

Bart

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2629
    • havefunsoft.com
Re: TUpDown Orientation
« Reply #4 on: June 24, 2021, 08:16:48 pm »
It should be noted in issues.xml for cocoa widgetset as well, so please file a bugreport.
is that an issue or a system native behavior ?

Bart

  • Hero Member
  • *****
  • Posts: 4355
    • Bart en Mariska's Webstek
Re: TUpDown Orientation
« Reply #5 on: June 24, 2021, 10:43:08 pm »
It should be noted in issues.xml for cocoa widgetset as well, so please file a bugreport.
is that an issue or a system native behavior ?

If the orientation thing is system native behaviour, then it not being in issues.xml is the bug.
Otherwise the orientation thing is the bug.
Either way, there is a bug.
Hence it should be reprted in the bugtracker (so it won't be forgotten).

B.t.w. I thought that TUpDown was entirely painted by ourself?

Bart

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2629
    • havefunsoft.com
Re: TUpDown Orientation
« Reply #6 on: June 24, 2021, 11:01:04 pm »
B.t.w. I thought that TUpDown was entirely painted by ourself?
yeah, but it doesn't look native on macOS
so additional system native implementation of UpDown was introduced.

dbannon

  • Hero Member
  • *****
  • Posts: 1490
    • tomboy-ng, a rewrite of the classic Tomboy
Re: TUpDown Orientation
« Reply #7 on: June 25, 2021, 05:43:04 am »
OK, here is a comparison -

I'll log it as a bug, at least a documentation change noting orientation change is not available in Cocoa. For my app, very easy to replace with a couple of speedbuttons.

Davo
« Last Edit: June 25, 2021, 05:45:48 am by dbannon »
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

 

TinyPortal © 2005-2018