Jump to content

knowing which field was updated.


Recommended Posts

42 minutes ago, MullinRJ said:

Look at this command

    WidgetChanged := vsoStateGetParamChng(PIOHand, WidgetID, WidgetIndex, OldSel);
 

I use it in the kResetEventID { 3 - Object reset has been called } event.

 

Raymond

that seems to be returning false every time.  my plugin is already event based. 

Link to comment

I'm guessing here, but you may need to enable something before it will work.

 

Do you have this turned on?

result := SetObjPropVS(kObjXPropAcceptStates, TRUE);                    { 18 }
 

Set it in the kObjOnInitXProperties event.     { event 5 }

 

I've found that many events can be hidden from your code if they are not properly enabled first. If it's not this, it may be something else.

 

Raymond

  • Like 2
Link to comment
  • 2 weeks later...

Unlike you, I haven't thought about this for more than a minute. You can skip the redraw event with an IF statement, but I think the PIO will erase everything before you skip the redraw. If you don't redraw something, you may have difficulty selecting it afterwards. You can try it, but I don't recommend it. Perhaps someone has a more informed opinion on this. Be careful.

 

Raymond

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...