Recent

Author Topic: Popup Menu Not Working  (Read 6316 times)

SONFEDAI

  • Jr. Member
  • **
  • Posts: 55
Popup Menu Not Working
« on: November 07, 2011, 10:12:53 pm »
Popup menu does not working..

If any popup menu item clicked program finished abnormally...

Note: Testing PocketPC2003 emulaytor and Windows Mobile 6.5 Prof. Emulator as same problem...
I'm using
   Lazarus: 0.9.3.1
   Date: 2011-11-05
   FPC: 2.5.1
   SVN Ver.: 29060

SONFEDAI

  • Jr. Member
  • **
  • Posts: 55
Re: Popup Menu Not Working
« Reply #1 on: November 07, 2011, 10:57:35 pm »
If clicked item is first item program finished abnormally otherwise run normal.
I'm using
   Lazarus: 0.9.3.1
   Date: 2011-11-05
   FPC: 2.5.1
   SVN Ver.: 29060

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Popup Menu Not Working
« Reply #2 on: November 08, 2011, 10:25:07 am »
Lazarus version? Free Pascal version? Which popup exactly? Screenshots? Code?

SONFEDAI

  • Jr. Member
  • **
  • Posts: 55
Re: Popup Menu Not Working
« Reply #3 on: November 08, 2011, 10:41:57 am »
Lazarus: 0.9.3.1
Date: 2011-11-05
FPC: 2.5.1
SVN Ver.: 29060

Quote
procedure ShowPopupMenu(Btn: TBGRAButton);
Var
  X, Y: Integer;
Begin
  if Assigned(Btn.PopupMenu) Then
  Begin
    X:= Btn.Left;
    Y:= Btn.Top + Btn.Height;
    Btn.PopupMenu.PopUp(X, Y);
  end;
end;

Thanks
I'm using
   Lazarus: 0.9.3.1
   Date: 2011-11-05
   FPC: 2.5.1
   SVN Ver.: 29060

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Popup Menu Not Working
« Reply #4 on: November 08, 2011, 11:33:11 am »
Please open a bug report in the bug tracker including all this info.

SONFEDAI

  • Jr. Member
  • **
  • Posts: 55
Re: Popup Menu Not Working
« Reply #5 on: November 08, 2011, 08:20:29 pm »
Solved...

* Add a template item and make it is first item

* Change first item visibility to FALSE

That's all
I'm using
   Lazarus: 0.9.3.1
   Date: 2011-11-05
   FPC: 2.5.1
   SVN Ver.: 29060

 

TinyPortal © 2005-2018