Cursors - Resize columns

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis

    Cursors - Resize columns

    I trying to understand how to have a column spliter cursor with a dashed line
    drawn down indicating the current size of the column depending on where the
    splitter cursor is. I want this to be like a crusor so I don't have to
    repaint my control as the line moves. Any references or code?
    --
    Dennis in Houston
  • Cor Ligthert

    #2
    Re: Cursors - Resize columns

    Dennis,

    Can you rewrite your message, probably you are meaning the splitter control
    and for that the point where that exist in the form. For that you need the
    panel side where it exist, however I am not sure if that is your question,

    Cor

    "Dennis" <Dennis@discuss ions.microsoft. com>[color=blue]
    >I trying to understand how to have a column spliter cursor with a dashed
    >line
    > drawn down indicating the current size of the column depending on where
    > the
    > splitter cursor is. I want this to be like a crusor so I don't have to
    > repaint my control as the line moves. Any references or code?
    > --
    > Dennis in Houston[/color]


    Comment

    • Dennis

      #3
      Re: Cursors - Resize columns

      I can get the splitter cursor to show when the mouse moves over the column
      boundary. However, I also want to draw a vertical line from the cursor
      (Vsplit cursor) to the bottom of the control and have it move with the cursor
      in the mouse move event either left or right as the Vsplit cursor moves. I
      know I can draw a vertical line on the graphics object for the control but I
      don't want to have to repaint the control whenever the vertical line and
      Vsplit cursor move.

      "Cor Ligthert" wrote:
      [color=blue]
      > Dennis,
      >
      > Can you rewrite your message, probably you are meaning the splitter control
      > and for that the point where that exist in the form. For that you need the
      > panel side where it exist, however I am not sure if that is your question,
      >
      > Cor
      >
      > "Dennis" <Dennis@discuss ions.microsoft. com>[color=green]
      > >I trying to understand how to have a column spliter cursor with a dashed
      > >line
      > > drawn down indicating the current size of the column depending on where
      > > the
      > > splitter cursor is. I want this to be like a crusor so I don't have to
      > > repaint my control as the line moves. Any references or code?
      > > --
      > > Dennis in Houston[/color]
      >
      >
      >[/color]

      Comment

      • Dennis

        #4
        Re: Cursors - Resize columns

        I can get the splitter cursor to show when the mouse moves over the column
        boundary. However, I also want to draw a vertical line from the cursor
        (Vsplit cursor) to the bottom of the control and have it move with the cursor
        in the mouse move event either left or right as the Vsplit cursor moves. I
        know I can draw a vertical line on the graphics object for the control but I
        don't want to have to repaint the control whenever the vertical line and
        Vsplit cursor move.

        "Cor Ligthert" wrote:
        [color=blue]
        > Dennis,
        >
        > Can you rewrite your message, probably you are meaning the splitter control
        > and for that the point where that exist in the form. For that you need the
        > panel side where it exist, however I am not sure if that is your question,
        >
        > Cor
        >
        > "Dennis" <Dennis@discuss ions.microsoft. com>[color=green]
        > >I trying to understand how to have a column spliter cursor with a dashed
        > >line
        > > drawn down indicating the current size of the column depending on where
        > > the
        > > splitter cursor is. I want this to be like a crusor so I don't have to
        > > repaint my control as the line moves. Any references or code?
        > > --
        > > Dennis in Houston[/color]
        >
        >
        >[/color]

        Comment

        • Cor Ligthert

          #5
          Re: Cursors - Resize columns

          Dennis,

          When I was you I would ask this question in the small but active newsgroup

          microsoft.publi c.dotnet.framew ork.drawing

          Cor

          "Dennis" <Dennis@discuss ions.microsoft. com>
          [color=blue]
          >I can get the splitter cursor to show when the mouse moves over the column
          > boundary. However, I also want to draw a vertical line from the cursor
          > (Vsplit cursor) to the bottom of the control and have it move with the
          > cursor
          > in the mouse move event either left or right as the Vsplit cursor moves.
          > I
          > know I can draw a vertical line on the graphics object for the control but
          > I
          > don't want to have to repaint the control whenever the vertical line and
          > Vsplit cursor move.
          >
          > "Cor Ligthert" wrote:
          >[color=green]
          >> Dennis,
          >>
          >> Can you rewrite your message, probably you are meaning the splitter
          >> control
          >> and for that the point where that exist in the form. For that you need
          >> the
          >> panel side where it exist, however I am not sure if that is your
          >> question,
          >>
          >> Cor
          >>
          >> "Dennis" <Dennis@discuss ions.microsoft. com>[color=darkred]
          >> >I trying to understand how to have a column spliter cursor with a dashed
          >> >line
          >> > drawn down indicating the current size of the column depending on where
          >> > the
          >> > splitter cursor is. I want this to be like a crusor so I don't have to
          >> > repaint my control as the line moves. Any references or code?
          >> > --
          >> > Dennis in Houston[/color]
          >>
          >>
          >>[/color][/color]


          Comment

          • Dennis

            #6
            Re: Cursors - Resize columns

            Thanks..I'll give that news group a try. I think I've got it figured out
            though using BitBlt routine. Copy the rectangle under which I will draw the
            line (or slim rectangle) to a bitmap then redraw the bitmap on the graphics
            object when the line is moved to recreate the original pixels under the
            original line.

            "Cor Ligthert" wrote:
            [color=blue]
            > Dennis,
            >
            > When I was you I would ask this question in the small but active newsgroup
            >
            > microsoft.publi c.dotnet.framew ork.drawing
            >
            > Cor
            >
            > "Dennis" <Dennis@discuss ions.microsoft. com>
            >[color=green]
            > >I can get the splitter cursor to show when the mouse moves over the column
            > > boundary. However, I also want to draw a vertical line from the cursor
            > > (Vsplit cursor) to the bottom of the control and have it move with the
            > > cursor
            > > in the mouse move event either left or right as the Vsplit cursor moves.
            > > I
            > > know I can draw a vertical line on the graphics object for the control but
            > > I
            > > don't want to have to repaint the control whenever the vertical line and
            > > Vsplit cursor move.
            > >
            > > "Cor Ligthert" wrote:
            > >[color=darkred]
            > >> Dennis,
            > >>
            > >> Can you rewrite your message, probably you are meaning the splitter
            > >> control
            > >> and for that the point where that exist in the form. For that you need
            > >> the
            > >> panel side where it exist, however I am not sure if that is your
            > >> question,
            > >>
            > >> Cor
            > >>
            > >> "Dennis" <Dennis@discuss ions.microsoft. com>
            > >> >I trying to understand how to have a column spliter cursor with a dashed
            > >> >line
            > >> > drawn down indicating the current size of the column depending on where
            > >> > the
            > >> > splitter cursor is. I want this to be like a crusor so I don't have to
            > >> > repaint my control as the line moves. Any references or code?
            > >> > --
            > >> > Dennis in Houston
            > >>
            > >>
            > >>[/color][/color]
            >
            >
            >[/color]

            Comment

            Working...