delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/21/19:00:27

From: Usman Muzaffar <usman AT thynne DOT psych DOT nwux DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: jptui questions
Date: Wed, 21 Jun 2000 17:34:43 -0500
Organization: Northwestern University, Evanston, IL, US
Lines: 25
Message-ID: <39514303.96995276@thynne.psych.nwux.edu>
NNTP-Posting-Host: stott.psych.nwu.edu
Mime-Version: 1.0
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi. Using the JPTUI library to create a simple "wizard" that
asks some questions and then writes responses to a file.
Works great - two questions:

1. Where did JP Delprat's website go? www.teaser.fr/~jpdelprat 
   gives me a 404. Has development stopped on JPTUI?

2. I can't seem to figure out how to bind a keyboard event
   directly to a window. More specifically, just like Alt-F4
   invokes the close button, I'd like some of my own keypresses
   to invoke other parts of the interface. I see an example like
   this is jpdemo, but there the shortcuts are tied to menu items,
   and my little wizard has no menus. For example, I'd like Alt-F10
   (say) to be the equivalent of the "Next" button.
 
   On a related note, say I want something other than Alt-[a-z] to
   activate a pushbutton - how do I encode that in the caption string?

   Again the issue is of specifying key bindings. I'm coming from 
   Tcl/Tk, where stuff like the bind command give you full control
   over what happens - how do I do this with jptui+djgppv2 ?

thanks,
usman

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019