[comp.windows.x] "Flash Cards" in X Hp Widgets

jec@iuvax.cs.indiana.edu (James E. Conley) (01/11/89)

	I am trying to write an X program using HP Widgets (11R3) to
make flash cards like the one below:

----------------------------------------------------------------------------
|                      X F l a s h :   Francais                     [Quit] |
----------------------------------------------------------------------------
|  Translate:                                                              |
|      Je suis suisse.                                                     |
|                                                                          |
|   [ ]  Gee that's a neat watch.                                          |
|   [X]  I like dairy products.                                            |
|   [ ]  I am swiss.                                                       |
|                                                                          |
|     No, that is incorrect.  You are 3 for 23                             |
----------------------------------------------------------------------------

	Here are some of my questions:

    (1) I cannot get the static text (the "Translate: Je suis suisse"
	part) to break lines.  Am I missing something?  I tried putting in
	both \n and \r characters, but neither did the trick-- they both
	displayed some character for the \n or \r.

    (2)	Can I reuse the Panel when I change the question and answers?
	Is there some sort of "rethink display"?

    (3)	Am I totally out to lunch here?  I'm trying to do a lot of
	dynamic text stuff.  My widget hierarchy is:

	toplevel
	  Panel
	    TBar ("Xflash: Francais")
	      PushButton ("Quit")
            Form
	      Text ("Translate...")
	      RowCol
		Toggle
		Toggle
		Toggle
	      Text ("No, that is...")	[haven't done this part yet, actually]

--
James Conley
Indiana University Computer Science
jec@iuvax.cs.indiana.edu