Re: Win32lib dialogs within proc's

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Fri, 10 Mar 2000, you wrote:
> > From: Irv Mullins
> >
> > Ermm. I have dozens of such "user built dialogs" in my programs.
> > I just build a new window, place an edit text and/or checkboxes or
> > radio buttons as needed, and probably an "OK" button and a "cancel"
> > button, which when clicked transfer the info or do the task
> > called for,
> > then close the window.
> >
> > I'm trying to think of where something like this would be
> > needed. So far,
> > nothing comes to mind.
> >
>
> I seem to have solved my problem, but here's what I'm doing.  I'm working on
> writing a game that's basically like Magic the Gathering (a fantasy card
> game--and actually the reason I started using Euphoria a couple of years
> ago).  Each card has it's own special procedures for doing whatever the
> card's effects are in the game.  For instance, when you cast a Lightning
> Bolt, you then choose a target, and the Lightning Bolt does some damage to
> whatever your target was.  Well, I've got a ton of procedures that need to
> do such a thing.  In order to find out what the target is, I need to open up
> the window, and once the window is done, go right back to the spot in the
> card's event code.  If I simply open the window, it comes right back to the
> code, without giving the user a chance to respond.

If you define your new window as modal, then it _can't_ go back until the user
responds (and a closeWindow command is issued). That could be from a click or
selection from a listbox or a button, or whatever.

Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu