Jump to content

Customizable xml-based program launcher


Zaroz
 Share

Recommended Posts

Alright, this is going to be a rather long explanation so bear with me.

What I am trying to to is build a GUI program that, in the end, will look like this:Capture.PNG

The middle Frame is for displaying a desktop icon and the right frame is for displaying a selected image.

The XML file I am using looks like this:

<list>
  <item id="1">
    <ico>Path\to\icon1<\ico>
    <img>Path\to\image1<\img>
    <exe>Path\to\program1<\exe>
    <label>UserDefinedLabel1<\label>
   <\item>
  <item id="2">
    <ico>Path\to\icon2<\ico>
    <img>Path\to\image2<\img>
    <exe>Path\to\program2<\exe>
    <label>UserDefinedLabel2<\label>
   <\item> 
<\list>

What I want this program to do is when I highlight an item in the listbox (which btw is displaying the <label> value associated with the item) I want the displayed icon and image to change to the ones associated with that entry. 

Also I would like to include an additional dialog to open when the 'ADD' button is clicked that will add entries to the XML file that looks like this:

Capture2.PNG

 

The main problem I am running into is that I do not know much about XML and how to parse it into dynamic variables that can change based off of selection.

Any help is appreciated.

 

 

 

10-29-16 EDIT: For all intents and purposes, I basically want to create something similar to PStart, but with a preview pane with a customizable image for each item in it.

Edited by Zaroz
Clarification
Link to comment
Share on other sites

Can't help you without first seeing your code but one thing I noticed in your XML file is that there is no location information for the controls. If you were to use that XML as shown they would just sit on top of each other in the GUI and not be spread out like in your diagram.

Link to comment
Share on other sites

2 hours ago, iAmNewbe said:

Can't help you without first seeing your code but one thing I noticed in your XML file is that there is no location information for the controls. If you were to use that XML as shown they would just sit on top of each other in the GUI and not be spread out like in your diagram.

so how would I go about putting location info into the xml?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...