Print Page | Close Window

questions

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9551
Printed Date: 28 September 2024 at 5:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: questions
Posted By: pragmatic_panoy
Subject: questions
Date Posted: 10 February 2008 at 7:30pm
Hi,

Since I am just beginning to know and familiarize some of the controls in the Xtreme SuitePro, I have some questions and comments to the users/experts who have much experience using these components.

Questions:

1.) How do you create a mask in the FlatEdit control that will only accept UPPERCASE or lowercase characters?  I know that there is some guide in the help file, but when I tried using those mask characters, it just doesn't seem to work? Or I am just missing something?

Ex: To have all UPPERCASE characters in a FlatEdit

    SomeFlatEdit.SetMask ">", " "

Note that the second argument boogles me, ?????.
Any advice on this?


2.) What will happen if you will NOT include the license code in your application?  The help file recommends to include it in your application before compiling.  

Will my application still run or can not use any of the controls?


Thanks and god bless.

-------------
Programming is fun!



Replies:
Posted By: SuperMario
Date Posted: 11 February 2008 at 9:58am
1.

SomeFlatEdit.SetMask "Upper Case: >>>>>>>", "Upper Case: _______"
SomeFlatEdit.SetMask "Lower Case: <<<<<<<", "Lower Case: _______"
SomeFlatEdit.SetMask "Alpha: LLLLLLL", "Alpha: _______"

Second argument is the Literal:
Literal defines the prompt area of the mask where text entry is allowed.  This should match the areas that you have already defined as mask fields.  By default the prompt character is '_' .
2.
If you use .NET you will need it so your clients don't get the license not found message.  You might or might not need it when using VB6.  There is an article in the help documentation about including this.  Or see http://codejock.com/support/articles/com/general/g_3.asp - http://codejock.com/support/articles/com/general/g_3.asp


Posted By: pragmatic_panoy
Date Posted: 11 February 2008 at 7:16pm
Thanks.

I am using a flatedit control, but I want it to make all its characters in UPPERCASE.  The example you have given me is okay, but I want to remove the words "Upper Case:", in short, all I want is to let my user see ONLY the characters he typed on the flatedit.

-------------
Programming is fun!


Posted By: SuperMario
Date Posted: 12 February 2008 at 11:44am
SomeFlatEdit.SetMask ">>>>>>>>>>>>>>>>>", "                 ", " "


Posted By: pragmatic_panoy
Date Posted: 12 February 2008 at 7:38pm
Thanks, I will try it out.

What I did for the meantime is that I set the flatedit's windows style using the ES_UPPERCASE style by using the SetWindowLong API.

I was glad that it worked out like the way a normal textbox would.

I would like to ask another question again,  if I have many codejock controls in my application, do I need to call the License method in the form where my controls are contained?

Example, if I have 4 forms in my project and each of the form contains a certain codejock control, do I need to call the License method in every Form Initialize event of those 4 forms?

How about trying to call the License method, in the Sub Main of my project?  Will that be good enough for all the codejock controls, regardless of where they are contained?

Many thanks


-------------
Programming is fun!


Posted By: corpcon
Date Posted: 12 February 2008 at 11:16pm
Originally posted by SuperMario SuperMario wrote:

SomeFlatEdit.SetMask ">>>>>>>>>>>>>>>>>", "                 ", " "
 
Setting the number of ">" based on the length of max characters in the control?!? I'm sorry, but I think this is just silly.
 
Why not just create a simple routine that you can use forever, regardless of the type or length of control. For example ...
 
Public Function util_vConvertToUpper(KeyAscii As Integer) As Variant
    ' Example: Use in KeyPress Event ...
    ' KeyAscii = util_vConvertToUpper(KeyAscii)
   
    If KeyAscii > 96 And KeyAscii < 123 Then
        KeyAscii = KeyAscii - 32    ' The upper case version
    End If
    util_vConvertToUpper = KeyAscii
End Function



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net