Hi, i have asked this question before, and without testing the code that I have
received I have awarded the points. And after givin the point I found out that
the code didn't work. My fault.
This was my previous question:
I have put this procedure in my component:
1. procedure TMyDrawingPanel.CursorFlas
3. CursorFlashTimer.Enabled := False;
5. CursorVisible := not CursorVisible;
7. // if (not CursorVisible) or (miFlashCursor.Checked) then CursorFlashTimer.Enabled := True;
I get an error at line 7.
Because line 7 referse to a main-menu-item called miFlashCursor on the main form.
Is there a way to do this, that a procedure in a component calls a main-menu-item
that is on the main form, or any other form?
Who knows the answer and is willing to help me?