Eyeon:Script/Reference/Applications/Fuse/Classes/Input/FontFileControl

From VFXPedia

Jump to: navigation, search

Contents



Description

The FontFileControl adds a dialog used to select Fonts from the list of available fonts on the system. It actually consists of two separate drop downmenus. One contains a list of all available fonts, a second displays the list of available styles for the currently selected font.

This control returns a Text value. To add a FontFileControl, set the INPID_InputControl attribute of the AddInput function to the string "FontFileControl".

To create and access both components of the dialog the control should be created twice, with both controls having the same IC_ControlGroup attribute, but with an IC_ControlID of 1 for the Font Name, and of 2 for the Style. See the example below.


Attributes

Example

The following is a snippet from a Create function that would create both components of a Font selection dialog.

	InFont = self:AddInput("Font", "Font", {
		LINKID_DataType = "Text",
		INPID_InputControl = "FontFileControl",
		IC_ControlGroup = 2,
		IC_ControlID = 0,
		INP_Level = 1,
		INP_DoNotifyChanged = true,
	})
		
	InFontStyle = self:AddInput("Style", "Style", {
		LINKID_DataType = "Text",
		INPID_InputControl = "FontFileControl",
		IC_ControlGroup = 2,
		IC_ControlID = 1,
		INP_Level = 1,
		INP_DoNotifyChanged = true,
	})


Tips for FontFileControl (edit)

EyeonTips:Script/Reference/Applications/Fuse/Classes/Input/FontFileControl