CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

IWCGJQEdit -> MaskOptions

by factor200x » 28 Jan 2016 12:22

Hello,

I try to create a Mask that only allows you to enter a hex value. The length of the input to be variable. The entry is a " 2D " or even " 2D665D etc. " allow.

The examination of the Hex value I have created a definition :

Code: Select all
with IWCGJQEdit.Definitions.add do
begin
 name := 'h';
 value := 'A-Fa-f0-9'
end;


As Mask I Wear "Mask = 'h' a.

My problem , I can always enter a character . or specify the number of " h " I've deposited under " mask".


If I do I define this as a mask in a Win32 GUI ( TcxMaskEdit ) :

(\d | [A-F] | [a-f])+


With this mask I can enter an arbitrarily long hex value .

My question : How can I do that with "IWCGJQEdit" to realize?

The documentary ( http://digitalbush.com/projects/masked-input-plugin ) I have already read , but do not get ahead .

Thanks
Olaf
factor200x
 
Posts: 9
Joined: 13 Jun 2012 04:35

by Alexander Bulei » 28 Jan 2016 17:13

Hi Olaf,

Maybe you want something like this:

delphi code
procedure TFORMTEST.IWCGJQRegion2Create(Sender: TObject);
begin
with IWCGJQEdit2.MaskOptions.Definitions.add do
begin
Name := 'h';
Value:= 'A-Fa-f0-9';
end;
IWCGJQEdit2.MaskOptions.Mask:= '#hh?hhhh';
IWCGJQEdit2.MaskOptions.Enable:= True;
end;


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: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by factor200x » 05 Feb 2016 09:40

Hi Alexander,

this formatting I had already tried and it does not work . There failing always at the length . If I put " hh ? Hh " , I can detect signs exactly five.

The length of the HEX is but dynamic. This is at least 6 characters up to 100 characters.

Best Regards
Olaf
factor200x
 
Posts: 9
Joined: 13 Jun 2012 04:35

by Alexander Bulei » 12 Feb 2016 15:08

Hi Olaf,
Sorry for delay.
We have implemented the new property MaskExOptions in JQEdit, which allow you user the ReEx, dynamic masks and more...

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: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by ScottWGast » 20 Apr 2016 23:38

Where are the MaskExOptions??
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Alexander Bulei » 21 Apr 2016 09:45

Hi ScottWGast,

lol :D

In JQEdit, no? :p
Check your version and version change log.

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: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by ScottWGast » 21 Apr 2016 15:57

I'm running the latest stable version. Do you know when the version containing the new mask options (v2.9.0.206) will be moved over to the stable versions?
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Alexander Bulei » 21 Apr 2016 16:01

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: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQEdit

Who is online

Users browsing this forum: No registered users and 4 guests

Contact Us.