The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.
From:
"David" <elephant@tele2.no>Subject:
XML question - How many units?Date:
Thu, Oct 4, 2012 7:28:39 amThis is a multi-part message in MIME format.
------=_NextPart_000_003D_01CDA234.2A059360
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
When creating an XML dialog, holding an Edit box, I want to enter a number for the hight and width. Big question is, how high can that number be, and still fit inside a window on a normal basis. I.e, is there any way to calculate this, or is it a simple hit and miss. Specially when designing dialogs as a blind person, I find it hard to know whether a line or text block will fit into the window. My experience has been, that WE will read the whole line, even if the line is being cut off on the screen. Could there have been a method or something in the GWToolkit, that would take a string, and return an approximate number for the hight or width. I am not too familiar with the screen units being used in this regard, but my guess is that one unit might vary, depending on current font and size. Am I right on this one? If so, I do understand there might be a challenge in giving the exact number for the maximum hight and width to be used for a given text to be displayed in an Edit box, but that is why, I ask that the calculation at least could give some kind of an approximate - or suggested number. I found little help in browsing the reference manual on the matter, but maybe I was overlooking something. Or, does anyone of you blind app developers, have a good way of testing whether a dialog is properly designed.
Thanks for any feedback.
------=_NextPart_000_003D_01CDA234.2A059360
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19328">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>When creating an XML dialog, holding an Edit box, I
want to enter a number for the hight and width. Big question is, how high can
that number be, and still fit inside a window on a normal basis. I.e, is there
any way to calculate this, or is it a simple hit and miss. Specially when
designing dialogs as a blind person, I find it hard to know whether a line or
text block will fit into the window. My experience has been, that WE will read
the whole line, even if the line is being cut off on the screen. Could there
have been a method or something in the GWToolkit, that would take a string, and
return an approximate number for the hight or width. I am not too familiar with
the screen units being used in this regard, but my guess is that one unit might
vary, depending on current font and size. Am I right on this one? If so, I do
understand there might be a challenge in giving the exact number for the maximum
hight and width to be used for a given text to be displayed in an Edit box, but
that is why, I ask that the calculation at least could give some kind of an
approximate - or suggested number. I found little help in browsing the reference
manual on the matter, but maybe I was overlooking something. Or, does anyone of
you blind app developers, have a good way of testing whether a dialog is
properly designed.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks for any feedback.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>
------=_NextPart_000_003D_01CDA234.2A059360--
------=_NextPart_000_003D_01CDA234.2A059360
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
When creating an XML dialog, holding an Edit box, I want to enter a number for the hight and width. Big question is, how high can that number be, and still fit inside a window on a normal basis. I.e, is there any way to calculate this, or is it a simple hit and miss. Specially when designing dialogs as a blind person, I find it hard to know whether a line or text block will fit into the window. My experience has been, that WE will read the whole line, even if the line is being cut off on the screen. Could there have been a method or something in the GWToolkit, that would take a string, and return an approximate number for the hight or width. I am not too familiar with the screen units being used in this regard, but my guess is that one unit might vary, depending on current font and size. Am I right on this one? If so, I do understand there might be a challenge in giving the exact number for the maximum hight and width to be used for a given text to be displayed in an Edit box, but that is why, I ask that the calculation at least could give some kind of an approximate - or suggested number. I found little help in browsing the reference manual on the matter, but maybe I was overlooking something. Or, does anyone of you blind app developers, have a good way of testing whether a dialog is properly designed.
Thanks for any feedback.
------=_NextPart_000_003D_01CDA234.2A059360
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19328">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>When creating an XML dialog, holding an Edit box, I
want to enter a number for the hight and width. Big question is, how high can
that number be, and still fit inside a window on a normal basis. I.e, is there
any way to calculate this, or is it a simple hit and miss. Specially when
designing dialogs as a blind person, I find it hard to know whether a line or
text block will fit into the window. My experience has been, that WE will read
the whole line, even if the line is being cut off on the screen. Could there
have been a method or something in the GWToolkit, that would take a string, and
return an approximate number for the hight or width. I am not too familiar with
the screen units being used in this regard, but my guess is that one unit might
vary, depending on current font and size. Am I right on this one? If so, I do
understand there might be a challenge in giving the exact number for the maximum
hight and width to be used for a given text to be displayed in an Edit box, but
that is why, I ask that the calculation at least could give some kind of an
approximate - or suggested number. I found little help in browsing the reference
manual on the matter, but maybe I was overlooking something. Or, does anyone of
you blind app developers, have a good way of testing whether a dialog is
properly designed.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks for any feedback.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>
------=_NextPart_000_003D_01CDA234.2A059360--




