I would like to resize a contextual display in DVLive in Online mode.
Used the parameter Dsp.Height.Pt to set the height.
Can see the height of the visible content of faceplate is reduced, but the window in the original size of the faceplate is still visible.
If I try to increase the height, it does not have any effect.
Is there any other method to achieve this.
Regards,Navin Singh
In reply to Matt Stoner:
Hello Matt,
Thanks for the response.
The faceplate is an example of context display resize.
My requirement is to set the visibility of different groups within the detail faceplate based on user selection.
Since each group is of a different size would like to resize the picture size.
Is there a workaround to achieve this?
In reply to Navin Singh:
Since you can't resize at runtime, I would suggest doing 1 of two things, putting the script on the FP detail button to open the selected detail based on contextual menu or creating a detail that uses Tabs for each of the items. The script option would allow the user to pick the associated detail wanted when clicking the Detail button on the FP and then the module could assign any of those details as the detail to pull up from other locations.
The Detail Button default is a Gem and a sample script to do this would be as follows:
//Right click context menu options to open Detail Displayslet options = { ['Option1 Text']: DL.DN('Detail_DIsplayName1'), ['Option2 Text']: DL.DN('Detail_DIsplayName2' + ',BLOCKNAME'),['Option3 Text']: DL.DN('Detail_DIsplayName3')};
let region = await DL.GetDisplayElementRegion(Gem.grpDetailsCallup);let pos = new Types.Placement({ Option: Constants.PlacementOption.Default, Region: region, UseCachedPosition: true}); let key = await DL.ShowContextMenuAsync(...Object.keys(options).sort());if (!key) return;let selectedoption = (<any>options)[key];let displayname = (selectedoption).split(",")[0];let blockname = (selectedoption).split(",")[1];// Open Detail Display if existif (DL.DisplayExistsAsync(displayname)){ await DL.OpenContextDisplayAsync(DL.DN(displayname),modulename,[pos],blockname);}
The 'Option# Text' is what the operator will see/select and I also showed an example for Option2 that needs a blockname for the detail. If you don't need this you can remove that logic, remove the red text.
The Tab option would be similar to what you have now except you would use 'Tab' object under Data Palette but this option would require the display to support the largest area needed where the individual details would allow for smaller display size and probably be used for multiple module types.
Andre Dicaire
In reply to Andre Dicaire: