Question
XUI Images
Wondering if anyone has worked with images in XUI.
Specifically, I have a listbox with a list of image titles, and when
clicked, I want them to show below in a little preview window.
The problem I'm having is that my XUI is setup so that all of my toolsets
are contained within a <box>. Looking at the API, it seems that
<imagegroup> needs to be a child of <window>, which seems odd.
I also see <picturebox> that can take a ref, but I'm not sure if that
somehow means I need to create the <imagegroup><image> on the main window
(evidently hidden?), then reference it from the picturebox?
I'm able to do this pretty easily within the editor window by modifying my
dcf as follows:
<graphic element="vectorimage" entity="entityref" filename="fileref"/">
Then in the XML, I can insert a tag such as:
<vectorimage db_id="1" fileref="<br"/>
The main kicker is that the image is dynamically created by a service,
based upon a passed-in ID. This works fine in the editor window, but
seems strange I can't simply put an image somewhere in my XUI dynamically
like this.
Any thoughts/help appreciated.
- keith
Specifically, I have a listbox with a list of image titles, and when
clicked, I want them to show below in a little preview window.
The problem I'm having is that my XUI is setup so that all of my toolsets
are contained within a <box>. Looking at the API, it seems that
<imagegroup> needs to be a child of <window>, which seems odd.
I also see <picturebox> that can take a ref, but I'm not sure if that
somehow means I need to create the <imagegroup><image> on the main window
(evidently hidden?), then reference it from the picturebox?
I'm able to do this pretty easily within the editor window by modifying my
dcf as follows:
<graphic element="vectorimage" entity="entityref" filename="fileref"/">
Then in the XML, I can insert a tag such as:
<vectorimage db_id="1" fileref="<br"/>
The main kicker is that the image is dynamically created by a service,
based upon a passed-in ID. This works fine in the editor window, but
seems strange I can't simply put an image somewhere in my XUI dynamically
like this.
Any thoughts/help appreciated.
- keith

