B4J Question Rotate label

Discussion in 'B4J Questions' started by StarinschiAndrei, May 10, 2015.

  1. StarinschiAndrei

    StarinschiAndrei Active Member Licensed User

    Hello everybody
    Could somebody tell me how can i obtain a rotate label ? similar to attached image ?
    [​IMG]
    Thank you
     
  2. Daestrum

    Daestrum Well-Known Member Licensed User

    Try
    Code:
    label1.Text = "hello"
        jo = label1
        jo.RunMethod(
    "setRotate",Array(270.0)) ' needs float value
     
    Erel likes this.
  3. StarinschiAndrei

    StarinschiAndrei Active Member Licensed User

    Thank you :) it work fine
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    As a small sub:
    Code:
    Sub RotateNode(n As Node, Degree As Double)
     
    Dim jo As JavaObject = n
     jo.RunMethod(
    "setRotate"Array(Degree))
    End Sub
     
    Mashiane likes this.
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