Robert May wrote:
Andy Pastuszak wrote:
I am trying to create a simple input box. I created a window, added a
text area and an Ok and Cancel button.
In Win32::GUI
<code snipped>
Hi Robert,
And thanks for the input box code. I'm not the original poster but I had
been wondering about a simple way to get textual input into Perl. Java has a
JOption pane for it and VBA supports a special message box type, that is not
part of the Win32 API.
I'm going to add some error checking, return values and OOP stuff and will
make that input box a local PM file strictly for my personal use.
This input box seems to work just fine mostly. My only minor gripe is about
accessibility. I think the text box should have a label and the title bar
could, say. state the app name, for instance. True, a screen reader will
read the title bar when the input box is the top-level window getting the
focus. If you then tab around the box and go back to the unlabelled text
box, it may say something like:
ok button <tab>
cancel button <tab>
edit area".
This is slightly confusing though no biggy. Thought I'd mention it, though.
Because of this very same reason I think accessible search fields should
always have a label, though the sighted user can see the usage by the visual
layout and grouping e.g. the box being next to the search button.
--
With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED])
Accessibility, game music, synthesizers and programming:
http://www.student.oulu.fi/~vtatila/