Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, February 20, 2007 10:55:42 AM(UTC)

nickr  
nickr

Groups: Registered
Posts: 5


After the user has used the tool TOOL_REGION to select an area, I would like it so that the area remains selected, but the user cannot drag the floater to another area. In other words, I would like the selected region to be displayed (with the crawling ants outline) but not actually be a floater... Any suggestions?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, February 21, 2007 11:22:06 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

What is the exact LEADTOOLS version that you use? And what is the programming interface (COM, .Net, API, etc.)?
Can you please provide me with a code snippet that shows how exactly the user can select a region on the image?

Anyway, if the user selects a regular region on the image, he shouldn't be able to move it unless the region converted to floater.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Thursday, February 22, 2007 7:24:30 AM(UTC)

nickr  
nickr

Groups: Registered
Posts: 5


14.0 of  the C++ class library.

The code used when switching to the region tool is:

    //I have tried setting this value to TRUE and FALSE
m_LBitmapWnd.SetAutoFloaterToRgn(FALSE);
m_LBitmapWnd.SetToolType(TOOL_REGION);
m_LBitmapWnd.SetRegionType(REGION_TYPE_RECT);
m_LBitmapWnd.SetAutoRgnToFloater(FALSE);

After the region is drawn, it becomes a floater and can be moved.
 
#4 Posted : Sunday, February 25, 2007 6:25:27 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

The help topic "Floaters and Regions in the LBitmapWindow Class" in the LEADTOOLS ClassLib C++ help file discusses this as follows:
+-----+
m_BitmapWindow.SetAutoFloaterToRgn(TRUE)
m_BitmapWindow.SetToolType(TOOL_REGION)
m_BitmapWindow.SetRegionType(REGION_TYPE_RECT)
Click and drag mouse to create floater
m_BitmapWindow.CancelRgn() //this removes the floater, but leaves the bitmap region
+-----+

In this scenario, a region is created and the floater is destroyed.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#5 Posted : Monday, February 26, 2007 6:18:53 AM(UTC)

nickr  
nickr

Groups: Registered
Posts: 5


Yes, we can no longer drag the selected area at that point, but the crawling dots outline also disappears. I would like to be able to see that area is selected (like a floter), without it being movable.
 
#6 Posted : Thursday, March 1, 2007 12:53:43 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

The LEADTOOLS C++ Class library Barcode demo shows how to draw a region (by the mouse) with no need to draw a floater.
You can find the Barcode demo installed on the following path on your machine:
...\Program Files\LEAD Technologies, Inc\LEADTOOLS 14.5\Examples\CLASSLIB\MSVC5\Barcode

When you open the demo, you will find the code under the "View"\"Select a Region" menu.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.101 seconds.