michaelk Posted September 19, 2020 Share Posted September 19, 2020 I was playing around with the settings for the new On Demand Menu and wanted to see how it worked. I'm assuming that PrefReal(6902) returns time in very very small units? What really has me puzzled is Section ODM Parameters, 6906. There must be a misprint in the appendix. Preference Data Type 4 is listed after two different preferences and has no function values. But what really confuses me is that GetPrefInt(6906) returns a different integer value every time the script is run. Even if the preferences haven't been changed. Anybody see what's going on here? Procedure GetODM; CONST CR = CHR(13); BEGIN BeginText; Concat( 'Use ODM: ',GetPref(6900),CR, 'Show ODM After Mouse Idle: ',GetPref(6901),CR, 'ODM Mouse Idle Timer: ',GetPrefReal(6902),CR, 'Show ODM with Spacebar: ',GetPref(6903),CR, 'Show ODM with Middle Mouse Button: ',GetPref(6940),CR, 'Initialize ODM Layout: ',GetPrefInt(6905),CR, 'Section ODM Parameters: ',GetPrefInt(6906),CR, 'Show ODM Search Filters: ',GetPref(7000),CR, 'Show ODM Command Context: ',GetPref(7001) ) EndText; DSelectAll; END; Run(GetODM); Quote Link to comment
Pat Stanford Posted September 23, 2020 Share Posted September 23, 2020 No Idea what is going on with 6906 but it definitely seems like a bug. 6902 should be GetPrefInt instead of GetPrefReal and return the value in Seconds before the ODM automatically displays. Quote Link to comment
michaelk Posted September 23, 2020 Author Share Posted September 23, 2020 You're right. 6902 must be a misprint in the appendix. GetPrefInt works. At first I assumed that 6906 it was like text styles. But there's no pattern. Then I tried to see if the mouse position was involved. But if you run the create text twice in the same script it still returns nonsense values. Quote Link to comment
Pat Stanford Posted September 23, 2020 Share Posted September 23, 2020 The 69XX prefs have not been added to the Appendix on the Developer site yet, so it is hard to tell what the formatting for the 6906 result was supposed to be. No matter what, I don't think it should change. File a bug. Quote Link to comment
michaelk Posted September 23, 2020 Author Share Posted September 23, 2020 I only see them on the local .html page. Not on developer.… Quote Link to comment
Pat Stanford Posted September 23, 2020 Share Posted September 23, 2020 Yep. Developer not updated yet. Quote Link to comment
Pat Stanford Posted September 23, 2020 Share Posted September 23, 2020 Be careful with these. I tried GetPrefString(6906) and it froze VW. The description does not make sense to only be a single pref. If there are four quadrants and each quadrant can have a different setting then you need at least 4 prefs. I actually think you probably need 8 or 12 to define everything that needs to be defined. YMMV Quote Link to comment
michaelk Posted September 23, 2020 Author Share Posted September 23, 2020 I didn't even think of trying a string. I tried GetPrefReal and it just returned a (nonsense?) real number. I think you're right. Either the documentation is wrong or it's a bug. Could be both 🙂 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.