Results 1 to 4 of 4

Thread: Web Spacer putting space in the wrong place

  1. #1
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Web Spacer putting space in the wrong place

    The code:

    Code:
            Object oWebSpacer1 is a cWebSpacer
                Set piHeight to 100
            End_Object
    
    
            Object oEnqButtonsBtn is a cWebButton
                Set piColumnSpan to 4
                Set piColumnIndex to 1
                Set psCaption to "XXX"
            End_Object
    
    
            Object oServicesBtn is a cWebButton
                Set piColumnSpan to 4
                Set piColumnIndex to 1
                Set psCaption to "YYY"
            End_Object
    
    
            Object oIntDepBtn is a cWebButton
                Set piColumnSpan to 4
                Set piColumnIndex to 1
                Set psCaption to "ZZZ"
            End_Object
    
    
            Object oVidAndDocBtn is a cWebButton
                Set piColumnSpan to 4
                Set piColumnIndex to 1
                Set psCaption to "ABC"
            End_Object
    Produces this:
    Click image for larger version. 

Name:	Screenshot 2019-07-03 at 19.14.07.jpg 
Views:	73 
Size:	23.9 KB 
ID:	12922

    Not what I was expecting!

    How can I fix this?

    Mike
    Last edited by Mike Peat; 3-Jul-2019 at 01:16 PM. Reason: typos

  2. #2
    Join Date
    Feb 2009
    Location
    Copenhagen, Denmark
    Posts
    2,006

    Default Re: Web Spacer putting space in the wrong place

    Set piColumnSpan to 0

    in the spacer?

    -Sture

  3. #3
    Join Date
    Jan 2009
    Location
    Richmond, VA
    Posts
    5,854

    Default Re: Web Spacer putting space in the wrong place

    I'd be tempted to set the same column span and column index as the buttons.
    Best regards,

    -SWM-

  4. #4
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Re: Web Spacer putting space in the wrong place

    Yup, that did it - thanks Sture!

    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •