Announcement

Collapse
No announcement yet.

Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question

    Hi,
    Look, I have been wondering : what is a graphics window ?
    Is it a GDI+ window, a Forms2 window or what?

    G.Houska

  • #2
    Originally posted by Gerbert Houska View Post
    Is it a GDI+ window
    Made with CONTROL ADD GRAPHIC? I assume that is the one you mean. If you look closer at the control, you will see it has Class=Static.

    Comment


    • #3
      ... or do you mean GRAPHIC WINDOW? PBWin supports both.

      The Graphic Toolset in PB supports GDI directly. However, since you can easily obtain reference to the window and control, i.e. handles and DC's it should be possible to use GDI+ tools with these entities as well.
      Rick Angell

      Comment


      • #4
        Yes thanks, Graphics Window is what I was talking about.

        Gerbert Houska

        Comment


        • #5
          That a little research and digging turns up that the Classname is "static" does NOT mean it is a standard Windows "static" control/window. I'd guess that window is subclassed by the compiler to do stuff it just won't do 'out of the box.'

          A more accurate answer might be, "The PB 'GRAPHIC' statements create a proprietary window or control which should be manipulated using only the provided GRAPHIC statements."

          While some - or even a lot - "Windows standard" functions MIGHT work in this release of the compiler, it's not something on which I'd bet the house.

          MCM
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment


          • #6
            The PB Graphic control is a standard STATIC class window which is ownerdrawn. This is how it does the drawing using standard ownerdraw (DDT handles the processing of the ownerdraw message).
            Chris Boss
            Computer Workshop
            Developer of "EZGUI"
            http://cwsof.com
            http://twitter.com/EZGUIProGuy

            Comment


            • #7
              >The PB Graphic control is a standard STATIC class window which is ownerdrawn

              "In the current (well, I guess now it's the previous) version of the compiler."
              Michael Mattias
              Tal Systems (retired)
              Port Washington WI USA
              [email protected]
              http://www.talsystems.com

              Comment


              • #8
                GRAPHIC WINDOW has its own internal message handler, but it can be subclassed as many posts in the forums, especially the PBCC forum have shown. Further many GDI functions not encapsulated in PB's Graphic Toolset will also work with both graphic controls and windows. I'm speaking from actual experience here, using many API functions with graphic controls and windows ... but some time back. However I have not used GDI+ functions with what I was working on.
                Last edited by Richard Angell; 15 Aug 2008, 07:29 AM.
                Rick Angell

                Comment

                Working...
                X