Canvas GetTop and SetTop |
Post Reply |
Author | |
Krog
Groupie Joined: 06 February 2008 Status: Offline Points: 100 |
Post Options
Thanks(0)
Posted: 27 March 2012 at 11:20pm |
Hi!
The functions GetTop, GetLeft, GetRight and GetBottom from the MarkupCanvas object class are implemented as methods (sub) instead of functions. So they don't return the values and then they are useless. And it appears that the methods SetTop, SetLeft... don't work too. At least for me I can't make them to work at run-time. Any tips? |
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Get methods returned void. Fixed for next relese. Don't see problem with Set method. Please write support if try fix. Give sample on how you use Set so I debug.
|
|
Krog
Groupie Joined: 06 February 2008 Status: Offline Points: 100 |
Post Options
Thanks(0)
|
Hi Oleg! I uploaded a program to test it. I can't move the rectangle and the border inside the canvas using the Set functions. Here it is: Thanks in advance! |
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
Krog
Groupie Joined: 06 February 2008 Status: Offline Points: 100 |
Post Options
Thanks(0)
|
Hi All!
Did someone get to make the Set functions to work?
|
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
Krog
Groupie Joined: 06 February 2008 Status: Offline Points: 100 |
Post Options
Thanks(0)
|
I need these features to make possible to the user to move elements inside a canvas using the mouse, like drag'n'drop. Here is an example project:
When run, hold the mouse left button over some colored border element and then move it vertically. When the mouse is over the border we can move (in this case) the entire label control, but if we move the mouse to the right outside the border, then we can't move it anymore. The MouseMove event is not fired in this case. The XAML code used can be checked inside the MarkupLabel Caption property. Having the Set functions working and this event working we can implement this functionality. Hope you can do it. Thanks in advance! |
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
Krog
Groupie Joined: 06 February 2008 Status: Offline Points: 100 |
Post Options
Thanks(0)
|
Another related problem: When we set a Cursor to a parent container (in this case a Border element) we expect that when the mouse is over it the cursor must be the specified one. But what happens is that the cursor only changes when it is over a child element. If the mouse pointer is over an empty space inside the parent element, the cursor does not changes (and it is expected to change since the property was specified to the parent element). Here is an example:
In this case, the cursor only changes when the mouse is over any
TextBlock or image element. If the mouse is above or bellow an image, or at the left of the second TextBlock, it remains the default. |
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
Krog
Groupie Joined: 06 February 2008 Status: Offline Points: 100 |
Post Options
Thanks(0)
|
I tested now with a Canvas and the result is the same. To test it's only to replace the parent Border with a Canvas.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
Krog
Groupie Joined: 06 February 2008 Status: Offline Points: 100 |
Post Options
Thanks(0)
|
Interestingly, if we set a background on the parent element, it does work!
Changing the parent element to this: <Border Background='White' Cursor='Hand'> makes the cursor change to a Hand whenever the mouse is over the parent element. But, this information is only to help you, since I need a transparent background... :/ Thanks in advance for any reply!
|
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
Krog
Groupie Joined: 06 February 2008 Status: Offline Points: 100 |
Post Options
Thanks(0)
|
There is a lot of flickering in this example, when the mouse is over:
And I suspect that the reason is the same as before. The trigger set the TextBlock Visibility to Hidden, and once it is hidden, the mouse is not more over a visible child element. Note also that the property "Image.Visibility" is not changed. I suspect it is not supported, only TextBlocks. Am I right? Can they be supported? |
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
Krog
Groupie Joined: 06 February 2008 Status: Offline Points: 100 |
Post Options
Thanks(0)
|
Oh sorry, now I realized that the parser does not uses the "TextBlock." and "Image." in the setter lines, it uses only the Visibility property, right? Because the entire Border is becoming invisible...
|
|
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2 Language: Visual Basic 6 SP6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |