Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Help on dynamically creating UI elements based on XML data required

Help on dynamically creating UI elements based on XML data required

Scheduled Pinned Locked Moved C / C++ / MFC
c++designcssbusinessxml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kamal Shankar
    wrote on last edited by
    #1

    Hello Can anyone direct me to a resource where I can see working demo(s) / samples highlighting HOWTO dynamically create a user interface from a XML data definition. What I mean is this: There will be one or more XML data files which will actually contain information regarding controls to be drawn. A program will read those XML files and dynamically create the defined controls. Hence, if the XML reads something like:

    ....
    <Button>
    <ID>CommitPatchButton</ID>
    <Caption>Complete task</Caption>
    <Style>Flat</Style>
    </Button>
    ....

    Then our program should create the button which is associated with the ID 'CommitPatchButton' with the defined specifications. Ofcourse, the XML definition will ONLY define UI Elements and their visibility (for instance,if the button should be made visible or not). The code associated with the controls will be already present beforehand. Thus, in our case, if the above button is defined as visible in the XML data, then we will draw it as specified, and to user will be able to use the functionality associated with it. Ideally a VC++/MFC solution will do, though, it's a working implementation that's more neccessary, so that I can grasp the idea quickly. Otherwise, if you have a brilliant whitepaper/article/layout to achieve the goal (but with the code lacking..), send it(or a link to it) to me anyways ! Note: No business quotations please. Regards Kamal Shankar "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

    L 1 Reply Last reply
    0
    • K Kamal Shankar

      Hello Can anyone direct me to a resource where I can see working demo(s) / samples highlighting HOWTO dynamically create a user interface from a XML data definition. What I mean is this: There will be one or more XML data files which will actually contain information regarding controls to be drawn. A program will read those XML files and dynamically create the defined controls. Hence, if the XML reads something like:

      ....
      <Button>
      <ID>CommitPatchButton</ID>
      <Caption>Complete task</Caption>
      <Style>Flat</Style>
      </Button>
      ....

      Then our program should create the button which is associated with the ID 'CommitPatchButton' with the defined specifications. Ofcourse, the XML definition will ONLY define UI Elements and their visibility (for instance,if the button should be made visible or not). The code associated with the controls will be already present beforehand. Thus, in our case, if the above button is defined as visible in the XML data, then we will draw it as specified, and to user will be able to use the functionality associated with it. Ideally a VC++/MFC solution will do, though, it's a working implementation that's more neccessary, so that I can grasp the idea quickly. Otherwise, if you have a brilliant whitepaper/article/layout to achieve the goal (but with the code lacking..), send it(or a link to it) to me anyways ! Note: No business quotations please. Regards Kamal Shankar "God then made two great lights; the greater light to rule the day, and the less light to rule the night" - Genesis 47:3

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      ummmmmm its called longhorn no? :rolleyes:


      "there is no spoon"
      biz stuff   about me

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups