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. The Lounge
  3. Sketch -> Form

Sketch -> Form

Scheduled Pinned Locked Moved The Lounge
htmlwpfgraphicsquestion
28 Posts 11 Posters 35 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.
  • M Mark_Wallace

    Mycroft Holmes wrote:

    Have them spend 2 weeks f***ing about with colours,shades and little graphicky things and they will lose the cavalier attitude.

    Rather, have them spend two days before they even begin, making sure that colours,shades and little graphicky things are decided, and the decisions are down on paper, so that they can build templates and style sheets (real style sheets, not the ones beginning with "C"). That way, everything is in approved colours and shades right from the word go, so there's no room for argument, and the little graphicky things can all be set at fixed sizes, so that if someone wants one changed, they can provide the new graphic (which must only use approved colours and shades) of the right size, so that it can just be inserted to replace the former one. The main thing to get across is "We are doing this professionally, and are working to professional standards, so if you want something changed, you'd better have damned good, and fully documented, reasons for it". Too often, developers allow themselves to be walked all over, when they move into UI design, because they think (sometimes rightly, sometimes not) that they're not qualified and/or or skilled enough to do it, but the point is not that you have to be highly qualified or skilled; you just have to be professional, and refuse to allow unprofessional behaviour in others. That a prototype UI design is not perfect means that it is a work in progress; it does not mean that everyone can just jump in and behave like little kids in a sandpit. A very useful thing to include at the end of a UI demo is a change-request form. Do not accept changes without a change-request form -- force everyone to keep it professional.

    I wanna be a eunuchs developer! Pass me a bread knife!

    M Offline
    M Offline
    Mycroft Holmes
    wrote on last edited by
    #17

    Thanks Mark, I needed a good laugh on Monday morning, nail down UI specs indeed, we can't even nail down the application requirements let alone the UI. I would love the luxury to actually force the business to supply clear requirements but they don't know what they want and certainly don't know what they can get from a system. We work on an iterative process, here is the first draft of what we think you want, they then get to define the next set of requirements based on that. It's almost like agile without the formal agile crap that goes with it! I did get a laugh when the MD pointed us to another group who are spending $m on their new design and asked why we, a bunch of data oriented developers, could not even deliver what he wanted.

    Never underestimate the power of human stupidity RAH

    1 Reply Last reply
    0
    • H Hamed Musavi

      This is cool, but I have something different in mind. (SketchFlow reminds me of Macromedia Flash times, by the way.) I was thinking more about a markup generator from a drawing, not extracting images to show in the flow, but real controls.

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #18

      IIIRC Sketchflow generates XAML screen prototypes :~

      “Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed”
      “One of the greatest problems of our time is that many are schooled but few are educated”

      Sir Thomas More (1478 – 1535)

      H 1 Reply Last reply
      0
      • H Hamed Musavi

        I was wondering today, while drawing sketch of a form, if there is any tool that can use image processing to convert a drawing to generated code for a XAML or HTML form. Drawing a sketch is very fast and much easier than dragging controls on a form and I guess it wouldn't be impossible to build something like an NN to process parts of a photo of an sketch to extract controls and generate a form based on them, although extracting handwritten text might not be that easy. Anyway, such a thing will save hours of work for many programmers in the world, I believe. Any prior attempt or any idea?

        R Offline
        R Offline
        Rage
        wrote on last edited by
        #19

        Could make a great tool suite associated with the plain english compiler.

        ~RaGE();

        I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

        1 Reply Last reply
        0
        • H Hamed Musavi

          I was wondering today, while drawing sketch of a form, if there is any tool that can use image processing to convert a drawing to generated code for a XAML or HTML form. Drawing a sketch is very fast and much easier than dragging controls on a form and I guess it wouldn't be impossible to build something like an NN to process parts of a photo of an sketch to extract controls and generate a form based on them, although extracting handwritten text might not be that easy. Anyway, such a thing will save hours of work for many programmers in the world, I believe. Any prior attempt or any idea?

          B Offline
          B Offline
          BobJanova
          wrote on last edited by
          #20

          If your sketch is accurate enough that it's actually a design, that's impressive in itself. But how would it know whether this control is supposed to be positioned at (305,267px), or 'half way down the page', or 'just below that thing'? What about the names, data bindings, default text, captions, keyboard shortcuts and behaviour of the controls? How would it know which control type that wonky rectangle on the page represents? How the grouping of controls that are drawn near each other should work?

          H 1 Reply Last reply
          0
          • H Hamed Musavi

            Dave Kreskowiak wrote:

            it guesses

            Honestly I haven't been working with NN and image processing after college, if it's still that immature, then it's kinda sad!

            Dave Kreskowiak wrote:

            I can "sketch" a form, dragging and dropping controls faster than I can draw one.

            Maybe! Most of the time is wasted on layout, naming, resources and stuff like that for me. I think many of such tasks can be automated.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #21

            It's not really the basic NN that's going to be the problem. Sure, it can see a box and figure it's a TextBox control, oh wait, maybe that's supposed to be a combo, ... or it could be a listview. It's hard to tell from 4 wavy lines. The point is, you'd have to use some kind of invented shorthandto tell it exactly what kind of control you're really sketching. Another problem is scaling. How wide does this system make the initial form? How high? How wide and tall are the controls supposed to be? Again, it's going to require hints to figure this out. More shorthand. It's just not practical in the real world as you would have to go back and tweak everything it guessed at to arrange the form. That's time you have to waste going back through every little detail to make sure it's correct. That time he's trying to save is now wasted. About all this project would be good for is a final thesis.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            H 1 Reply Last reply
            0
            • D Dave Kreskowiak

              It's not really the basic NN that's going to be the problem. Sure, it can see a box and figure it's a TextBox control, oh wait, maybe that's supposed to be a combo, ... or it could be a listview. It's hard to tell from 4 wavy lines. The point is, you'd have to use some kind of invented shorthandto tell it exactly what kind of control you're really sketching. Another problem is scaling. How wide does this system make the initial form? How high? How wide and tall are the controls supposed to be? Again, it's going to require hints to figure this out. More shorthand. It's just not practical in the real world as you would have to go back and tweak everything it guessed at to arrange the form. That's time you have to waste going back through every little detail to make sure it's correct. That time he's trying to save is now wasted. About all this project would be good for is a final thesis.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak

              H Offline
              H Offline
              Hamed Musavi
              wrote on last edited by
              #22

              You're right and that's my point. How come I can often make right decisions if I see a sketch like that and computers can't yet. I thought maybe machine learning has grown to the point which is capable of doing such stuff with good enough accuracy.

              1 Reply Last reply
              0
              • K Keith Barrow

                IIIRC Sketchflow generates XAML screen prototypes :~

                “Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed”
                “One of the greatest problems of our time is that many are schooled but few are educated”

                Sir Thomas More (1478 – 1535)

                H Offline
                H Offline
                Hamed Musavi
                wrote on last edited by
                #23

                I didn't see that in the video. Maybe they have that in mind, gotta look closer at that project. Thanks anyway. :)

                Planning to move to Germany, looking for a job there!
                Looking for a Windows desktop programmer? I look forward to hearing from you! :-)

                K 1 Reply Last reply
                0
                • H Hamed Musavi

                  I didn't see that in the video. Maybe they have that in mind, gotta look closer at that project. Thanks anyway. :)

                  Planning to move to Germany, looking for a job there!
                  Looking for a Windows desktop programmer? I look forward to hearing from you! :-)

                  K Offline
                  K Offline
                  Keith Barrow
                  wrote on last edited by
                  #24

                  No worries.

                  “Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed”
                  “One of the greatest problems of our time is that many are schooled but few are educated”

                  Sir Thomas More (1478 – 1535)

                  1 Reply Last reply
                  0
                  • B BobJanova

                    If your sketch is accurate enough that it's actually a design, that's impressive in itself. But how would it know whether this control is supposed to be positioned at (305,267px), or 'half way down the page', or 'just below that thing'? What about the names, data bindings, default text, captions, keyboard shortcuts and behaviour of the controls? How would it know which control type that wonky rectangle on the page represents? How the grouping of controls that are drawn near each other should work?

                    H Offline
                    H Offline
                    Hamed Musavi
                    wrote on last edited by
                    #25

                    BobJanova wrote:

                    how would it know whether this control is supposed to be positioned at (305,267px)...

                    These are details and solution to such nonlinear problems, as much as I recall from university, are Neural Networks, genetic algorithms and the like. I have not updated myself on that branch of science and thus have no idea if it is possible or practical to do it or not. I was hoping among readers someone with such a profession might share ideas. Maybe we could start an open source project together! :)

                    1 Reply Last reply
                    0
                    • M Mark_Wallace

                      Mycroft Holmes wrote:

                      Have them spend 2 weeks f***ing about with colours,shades and little graphicky things and they will lose the cavalier attitude.

                      Rather, have them spend two days before they even begin, making sure that colours,shades and little graphicky things are decided, and the decisions are down on paper, so that they can build templates and style sheets (real style sheets, not the ones beginning with "C"). That way, everything is in approved colours and shades right from the word go, so there's no room for argument, and the little graphicky things can all be set at fixed sizes, so that if someone wants one changed, they can provide the new graphic (which must only use approved colours and shades) of the right size, so that it can just be inserted to replace the former one. The main thing to get across is "We are doing this professionally, and are working to professional standards, so if you want something changed, you'd better have damned good, and fully documented, reasons for it". Too often, developers allow themselves to be walked all over, when they move into UI design, because they think (sometimes rightly, sometimes not) that they're not qualified and/or or skilled enough to do it, but the point is not that you have to be highly qualified or skilled; you just have to be professional, and refuse to allow unprofessional behaviour in others. That a prototype UI design is not perfect means that it is a work in progress; it does not mean that everyone can just jump in and behave like little kids in a sandpit. A very useful thing to include at the end of a UI demo is a change-request form. Do not accept changes without a change-request form -- force everyone to keep it professional.

                      I wanna be a eunuchs developer! Pass me a bread knife!

                      G Offline
                      G Offline
                      Gary R Wheeler
                      wrote on last edited by
                      #26

                      Not to rain on the parade, but I would be terminated with extreme indifference if I tried something like that. I work for a hardware company, where software engineers are treated like the congenitally defective cousin you keep locked in the attic because they can't be trusted not to masturbate in public. We have virtually no say in product features, and our voices are the least respected in the place. Within the software group, UI issues have lowest priority, since they're farthest from the hardware. It may sound paranoid, but a lot of the time I feel like I'm the only person who gives a rat's ass whether or not our customer can actually use their $2.5M toy...

                      Software Zen: delete this;

                      1 Reply Last reply
                      0
                      • H Hamed Musavi

                        I was wondering today, while drawing sketch of a form, if there is any tool that can use image processing to convert a drawing to generated code for a XAML or HTML form. Drawing a sketch is very fast and much easier than dragging controls on a form and I guess it wouldn't be impossible to build something like an NN to process parts of a photo of an sketch to extract controls and generate a form based on them, although extracting handwritten text might not be that easy. Anyway, such a thing will save hours of work for many programmers in the world, I believe. Any prior attempt or any idea?

                        G Offline
                        G Offline
                        Gary R Wheeler
                        wrote on last edited by
                        #27

                        Hamed Mosavi wrote:

                        Drawing a sketch is very fast and much easier than dragging controls on a form

                        It sounds to me like you need to spend a little time learning how to use the resource editor efficiently for your favorite IDE. This does sound like some of the CAD programs I've seen. One used gestures to insert objects or perform operations. Unfortunately the gesture language was complex and took a long time to learn.

                        Software Zen: delete this;

                        H 1 Reply Last reply
                        0
                        • G Gary R Wheeler

                          Hamed Mosavi wrote:

                          Drawing a sketch is very fast and much easier than dragging controls on a form

                          It sounds to me like you need to spend a little time learning how to use the resource editor efficiently for your favorite IDE. This does sound like some of the CAD programs I've seen. One used gestures to insert objects or perform operations. Unfortunately the gesture language was complex and took a long time to learn.

                          Software Zen: delete this;

                          H Offline
                          H Offline
                          Hamed Musavi
                          wrote on last edited by
                          #28

                          Was the gesture useful in decreasing design time for you?

                          Gary R. Wheeler wrote:

                          It sounds to me like you need to spend a little time learning how to use the resource editor efficiently for your favorite IDE.

                          Like how? I have been using VisualStudio from version 6 to 2012 for the past 8 years and I find the job of using its tools to design a form a tedious repetitive task. Even though many times I don't use MS controls just as they are and have custom ones, but still many forms are created using standard controls and thousands of programmers are doing the same task everyday. Have you ever draw a form on paper? You'll not be engaged with details and that's why it's so fast. Also it seems to me that for us (humans!), it's more convenient to draw with a pen than to use mouse and keyboard.

                          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