TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PATRICK GLENN
from: JARI LAAKSONEN
date: 1997-03-15 18:31:00
subject: Lots of Dialogs

PG>     Does anybody know off hand how to place a variable length text
PG> string in a dialog box?
PG>     I'm making a quiz program. I want to make one dialog box
PG> with answer buttons (multiple choice) and rather than make 20 (or
PG> more) different dialogs and then switching them out for each question,
PG> I'd rather use the same dialog and simply switch out a text string
PG> from a string table.
SetDlgItemText is the function, if you're using Windows API. If you're not, 
then I have no idea, because you didn't mention your environment and 
compiler...
        // Albert                      email: jla@to.icl.fi
... Ok, untested - but it should work.
--- GoldED/2 2.50+
---------------
* Origin: Albert's Point/2 in Finland, Europe (2:221/360.20)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.