Jump to content
Developer Wiki and Function Reference Links ×

New ODM preference settings


michaelk

Recommended Posts

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);

 

Link to comment

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.

 

 

Link to comment

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

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...