Posted 7 years ago by Radjesh Klauke - X-impress
Version: 4.0.0290
Avatar
Hi,

I've created several triggers for the memberlist in the xml. When I start typing, the memberlist is shown. S that works fine. However, when I type another letter, the memberlist appears again according that trigger.

Example: I start typing "a" -> memberlist appears | now I type "b" (after the "a")-> the memberlist for the "b" appears. (which it shouldn't)

Once a character has been typed it shouldn't trigger any more. How do I achieve this?


this is what I did in the xml btw:
    <!-- Triggers -->
  <Triggers>
    <KeyPressTrigger Key="PropertyListTrigger" Character=" ">
      <KeyPressTriggerValidStates>
        <KeyPressTriggerValidState State="PropertyState" />
      </KeyPressTriggerValidStates>
    </KeyPressTrigger>

    <KeyPressTrigger Key="PropertyListTriggerA" Character="a">
      <KeyPressTriggerValidStates>
        <KeyPressTriggerValidState State="PropertyState" />
      </KeyPressTriggerValidStates>
    </KeyPressTrigger>

    <KeyPressTrigger Key="PropertyListTriggerB" Character="b">
      <KeyPressTriggerValidStates>
        <KeyPressTriggerValidState State="PropertyState" />
      </KeyPressTriggerValidStates>
    </KeyPressTrigger>

    <KeyPressTrigger Key="PropertyListTriggerC" Character="c">
      <KeyPressTriggerValidStates>
        <KeyPressTriggerValidState State="PropertyState" />
      </KeyPressTriggerValidStates>
    </KeyPressTrigger>
[Modified at 02/16/2012 05:45 AM]

Comments (3)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Radjesh,

In your trigger handling code you must be showing the member list. The triggers will continue to fire whether the member list is open or not. Your code needs to not re-show the member list (and thus ignore the trigger) if it's already open.


Actipro Software Support

Posted 7 years ago by Radjesh Klauke - X-impress
Avatar
Hi there ;)

If memberlist.Visible = True Then Exit Sub works like a charm. Why didn't I think of that.
This however raises a small issue: When typing the second character the memberlist looses focus. I looked into the help, but nothing helpful found.
Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Radjesh,

Sorry but I'm not sure what you mean. If you are leaving the member list and focus alone after opening it, then everything should be working fine. Maybe check your code to ensure you aren't moving focus or doing something else that would affect this.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.