J. Miller Posted October 9, 2015 Share Posted October 9, 2015 Hello, I have a PIO that allows the user to select from a list table leg types. Once the type is selected the user can then make adjustments to it (height, diameter, color, etc). If the user selects a different leg from the pop-up list, I would like to have the PIO redraw to its default settings. what is the best way to accomplish this? Thanks in Advance Jeff Quote Link to comment
Miguel Barrera Posted October 9, 2015 Share Posted October 9, 2015 The pio will have to be event enabled to capture the parameter change in the object info palette. See Parametric State Notifications When the user changes the value in the popup menu, the pio will regenerate and it will get the parameter change notification (kParameterChangedReset) in the Reset Event. You can then change the default values for the other parameters with SetRField. Quote Link to comment
C. Andrew Dunning Posted October 9, 2015 Share Posted October 9, 2015 Jeff - Is your PIO Event-Aware? If so, you'll want to use "vsoStateGetParamChng" and test for the parameter number of your pop-up. For example...: ParamChanged := vsoStateGetParamChng(PIOHandle,ParamWidgetChanged, ParamIndexChanged); If ParamChanged & ParamWidgetChanged = 2 then... vsoStateGetParamChng needs to be in your Reset Event. Does that help, at all? Quote Link to comment
C. Andrew Dunning Posted October 9, 2015 Share Posted October 9, 2015 Jeff - Is your PIO Event-Aware? If so, you'll want to use "vsoStateGetParamChng" and test for the parameter number of your pop-up. For example...: ParamChanged := vsoStateGetParamChng(PIOHandle,ParamWidgetChanged, ParamIndexChanged); If ParamChanged & ParamWidgetChanged = 2 then... vsoStateGetParamChng needs to be in your Reset Event. Does that help, at all? Quote Link to comment
J. Miller Posted October 16, 2015 Author Share Posted October 16, 2015 Hey Guys, Thanks for the input. I am beginning to figure this out now. Kind of like real estate industry in placing these calls. It all has to do with Location, Location, Location. Sorry I didn't get back sooner, but my day job got in the way this week. Jeff 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.