Print Page | Close Window

Problem in setting text in a Edit control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11491
Printed Date: 28 February 2025 at 7:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem in setting text in a Edit control
Posted By: vijaymahajan
Subject: Problem in setting text in a Edit control
Date Posted: 19 July 2008 at 12:27am
Hello,
I created one edit control on a ribbon bar using CXTPControlEdit class .
When i tried to put limit on the text to be written in it,i didnt found any function for that.
 
in mfc we have SetLimitText() function to limit the text width in the control.
Here in toolkit library,i didnt find any function serving the same purpose.
 
I tried using SetLabelWidth(),but it didnt worked.
 
Please guide me for this problem.
 
Also i have given one querry for OnKeyDown() and OnKeyUp() messages of edit control,that also is not answered yet. Please give some possible solution atleast.
 
Thanks And Regards,
Vijay.



Replies:
Posted By: Oleg
Date Posted: 21 July 2008 at 4:06am
Hi,
Please send request to mailto:support@codejock.com - support@codejock.com I will attach solution.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Osiris
Date Posted: 04 September 2008 at 1:15pm
Hi Vijay,

did you receive the solution for the OnKeyDown() of the ribbons edit control problem?

If so, it would be great if you could give me a tip on how to do it.

Thanks
Stefan


Posted By: vijaymahajan
Date Posted: 05 September 2008 at 11:34pm

Hello Stefan,

I too didnt got the proper solution from them.They said there is no such event handler to handle OnKeyDown() event of edit box.

But they have handled it,in one of their samples-Samples\CommandBars\CustomThemes

Here in this sample you will find a edit box at the bottom of the window,for which they have handled keydown event.
 
It is not exactly the keydown event. We cant check which key is pressed in this event handler.This keydown event is getting fired only when enter key is down. They have handled something ON_XTP_EXECUTE() event for it. Check it if it helps u.
It u get anything to check the keys in this event handler,please let me know,because i need to check which key is pressed.
 
Thanks And Regards,
Vijay.



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