Delete Button in SimpleGraph

Please discuss general Delphi programming topics here.

Delete Button in SimpleGraph

Postby stefano4jc » 26/03/12 14:48

I Downloaded the simplegraph editor demo. Then Im making some changes just for fun, for example, I would like to handle my self the Delete Button or VK_DELETE. When I use the OnKeyPress function in the SimpleGraph component, I realize that I can handle every single key!!! BUT the Delete button!, I am kinda frustrated ](*,) because I dont know what is going on, besides this works for me in any other program but here I cant handle this Delete button. Does anybody have an Idea about what is going on?

Thanks a lot! :-({|=

Stefano
stefano4jc
Member
Member
 
Posts: 1
Joined: 26/03/12 14:38

Re: Delete Button in SimpleGraph

Postby ASH » 27/03/12 17:39

Hi Stefano,

I have not used TSimpleGraph, but according to ur description, the SimpleGraph component might trigger Key Pressing event internally, before it elevates to the upper level of OnKeyPress (which u are using...), so u can take a look at the TSimpleGraph source code to catch it; and if is so, u can drive a class from TSimpleGraph and override the KeyPress method to manage the behavior of class as u wish.
Amir
User avatar
ASH
Member
Member
 
Posts: 1
Joined: 24/03/12 21:32
Location: Iran


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 1 guest