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

Native components questions

 Post Reply Post Reply
Author
Kravtsov Sergey View Drop Down
New Member
New Member
Avatar

Joined: 07 Oct 2013
Posts: 5
Post Options Post Options   Quote Kravtsov Sergey Quote  Post ReplyReply Direct Link To This Post Topic: Native components questions
    Posted: 08 Oct 2013 at 11:38am

Hello!

We have a full version of mCL. And have questions. What about:

1. changing (native) label color and style (bold, italic)?

2. controls' autosize property (for labels, checkboxes etc)?

3. got a tabview with few tabs. Put (native) components to the tabs with position.y=0. Run. Is it normal that the components have moved "outside" (at the tabs level) of tabview?


Back to Top
Kravtsov Sergey View Drop Down
New Member
New Member
Avatar

Joined: 07 Oct 2013
Posts: 5
Post Options Post Options   Quote Kravtsov Sergey Quote  Post ReplyReply Direct Link To This Post Posted: 08 Oct 2013 at 12:38pm

4. Put native tabview, create single tab, put a button (TMSFMXNativeNSButton1)on it, and write anywhere else:

TMSFMXNativeNSButton1.Position.X := TMSFMXNativeNSButton1.Position.X + 100

The button does not move.

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3221
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 09 Oct 2013 at 2:44am
The components are wrappers and expose a public property that gives access to the native control.

1) The text color can be set with
  TMSFMXNativeNSLabel1.lbl.setTextColor(AlphaColorToNSColor(TAlphaColorRec.Red));
 The style (bold, italic, ...) of the text will need to be set with the attribute string, this is currently not implemented, only the font size and name can be changed with the Font property TMSFMXNativeNSLabel1.Font.  

2) Autosizing is currently not implemented, this does not directly exist on native level and requires manual calculation of the text size, we will investigate here if we can add the calculation internally.
3) The tabview has different modes, the default mode adds a margin to it, the margin is not taken into account when positioning controls.
4) Can you call TMSFMXNativeNSButton1.UpdateFrame afterwards?

We have added the request to our feature request list.

Kind Regards, 
Pieter
Back to Top
Kravtsov Sergey View Drop Down
New Member
New Member
Avatar

Joined: 07 Oct 2013
Posts: 5
Post Options Post Options   Quote Kravtsov Sergey Quote  Post ReplyReply Direct Link To This Post Posted: 09 Oct 2013 at 4:38am

Thank You!

Another one:

5. TTMSFMXNativeNSStepper.Enabled does not work.

Back to Top
Kravtsov Sergey View Drop Down
New Member
New Member
Avatar

Joined: 07 Oct 2013
Posts: 5
Post Options Post Options   Quote Kravtsov Sergey Quote  Post ReplyReply Direct Link To This Post Posted: 09 Oct 2013 at 6:17am

Next one:

6. There is no property PasswordChar in TextField components. How can we hide users' passwords?

P.S. How can I edit my own (prev.) posts in the forum?

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3221
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 09 Oct 2013 at 8:14am
5) Can you try with TMSFMXNativeNSStepper.Stepper.setEnabled(false) ?
6) This is not possible with the TextField component. This is available in a separate native control NSSecureTextField, but is currently not available.

You cannot edit your own posts for security reasons.

Kind Regards, 
Pieter
Back to Top
Kravtsov Sergey View Drop Down
New Member
New Member
Avatar

Joined: 07 Oct 2013
Posts: 5
Post Options Post Options   Quote Kravtsov Sergey Quote  Post ReplyReply Direct Link To This Post Posted: 15 Oct 2013 at 9:11am

Hello!

What about TTMSFMXNativeNSTabView disabling? TTMSFMXNativeNSTabView,Enabled:=False does not work as well.

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3221
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 15 Oct 2013 at 9:42am
NSTabView cannot be disabled, only the children inside can be disabled manually.

Kind Regards, 
Pieter
Back to Top
Claver jesus javier View Drop Down
New Member
New Member
Avatar

Joined: 06 Feb 2014
Posts: 1
Post Options Post Options   Quote Claver jesus javier Quote  Post ReplyReply Direct Link To This Post Posted: 06 Feb 2014 at 7:31am
Hi,

The Text component doesn't appear to allow left and right key movement.  Also I can't tab from one field to another, is this expected functionality?

Andy
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3221
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 06 Feb 2014 at 7:39am
In the latest version, we have made improvements to support arrow keys. this is a bug in FireMonkey.
Which version are you using?

Kind Regards,
Pieter
Back to Top
Norman Andrew View Drop Down
New Member
New Member
Avatar

Joined: 17 Sep 2012
Posts: 2
Post Options Post Options   Quote Norman Andrew Quote  Post ReplyReply Direct Link To This Post Posted: 06 Feb 2014 at 8:58am
Hi,

I'm XE4 and mCL 1.2.0.2.

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

Joined: 18 May 2010
Posts: 3221
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 06 Feb 2014 at 9:22am
Sorry, in XE4 we were unable to fix this due to shortcomings in the FireMonkey framework, only in XE5 we have found a suitable workaround. This is an issue that has been reported to Embarcadero when XE5 was already released. We can only hope that Embarcadero fixes these issues in an update or in the next version of Rad Studio.

Kind Regards, 
Pieter
Back to Top
Norman Andrew View Drop Down
New Member
New Member
Avatar

Joined: 17 Sep 2012
Posts: 2
Post Options Post Options   Quote Norman Andrew Quote  Post ReplyReply Direct Link To This Post Posted: 06 Feb 2014 at 1:40pm
I've upgraded to XE5 and I still have the problem.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3221
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 10 Feb 2014 at 2:48am
Hi, 

Can you perhaps send us a sample that demonstrates this with a description of the issues that you encountered?

Kind Regards, 
Pieter
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down