This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
sample_code:database_navigate [2015/04/17 00:47] yep |
sample_code:database_navigate [2015/04/17 00:54] 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. Sorry few French comments. | ||
<code JavaScript AdminDB.js> | <code JavaScript AdminDB.js> | ||
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 332: | Line 339: | ||
</ | </ | ||
+ | |||
+ | enjoyed? | ||
+ | --- // | ||