Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #272

Re: Actual VB question!

Newsgroups comp.lang.basic.visual.misc
From john@jeasonNoSpam.cix.co.uk (John K.Eason)
Subject Re: Actual VB question!
Date 2011-06-18 12:20 +0100
Message-ID <memo.20110618122028.400W@jeason.cix.co.uk> (permalink)
References <4dfbf00c@dnews.tpgi.com.au>

Show all headers | View raw


In article <4dfbf00c@dnews.tpgi.com.au>, Strand@dummyspit (StrandElectric) wrote:

> *From:* "StrandElectric" <Strand@dummyspit>
> *Date:* Sat, 18 Jun 2011 10:23:35 +1000
> 
> "Eric Coleman" <eric@strategon.com> wrote in message 
> news:itfqe1$e3a$1@speranza.aioe.org...
> > On 6/12/2011 4:11 PM, StrandElectric wrote:
> >> vb6
> >>
> >> I have a problem where the text or caption line up near the top 
> >> (vertically)
> >> of the textbox or label. Also captions on the labels and text in 
> the text
> >> boxes does not quite line up. I'd like to have them more in the 
> middle
> >> vertically and aligned properly. (I am of course OK for 
> horizontal >> placeing
> >> (left right centre)). Is there some control property I should be 
> >> tweaking?
> >> Apols for such a basic question.
> >>
> >
> > Select the controls you want to align, and then from the the 
> > "Format" menu, select "Align" -> "Middles"
> >
> > There is a lot of neat stuff in the Format menu.  Also, you can 
> > right click on the toolbar and add the "Form Editor" toolbar.  It 
> > can also be customized to add more of the formatting controls 
> > that aren't present.
> 
> Experimenting now Eric. When I select a control and then go Format 
> > Align > Middles, as you suggested, I get as far as Align and then 
> all the options are greyed out. I will continue to try. 

That option is for aligning controls on a form, not for aligning text within a
control (which isn't natively possible for vertical alignment).
To vertically align a label relative to a single-line text box, I've found that
the Top property of the label control needs to be 45 points larger than the textbox
Top property (assuming the desktop is using  the default settings, and using
'Classic view in Windows).

Regards
       John

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Actual VB question! "StrandElectric" <Strand@dummyspit> - 2011-06-13 07:11 +1000
  Re: Actual VB question! GS <gs@somewhere.net> - 2011-06-12 18:53 -0400
    Re: Actual VB question! Jason Keats <jkeats@melbpcDeleteThis.org.au> - 2011-06-13 12:34 +1000
  Re: Actual VB question! "Ivar" <ivar.ekstromer000@ntlworld.com> - 2011-06-13 00:58 +0100
  Re: Actual VB question! Dee Earley <dee.earley@icode.co.uk> - 2011-06-13 09:19 +0100
  Re: Actual VB question! Eric Coleman <eric@strategon.com> - 2011-06-17 10:04 -0500
    Re: Actual VB question! "StrandElectric" <Strand@dummyspit> - 2011-06-18 10:23 +1000
      Re: Actual VB question! john@jeasonNoSpam.cix.co.uk (John K.Eason) - 2011-06-18 12:20 +0100
        Re: Actual VB question! "StrandElectric" <Strand@dummyspit> - 2011-06-19 05:04 +1000
        Re: Actual VB question! "StrandElectric" <Strand@dummyspit> - 2011-06-19 06:29 +1000
          Re: Actual VB question! john@jeasonNoSpam.cix.co.uk (John K.Eason) - 2011-06-19 00:26 +0100
          Re: Actual VB question! ralph <nt_consulting64@yahoo.net> - 2011-06-18 21:41 -0500
            Re: Actual VB question! john@jeasonNoSpam.cix.co.uk (John K.Eason) - 2011-06-19 12:22 +0100
              Re: Actual VB question! ralph <nt_consulting64@yahoo.net> - 2011-06-19 10:51 -0500
                Re: Actual VB question! john@jeasonNoSpam.cix.co.uk (John K.Eason) - 2011-06-20 12:07 +0100
        Re: Actual VB question! Deanna Earley <dee.earley@icode.co.uk> - 2011-06-20 09:56 +0100
          Re: Actual VB question! john@jeasonNoSpam.cix.co.uk (John K.Eason) - 2011-06-20 12:10 +0100
      Re: Actual VB question! "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-06-18 22:55 +0100

csiph-web