Results 1 to 1 of 1

Thread: Component Extension Blues...

Threaded View

  1. #1

    Thread Starter
    New Member bumholo's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    1

    Angry Component Extension Blues...

    Afternoon all,

    I think this may well be the last call of a desperate man, I am absolutley pulling my hair out now and swearing at my pc!!!

    I have written some code which adds icons to MenuItems of a MainMenu component but at the moment I have just added the code to a form which has the standard old Microsoft MainMenu and ImageList components on it.

    What I need to do is create a new menu component from the existing microsoft MainMenu component so that it will use my code and add icons to the menuitems which I add.

    I know that I will have to create a property to point to an imagelist on the MainMenu bit and a property to hold an integer, in the MenuItem bit, which points to an image in the imagelist for each menuitem I add.

    The problem is that I don't know how the MainMenu and MenuItem bits work together so that when I add a new menuitem my code is used and the properties I add are visible.

    Any help would be very much appreciated as I fear I'm about to go postal...

    B.

    P.S. I've attached what I have so far in a .zip file it might make more sense that way.

    thanks
    Attached Files Attached Files
    Thanks in advance,

    B.

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