I'm just learning to create a sample open page widget script and need help accomplishing what I want. I know there is already exist a button to open page.
- How can I show color parameters like embed widget (color selector)? [solved] need to create panel
- left click release event, how to attach? [solved] GUI Object Return Codes
Below is my sample script.
{================================== Open Page Widget ===================================}
(
Page <:"Name of Page":> Object<Page>;
Text <:"Display text":> Text;
Font <:"Text font":> Object<FontValue>;
BackgroundColor <:"Background Color":> Object;
PenColor <:"Pen Color":> Object;
)
[
IsGroup = FALSE;
Shared UserMethods (LIBRARIES);
Title = "OpenPageWidget";
]
WidgetMain [
GUIText(0, 20, 200, 0,
1, 1, 1, 1, 1 { Scaling },
0, 0 { Movement },
1, PickValid(\ScaleDisplayContent, 0) { Visibility, Font Scaling },
4 + 64, 1, 0 { Selectability },
PickValid(BackgroundColor, Brush("<00000000>", 0, 1)),
PickValid(PenColor, Pen("<FF000000>", 1, 1)),
PickValid(Font\Value, Scope(\VTSDB, "LabelFont", TRUE)\Value),
3, 4,
"%s",
PickValid(Text, "Text");
]