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 5 2173
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" <De****@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
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: 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" <De****@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
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: 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" <De****@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
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" <De****@discuss ions.microsoft. com> 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:
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" <De****@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
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: 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" <De****@discuss ions.microsoft. com>
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:
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" <De****@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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: David Hayes |
last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the
browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12
AM):
>
> >I want to maximize the browser window when I open a new window.
>
> function expand() {
> window.moveTo(0,0);
> window.resizeTo(screen.availWidth, screen.availHeight);
> }
|
by: Chad Miller |
last post by:
Why doesn't the listview columns resize automatically after the first time
the listview is populated.
Or if you run the sub twice.
Private Sub LoadLV
lvProjects.SuspendLayout()
lvProjects.Clear()
lvProjects.View = View.Details
lvProjects.FullRowSelect = True
lvProjects.Columns.Add("Id", -1, HorizontalAlignment.Left)
|
by: Just Me |
last post by:
Does Me.Cursor.Current=Cursors.WaitCursor
set the current property of Me.Cursor to Cursors.WaitCursor
And Me.Cursor.Current=Cursors.Default set the Me.Current
property to something (default) stored in Me.Cursor.
Or is Cursors.Default some process wide cursor shape?
What is a correct statement?
|
by: garyusenet |
last post by:
I'm following a sql/vb tutorial which contains the following code which
is meant to resize the datagrid view so that the columns take the
correct width for the content within them.
It doesn't work the syntax seems to be nonsense according to VS2005 so
can someone suggest what I need to replace it with?
Thanks...
|
by: Mudcat |
last post by:
I was trying to design a widget that I could drag and drop anywhere in
a frame and then resize by pulling at the edges with the mouse. I have
fiddled with several different approaches and came across this behavior
when using the combination of place() and configure(cursor = ...) This
problem doesn't occur if you remove either one of these elements.
It's a very basic design of a button wrapped in a sizer frame and is
supposed to work like...
| |
by: Jerry |
last post by:
Hi
I have a data grid view that I have AllowUserToResizeColumns = True but at
runtime, the user cannot resize columns.
Is there something I am missing? Is there a conflict with the ability to
sort columns?
Thanks
|
by: vbDavidC |
last post by:
I have an unbound grid that is on my form (not created
programmatically). I stretched the size to what I think is wide
enough to accomodate the 6 columns I will be creating. I plan on
making the width wide enough so that you don't have to scroll to the
right. I want to know if there is a property to resize the width
programmatically in case I add or remove columns.
thanks
|
by: theamesy |
last post by:
I have a datagridview on a windows form, AllowUserToResizeColumns is
set to false, it has 3 columns, as you'd expect i cant resize the
columns, but i CAN resize the last column?
I have column headers visible set to true, and i can drag the far end
of the final column back n forwards.
If i set column headers visible to false, then i have the ability to
drag from the area where the rows are!
|
by: =?Utf-8?B?UiBSZXllcw==?= |
last post by:
Hi!
This discussion may help other programmers get a better idea of how to save
uploaded images through a website.
Why? Well currently, I save 3 versions of every uploaded image on my own
little website:
1. Small: DOWNsize of original image to be used as a thumbnail.
2. Medium: DOWNsize of original image to be used as user avatars/icons in
forums or profiles.
|
by: aliviu |
last post by:
I have a DataGridView populated from a DataSource with the code:
Dim dt As New DataTable
dt.Columns.Add("Name")
dt.Columns.Add("Result")
Dim dr As DataRow
For i = 1 To 12
dr = dt.NewRow()
dr(0) = "Name " & i.ToString()
dr(1) = "Result " & i.ToString()
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |