1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
# include "appFrameConfig.h"
# include <stdlib.h>
# include <stdio.h>
# include <appDebugon.h>
# include "appFrame.h"
# include "appSystem.h"
# include <appGeoString.h>
/************************************************************************/
/* */
/* Make a row consisting of a label and a text widget. */
/* */
/************************************************************************/
void appMakeLabelAndTextRow( APP_WIDGET * pRow,
APP_WIDGET * pLabel,
APP_WIDGET * pText,
APP_WIDGET column,
const char * labelText,
int textColumns,
int textEnabled )
{
APP_WIDGET label;
APP_WIDGET text;
APP_WIDGET row;
const int labelColumn= 0;
const int labelColspan= 1;
const int textColumn= 1;
const int textColspan= 1;
const int columnCount= 2;
const int heightResizable= 0;
row= appMakeRowInColumn( column, columnCount, heightResizable );
appMakeLabelInRow( &label, row, labelColumn, labelColspan, labelText );
appMakeTextInRow( &text, row, textColumn, textColspan,
textColumns, textEnabled );
*pRow= row; *pLabel= label; *pText= text; return;
}
void appMakeToggleAndTextRow( APP_WIDGET * pRow,
APP_WIDGET * pToggle,
APP_WIDGET * pText,
APP_WIDGET column,
char * labelText,
APP_TOGGLE_CALLBACK callback,
void * through,
int textColumns,
int textEnabled )
{
APP_WIDGET toggle;
APP_WIDGET text;
APP_WIDGET row;
const int textColumn= 1;
const int textColspan= 1;
const int columnCount= 2;
const int heightResizable= 0;
row= appMakeRowInColumn( column, columnCount, heightResizable );
toggle= appMakeToggleInRow( row, labelText, callback, through, 0 );
appMakeTextInRow( &text, row, textColumn, textColspan,
textColumns, textEnabled );
*pRow= row; *pToggle= toggle; *pText= text; return;
}
|