TreeView Click Event

Discussion in 'Basic4ppc Wishlist' started by RandomCoder, Feb 28, 2008.

  1. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Please can we have a treeview click event?
    I've managed to get around my context menu problems by removing the AfterSelect event and placing all the code within the context menu click event.
    But this means that I must always use the context menu to initiate actions. A seperate click event for the treeview would overcome this problem.

    Thanks,
    RandomCoder
     
  2. agraham

    agraham Expert Licensed User

    Unfortunately the Treeview control in the Compact Framework does not support a click event, nor does it support mouse events - just two of "A LOT of differences" remarked on by Specci48.
     
  3. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Is there anyway of utilising the Form MouseUp event?
    I did try this but the treeveiw blocked the event from happening - I know this is going to be a silly question BUT is it possible to somehow bring the Form to the front whilst still showing the tree view? Then I would be able to use the MouseUp event.

    Regards,
    RandomCoder
     
  4. agraham

    agraham Expert Licensed User

    Sorry no. I can't think of a way round this. You might be able to get somehwere at a really low level using the dzEventsMagic library to hook some of the windows messages. Also, on the desktop only, I could extend my ControlEvents library to capture the click event but this wouldn't work on the device.
     
  5. dzt

    dzt Active Member Licensed User

  6. RandomCoder

    RandomCoder Well-Known Member Licensed User

    GIVE THIS MAN A NEW AWARD!!!
    This is great news, thanks very, very much DZT :sign0188:

    Regards,
    RandomCoder
     
Loading...