TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To: Stephane Richard <[log in to unmask]>
Date: Tue, 29 May 2001 09:26:51 -0400
Reply-To: Stephen Leake <[log in to unmask]>
From: Stephen Leake <[log in to unmask]>
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Parts/Attachments: text/plain (40 lines)
Stephane Richard <[log in to unmask]> writes:

> Hello everyone,

Some might complain that this is the wrong forum for this question;
we're supposed to be discussing Ada advocacy, not the details of
specific problems. comp.lang.ada would be good for this.

> Let's say I would like to manage a keypress or a mouse click in a
> windows form I created using either the win32ada binding, or Windez.

If you meant 'Windex', I can help.

> How would I go about that? Here's example names for the sake of an
> example.
> Form:     frmClientEntry
> Control:  txtPhoneNumber   (this is a regular windows' text box).
>           cmdSave          (this is a regular windows' command button).

In Windex, you do not use the win32Ada binding directly; you _only_
use Windex functions. There is a Windex package for text boxes:

It provides Events, such as Text_Change, that are handled by your main
window (or the text box parent), by overriding the procedure

There are examples in the Windex test code; I don't have any real
applications that use Buttons or Text boxes (well, at least none on
the web site).

If you need more help, email me privately at [log in to unmask]

-- Stephe