We are using TMS Web Core V2.6 beta and have issues with the TWebCheckListBox component.
First, the component misses the published property Items.
This is no problem, since we can resolve this issue programmatically.
More critical to us are the issues, that the OnEnter and OnExit events are not triggered.
As documented, we associated the TWebCheckListBox's ElementID with an HTML div tag's id.
- I see Items in the Object Inspector here. You use the 2.6RC?
- In TWebCheckListBox, the checkboxes in the list can have individually focus and thus get the OnEnter/OnExit individually
- We use Web core V2.6. beta. In Object Inspector (Delphi 12.1), we see the properties Hint, ItemHeight, Left, no Items. In code, we see in WEBLib.CheckLst that TCheckListBox declares the Items property inherited from TCustomListBox as published. Strange ...
- In VCL, the TCheckListBox OnEnter/OnExit works, which simplifies things. If Web has not, then OnEnter/OnExit shouldn't be public or published, if it is a NOP. How can we access the individual check boxes of a TCheckListBox and assign OnEnter/OnExit event handlers? How can we set the focus to the first check box programmatically?
- Please try with the v2.6 release
- You can access this checkbox as HTML element with
document.getElementById(checklist.ID +'_' + Index.ToString)
Regarding point 1: We just installed the v2.6 release and still don't see the Items property in Object Inspector. There is still Hint followed by ItemHeight followed by Left. The Items property is also not visible in the properties' categorized view.
Will be fixed in v2.6.1.0