questions |
Post Reply |
Author | |
pragmatic_panoy
Newbie Joined: 06 December 2007 Location: Philippines Status: Offline Points: 8 |
Post Options
Thanks(0)
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!
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
1.
SomeFlatEdit.SetMask "Upper Case: >>>>>>>", "Upper Case: _______" SomeFlatEdit.SetMask "Lower Case: <<<<<<<", "Lower Case: _______" SomeFlatEdit.SetMask "Alpha: LLLLLLL", "Alpha: _______" Second argument is the Literal:
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 |
|
pragmatic_panoy
Newbie Joined: 06 December 2007 Location: Philippines Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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!
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
SomeFlatEdit.SetMask ">>>>>>>>>>>>>>>>>", " ", " "
|
|
pragmatic_panoy
Newbie Joined: 06 December 2007 Location: Philippines Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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!
|
|
corpcon
Groupie Joined: 28 June 2007 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |