Results 1 to 5 of 5

Thread: A couple of questions

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Leeds
    Posts
    30
    Hi there
    1) I was just wandering if it is possible to be able to change the text and number of parts that appear in popup menus, by code and if possible how do you do it?

    2) and secondly does anyone know how when using the DBGrid control you can tell which cell you are currently over, that is both the column number and the record number?

    Any help is much appreciated, thanks piers

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I can do the popup menu question, just use the menueditor to create the menu you want, write the code for its events and when you want it to pop up the command line is

    PupupMenu MenuName

    where MenuName is the name of the menu.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Leeds
    Posts
    30

    oh

    er, are you saying here that there is no way that i can dynamically change menu's i just have to create lots, ie one for each situation?

  4. #4
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089

    Oh, Right

    sorry I didn't get what you were trying to do

    There's 2 ways to do this,

    The first involves a whole **** load of API routines, and some hardcore subclassing.

    The second doesn't

    If it's ok with you I'll just tell you the second method

    Put all the menu items you need into one menu, when you call the popup menu just make the menu items you want to show visible and all the others invisible.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Leeds
    Posts
    30

    yea,

    thanks for that, this seem to work ok

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width