quote:
Originally posted by Horseboy
Em... How do I put an image in? I have an image in the script's folder that I want to put in the window.
You use the ImageElement element.
xml code:
<Elements>
<Element Id="ImgAdvanced" xsi:type="ImageElement">
<Position Top="0" Left="348"/>
<Attributes><AllowAutoMirror>false</AllowAutoMirror></Attributes>
<Image><Name>big\advanced</Name></Image>
</Element>
</Elements>
As you notice you dont need to add an extension to the image. Images are automatically assumed to be loaded from the Images folder so you don't need to prefix the image.
The folder structure of the above image is as follows:
Images
+-- big
+advanced.png
quote:
Originally posted by Horseboy
And also... Trying to create a List view, kinda stuck. I have this:
If you are trying to create a ListView why are you using a ListBox?!?
Here is an example of a ListView:
xml code:
<Control Id="LvOverlayRules" xsi:type="ListViewControl">
<Position Top="130" Left="15" Width="270" Height="70"/>
<Attributes>
<AutoTip>true</AutoTip>
<AlwaysShowSelection>true</AlwaysShowSelection>
</Attributes>
<ReportView>
<ColumnHeader>true</ColumnHeader>
<FullRowSelect>true</FullRowSelect>
</ReportView>
<Images>
<SmallIcons>
<Image Id="1">
<Name>icons\enable</Name>
</Image>
<Image Id="0">
<Name>icons\disable</Name>
</Image>
</SmallIcons>
</Images>
<Columns WidthFormat="Relative">
<Column>
<ColumnId>sCondition</ColumnId>
<Label>Condition</Label>
<Width>33</Width>
</Column>
<Column>
<ColumnId>sOverlayText</ColumnId>
<Label>Overlay text</Label>
<Width>67</Width>
</Column>
<Column>
<ColumnId>OverlayId</ColumnId>
<Width>0</Width>
</Column>
<Column>
<ColumnId>bEnabled</ColumnId>
<Width>0</Width>
</Column>
</Columns>
</Control>