Sam Jones Posted July 28, 2019 Share Posted July 28, 2019 I remembering there being a way to keep the default OIP from appearing when the first PIO instance is created. I can't find it. Did I remember incorrectly? If not, what is it? :-) TIA, Quote Link to comment
Julian Carr Posted July 29, 2019 Share Posted July 29, 2019 CONST kObjXPropShowPrefDialogWhen = 32; kCustomObjectPrefNever = 0; kCustomObjectPrefAlways = 1; kCustomObjectPrefNew = 2; blah blah blah... in event loop 5: gFlag := SetObjPropCharVS(kObjXPropShowPrefDialogWhen, Chr(kCustomObjectPrefNever)); Quote Link to comment
Sam Jones Posted July 29, 2019 Author Share Posted July 29, 2019 Thanks so Julian. I know I have never seen that SetObjProp call before, nor have ever seen one called inside another call. Cool beans. Quote Link to comment
Sam Jones Posted July 29, 2019 Author Share Posted July 29, 2019 Unfortunately, gFlag := SetObjPropCharVS(kObjXPropShowPrefDialogWhen, Chr(kCustomObjectPrefNever)); Does not seem to work. I have tried placing it in the Init Properties event (5) and at the beginning of the PIO code. Quote Link to comment
Julian Carr Posted July 29, 2019 Share Posted July 29, 2019 It works for me Sam and definitely needs to be in the kObjOnInitXProperties event (5). It's possible it also needs this: CONST kObjXPropAcceptStates = 18; gFlag := SetObjPropVS(kObjXPropAcceptStates, TRUE); Also have you tried quitting and restarting Vw? I find this necessary sometimes even in developer mode. 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.