Announcement

Collapse
No announcement yet.

Scrolling graphics/text window

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

  • Scrolling graphics/text window

    I need a window to display mixed text and graphics (line diagrams). That's no problem, but I want the user to be able to resize, scroll and to select and Copy text as in a normal read-only edit control, for instance. It would also be nice if the text and graphics could be printed. I've started down the road of writing my own control but I was wondering if anyone knows a better approach or of any code snippets to help.

    Thanks,
    Keith


    ------------------

  • #2
    keith --
    it's relative simple to make scrollable dialog.
    see, for example, http://www.powerbasic.com/support/pb...ad.php?t=24953
    this scrollable dialog can be a child of main, fixed size dialog (i didn't post, but, as i remember, i have a short sample on my pc).

    what exactly confuse you ?

    ------------------
    e-mail: [email protected]

    Comment


    • #3
      Semen

      Many thanks for the link to sample Scrollable ViewPort/Dialog codes. They look like they will prove useful to me. Actually, there was nothing confusing me, it's just that I wanted to avoid "reinventing the wheel" and to check that my overall approach was sensible.

      Thanks again,
      Keith


      ------------------

      Comment


      • #4
        Keith;

        Just to add to Semen's suggestion, if you are painting all your images
        to a memory DC first, (double buffering technique) then you should have an
        easy time sending that to a printer just as you would do it with a bitmap.
        I have not dug up any supporting source code yet, but I recall some people
        have posted some in the past. I use Don Dicksons Print driver Dll, comes
        with source for the same cost for one Two-Four of Canadian Beer.

        I am not sure if you are saying you want to make an "editable" control that
        can have image(objects) and text side by side something like MS Word?
        That's a very tall order!


        Regards,
        Jules

        Best regards
        Jules
        www.rpmarchildon.com

        Comment


        • #5
          Jules

          Many thanks for the double-buffering tip-off.

          I don't want an editable control; it will be strictly read-only. But I do want line diagrams and selectable text to coexist.

          Regards, Keith


          ------------------

          Comment

          Working...
          X