Text Box Height & Border Around Label

Discussion in 'Basic4ppc Wishlist' started by ceaser, May 14, 2008.

  1. ceaser

    ceaser Active Member Licensed User

    Hi

    1. Is it possible that I can set my own height of my text boxes and not let Basic4ppc set the height according to the font size that I have selected.

    2. It would be nice to be able to have the label box have a border around.

    Thanks
    Michael
    (ceaser)
    Civil Engineering And Surveying Earthworks Routines
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. This is the underlying OS control behavior. If Multiline is set to true it is possible to change the height.
    2. You can draw the border. Something like:
    Code:
    Sub App_Start
        Form1.Show
        DrawBorder(
    "Label1",cBlack)
    End Sub

    Sub DrawBorder(label,color)
        x = 
    Control(label).Left-1
        y = 
    Control(label).Top-1
        form1.Line(x,y,x + 
    Control(label).Width+2,y + Control(label).Height + 2,color,b)
    End Sub
     
  3. ceaser

    ceaser Active Member Licensed User

    Thanks

    Sorry about these questions. Having programmed in NSBasic for 3 years and only 2 weeks with Basic4ppc, I am still trying to find my feet!

    Michael
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    No problem. Please feel free to ask any question!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice