Graphics

 View Only
  • 1.  Center Text in Tab Vertically?

    Posted 07-30-2014 20:02
    Is there a way to have text auto center itself vertically within the tab?


  • 2.  RE: Center Text in Tab Vertically?

    Posted 09-09-2014 15:15

    Not that i'm aware of. I've been using the below script. Are you familiar with scripts? Basically you have to get the Y-Position of each line and then enter them into the script.



    dim newtext as string

    dim list as array

    dim newtext1 as string

    dim x as string

    dim maxlinelen as integer

    dim maxlines as integer

    dim linesCount as integer

    dim line as string

    maxlinelen = 100

    maxlines = 6

    linesCount = 1

    newtext = text

    list = split (newtext, " ", -1, 1)

    line = ""

    newtext1 = ""

    For each x in List

    If ( Len (line) + Len (x) )> maxlinelen then

    newtext1 = newtext1 & line & VbCrLf

    linesCount += 1

    if linesCount > maxlines then

    line = ""

    exit for

    end if

    line = x & " "

    else line = line & x & " "

    end if

    next

    newtext1 = newtext1 & line

    text = newtext1

    if linesCount = 1 then

    Self.PosY = 137

    elseif linesCount = 2 then

    Self.PosY = 217

    elseif linesCount = 3 then

    Self.PosY = 295

    elseif linesCount = 4 then

    Self.PosY = 365

    elseif linesCount = 5 then

    Self.PosY = 445

    elseif linesCount = 6 then

    Self.PosY = 525

    else

    Self.PosY = 137

    end if

    #XPression


  • 3.  RE: Center Text in Tab Vertically?

    Posted 09-03-2015 01:52
    I tried using this script and it appears to only move the whole thing, no matter how many lines it is. I've adjusted the number I put with the "Self.PosY = " lines, but the only one that seems to make a difference is on the

    " iflinesCount = 1 then

    Self.PosY = ... "

    section. When I change that number it moves, but when I have more than 1 line, it just puts the next lines under it, without changing the Y position of both lines (or more).

    Any suggestions?

    #XPression


  • 4.  RE: Center Text in Tab Vertically?



  • 5.  RE: Center Text in Tab Vertically?

    Posted 09-04-2015 04:01
    Thanks Vincent. What they are suggesting in that post doesn't seem to be working for me. I've never used the Visual Logic editor before, so I have to assume I'm doing something wrong. I'm going to keep playing around with it.

    Thanks again!

    #XPression