Jayme McColgan Posted May 18, 2023 Share Posted May 18, 2023 hey everyone, is it possible to know which field is being updated in Object Info tab? Quote Link to comment
MullinRJ Posted May 18, 2023 Share Posted May 18, 2023 In what context? Raymond Quote Link to comment
Jayme McColgan Posted May 18, 2023 Author Share Posted May 18, 2023 13 minutes ago, MullinRJ said: In what context? Raymond sorry shot that one off quickly with no good context... lol when a user updates a field in OIP, is it possible to see what field they updated before jumping into the ResetEvent flow where it redraws everything? Quote Link to comment
MullinRJ Posted May 18, 2023 Share Posted May 18, 2023 Short answer - YES. I'll have to look up the way as I don't remember exactly what changes off the top of my head. Raymond Quote Link to comment
MullinRJ Posted May 18, 2023 Share Posted May 18, 2023 Look at this command WidgetChanged := vsoStateGetParamChng(PIOHand, WidgetID, WidgetIndex, OldSel); I use it in the kResetEventID { 3 - Object reset has been called } event. Raymond Quote Link to comment
Jayme McColgan Posted May 18, 2023 Author Share Posted May 18, 2023 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. Quote Link to comment
MullinRJ Posted May 18, 2023 Share Posted May 18, 2023 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 2 Quote Link to comment
Jayme McColgan Posted May 30, 2023 Author Share Posted May 30, 2023 so I've thought about this more... I guess what I'm trying to do is skip the kResetEventID and not redraw everything if certain conditions are met. Quote Link to comment
MullinRJ Posted May 30, 2023 Share Posted May 30, 2023 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 Quote Link to comment
Recommended Posts
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.