This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
sample_code:database_navigate [2015/04/17 00:44] yep created |
sample_code:database_navigate [2015/04/17 00:53] yep |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | **Application: | + | ======Application: |
I created this simple application to learn and play Databases and Dialogs | I created this simple application to learn and play Databases and Dialogs | ||
- | * Identify the sqlite databases in the default folder. | + | * Identify the sqlite databases in the default folder |
* List the tables | * List the tables | ||
* List Columns of tables | * List Columns of tables | ||
Line 7: | Line 7: | ||
* And could also delete a database | * And could also delete a database | ||
- | --- // | ||
- | | + | On My local Version, I have also 3 icons in subdirectory Img< |
+ | I leave text, the code for icons is kepts inside ... see the 3 tCol | ||
+ | |||
+ | enjoy | ||
+ | |||
+ | <code JavaScript AdminDB.js> | ||
// thierry . 2015 04 15 | // thierry . 2015 04 15 | ||
Line 75: | Line 79: | ||
remindColumn.SetTextColor( colorTitle ); | remindColumn.SetTextColor( colorTitle ); | ||
| | ||
- | //tColGauche=app.CreateText(" | + | |
- | | + | //tColGauche= app.CreateImage(" |
lh1.AddChild(tColGauche); | lh1.AddChild(tColGauche); | ||
- | tColGauche.SetMargins( 0.1, | + | |
tColGauche.SetOnTouch( btnD_OnTouch ); | tColGauche.SetOnTouch( btnD_OnTouch ); | ||
- | //tColCentre=app.CreateText(" | + | |
- | | + | tColCentre=app.CreateText(" |
+ | //tColCentre=app.CreateImage(" | ||
lh1.AddChild(tColCentre); | lh1.AddChild(tColCentre); | ||
- | tColCentre.SetMargins( 0.29, | + | |
tColCentre.SetOnTouch( btnT_OnTouch ); | tColCentre.SetOnTouch( btnT_OnTouch ); | ||
- | //tColDroite=app.CreateText(" | + | |
- | | + | tColDroite=app.CreateText(" |
+ | //tColDroite=app.CreateImage(" | ||
lh1.AddChild(tColDroite); | lh1.AddChild(tColDroite); | ||
- | tColDroite.SetMargins( 0, | + | |
tColDroite.SetOnTouch( btnF_OnTouch ); | tColDroite.SetOnTouch( btnF_OnTouch ); | ||
- | //var colorTitle="# | + | |
- | | + | |
- | | + | tColGauche.SetTextColor( colorTitle ); |
- | | + | tColCentre.SetTextColor( colorTitle ); |
+ | tColDroite.SetTextColor( colorTitle ); | ||
| | ||
// faire des listes | // faire des listes | ||
Line 113: | Line 120: | ||
//Create buttons width columns. | //Create buttons width columns. | ||
btnD = app.CreateButton( " | btnD = app.CreateButton( " | ||
- | //lh3.AddChild( btnD ); | + | |
| | ||
btnT = app.CreateButton( " | btnT = app.CreateButton( " | ||
- | //lh3.AddChild( btnT ); | + | |
| | ||
btnF = app.CreateButton( " | btnF = app.CreateButton( " | ||
- | //lh3.AddChild( btnF ); | + | |
| | ||
Line 331: | Line 338: | ||
function closeDialog02(){dlgContent.Hide()} | function closeDialog02(){dlgContent.Hide()} | ||
- | } | + | </ |
+ | |||
+ | enjoyed? | ||
+ | --- // | ||