Recent

Author Topic: Basic Graphics Question  (Read 7501 times)

chris319

  • New Member
  • *
  • Posts: 28
Re: Basic Graphics Question
« Reply #15 on: March 22, 2012, 06:24:30 am »
If I put my graphics routine where TForm and Canvas can be seen, my graphics routine is no longer visible to the other thread, from which it would be invoked. Calling synchronize(@TForm1.DrawMeter); gives me:

mainunit.pas(205,30) Error: Incompatible type for arg no. 1: Got "<address of procedure(TObject) of object;Register>", expected "<procedure variable type of procedure of object;Register>"

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Basic Graphics Question
« Reply #16 on: March 22, 2012, 06:31:01 am »
Code: [Select]
Synchronize(@Form1.DrawMeter);

chris319

  • New Member
  • *
  • Posts: 28
Re: Basic Graphics Question
« Reply #17 on: March 22, 2012, 03:25:17 pm »
Code: [Select]
Synchronize(@Form1.DrawMeter);
Actually Synchronize(@DrawMeter); is what worked.

 

TinyPortal © 2005-2018