By default, the Properties pane displays all the properties available for a certain container or widget in the Lycia abstract model:
However, it is not convenient for an everyday 4gl development, since:
To make it easier for a 4gl developer to create forms in Lycia Form Designer, Querix has introduced a set of configuration files by which you can configure the Properties pane in the way that suits you most.
The configuration set is a part of the Lycia installation package and is created by the installer.
With the help of this configurations suite, 4gl developers can
Once loaded, the configuration set is located together with other LyciaStudio configuration files.
If you use default installation paths, then you will find the configuration set at $LYCIA_DIR\LyciaStudio\etc:
If you need, you can change the location of these configuration files.
In this case, you must specify the new folder in lyciastudio.ini - after -vmargs
. For example,
-vmargs
-Dcom.querix.fgl.forms.designer.renderer=cef
-Djava.util.logging.config.file=C:\Program Files\Querix\Lycia\LyciaStudio\log_config\logging.properties
-Dcom.querix.fgl.forms.designer.fd_properties=C:/Program Files/Querix/Lycia/LyciaStudio/my_configs/fd_properties
The set of configuration files includes 3 types of files:
element configuration files - e.g., Button.prp.csv or GridPanel.prp.csv - configuration files that configure the Properties pane for a definite widget or container.
Below are some examples of these files.
BlobViewer.prp.csv
Button.prp.csv
Browser.prp.csv
CheckBox.prp.csv
Canvas.prp.csv
ComboBox.prp.csv
Calendar.prp.csv
FunctionField.prp.csv
Form.prp.csv
Label.prp.csv
ListBox.prp.csv
MenuBar.prp.csv
MenuGroup.prp.csv
MenuCommand.prp.csv
MenuSeparator.prp.csv
PlaceHolder.prp.csv
ProgressBar.prp.csv
Radio.prp.csv
RadioGroup.prp.csv
Slider.prp.csv
Spinner.prp.csv
TextArea.prp.csv
TextField.prp.csv
Toolbar.prp.csv
ToolbarGroup.prp.csv
ToolbarButton.prp.csv
ToolbarSeparator.prp.csv
TimeEditField.prp.csv
WebComponent.prp.csv
BorderPanel.prp.csv
CoordPanel.prp.csv
GridPanel.prp.csv
GroupBox.prp.csv
StackPanel.prp.csv
Tab.prp.csv
TabPage.prp.csv
ScrollViewer.prp.csv
Table.prp.csv
TreeTable.prp.csv
#General group config
,actions,A
,allowNewLines,H
i_appearance.prp.csv $include$
,classNames,D
,collapsed,A
,collapsible,A
,comment,A
,displaymodes,A
,enable,A
i_events.prp.csv $include$
i_field.prp.csv $include$
,identifier,D
,includes,A
i_layout.prp.csv $include$
,tabIndex,H
,text,D
,toolTip,H
#FunctionField config
i_general.prp.csv $include$
Events,D
Field,D
Field,autonext,A
Field,century,A
Field,dataType,A
Field,fieldType,H
Field,format,A
Field,invisibleValue,A
Field,reverse,A
Field,textPicture,A
Field,toCase,A
Field,verify,A
Layout,borderPanelItemLocation,D
Layout,gridItemLocation,D
Layout,location,D
,text,A
All the files are editable for users with administrative rights.
Group and element configuration files have a similar structure.
They contain three types of information:
Title is a commented line that includes the name group or element and the word config, e.g.,
#General group config
#FunctionField config
These lines tell LyciaStudio to use a definite group configuration file for configuring properties listed in it:
i_general.prp.csv $include$
i_layout.prp.csv $include$
If you do not refer to a included group configuration file, you will need to configure all such properties by hand in the element configuration file.
Precedence rules are given here.
These are the lines by which you configure the properties as such.
All the properties can be:
For example,
Layout,gridItemLocation,D
Field,textPicture,A
Field,autonext,A
The default properties are displayed in the Properties pane when the Show advanced properties button - - is unpressed.
The advanced properties are displayed in the Properties pane when the Show advanced properties button - - is pressed.
The hidden properties are not displayed in the Properties pane - it doesn't matter whether the Show advanced properties button - - is pressed or unpressed.
The syntax of the line can be different depending on how you want to group properties:
The property will appear in the root of the Properties list:
,identifier,D
The property will appear in the specified folder of the Properties list:
Field,autonext,A
The property will appear in the sub-folder of the specified folder in the Properties list:
Events.OnKey,OnKeyDown,D
The folder will appear in the root of the Properties list:
Field,D
All the files in the configuration set are editable for users with administrative rights.
To change the configuration file, you must follow these simple steps.
Step 1. Open the necessary configuration file.
Step 2. Configure the property by editing, adding, or removing its line.
Step 3. Save the configuration file.
Step 4. Restart LyciaStudio.
Step 5. Open an .fm2 form in the Design mode.
Now the location of the property in the Properties pane has changed.
This set of configuration files was created to make it easier for a 4gl developer to create .fm2 forms.
That is why their mechanism and syntax is very simple.
However, there are some basic rules that you must still remember.
If you do not want to use one or more configuration files, you can "switch them off" by commenting the corresponding line in listWidget.txt: