CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Enabled/Editable/ReadOnly best way

by etwoss » 06 Sep 2016 07:10

Hi

I noticed that a lot of component have all these 3 properties, which basically should do the same, make the component not editable.
Also the Datalink has a StateChangeOperation scoReadOnly.

So i wonder, to make a 'Read Only ' form with controls not editable what's the best way to make these controls not editable.
Any difference to do this between databound and not databound controls?

(I can's seemto find documentation on DataLink.StateChangeOperation)

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 07 Sep 2016 11:56

Hi,

  • Enabled - when false, will have dark overlay/appearence. Not focusable.
  • Readonly - when true, will not allow to edit. Focusable.

When you use the DataLink, you should use the DataLink.StateChangeOperation property:

  • scoEnable - same effect as Enable property
  • scoReadOnly - same effect as ReadOnly property

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by zsleo » 03 Jan 2017 20:50

Alexander will you please also expand this explanation to include the Editable property and why it is addition to Readonly.

Also, why the Editable property is not available on all logically editable data linked components.

TIA
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by shreya » 01 Jan 2020 12:01

Thanks for the information.
clinical research training in hyderabad
shreya
 
Posts: 1
Joined: 01 Jan 2020 12:00


Return to General

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.