hideLabels

 

hideLabels  is used to make labels of toolbar buttons visible/hidden at runtime.

 

in Lycia Form Designer

in Lycia Theme Designer

 

 

Form XML code:

 

<Toolbar text="toolbar" visible="true" identifier="toolbarMain1" hideLabels="true">

 

By default, the property is set to false and is absent from the form XML code. The property value will appear in the form XML code only once the property value is set to true.

 

 

Theme property filter XML code:

 

<DoStyleAction>

  <SetProperty>

    <PropertyPath>

      <PropertyName>HideLabels</PropertyName>

    </PropertyPath>

  </SetProperty>

</DoStyleAction>

 

Possible values: true, false

 

Default value: false (in Lycia Form Designer), not specified (in Lycia Theme Designer)

 

Associated functions:

fgl_setactionlabel()

fgl_setkeylabel()

fgl_dialog_setactionlabel()

fgl_dialog_setkeylabel()

 

Associated containers, widgets and theme elements: Toolbar

 

Associated ui methods:

SetHideLabels 

GetHideLabels 

 

Influence and behavior:

 

 

 

 

With the hideLabels property set to true, labels of toolbar buttons become invisible at runtime:

 

lycia form designer

 

 

4gl code

MAIN

DEFINE f1 STRING

 

OPEN WINDOW w WITH FORM "hideLabels" ATTRIBUTE(BORDER)

 

MENU

  ON ACTION "lycia"

    DISPLAY "Lycia" TO f1

  ON ACTION "birt"

    DISPLAY "BIRT" TO f1

END MENU

 

CALL fgl_getkey()

END MAIN

 

runtime appearance

 

 

 

 

 

At runtime, you can hide labels of toolbar buttons by emptying the second parameter of the corresponding functions:

  fgl_setactionlabel():

 

CALL fgl_setactionlabel("action_id", "")

 

  fgl_setkeylabel():

 

CALL fgl_setkeylabel("action_id", "")

 

  fgl_dialog_setactionlabel():

 

CALL fgl_dialog_setactionlabel("action_id", "")

 

  fgl_dialog_setkeylabel():

 

CALL fgl_dialog_setkeylabel("action_id", "")

 

 

 

 

 

At runtime, you can use ui methods to hide labels of toolbar buttons:

 

LET widget_var = ui.Toolbar.ForName("toolbar_id")

CALL widget_var.setHideLabels(...)

DISPLAY widget_var.getHideLabels()

 

4gl code sample

DEFINE tb ui.Toolbar,

       dspl, f1 STRING

...

LET tb = ui.Toolbar.ForName("toolbarMain1")

CALL tb.setHideLabels(1)

...

LET dspl = "hideLabels=", tb.getHideLabels()

DISPLAY dspl TO f1

 

DEFINE tb ui.Toolbar,

       dspl, f1 STRING

...

LET tb = ui.Toolbar.ForName("toolbarMain1")

CALL tb.setHideLabels(0)

...

LET dspl = "hideLabels=", tb.getHideLabels()

DISPLAY dspl TO f1

 

runtime appearance

 

 

Example programs:

CVS server: client.querix.com

CVS repository: /lycia_doc_examples

User: client

Project: form_properties

Program: hideLabels