473,782 Members | 2,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to make a selection tracker?

I need a selection tracker on a graphic

Idea:
left click: rectangle appear en grows when you move the mouse, again
clicking is lock te rectangle

How do you do that?
Greetz
Jeroen
Nov 15 '05 #1
3 2911
Jeroen,

You will have to perform some custom painting in order to do this. When
the mouse is clicked down, you will have to store the point somewhere. As
the mouse moves, you will have to draw a rectangle (using the DrawRectangle
method on the Graphics class most likely). However, before you do this, you
will have to make sure that the previous rectangle that you drew (at a
different size) is erased. Then, when the mouse is let up, you can stop
tracking the movement of the mouse.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni************* *@exisconsultin g.com

"Jeroen Ceuppens" <Je************ *@barco.com> wrote in message
news:eO******** ******@TK2MSFTN GP12.phx.gbl...
I need a selection tracker on a graphic

Idea:
left click: rectangle appear en grows when you move the mouse, again
clicking is lock te rectangle

How do you do that?
Greetz
Jeroen

Nov 15 '05 #2
Take a look at Graphics.DrawFo cusRectangle()

"Jeroen Ceuppens" <Je************ *@barco.com> wrote in message
news:eO******** ******@TK2MSFTN GP12.phx.gbl...
I need a selection tracker on a graphic

Idea:
left click: rectangle appear en grows when you move the mouse, again
clicking is lock te rectangle

How do you do that?
Greetz
Jeroen

Nov 15 '05 #3
Oopps, I meant ControlPaint.Dr awFocusRectangl e()
"Val Savvateev" <vs********@mer idium.com_NO_SP AM> wrote in message
news:Of******** ******@tk2msftn gp13.phx.gbl...
Take a look at Graphics.DrawFo cusRectangle()

"Jeroen Ceuppens" <Je************ *@barco.com> wrote in message
news:eO******** ******@TK2MSFTN GP12.phx.gbl...
I need a selection tracker on a graphic

Idea:
left click: rectangle appear en grows when you move the mouse, again
clicking is lock te rectangle

How do you do that?
Greetz
Jeroen


Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2184
by: Jerrykhan | last post by:
Hello, who know the best Bug tracker system on a Python/Zope server ? BugZilla is Perl oriented (beuh !!) What about others ? Is A python oriented BugZilla like exists ? or need I write it ? On a zope one or behind an apache one. Any ideas ? Thanks ..
1
1337
by: John J. Lee | last post by:
I know about the script here (append a number to the URL and it'll take you to the tracker item regardless of whether it's a bug, a patch, or an RFE): http://www.python.org/sf/ but is there something similar that *searches* the database across all three categories (preferably with AND as the default operator instead of the silly OR that the SF tracker search box uses)?
0
1759
by: Stephen Walther | last post by:
Microsoft has released the final version of the ASP.NET Issue Tracker Starter Kit. The Issue Tracker Starter Kit is a free application produced by Microsoft which illustrates best-practices when building ASP.NET 1.1 applications. Both VB.NET and C# source code is available for download. The Issue Tracker works with both Microsoft SQL Server and Microsoft Access. You can download the Issue Tracker Starter Kit (including all source code)...
158
6427
by: Giovanni Bajo | last post by:
Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the "PSF infrastracture committee", after weeks of evaluation, recommends using a non open source tracker (called JIRA - never heard before of course) for Python itself. Does this smell "Bitkeeper fiasco" to anyone else than me? --
3
6302
by: peter.mosley | last post by:
I've tried googling for the answer to this problem, without any luck. I'm sure the truth must be out there somewhere! I have a multiselect listbox populated with many items (set by the RowSource property). In my code I cause a number of these to be selected - but if the first selected item is not within the currently visible range then there is no change to the display. This gives the impression that nothing has happened. I think...
1
1712
by: zig158 | last post by:
I am in the early stages of creating a Hamachi like peer-to-peer VPN application that has the ease of use of Hamachi with the flexibility of OpenVPN. Hamachi is nice but is to limited and not open source. OpenVPN is overly complicated to set up for the home user. I hope to fix that. It is pointless to reinvent the weal, so I plan on letting OpenVPN do all the heavy lifting. My application “only” has to connect to a rendezvous server of some...
0
1001
by: Brett Cannon | last post by:
On August 23rd Python will be moving off of SourceForge and over to our own issue tracker run on Roundup (http://bugs.python.org/). During the transition there will be a time where the SourceForge tracker is no longer being used but that the new tracker has not been brought up yet. We expect this gap to be for a few hours. But to minimize issues, please try to avoid using either SourceForge or the new issue tracker on Aug 23rd if you...
0
1073
by: Sells, Fred | last post by:
I've been tasked with either implementing Request-Tracker to upgrade our help desk issue tracking system or finding a Python equivalent (both in terms of functionality and wide spread use). Request-Tracker uses Apache and MySQL, which would also be appropriate to Python. I would prefer to go the Python route, especially since Request-Tracker is written in Perl (which I don't know). My initial attempts with Google were not useful due to...
0
1177
by: M.-A. Lemburg | last post by:
On 2008-04-29 22:15, Sells, Fred wrote: You should have a look at Trac (http://trac.edgewall.org/) and roundup (http://roundup.sourceforge.net/). Both are written in Python and provide excellent issue tracking. They differ a bit in design and approach to issue tracking, so you will likely need to investigate a bit further before you decide. Both are easy to extend and adapt to whatever needs you have.
0
10313
Oralloy
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...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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,...
0
8968
agi2029
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...
1
7494
isladogs
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...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.