F0O@psuvm.psu.edu (11/23/90)
This is a general question about any kind of window programming( although this statement may be too general!). I'm beginning to write a logic simulation program in PDC prolog, and the user interface wil be pulldown menus, dialog boxes, etc. I may also include mouse support. Since I don't have much money to spend, I'm writing all of my menu support routines. I'll also learn alot too! My big question is, whenever you call a routine to put a pulldown menu on the screen, and you select an option, should the pulldown menu routine handle the user request, or should the request be passed back to the main program, which then handles the request? The big advantage I would see about having the pulldown menu routine handle the request is when the requests pull up other menus(i.e. Borland's Sprint word processor). This way, whenever you leave the current menu( say by hitting the ESC key), you'll be placed back where you left off in the previous menu. Also, are there any books or other information that talk about writing your own GUI? I'd also be curious to see what the internal data structures are of a working GUI. I imagine they vary from one implementation to another, but there must be alot in common among them. [Tim]