Results 1 to 9 of 9

Thread: I have come accross something that no one can help me with.

  1. #1

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245
    It seems that with all of us avid coders here on the board and the lack of replies, that I have come across something that no one can help me with. I have posted a few times about this issue because finding the answer is very, very important to me. I am terribly sorry for my reposts, often I get antsy and watch my post go on into the second and third page unanswered, and frantic panic ensues.

    My serious problem is that I am creating five PopupMenus (5 forms that only have Menus on them that are called when a mouse is clicked over various hidden images. I have all the coding I need worked out except...I need to know how to make my menus highlight the specific caption when a mouse is placed over it...(like any dropdown menu would in Windows). I also need to add seperator lines in between each caption on the menu.

    Since these are the main menus VB5 will not allow me to add the traditional "-" title. ("Cannot use Seperator Bar as menu name for this control") The "-" title would, as you know, cause a seperator line in between two captions on a sub menu. Please if anyone can help me out on these two Issue I will personally kiss the feet you walk on...Err, I mean I would be very greatful. Oh, if using 5 forms with popupmenus is bad and you know a better way please by all means speak up. :-)

    Thankyou for all your time and efforts on my replies,
    Daniel Christie

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi Daniel,

    Today is your lucky day,

    hahahahaha

    Ok here goes:

    I would stick all your menus on the one form (only if the form is not visible when the app is running - but must still be loaded ) and use popup menu call.

    Me.PopupMenu HiddenMenusDlg.mnuThisMenu, vbPopupMenuCenterAlign

    What I'm wondering is why you need to have the sperator at the topmost level would it not be better to to have the five menu options in the menu at level 1 and then have the relavent submenus for each menu under each respective menu item?

    Hope this helps, feel free to e me
    DocZaf
    {;->

  3. #3

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Nay, needs to be all on the main menu, no subs.

    "What I'm wondering is why you need to have the sperator at the topmost level would it not be better to to have the five menu options in the menu at level 1 and then have the relavent submenus for each menu under each respective menu item?"

    Nay, I need to have five seperate menus popup under five seperate images clicks. The software I am emulating does not have subs menus. Each seperate menu has five or so options visible the second the targeted menu is called into visibility. The individual captions on each menu is highlighted when the mouse is over each caption and all captions on that specific menu is seperated with a seperator. Im guessing it was not written in VB language.
    But currently I only know VB, and I need to create my program to be as close to the real grogram as possible.

  4. #4
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Maybe I'm not understanding this correctly,

    So why not create 5 menus on a hidden form and according to which image was cliacked call the relavent menu into visibility via the popupmenu command?

    I wish i had the time to scribble the code but i dont

    DOcZaf
    {;->

  5. #5
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Perhaps someone hasn't pointed out that copying another program so that it is "as close to the other one as possible" is called plagurism and a breach of copyright


    Unless there is a specific reason you want to breach someone elses copyright... do it the way it "SHOULD" be done, the way that is most efficient and not the way someone else has done it.

  6. #6

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Dear Gen-X

    Gen-X

    I am not infringing. The company that is having me code this emulator is the same company that has the rights to the original program. My version is a emulation of actual printing software wich does massive Bi-Di communication and various other uneccessay tasks. My program is a emulator of the real thing leaving out the Bi-Di and other unessessary tasks. My program is symply to teach the specific printing software to newer tech support agents. In the end I am writing 48 different printing emulators. Naturally installing 48 printing softwares that all tried to grab Bi-Di would seriously eat resources and freeze a PC. Therefore my solution was basically a emulator. So as you can see my programs need to be as close to the real program as possible and there is no source code for the originals so I am on my own. Normally I don't make a habit in copying other programs. (It is hard to explain, but in the end it is "legal").

    [Edited by Daniel_Christie on 03-29-2000 at 08:39 PM]

  7. #7

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    I got the popup right, now I just need to get the Highlight code.

    I got the Popups to work.

    For anyone interested I used this:

    ON FORM1

    'The menu editor looked like this...

    Main1
    ...Caption1
    ...-
    ...Caption2
    ...-
    ...Caption3
    ...-
    ...Caption4
    ...-
    ...Caption5
    Main2
    ...Caption1
    ...-
    ...Caption2
    ...-
    ...Caption3
    ...-
    ...Caption4
    ...-
    ...Caption5
    Main3
    ...Caption1
    ...-
    ...Caption2
    ...-
    ...Caption3
    ...-
    ...Caption4
    ...-
    ...Caption5
    Main4
    ...Caption1
    ...-
    ...Caption2
    ...-
    ...Caption3
    ...-
    ...Caption4
    ...-
    ...Caption5
    Main5
    ...Caption1
    ...-
    ...Caption2
    ...-
    ...Caption3
    ...-
    ...Caption4
    ...-
    ...Caption5

    All the MAIN(s) were set to visible=false

    'In five seperate image click events I had them call a 'Main like so...

    me.PopUpmenu mnuMain1

    'Each image click brought up the correct menu's with 'seperators


    Now I need your help with adding a Highlight code, so that when a mouse is over a caption on a main menu the caption will be highlighted. Like you would see in most drop down menus. Any takers?

  8. #8

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Hot diggity dog, Stop the press!

    Hot diggity dog, Stop the press!
    cause I got it all to work, and I am smacking myself silly for not getting it sooner. I thankyou all for your superb feedback. And if anyone reading this post that was to shy to speak up wants to know more about what I was doing and what my solution was just email me, Or build up your curage and post you question. :-)

  9. #9
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hot Tracking Menus
    Original SOurec Code By
    Kenneth Risum Graverson

    http://216.5.163.42/vb/scripts/ShowC...txtCodeId=2697

    I hope this helps you and points you in the right direction

    Doc Zaf
    {;->

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