Hi again,
I want to have an image & label inside the panel, and want that image & label to resize according to screen size,
so if the panel size enlarged the image should also enlarge and fit itself inside the panel same for the label,
I tried using a script but end result was too weird and out of focus, I have attached the image to give an idea, green and black borders are the border for the image and label to resize itself.
I tried to set the anchor panel but I do not see any result
I want to have an image & label inside the panel, and want that image & label to resize according to screen size,
so if the panel size enlarged the image should also enlarge and fit itself inside the panel same for the label,
I tried using a script but end result was too weird and out of focus, I have attached the image to give an idea, green and black borders are the border for the image and label to resize itself.
I tried to set the anchor panel but I do not see any result
Designer script:
heightOfLabel4 = Label4.Height
ImageView1.SetLeftAndRight( Panel1.Left + 5dip, Panel1.Right - 5dip)
ImageView1.SetTopAndBottom( Panel1.Top + 1dip, Panel1.Bottom - 2dip - heightOfLabel4)
Label4.SetLeftAndRight( Panel1.Left + 5dip, Panel1.Right - 5dip)
Label4.SetTopAndBottom(ImageView1.Bottom + 5dip, Panel1.Bottom - 5dip)