Mineral acid-base reactions (AcidBase).
Description: Chemistry trainer (exercise generator), dealing with mineral acid-base reactions. Exercises include giving the
acid and the base and having to guess the salt, as well as giving the salt and having to find the acid and base. The student has to enter the (not given)
formula(s), the ionic composition of reactants and product and the (molecular) equation of the reaction, balanced of course. Optionally, the names of the
molecules are also included in the test. With the possibility to give the acid and the base (resp. the salt) by their name (instead of their formula).
Issue: Subscripts for atom/atom group numbers and superscripts for the ion charge number and sign, as well as the arrow between
reactants and products are entered using buttons. I actually have not found a way to position the cursor at the end of an edit field after inserting data
by program code. By default, the cursor goes to position 1 and entering characters after applying a sub-/superscript would place those at the beginning,
instaed at the end of the entry. I choose to focus the field after insertion by button. This does not resolve the problem and the user still has to push
the end-of-line key after each button-insertion, but doing so, the selection (highlighting) of the entry is probably the best way to tell/remember her,
that she has to do an end-of-line, before continuing to enter characters.
Free Pascal features: Subscripts and superscripts. Inserting data into an edit field using push buttons. Complex data structures