Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Arrow tooltips (Read 9020 times)
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Arrow tooltips
Jun 3rd, 2013 at 4:35pm
Print Post  
When creating my flowchart, I'm calling PutShowToolTips( TRUE ) and also, for good measure, calling PutToolTipAutoPop( 5000 ) and PutToolTipDelay( 1000 ). I'm setting tooltips on my arrows with PutToolTip( ), but I see nothing when I hover over them.

Anything I'm missing?
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow tooltips
Reply #1 - Jun 3rd, 2013 at 5:28pm
Print Post  
If there are any nodes behind these arrows, try setting HitTestPriority = ZOrder.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: Arrow tooltips
Reply #2 - Jun 4th, 2013 at 11:26am
Print Post  
Definitely key -- thanks -- but not all I'm lacking apparently. Let me play around with it and see if I can figure it out.

On the subject of arrows, is there any way that one can combine bhCreateArrow with bhPanAndModify? I need to be able to move objects around and scroll the flowchart by dragging it, but I also need to be able to create arrows.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow tooltips
Reply #3 - Jun 4th, 2013 at 11:34am
Print Post  
Try the following:

Code
Select All
Private Sub Form_Load()
    fcx.FireMouseMove = True
End Sub

Private Sub fcx_MouseMove(ByVal docX As Long, ByVal docY As Long)
    Dim b As box
    Set b = fcx.GetBoxAt(docX, docY)
    If b Is Nothing Then
        fcx.Behavior = bhPanAndModify
    Else
        fcx.Behavior = bhFlowChart
    End If
End Sub 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: Arrow tooltips
Reply #4 - Jun 4th, 2013 at 11:37am
Print Post  
Oh, that makes sense! Thanks.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: Arrow tooltips
Reply #5 - Jun 6th, 2013 at 7:39pm
Print Post  
I just cannot get tooltips to show up at all. I tried putting one on a box that was definitely the only thing at a certain position. Nothing. There must be something that needs to be done besides calling PutShowToolTips( TRUE ).

Note: I'm using Wn32 C++.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow tooltips
Reply #6 - Jun 7th, 2013 at 6:49am
Print Post  
It seems a few years ago you managed to show them by enabling ShowToolTips at a later point, try that again:
http://mindfusion.eu/Forum/YaBB.pl?num=1244143856/2#2

ShowToolTips associates a Win32 tooltip control with the flowchart window, but some MFC or ATL initialization code in your application might be overriding it, so try setting ShowToolTips as late as possible.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: Arrow tooltips
Reply #7 - Jun 7th, 2013 at 12:59pm
Print Post  
Sadly, that doesn't seem to be helping with the arrow tooltips. I've tried turning them on right before setting the tooltip text and also calling ShowToolTips( FALSE ) and then ( TRUE ) even on MouseMove. But you're right that something might just be incompatible. I can easily do fake tooltips.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow tooltips
Reply #8 - Jun 7th, 2013 at 5:15pm
Print Post  
Do you mean they work for nodes now but not for arrows? Have you set the HitTestPriority property to ZOrder?
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: Arrow tooltips
Reply #9 - Jun 10th, 2013 at 2:02pm
Print Post  
Yes, I set that property. Currently, they neither work for arrows nor tables.

I made my own tooltip box. However, interestingly, in some very very large flowcharts (I've got one that's 65,000 units wide and has 370 nodes), GetArrowAt( x, y ) doesn't seem to work. Neither does GetTableAt( x, y ). I've made sure that all of my z indices are set correctly.

Ideally, I'd like to get your tooltips working; however, failing that, I'd like to figure out why GetTableAt and GetArrowAt are returning null.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow tooltips
Reply #10 - Jun 10th, 2013 at 6:22pm
Print Post  
I can't see a problem with items at large coordinates, they still show tooltips in my test:

Code
Select All
fcx.SetDocSize 0, 0, 100000, 100000

Dim t1 As table
Dim t2 As table
Dim a As arrow

Set t1 = fcx.CreateTable(99700, 99900, 30, 30)
t1.ToolTip = "test1"

Set t2 = fcx.CreateTable(99900, 99950, 30, 30)
t2.ToolTip = "test2"

Set a = fcx.CreateRelation(t1, 0, t2, 0)
a.ToolTip = "test3"

fcx.ShowToolTips = True
 



Please attach a file where tooltips don't work for you.

Quote:
I made my own tooltip box. However, interestingly, in some very very large flowcharts (I've got one that's 65,000 units wide and has 370 nodes), GetArrowAt( x, y ) doesn't seem to work. Neither does GetTableAt( x, y ).


Check if you aren't storing mouse position in signed short integer variables, they will stop working for values larger than 32K.
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: Arrow tooltips
Reply #11 - Jun 10th, 2013 at 6:49pm
Print Post  
actually i'm using unsigned shorts (maxima of 65535) but that's probably still what's happening -- my width of 65,000 might really be 66,000 and it might be failing on the edge. right. that's embarrassing.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint