|Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread|
|Messages 1 to 5 of 5 total|
|TEdit Editing types|
|Tue, Jun 4 2013 5:15 AM||Permanent Link|
we discussed this earlier:
Since there are a lot of numbers to be entered, it would be great, if
the software keyboard of the mobile phone would switch to numbers.
In HTML I can use
<input type="number" name="test" id="test" />
Is there a way to achieve the same with EWB (eventually by editing the js
Your answer was:
<< I've got a similar request for this already, so I'm going to look
into adding some editing types to the TEdit control for next build. >>
<<Yes, I'm going to include it in the next build. It's just a matter of
changing how the edit element is created. >>
Since I don't see such a property: is that already implemented?
|Tue, Jun 4 2013 6:20 AM||Permanent Link|
I too would like this, or a way to add such even if manually.
|Tue, Jun 4 2013 2:30 PM||Permanent Link|
Tim Young [Elevate Software]
Elevate Software, Inc.
<< Since I don't see such a property: is that already implemented? >>
No, it got cut from 1.02 due to time. It's on the list for the next round
along with other mobile improvements.
|Wed, Jun 5 2013 5:08 AM||Permanent Link|
> I too would like this, or a way to add such even if manually.
this is the code Tim gave me:
You can add a component for this
by sub-classing the TCustomEdit component in the WebCtrls unit:
TNumberEdit = class(TCustomEdit)
function CreateInputElement: THTMLInputElement; override;
function TNumberEdit.CreateInputElement: THTMLInputElement;
And you can create the edit control at runtime like this:
procedure TForm1.Button11Click(Sender: TObject);
Be forewarned, the above probably won't work on some versions of IE, but
since you're doing a mobile site, that should be less of a concern.
|Thu, Jun 6 2013 5:07 AM||Permanent Link|
Thanks - another message to mark as a todo!
This web page was last updated on
Sunday, March 26, 2023 at 04:50 AM
© 2023 Elevate Software, Inc. All Rights Reserved
Questions or comments ? E-mail us at firstname.lastname@example.org