Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi XE8 FireMonkey iOS Style problem with segmented buttons


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Sep 8, 2015 3:31 PM Last Post By: Jako Grobler
Jako Grobler

Posts: 45
Registered: 6/26/15
Delphi XE8 FireMonkey iOS Style problem with segmented buttons  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 9, 2015 11:14 AM
Hi,

Going through some tutorials to get used to mobile development using FireMonkey and Delphi XE8. One of the most basic layouts tend to use the toolbar component with segmented speed buttons, and then applying the correct segmented style to each button.

However, there seems to be an issue with the iOS style. [Screenshot.|https://drive.google.com/file/d/0B68Ju-patBf-RVVEMmI5UDd2cG8/view?usp=sharing]

Using the "segmentedbuttonleft", "segmentedbuttonmiddle", and "segmentedbuttonright" styles is producing an extra border on the right button in iOS. It seems to be fine in all other targets (Windows, Android and OSX). Is this a bug in the style itself, or am I using it wrong?

All buttons were added as follows:

New multi-device project.
Add new toolbar.
Add new speedbutton parented to toolbar, align left, StyleLookup set to "segmentedbuttonleft".
Add new speedbutton parented to toolbar, align left, StyleLookup set to "segmentedbuttonmidle".
Add new speedbutton parented to toolbar, align left, StyleLookup set to "segmentedbuttonright".

Viewing and/or debugging on an iOS 8 target adds a left border on the rightmost button, breaking the clean layout.
Eli M

Posts: 1,346
Registered: 11/9/13
Re: Delphi XE8 FireMonkey iOS Style problem with segmented buttons  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 10, 2015 5:22 AM   in response to: Jako Grobler in response to: Jako Grobler
Jako Grobler

Posts: 45
Registered: 6/26/15
Re: Delphi XE8 FireMonkey iOS Style problem with segmented buttons  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2015 8:34 AM   in response to: Eli M in response to: Eli M
Yes, the GroupName has been set.
Sarina DuPont

Posts: 42
Registered: 7/6/11
Re: Delphi XE8 FireMonkey iOS Style problem with segmented buttons  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2015 9:56 AM   in response to: Jako Grobler in response to: Jako Grobler
Jako Grobler wrote:
Yes, the GroupName has been set.

Hi Jako,
In that case, select the right button (segmentedbuttonright) and set Margins>Left to -1.

Regards,
Sarina
--
Product Manager, RAD Studio
Embarcadero Technologies, Inc.
Jako Grobler

Posts: 45
Registered: 6/26/15
Re: Delphi XE8 FireMonkey iOS Style problem with segmented buttons  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 8, 2015 3:31 PM   in response to: Sarina DuPont in response to: Sarina DuPont
I am marking this as resolved since I am unable to reproduce it in Delphi 10.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02