TWebDateTimePicker and TabIndex

We use html templates extensively and set the tabindex for the fields within the HTML (this is an amended form form tms.webcore\Demos\Basics\HTMLTemplate) :

<input type="TEXT" id="edt" tabindex=1>
<input type="DATE" id="dat" tabindex=2>
<button type="BUTTON" id="btn" tabindex=3>Add</button>

All works well except for TWebDateTimePicker which always sets the tabindex to 0, but does add step=1

image

Is there a workaround for this or do I need to set up a bug fix request?

Attached is the amended demo project.

HTMLTemplate_DatePicker.zip (8.4 KB)

using a span around it works, but it would be great to be able to just use tabindex

<span><input type="TEXT" id="edt" tabindex=1>
<span tabindex=2>
<input type="DATE" id="dat" tabindex=2>
</span>
<button type="BUTTON" id="btn" tabindex=3>Add</button>
</span>

We'll do the improvement that when TabStop = false and the TWebDateTimePicker is bound to a HTML element, it will just leave the HTML setting for tabindex as-is.
Next update will have this improvement.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.