Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - questions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

questions

 Post Reply Post Reply
Author
Message
pragmatic_panoy View Drop Down
Newbie
Newbie
Avatar

Joined: 06 December 2007
Location: Philippines
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote pragmatic_panoy Quote  Post ReplyReply Direct Link To This Post Topic: questions
    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!
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
pragmatic_panoy View Drop Down
Newbie
Newbie
Avatar

Joined: 06 December 2007
Location: Philippines
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote pragmatic_panoy Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2008 at 11:44am
SomeFlatEdit.SetMask ">>>>>>>>>>>>>>>>>", "                 ", " "
Back to Top
pragmatic_panoy View Drop Down
Newbie
Newbie
Avatar

Joined: 06 December 2007
Location: Philippines
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote pragmatic_panoy Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
corpcon View Drop Down
Groupie
Groupie


Joined: 28 June 2007
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote corpcon Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.