From: page AT wobnet DOT com (jon) Newsgroups: comp.os.msdos.djgpp Subject: Allegro GUI questions- very basic Date: Tue, 24 Jun 1997 15:39:21 GMT Organization: Yale University Lines: 32 Message-ID: <33afe12a.2733418@news.cis.yale.edu> NNTP-Posting-Host: slip-ppp-node-14.cs.yale.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I'm working on a program that requires user input to enter (when queried) strings and so forth while at the same time running in mode 13h with Allegro's keyboard installed. So far, Allegro's GUI using d_edit_proc suits the bill nicely. However, I've noticed that I don't seem to be able to use textout reliably anymore- sometimes (and seeming randomly) textout decides to ignore my FG and BG colors, making them the same (both FG, I think) so textout text isn't readable. SOmetimes it corrects itself. But it always eventually does it again when I am using GUI routines too. When I don't use any GUI routines, I don't see this problem. Lastly, the GUI graphics/text always look fine. Anybody else ever see this set of circumstances? My reason for wanting textout instead of just the GUI d_text_proc is that I want to paint text on the screen that I'll erase myself later when I'm ready to blit a new screen up- sort of like a "Wait while processing..." message. That allows me to gauge roughly how long each procedure is running (and know everything is working right). I don't know exactly how to made a GUI routine that would require this little extra code or attention, and given that I have 20 to 30 functions that all need to do this same thing, I like it that simple. If someone can tell me how to fix my textout problem, that would be best for me. Otherwise, another GUI approach with a "fire and forget" sort of way like I have Alternately, if there is a different way to get user variable input when in a graphics mode with Allegro's keyboard handler, I'd like to know. Although I will say that d_edit_proc, in conjunction with atoi() and atof(), etc., does a superb job, it would suffice if it weren't for the textout problems. Please post response here. Thanks