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. dlg can make by XML?

dlg can make by XML?

Scheduled Pinned Locked Moved C / C++ / MFC
wpfxmlquestion
5 Posts 5 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.
  • W Offline
    W Offline
    wangafei
    wrote on last edited by
    #1

    cann't ? the method? just like xaml in wp7

    _ T C A 4 Replies Last reply
    0
    • W wangafei

      cann't ? the method? just like xaml in wp7

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      XAML is XML. If you want to do it without using XAML and WPF, then you will need to write a lot of code to translate XML contents into UI elements. My advice is not to try it because it will become overwhelming.

      «_Superman_»  _I love work. It gives me something to do between weekends.

      _Microsoft MVP (Visual C++)

      Polymorphism in C

      1 Reply Last reply
      0
      • W wangafei

        cann't ? the method? just like xaml in wp7

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        though i am agree with superman, however it is possible to make dialog box using xml, for that you have write your own custom class to read, handle and create the dialog box, its a complicated task however doable. Let me know if you are interested, i can provide you some starting point

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

        1 Reply Last reply
        0
        • W wangafei

          cann't ? the method? just like xaml in wp7

          C Offline
          C Offline
          Code o mat
          wrote on last edited by
          #4

          Additionally to what the others said, depending on your actual needs (of which you didn't say much about), you could try writing a converter that can process an XML and generate a resource file (.rc) that can be processed by the resource compiler tool of VS to generate the dialog resource.

          > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

          1 Reply Last reply
          0
          • W wangafei

            cann't ? the method? just like xaml in wp7

            A Offline
            A Offline
            Aescleal
            wrote on last edited by
            #5

            And yet another addition to the answers above - some 3rd party cross platform windowing libraries use XML for describing their controls and layouts. wxwidgets[^] has a working XML layout manager which is only minorly painful to use. Cheers, Ash

            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