Support Forums
Widget script need help

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.

  1. How can I show color parameters like embed widget (color selector)? [solved] need to create panel 63e0b82f657fd
  2. 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"smile);
]

I&#039;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. 1. How can I show color parameters like embed widget (color selector)? [solved] need to create panel ![63e0b82f657fd](serve/attachment&amp;path=63e0b82f657fd) 2. left click release event, how to attach? [solved] GUI Object Return Codes Below is my sample script. {================================== Open Page Widget ===================================} ( Page &lt;:&quot;Name of Page&quot;:&gt; Object&lt;Page&gt;; Text &lt;:&quot;Display text&quot;:&gt; Text; Font &lt;:&quot;Text font&quot;:&gt; Object&lt;FontValue&gt;; BackgroundColor &lt;:&quot;Background Color&quot;:&gt; Object; PenColor &lt;:&quot;Pen Color&quot;:&gt; Object; ) [ IsGroup = FALSE; Shared UserMethods (LIBRARIES); Title = &quot;OpenPageWidget&quot;; ] 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(&quot;&lt;00000000&gt;&quot;, 0, 1)), PickValid(PenColor, Pen(&quot;&lt;FF000000&gt;&quot;, 1, 1)), PickValid(Font\Value, Scope(\VTSDB, &quot;LabelFont&quot;, TRUE)\Value), 3, 4, &quot;%s&quot;, PickValid(Text, &quot;Text&quot;)); ]
edited Feb 9 '23 at 5:06 am
36
0
1
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft