![]() |
Problem in setting text in a Edit control |
Post Reply ![]() |
Author | |
vijaymahajan ![]() Groupie ![]() ![]() Joined: 16 June 2008 Status: Offline Points: 92 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Please send request to support@codejock.com I will attach solution.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Osiris ![]() Groupie ![]() Joined: 18 June 2007 Status: Offline Points: 29 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
vijaymahajan ![]() Groupie ![]() ![]() Joined: 16 June 2008 Status: Offline Points: 92 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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 |