Results 1 to 3 of 3

Thread: toolstripmenu presentation issues

  1. #1

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,605

    toolstripmenu presentation issues

    Hi.
    I have a toolstrip menu that has an toolstripmenuitem that include 2 toolstripmenuitems.

    The main usage is to have the outer toolstripmenuitem checked or unchecked (if unchecked .visible false the inner 2 toolstripmenuitems)
    and the 2 toolstripmenuitems checked or unchecked.

    I have 2 issues.
    First, I have a cursor.hand in the main toolstrip menu (mousenter = hand , , mouseleave = default). When I try to do the same in the inner menus, it will only show the default cursor. I'm guessing this has something to do with the toolstrip menu being a container and it cannot fully understand that the inner menus have their own mouseenter-leave properties?

    Second. When I click on the "check for manual text" , it will let me get to the inner toolstripmenuitem , select one of the two toolstripmenuitems and the menu closes.
    However if I have the outer toolstripmenuitem clicked unchecked, it will close, using the .HideDropDown() but the when I again go through the menu it will show the arrow for the new node (although I have made .visible false the next nodes) and it will close when I hover over the toolstripmenuitem. This is minor but I would like to have it no shown.


    Name:  Clipboard01.bmp
Views: 280
Size:  111.9 KB

    Name:  Clipboard01.jpg
Views: 287
Size:  13.4 KB
    Attached Images Attached Images  
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  2. #2

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,605

    Re: toolstripmenu presentation issues

    To elaborate on the second issue.
    When I click "Check for use manual text" and the menu is already checked, then, I click on it and the menu hides out. Now when I click again the menu (actions) then the arrow (as you see in red) is still enabled until i place the mouse cursor in the "Check for use manual text" toolstripmenuitem . Then after half a second the arrow disappears, as it should have been in the first place, without me having to position the cursor in the toolstripmenuitem.
    Is this an expected behavior? Can I do something like.doevents() in the actions menu click so the outer toolstripmenuitem "activates" and get rid of the arrow?
    Thanks
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,605

    Re: toolstripmenu presentation issues

    No2 solved.
    You need a bunch of checks and enables before the toolstrip understands what going on.
    Looks silly but I haven't found another way to fix this:
    From main menu click:
    Code:
     If UnicodeInputToolStripMenuItem.Checked = True Then
                UnicodeInputToolStripMenuItem.Checked = False
    
                AsciiTextToolStripMenuItemCheck.Visible = False
                UnicodeToolStripMenuItemCheck.Visible = False
            Else
                UnicodeInputToolStripMenuItem.Checked = True
                AsciiTextToolStripMenuItemCheck.Visible = True
                UnicodeToolStripMenuItemCheck.Visible = True
                AsciiTextToolStripMenuItemCheck.Enabled = True
                UnicodeToolStripMenuItemCheck.Enabled = True
            End If
    
    
            If UnicodeInputToolStripMenuItem.Checked = True Then
                RemoveCharacte*******tripMenuItem.ShowDropDown()
                UnicodeInputToolStripMenuItem.ShowDropDown()
            Else
                RemoveCharacte*******tripMenuItem.HideDropDown()
    
                UnicodeInputToolStripMenuItem.HideDropDown()
            End If
    No1 still unsolved

    RemoveCharacte*** ? I guess am cursing
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

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