<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating custom hint in REALbasic</title>
	<atom:link href="http://realbasic.tutspolis.com/tutorials/creating-custom-hint-in-realbasic/feed/" rel="self" type="application/rss+xml" />
	<link>http://realbasic.tutspolis.com/tutorials/creating-custom-hint-in-realbasic/</link>
	<description>Tutorials - Tutspolis.com</description>
	<lastBuildDate>Thu, 09 Sep 2010 17:34:11 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Markus Winter</title>
		<link>http://realbasic.tutspolis.com/tutorials/creating-custom-hint-in-realbasic/comment-page-1/#comment-1466</link>
		<dc:creator>Markus Winter</dc:creator>
		<pubDate>Sun, 02 May 2010 13:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=127#comment-1466</guid>
		<description>Solved the MouseWheel by adding a property OldScrollPosition as integer to the listbox and doing this in MouseWheel

Dim row, column As Integer

// the following is necessary as deltaY is not zero when the scrolling
// reaches the top or the botom of the listbox
// by checking if the scrollposition has changed one can deal with it

if me.ScrollPosition  OldScrollPosition then

row = me.RowFromXY(x, y + (me.RowHeight * deltaY) ) //get the row

else

row = me.RowFromXY(x, y) //get the row

end if

[...]

OldScrollPosition = me.ScrollPosition</description>
		<content:encoded><![CDATA[<p>Solved the MouseWheel by adding a property OldScrollPosition as integer to the listbox and doing this in MouseWheel</p>
<p>Dim row, column As Integer</p>
<p>// the following is necessary as deltaY is not zero when the scrolling<br />
// reaches the top or the botom of the listbox<br />
// by checking if the scrollposition has changed one can deal with it</p>
<p>if me.ScrollPosition  OldScrollPosition then</p>
<p>row = me.RowFromXY(x, y + (me.RowHeight * deltaY) ) //get the row</p>
<p>else</p>
<p>row = me.RowFromXY(x, y) //get the row</p>
<p>end if</p>
<p>[...]</p>
<p>OldScrollPosition = me.ScrollPosition</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus Winter</title>
		<link>http://realbasic.tutspolis.com/tutorials/creating-custom-hint-in-realbasic/comment-page-1/#comment-1465</link>
		<dc:creator>Markus Winter</dc:creator>
		<pubDate>Sun, 02 May 2010 11:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=127#comment-1465</guid>
		<description>As RowFromXY already gives you the row why muck around with the system position to calculate the row? You also get some problems when you enter the header or go below the last row. Better is:

  Dim row, column As Integer
  
  row = me.RowFromXY(x, y) //get the row
  &#039;column = me.ColumnFromXY(x, y) //get the column
  
  if row &gt; -1 then
    wHint.Top = System.MouseY + 18 //display the window 18 px in Y from the cursor
    wHint.Left = System.MouseX + 10 //display the window 10 px in X from the cursor
    
    wHint.StaticText1.Text = me.Cell(row, 0) //displaying the software name from cell 0
    
    winHint.StaticText2.Text = me.Cell(row, 1) //displaying the description from cell 1
    
  else
    
    winHint.Close  // close if it isn&#039;t on a row
    
  end if

However this does not work in the MouseWheel event - anyone knows what to do about MouseWheel?</description>
		<content:encoded><![CDATA[<p>As RowFromXY already gives you the row why muck around with the system position to calculate the row? You also get some problems when you enter the header or go below the last row. Better is:</p>
<p>  Dim row, column As Integer</p>
<p>  row = me.RowFromXY(x, y) //get the row<br />
  &#8216;column = me.ColumnFromXY(x, y) //get the column</p>
<p>  if row &gt; -1 then<br />
    wHint.Top = System.MouseY + 18 //display the window 18 px in Y from the cursor<br />
    wHint.Left = System.MouseX + 10 //display the window 10 px in X from the cursor</p>
<p>    wHint.StaticText1.Text = me.Cell(row, 0) //displaying the software name from cell 0</p>
<p>    winHint.StaticText2.Text = me.Cell(row, 1) //displaying the description from cell 1</p>
<p>  else</p>
<p>    winHint.Close  // close if it isn&#8217;t on a row</p>
<p>  end if</p>
<p>However this does not work in the MouseWheel event &#8211; anyone knows what to do about MouseWheel?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjun</title>
		<link>http://realbasic.tutspolis.com/tutorials/creating-custom-hint-in-realbasic/comment-page-1/#comment-176</link>
		<dc:creator>Arjun</dc:creator>
		<pubDate>Fri, 13 Nov 2009 14:43:43 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=127#comment-176</guid>
		<description>Wah... good kickoff!</description>
		<content:encoded><![CDATA[<p>Wah&#8230; good kickoff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://realbasic.tutspolis.com/tutorials/creating-custom-hint-in-realbasic/comment-page-1/#comment-82</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 23 Oct 2009 22:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=127#comment-82</guid>
		<description>Floating window still has the title bar, but &quot;plain box&quot; works - and doesn&#039;t have the flickering that the other window types have.  

The only issue is that it goes behind the listbox window when you click.  Adding a whint.close on mousedown fixes that though.  It adds a little window flicker as things disappear and appear, but a little experimenting could surely fix that.</description>
		<content:encoded><![CDATA[<p>Floating window still has the title bar, but &#8220;plain box&#8221; works &#8211; and doesn&#8217;t have the flickering that the other window types have.  </p>
<p>The only issue is that it goes behind the listbox window when you click.  Adding a whint.close on mousedown fixes that though.  It adds a little window flicker as things disappear and appear, but a little experimenting could surely fix that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub Pawlak</title>
		<link>http://realbasic.tutspolis.com/tutorials/creating-custom-hint-in-realbasic/comment-page-1/#comment-50</link>
		<dc:creator>Jakub Pawlak</dc:creator>
		<pubDate>Fri, 23 Oct 2009 19:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=127#comment-50</guid>
		<description>Thx for info Bill, I changed it to Listbox1 of course :)

I don&#039;t know how this wold look on Windows but when you change the window type to Floating Window and set some properties to true you should get after the compilation a nice Floating Window without controls like bar, close button etc... May by on MS Windows you must experiment with some options :) And one more thx for commenting :D</description>
		<content:encoded><![CDATA[<p>Thx for info Bill, I changed it to Listbox1 of course <img src='http://realbasic.tutspolis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I don&#8217;t know how this wold look on Windows but when you change the window type to Floating Window and set some properties to true you should get after the compilation a nice Floating Window without controls like bar, close button etc&#8230; May by on MS Windows you must experiment with some options <img src='http://realbasic.tutspolis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  And one more thx for commenting <img src='http://realbasic.tutspolis.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://realbasic.tutspolis.com/tutorials/creating-custom-hint-in-realbasic/comment-page-1/#comment-49</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 23 Oct 2009 19:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=127#comment-49</guid>
		<description>Your first bit of code references Listbox2 instead of Listbox1...  :)

This isn&#039;t quite perfect on Windows (even without transparency) - the title bar is still on the window and it just doesn&#039;t look quite right.  But it&#039;s a good start to get something going if I needed to do this!  Thanks...</description>
		<content:encoded><![CDATA[<p>Your first bit of code references Listbox2 instead of Listbox1&#8230;  <img src='http://realbasic.tutspolis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This isn&#8217;t quite perfect on Windows (even without transparency) &#8211; the title bar is still on the window and it just doesn&#8217;t look quite right.  But it&#8217;s a good start to get something going if I needed to do this!  Thanks&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
