bgrabitmap / bgracontrols

🆗 BGRA Controls is a set of graphical UI elements that you can use with Lazarus LCL applications.
https://bgrabitmap.github.io/bgracontrols/
182 stars 30 forks source link

Forgetting to set a PopupMenu causes runtime exception #171

Closed sganz closed 4 months ago

sganz commented 4 months ago

Submitted a small pull request.

In ColorSpeedButton.pas:560

  if PopupMode then
  begin
    p := Parent.ClientToScreen(Point(Left, Top));
    PopupMenu.PopUp(p.x, p.y + Height);
  end;

If you forget to set the PopupMenu property after settintg the PopupMode to True, you can have a runtime exception.

This is in this Pull Request

lainz commented 4 months ago

Applied pull request. Thanks.