iOS Question panel background

Discussion in 'iOS Questions' started by tufanv, Mar 4, 2015.

  1. tufanv

    tufanv Expert Licensed User

    Hello

    I made a search on the forum as Erel said you have to put imageview behind panel to make a background. I tried it but i can only see background and i cant see my main panel ( when i remove the imageview i can see my main panel) . I tried bringtofront for main panel but no luck again ??

    TY
     
  2. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Hi
    Why dont use Alpha of panel?
     
  3. tufanv

    tufanv Expert Licensed User

    Hello,

    I want a background image for a panel . How can i use alpha for this purpose ?
     
  4. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    You can place image view in panel and decrease panel alpha.
    But panel have backgroundimage
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Make sure that the ImageView is a child of the panel.
     
  6. tufanv

    tufanv Expert Licensed User

    Erel,

    I stll have this problem. Yes i am sure it the child of panel. When i make it a little bit transparent like 0.7 , other labels are also goes transparent so they are not readable.
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload your layout file?
     
  8. Marco Maria Vilucchi

    Marco Maria Vilucchi Active Member Licensed User

    I used this configuration:
    Panel1 parent main 100%x 100%y
    Image1 parent panel1 80% 80%
    Button1 parent main

    Button_ckick doesn't work because is under (behind) panel

    Then i change:
    Button1 parent panel1

    Same problem
    What can i do?
     
    Last edited: Jul 6, 2015
  9. klaus

    klaus Expert Licensed User

    What EventName did you enter in Button1.Initialize ?
    It should be Button1.Initialize("Button")
    Because you use Button_Click
    Or if you have Button1.Initialize("Button1")
    Then you need Button1_Click.
     
  10. Marco Maria Vilucchi

    Marco Maria Vilucchi Active Member Licensed User

    i'm using Designer, then I don't have Button.Initialize
    But i seen that if I put the button into an area out of panel and image it works
     
  11. narek adonts

    narek adonts Well-Known Member Licensed User

    Call button.bringtofront
     
  12. dieterp

    dieterp Active Member Licensed User

    Just a quick query out of interest. When I add an ImageView to the designer, it doesn't allow me to link the image I have in the 'Files' folder through the 'Designer ImageView' properties like it does in B4a. I have to link the image in code by calling ImageView1.Bitmap = LoadBitmap(File.DirAssets, "my_image.png").

    Am I missing something?
     
  13. klaus

    klaus Expert Licensed User

    Did you add the image in the Designer ?
    In the Files Tab click on Add Files to add it.
    B4i Beginner's Guide page 113.
     
  14. dieterp

    dieterp Active Member Licensed User

    Ahhhh, there we go. Thanks Klaus! Fumbling my way around a bit here but getting there. Another excellent product chaps. Great work! :)
     
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