Recent

Author Topic: Object in laz4android  (Read 2289 times)

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 160
Object in laz4android
« on: March 31, 2015, 04:55:04 pm »
hum, now I need a help about how to sort objects on module, with button1, button2 and jImageView, I want to put both buttons is front of jImageview ( or can we understand background is JImageView), but I only can have button1 is front of image, and button2 is still not appear when open app  :-X

jmpessoa

  • Hero Member
  • *****
  • Posts: 2302
Re: Object in laz4android
« Reply #1 on: March 31, 2015, 07:42:26 pm »
Hi,

Ok, there is a known issue: Lamw did not help on z-order!

So, you can try z-order by testing... sorry  :-[

My my experiment [puts in the following order]:

1. jTextView1

Code: [Select]
    PosRelativeToAnchor = []
    PosRelativeToParent = [rpTop, rpCenterHorizontal]
    LayoutParamWidth = lpWrapContent
    LayoutParamHeight = lpWrapContent       

2. jButton1

Code: [Select]
    Anchor = jTextView1
    PosRelativeToAnchor = [raBelow]
    PosRelativeToParent = [rpLeft]
    LayoutParamWidth = lpHalfOfParent
    LayoutParamHeight = lpWrapContent

3. jButton2

Code: [Select]
    Anchor = jTextView1
    PosRelativeToAnchor = [raBelow]
    PosRelativeToParent = [rpRight]
    LayoutParamWidth = lpHalfOfParent
    LayoutParamHeight = lpWrapContent

4. jImageView1

Code: [Select]
    Anchor = jTextView1
    PosRelativeToAnchor = [raBelow]
    PosRelativeToParent = [rpCenterHorizontal]
    LayoutParamWidth = lpWrapContent
    LayoutParamHeight = lpWrapContent
    ImageIndex = 0
    Images = jImageList1

5. jImageList1
Code: [Select]
    Images.Strings = (
      'lemur-300x165.png'
    )

 You can see the result in Attachment.....

Note: jImageView is not a container.... so you can try too: jPanel+jImageView + jButtons!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018