Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - SOLVED: RC & the Cancel and Default Buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: RC & the Cancel and Default Buttons

 Post Reply Post Reply
Author
Message
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: RC & the Cancel and Default Buttons
    Posted: 16 October 2008 at 2:33pm
Hi friends.
I need your help.
 
I'm having problems with the Cancel and the Default buttons in my form.
When the ReportControl takes the focus, the Escape and the Enter keys don't fire the button's click event. I need pass the focus to another control in order to this keys work properly.
 
The RC has any property to fix this issue or is necessary code it?
 
Regards,
Elvis
PD: Excuseme my bad english.
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
Back to Top
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2008 at 3:33pm
Any response about my issue?
Please...
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2008 at 5:01am
Hi,
 
Yes, you have to code it yourself. You could use PreviewKeyDown event to determine what to do. If ENTER key was pressed you could set focus to default button (for example)
 
Sometimes it's a good thing and sometimes it's less to have a default button which fires click event... Also annoying when having a multirow textbox and user presses ENTER (I would like to go to next line in textbox but click event will be fired for the default button) the same here, you have to prevent this yourself... 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2008 at 2:29pm
Hi Aaron...
You are right..
Thanks a lot.

Elvis
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
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.172 seconds.