treeview component

i have noticed that the treeview component fully expands any selected node when the * key is pressed. How can you stop it from doing this?

thanks

Comments

  • : i have noticed that the treeview component fully expands any selected node when the * key is pressed. How can you stop it from doing this?
    :
    : thanks
    :
    put a application events component on your form;
    then select the OnMessage Event
    in the OnMessage Event, you have an message(or MSG) structure)
    test if message.HWND = YourTreeview.handle and if so
    test if this is a key down message, key up message (this are windows messages, if you are not familiar with them reply here, ok), you should test when the full expand/collapse happens (I mean on which message),
    then simply set the handled parameter in OnMessage to true and exit;

    Maybe there is a better way, the best place to search is MSDN (msdn.microsoft.com) or try the Win32 api reference which should be on your delphi CD.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion