Apologies this is probably really simple.
I have a container in which there are six images. I would like to enlarge whichever image has been clicked on whilst the other images remain the same.
Thanks
Hi @MrSheen,
The easiest way would be to create a variable for each width and height property of each image.
OnSelect Property of the Image:
// For Image 1
If(Self.Width = 100,
Set(gblWidth1, 200);
Set(gblHeight1, 200),
Set(gblWidth1, 100);
Set(gblHeight1, 100)
)
// For Image 2
If(Self.Width = 100,
Set(gblWidth2, 200);
Set(gblHeight2, 200),
Set(gblWidth2, 100);
Set(gblHeight2, 100)
)
In the Width and Height properties, it would be gblWidth1 & gblHeight1, etc.
Please tick Accept as solution if the answer is useful.
Thanks,
Hi @MrSheen ,
Please try this
- Screen1:
Control: Screen
Children:
- Container1:
Control: GroupContainer
Variant: manualLayoutContainer
Properties:
Height: =520
Width: =1095
X: =40
Y: =40
Children:
- Image1:
Control: Image
Properties:
OnSelect: =Set(SelectedImage,"Image1");
Height: =If(SelectedImage="Image1",100+var,100)
ImagePosition: =ImagePosition.Fill
Width: =If(SelectedImage="Image1",100+var,100)
- Image1_1:
Control: Image
Properties:
OnSelect: =Set(SelectedImage,"Image2");
Height: =If(SelectedImage="Image2",100+var,100)
ImagePosition: =ImagePosition.Fill
Width: =If(SelectedImage="Image2",100+var,100)
X: =Image1.X+Image1.Width
- Image1_2:
Control: Image
Properties:
OnSelect: =Set(SelectedImage,"Image3");
Height: =If(SelectedImage="Image3",100+var,100)
ImagePosition: =ImagePosition.Fill
Width: =If(SelectedImage="Image3",100+var,100)
X: =Image1_1.X+Image1_1.Width
Best Regards,
Wearsky
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional