diff --git a/components/nvidia-widgets/doc/images/nvwidgets.png b/components/nvidia-widgets/doc/images/nvwidgets.png index 5e995854c..8ba51e6fc 100644 Binary files a/components/nvidia-widgets/doc/images/nvwidgets.png and b/components/nvidia-widgets/doc/images/nvwidgets.png differ diff --git a/components/nvidia-widgets/doc/nvwidgets.chm b/components/nvidia-widgets/doc/nvwidgets.chm index 09a09c83d..e08a550e6 100644 Binary files a/components/nvidia-widgets/doc/nvwidgets.chm and b/components/nvidia-widgets/doc/nvwidgets.chm differ diff --git a/components/nvidia-widgets/doc/nvwidgets.xml b/components/nvidia-widgets/doc/nvwidgets.xml index 676897749..41c3e2052 100644 --- a/components/nvidia-widgets/doc/nvwidgets.xml +++ b/components/nvidia-widgets/doc/nvwidgets.xml @@ -77,6 +77,12 @@

The style flag enables to draw the label in two distinct styles. The first one is default (style = 0) and displays the label simply as text. The alternative (style = 1) displays the label with a frame around it. An example is shown in the following figure.

The Text variable can have multiple lines.

+

Example code how to implement a label

+ none.Rect(0, 0); +ui.beginGroup(GroupFlags_GrowDownFromRight); + ui.doLabel(none, Text); +ui.endGroup; + @@ -93,6 +99,15 @@

The button method does only take a text and state variable. This variable is modified if the button is pressed or depressed. When a state change occurs the method function returns True.

+

Example code how to implement a button

+ none.Rect(0, 0); +ui.beginGroup(GroupFlags_GrowDownFromRight); + if ui.doButton(none, 'Apply') then + begin + //code to apply your changes + end; +ui.endGroup; +
diff --git a/components/nvidia-widgets/doc/nvwidgets/uicontext.dobutton.html b/components/nvidia-widgets/doc/nvwidgets/uicontext.dobutton.html index 4ce40fd27..d9d7915b0 100644 --- a/components/nvidia-widgets/doc/nvwidgets/uicontext.dobutton.html +++ b/components/nvidia-widgets/doc/nvwidgets/uicontext.dobutton.html @@ -22,69 +22,44 @@

function UIContext.doButton(

-

  const r: Rect;

+

  const r: Rect;       //optionally provides a location and size for the button

-

  const Text: ;

+

  const Text: ;       //text to display on the button

-

  var state: Boolean;

+

  var state: Boolean; //whether the button is depressed

-

  style: Integer = 0

+

  style: Integer = 0  //optional style flag to modify the look (default = 0)

-

):Boolean;

function UIContext.doButton(

+

):Boolean;            //Boolean result

function UIContext.doButton(

-

  const r: Rect;

+

  const r: Rect;     //optionally provides a location and size for the button

-

  const Text:

+

  const Text:        //text to display on the button

-

):Boolean;

- - -

Arguments

- - - - - - - - - - - - - - - - - - - - - -

r

  

optionally provides a location and size for the button

Text

  

text to display on the button

state

  

whether the button is depressed

style

  

optional style flag to modify the look

-

Arguments

- - - - - - - - - - +

r

  

optionally provides a location and size for the button

Text

  

text to display on the button

):Integer;            //Integer result

+ +

Description

The button method does only take a text and state variable. This variable is modified if the button is pressed or depressed. When a state change occurs the method function returns True.

+

Example code how to implement a button

+
none.Rect(0, 0);
+ui.beginGroup(GroupFlags_GrowDownFromRight);
+  if ui.doButton(none, 'Apply') then
+  begin
+    //code to apply your changes
+  end;
+ui.endGroup;
+
diff --git a/components/nvidia-widgets/doc/nvwidgets/uicontext.dolabel.html b/components/nvidia-widgets/doc/nvwidgets/uicontext.dolabel.html index d819c1369..7d1a99a1f 100644 --- a/components/nvidia-widgets/doc/nvwidgets/uicontext.dolabel.html +++ b/components/nvidia-widgets/doc/nvwidgets/uicontext.dolabel.html @@ -58,5 +58,11 @@

The Text variable can have multiple lines.

+

Example code how to implement a label

+
none.Rect(0, 0);
+ui.beginGroup(GroupFlags_GrowDownFromRight);
+  ui.doLabel(none, Text);
+ui.endGroup;
+