Looking for an example stack of a address book, etc.
Posted: Sat Aug 12, 2017 11:16 pm
Hi,
I'm working through teaching myself to use LiveCode. The BYU book was unfortunately not helpful to me at all (others mileage may vary). What I usually do is an address book or some other type of simple editor just to kick the tires. While creating one that uses buttons to move back and forth is relatively simple, I am trying to create the following dialog:
Where the list control on the left is used to select the card to display. Where I'm hung up is how/where to accomplish the following:
1. Display a blank card on opening the deck.
2. Populate the list control based on the cards already in the deck.
3. Do the actual card selection/display based on clicking the name in the list.
For what it's worth, clicking the Edit button gets the card into Edit mode and the Save Button appears in place of the Edit button. It's a pretty basic app, but after several evenings of reading the docs (all of them) and looking for similar examples (nonexistent as near as i can tell), I'm stumped.
Any help is appreciated and thanks in advance.
I'm working through teaching myself to use LiveCode. The BYU book was unfortunately not helpful to me at all (others mileage may vary). What I usually do is an address book or some other type of simple editor just to kick the tires. While creating one that uses buttons to move back and forth is relatively simple, I am trying to create the following dialog:
Code: Select all
+----------------------------------------------+
| +--------------+ First Name: |
| | ^| [_________________] |
| | | |
| | | Last Name: |
| | | [_________________] |
| | | |
| | | Address: |
| | | [ ] |
| | | [ ] |
| | | [ ] |
| | | [ ] |
| | v| |
| +--------------+ |
| [+][-] [Close] [Cancel] [Edit] |
+----------------------------------------------+
1. Display a blank card on opening the deck.
2. Populate the list control based on the cards already in the deck.
3. Do the actual card selection/display based on clicking the name in the list.
For what it's worth, clicking the Edit button gets the card into Edit mode and the Save Button appears in place of the Edit button. It's a pretty basic app, but after several evenings of reading the docs (all of them) and looking for similar examples (nonexistent as near as i can tell), I'm stumped.
Any help is appreciated and thanks in advance.