[program-l] Re: VB: Laying out items

  • From: David Lant <david.lant@xxxxxxxxxxxx>
  • To: "'program-l@xxxxxxxxxxxxx'" <program-l@xxxxxxxxxxxxx>
  • Date: Thu, 22 Sep 2005 10:05:24 +0100

Hi,

Actually, there's no problem at all with placing your controls via code.
After all, when you place them using the form designer, all it does is
generate code to position them at run-time anyway.  The only thing you
mustn't do, is make manual code changes in the area that is automatically
generated by the form designer.  That's just because next time someone uses
the form designer, there's no guarantee your customisations will be kept.

However, I tend to use the form designer for convenience myself.  As you
say, the VS.NET 2003 JAWS scripts announce the Top and Left properties of
the controls as you move them, so it's easy to line things up.
Unfortunately, I would suspect that as you're not using any scripts to use
VS 2005, you won't be getting the advantage of this feature, so it may not
be such a convenient option.

You could just open the Properties sheet for each control, by pressing f4
when the control has focus, and manual adjusting the Top and Left properties
to line things up.  It's more tedious, but it is an option.

I would like to suggest to Will and co, who are working on the VS 2005
scripts, that it would be a huge boon if they could devise a way for blind
JAWS users to select and highlight multiple controls on a form.  IN that
way, we could even use the automatic sizing, alignment and centring features
of the form designer.  This might make things even easier in the long run.

David Lant

I.T. Consultant 
Consultancy & Development
ICT Services
Tel: (01392) 382464

Devon County Council accepts no legal responsibility for the contents of
this message. The views expressed do not reflect those of Devon County
Council.


-----Original Message-----
From: Dave Reynolds [mailto:dkreynolds@xxxxxxxxxxxx] 
Sent: 21 September 2005 21:47
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: VB: Laying out items


AS you correctly said, you can use the arrow keys to move the controls 
around the form. You'll hear numbers spoken when you do this,and its really 
a case of listening to them, and If you want two labels to be aligned 
horizontally, you need to listen for the number which determines the 
horizontal position of the label. Alternatively, you could do what I do 
which is to set the position and size of controls within the code. Each 
control will have a top and a left property, and these can be set, also the 
width and height properties can be set, so in this way, you can with a 
little spacial imagination, set your form up quite nicely. I expect will or 
David will tell you a very good reason why you shouldn't do this, but its 
always worked for me.
Hope this helps,
Dave.
----- Original Message ----- 
From: "Che" <che@xxxxxxxxxxxxxxxx>
To: <program-l@xxxxxxxxxxxxx>
Sent: Wednesday, September 21, 2005 8:44 PM
Subject: [program-l] VB: Laying out items


>  So how do blind programmers lay out their design form in studio?  I 
> know
> you can move items with the arrow keys and all, but how do you tell if 
> things are laid out properly, or lined up and so forth.  For instance, how

> do you line up labels with appropriate text fields?
>  Thanks for any advice,
>  Signed,
>  Slowly making progress
> ** To leave the list, click on the immediately-following link:-
> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
> ** If this link doesn't work then send a message to:
> ** program-l-request@xxxxxxxxxxxxx
> ** and in the Subject line type
> ** unsubscribe
> ** For other list commands such as vacation mode, click on the
> ** immediately-following link:-
> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
> ** or send a message, to
> ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq 

-- 
I am using the free version of SPAMfighter for private users. It has removed
2929 spam emails to date. Paying users do not have this message in their
emails. Try www.SPAMfighter.com for free now!

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: