Jump to content
Developer Wiki and Function Reference Links ×

void VWResourceListCategorized::Document_Init(TDType objectType, bool foldersAreCategories): second parameter?


Stefan Bender

Recommended Posts

Dear developers,

 

what does the second parameter "foldersAreCategories" mean? I tried either value and don't see any difference. What is this parameter used for?

 

I'm asking because in VW 2019 we have serious problems with the resource browser control in dialogs. Symbols in subfolders do not show up, and clicking on names of subfolders causes flickering and garbage to be drawn (I'm about to write a bug report about that, but it would help to know what this parameter is meant for).

 

Thanks for any help,

 

Stefan Bender

Link to comment

The older resource pop-ups allowed content to have categories, which displayed as shaded bands between icons.  This option should create dividers for each folder.

 

That said, I would recommend using IResourceManagerContent instead, which will give you a full Resource Manager for the control.

 

//Header:

VectorWorks::Extension::IResourceManagerContentPtr fContent;
	
...
//Constructor:
      
fContent( VectorWorks::Extension::IID_ResourceManagerContent )

...
//OnInitializeContent():
      
fContent->InitByTDType(kMaterialNode);
fContent->AddContent(kObjectsEntLightingGobos);
    
VWImagePopupCtrl* texturePopup = this->GetImagePopupCtrlByID( kPopupTexture );
texturePopup->PullDownResourceLayoutInit( fContent );
texturePopup->PullDownResourceLayoutSetSelectedResourceName( fSelItem );

 

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