Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Problem in setting text in a Edit control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem in setting text in a Edit control

 Post Reply Post Reply
Author
Message
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Topic: Problem in setting text in a Edit control
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2008 at 4:06am
Hi,
Please send request to support@codejock.com I will attach solution.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Osiris View Drop Down
Groupie
Groupie
Avatar

Joined: 18 June 2007
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Osiris Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post 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.
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.031 seconds.