Jump to content


Photo

Right way to hide/show popup menu in grid?


  • Please log in to reply
1 reply to this topic

#1 littlebigfred

littlebigfred
  • Members
  • 176 posts

Posted 25 August 2009 - 02:35 PM

Hello

I use a single grid to perform different actions in an application. Sometimes, I need a popup menu when the user right-clicks on a row, sometimes I need to hide this popup menu.

What is the right way to do this?

CODE
Hide from grid
  Frame31.NextGrid1.PopupMenu := nil;

Show in grid again
  Frame31.NextGrid1.PopupMenu := Frame31.PopupMenu1;


Thank you.

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 25 August 2009 - 08:21 PM

Hello Fred,

Yes, this is a correct way. I don't know any other than this one.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users