Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

NSTextField tab

 Post Reply Post Reply
Author
Brent Shelton View Drop Down
New Member
New Member
Avatar

Joined: 24 Feb 2015
Posts: 30
Post Options Post Options   Quote Brent Shelton Quote  Post ReplyReply Direct Link To This Post Topic: NSTextField tab
    Posted: 15 May 2017 at 2:46pm
Pieter,

Is it possible to set tabbing between the controls on a form using the Tab key?  I know on my El Capitan development machine, it doesn't tab but I think it may be automatic on macOS Sierra.

Thanks,
Brent
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3206
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2017 at 3:03pm
Hi, 

We have investigated this here but have no issues tabbing. In which RAD Studio are you testing this?
Back to Top
Brent Shelton View Drop Down
New Member
New Member
Avatar

Joined: 24 Feb 2015
Posts: 30
Post Options Post Options   Quote Brent Shelton Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2017 at 3:07pm
Berlin 10.1.2
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3206
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2017 at 3:13pm
Hi, 

We have tested this here in Tokyo 10.2, so it could be a RAD Studio specific issue. We'll further investigate this.
Back to Top
Brent Shelton View Drop Down
New Member
New Member
Avatar

Joined: 24 Feb 2015
Posts: 30
Post Options Post Options   Quote Brent Shelton Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2017 at 3:56pm
Are you testing on macOS sierra or older?
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3206
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2017 at 3:57pm
We are testing this on El Capitan
Back to Top
Brent Shelton View Drop Down
New Member
New Member
Avatar

Joined: 24 Feb 2015
Posts: 30
Post Options Post Options   Quote Brent Shelton Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2017 at 9:29pm
Are you just using the tab key?  I made a sample application and put some TTMSFMXNativeNSTextFields on it.  Tab doesn't work.  I then put them on a TTMSFMXNativeNSView but that didn't help.  Do I need to add frameworks like iCL?  I also Tried changing the Preferences on my Mac to make all controls use Tab in the Keyboard, Shortcuts.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3206
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2017 at 8:43am
Hi, 

I've dropped 2 TTMSFMXNativeNSTextFields on the form and clicked on one of them. Then press Tab to jump to the next one.
Back to Top
Brent Shelton View Drop Down
New Member
New Member
Avatar

Joined: 24 Feb 2015
Posts: 30
Post Options Post Options   Quote Brent Shelton Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2017 at 7:15pm
Maybe it is my Mac Mini but I can't get it to work on El Capitan.  On my iMac with Sierra it sort of works.  I have the native controls in this order: date edit, 2 radio buttons, text field, button, text field, button, text field, button.  I set the tab order using code so it would be date edit, text field, text field, text field, button.  I set tabstop to false on the others.  At runtime it seems to ignore my code and tabs the next control in order from the top of the form but after tabbing from the edit to the checkbox, it stops tabbing.

Thanks
Back to Top
Brent Shelton View Drop Down
New Member
New Member
Avatar

Joined: 24 Feb 2015
Posts: 30
Post Options Post Options   Quote Brent Shelton Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2017 at 7:28pm
sorry i meant the taborder is set with code using date edit, radio button, radio button, edit, checkbox, checkbox, checkbox, edit, button, edit, button, edit, button, button, checkbox, combobox, button, button.  at runtime it tabs from date edit to checkbox and then doesn't work anymore.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3206
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2017 at 8:57am
Unfortunately this is an FMX issue. The tabbing is controlled on FMX core framework level and we have only patched TTMSFMXNativeNSTextField and TTMSFMXNativeNSTextView to have keyboard functionality. When combining native controls with default FMX controls the tabbing stops working due to the way it is implemented in the underlying FMX framework.
Back to Top
Brent Shelton View Drop Down
New Member
New Member
Avatar

Joined: 24 Feb 2015
Posts: 30
Post Options Post Options   Quote Brent Shelton Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2017 at 1:57pm
I emailed a sample project.  Tested with Delphi Tokyo 10.2 and macOS Sierra.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down