Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 May : prevent illegal access to objects
| Subject: | prevent illegal access to objects |
| Posted by: | "mustafa korkmaz" (no..@none.com) |
| Date: | 6 May 2007 07:36:09 |
I want to prevent to other programs that want to change enabled property of my program's objects.
Some users can change "enabled" property of my buttons with some programs.
I can prevent this illegal access with simple below code but this program is very big and it will
take alot of time.
is there any simple way to prevent the other program's illegal access to objects?
...................
myenabled : boolean;
......
procedure mysetenabled( enabled: boolean );
begin
mybutton.enabled := enabled;
myenabled := enabled;
end;
procedure mybuttonOnclick..
begin
if myenabled then
begin
......
end;
end;