Has anyone figured out a way to have a macro read and change the setting for "Keep Desktop Objects on Layer" which is found on the Objects docker, "Gear"/settings menu? I would love to be able to check and change this using VBA.
Yes, that is the setting we are discussing. We are looking for a way to manipulate that setting using a VBA macro.
Here are a couple of examples of using GetApplicationPreferenceValue.
Sub UsingGetApplicationPreferenceValue() Dim v As Variant v = GetApplicationPreferenceValue("Bitmaps", "PreviewResolution") MsgBox "Bitmap Prevew Resolution: " & v v = GetApplicationPreferenceValue("VBA", "DelayLoadVBA") MsgBox "Delay Load VBA: " & v End Sub
Hope that helps,
-Shelby
The registry entry is probably just a place where CorelDraw saves setting after the program exits. And changing this value will not affect the current state.
Thank you for that, Shelby.
Do you know what one needs to do in order to make that work with the key NudgeOffset in the group Options - General?
Thank you, Shelby. I'll do some experimenting with this.