|
@@ -63,7 +63,7 @@ static void ExamplesCleanUp(){
|
|
memFree(EV);
|
|
memFree(EV);
|
|
}
|
|
}
|
|
|
|
|
|
-#define EXAMPLE_COMMON_BEGIN\
|
|
|
|
|
|
+#define EXAMPLE_COMMON_BEGIN \
|
|
ExampleItem* ei=This->EndInstance;\
|
|
ExampleItem* ei=This->EndInstance;\
|
|
laColumn* c=laFirstColumn(uil);\
|
|
laColumn* c=laFirstColumn(uil);\
|
|
laUiItem* row=laBeginRow(uil,c,0,0);\
|
|
laUiItem* row=laBeginRow(uil,c,0,0);\
|
|
@@ -84,7 +84,7 @@ static void ExamplesCleanUp(){
|
|
laEndRow(uil,row);\
|
|
laEndRow(uil,row);\
|
|
laShowSeparator(uil,c);
|
|
laShowSeparator(uil,c);
|
|
|
|
|
|
-#define EXAMPLE_COMMON_END\
|
|
|
|
|
|
+#define EXAMPLE_COMMON_END \
|
|
}laEndCondition(uil,bu);
|
|
}laEndCondition(uil,bu);
|
|
|
|
|
|
void ui_Fruits(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){
|
|
void ui_Fruits(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){
|
|
@@ -148,8 +148,8 @@ This demo shows commom widgets inside LaGUI.\n\
|
|
\n\
|
|
\n\
|
|
What you need to know about widgets in LaGUI:\n\
|
|
What you need to know about widgets in LaGUI:\n\
|
|
---------------------------------------------\n\
|
|
---------------------------------------------\n\
|
|
- 1) Except labels, you need a data source (a defined property in LaGUI) to show any other kind of widget.\n\
|
|
|
|
- 2) To show a button, you need to define an operator, and an operator is basically what you trigger an action with.\n\
|
|
|
|
|
|
+ 1) Except labels, you need a data source (a defined property in LaGUI) to show any other kind of widget.\n \
|
|
|
|
+ 2) To show a button, you need to define an operator, and an operator is basically what you trigger an action with.\n \
|
|
3) A widget can have multiple style/looks controlled by mainly `ui->Flags`. Some ui types accept extra instructions as a string, like you \
|
|
3) A widget can have multiple style/looks controlled by mainly `ui->Flags`. Some ui types accept extra instructions as a string, like you \
|
|
could specify \"text=something;\" to a button.\n\
|
|
could specify \"text=something;\" to a button.\n\
|
|
4) You could arrange widgets in a columns or rows, also with groups and tabs. Currently, group/subprop widgets can not be used inside a row.\n\
|
|
4) You could arrange widgets in a columns or rows, also with groups and tabs. Currently, group/subprop widgets can not be used inside a row.\n\
|
|
@@ -249,7 +249,7 @@ void set_CurrentExample(ExampleViewer* v, ExampleItem* ei){
|
|
memAssignRef(v,&v->CurrentExample, ei); v->ShowCode=0;
|
|
memAssignRef(v,&v->CurrentExample, ei); v->ShowCode=0;
|
|
}
|
|
}
|
|
|
|
|
|
-#define EXAMPLE_ADD_PC(name,_PC,_UI)\
|
|
|
|
|
|
+#define EXAMPLE_ADD_PC(name,_PC,_UI) \
|
|
pc=laAddPropertyContainer("example_" name, name "Example", name "example",0,_UI,sizeof(ExampleItem),0,0,1); _PC=pc;\
|
|
pc=laAddPropertyContainer("example_" name, name "Example", name "example",0,_UI,sizeof(ExampleItem),0,0,1); _PC=pc;\
|
|
laAddStringProperty(pc,"name","Name","Name of the example",LA_WIDGET_STRING_PLAIN,0,0,0,1,offsetof(ExampleItem,Name),0,0,0,0,LA_READ_ONLY|LA_AS_IDENTIFIER);\
|
|
laAddStringProperty(pc,"name","Name","Name of the example",LA_WIDGET_STRING_PLAIN,0,0,0,1,offsetof(ExampleItem,Name),0,0,0,0,LA_READ_ONLY|LA_AS_IDENTIFIER);\
|
|
laAddSubGroup(pc,"base","Base","Base example","program_example",0,0,0,0,0,0,0,0,0,0,0,LA_UDF_LOCAL);
|
|
laAddSubGroup(pc,"base","Base","Base example","program_example",0,0,0,0,0,0,0,0,0,0,0,LA_UDF_LOCAL);
|