Recent

Author Topic: Error: Identifier not found "odSelected"  (Read 2953 times)

younoa

  • Newbie
  • Posts: 2
Error: Identifier not found "odSelected"
« on: July 03, 2018, 11:33:46 am »
procedure TForm1.ComboBox1DrawItem(Control: TWinControl; Index: Integer;
  ARect: TRect; State: TOwnerDrawState);
var
  a: Integer;
begin
  if (odSelected in State) then
    a := 1
  else
    a := 2;
end;   

Error: Identifier not found "odSelected"

I don't know why this is happening. I followed the reference, but it's like this. Windows 10 64bit. Lazarus 1.8.4 Help me.

Handoko

  • Hero Member
  • *****
  • Posts: 5153
  • My goal: build my own game engine using Lazarus
Re: Error: Identifier not found "odSelected"
« Reply #1 on: July 03, 2018, 11:39:21 am »
Hello younoa,
Welcome to the forum.

To solve Identifier not found "odSelected" issue, you have to add LCLType in the uses clause.

younoa

  • Newbie
  • Posts: 2
Re: Error: Identifier not found "odSelected"
« Reply #2 on: July 03, 2018, 11:47:02 am »
Ah.... thank you. Handoko.


 

TinyPortal © 2005-2018