Julian Carr Posted November 3, 2018 Share Posted November 3, 2018 Has anyone figured out how to create a resource folder (other than a symbol folder [type 92]), and if so, what are the Object Type numbers for the various types of resource folders? [Edit]: Actually all resource folders are type 92, and I have tried using SetParent(), but that doesn't work to put resources into resource folders. Thanks! Quote Link to comment
JBenghiat Posted November 4, 2018 Share Posted November 4, 2018 BeginFolderN(), passing the object type of the resource. 16 symbol, 66 hatch, etc. Quote Link to comment
Julian Carr Posted November 4, 2018 Author Share Posted November 4, 2018 Brilliant - thanks Josh. Quote Link to comment
Julian Carr Posted November 4, 2018 Author Share Posted November 4, 2018 Actually, one more. Any ideas for an equivalent to InsertSymbolInFolder() for shifting imported resources to a designated resource folder? InsertSymbolInFolderN() seems to be accepted by the compiler, but doesn't do anything and is not in the Function Ref. Quote Link to comment
JBenghiat Posted November 4, 2018 Share Posted November 4, 2018 SetPsrent() should work, and I believe you can get a handle to the folder with GetObject(). If you do an error check, the folder type will always be 92, regardless of content. Quote Link to comment
Julian Carr Posted November 4, 2018 Author Share Posted November 4, 2018 Thank Josh. Yeah I tried that already but unfortunately it doesn't do anything in this case and the function returns false. 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.