Re: [Gambas-user] listbox display selected item

2009-07-23 Thread Stephen Bungay
Good work-around Dimitris. Dimitris Anogiatis wrote: > JY, I think I got it working the way you want it... > > try my example with a new project with a listview and a timer. Set the timer > for 10 miliseconds and enable it > > and paste this code in the class > >

Re: [Gambas-user] listbox display selected item [SOLVED]

2009-07-23 Thread Dimitris Anogiatis
You're welcome JY, I'm glad I could help :) Keep up the good work :) Regards Dimitris On Thu, Jul 23, 2009 at 4:25 AM, Jean-Yves F. Barbier <12u...@gmail.com>wrote: > Dimitris Anogiatis a écrit : > > True, I'm still working the kinks on it. It has to do with the code in > the > > timer event...

Re: [Gambas-user] listbox display selected item [SOLVED]

2009-07-23 Thread Jean-Yves F. Barbier
Dimitris Anogiatis a écrit : > True, I'm still working the kinks on it. It has to do with the code in the > timer event... and the way the coordinates are interpreted. > > I'll keep working on it and update the post when I get it perfect (or as > close to perfect as possible) I got it :) PUBLIC

Re: [Gambas-user] listbox display selected item

2009-07-23 Thread Dimitris Anogiatis
True, I'm still working the kinks on it. It has to do with the code in the timer event... and the way the coordinates are interpreted. I'll keep working on it and update the post when I get it perfect (or as close to perfect as possible) Regards, Dimitris On Thu, Jul 23, 2009 at 2:20 AM, Jean-Yv

Re: [Gambas-user] listbox display selected item

2009-07-23 Thread Jean-Yves F. Barbier
Jean-Yves F. Barbier a écrit : Stranger: if I changed the Mode property from Single to None, the not-selection (nevertheless displayed as a dotted line square) is working perfectly. -- -- ___

Re: [Gambas-user] listbox display selected item

2009-07-23 Thread Jean-Yves F. Barbier
Dimitris Anogiatis a écrit : > JY, I think I got it working the way you want it... YES, thanks Dimitri its working almost exactly as I wanted! I said almost because I've got a weird behaviour: my arrow cursor is pointing ~30° up-left and it is not the arrow's tip that trigger the change, it is it

Re: [Gambas-user] listbox display selected item

2009-07-23 Thread Dimitris Anogiatis
JY, I think I got it working the way you want it... try my example with a new project with a listview and a timer. Set the timer for 10 miliseconds and enable it and paste this code in the class -

Re: [Gambas-user] listbox display selected item

2009-07-22 Thread Jean-Yves F. Barbier
Dimitris Anogiatis a écrit : > JY,to select a specific item in a listview you have to provide the item's > key like this > > Listview1["Blah"].Selected = True > > if you want to automatically select the first item that is on the listview > you try this > > IF Listview1.Count > 0 THEN > Listvi

Re: [Gambas-user] listbox display selected item

2009-07-22 Thread Stephen Bungay
It won't work anyway, for reasons which are known only to the implementor, the mousemove event fires only when the mouse button is down AND the mouse is moving within the confines of the listbox (so that would be a MouseMoveWithButtonDown event then). IMHO this is not as useful as simply having

Re: [Gambas-user] listbox display selected item

2009-07-22 Thread Jean-Yves F. Barbier
Stephen Bungay a écrit : >I suppose one could use the MouseMove event, track the mouse position > over the listbox and highlight the item that it is over... I seem to > recall something about this... just it was a long time ago and now Iits > fuzzy as to if it was in VB 6.0 or Gambas... >

Re: [Gambas-user] listbox display selected item

2009-07-22 Thread Dimitris Anogiatis
JY,to select a specific item in a listview you have to provide the item's key like this Listview1["Blah"].Selected = True if you want to automatically select the first item that is on the listview you try this IF Listview1.Count > 0 THEN Listview1.MoveFirst Listview1.Item.Selected = True EN

Re: [Gambas-user] listbox display selected item

2009-07-22 Thread Stephen Bungay
I suppose one could use the MouseMove event, track the mouse position over the listbox and highlight the item that it is over... I seem to recall something about this... just it was a long time ago and now Iits fuzzy as to if it was in VB 6.0 or Gambas... Sorry, not much help but perhaps i

[Gambas-user] listbox display selected item

2009-07-22 Thread Jean-Yves F. Barbier
Hi, is there a way to make an item appear selected when the mouse is hovering it? (just after ListBox activation) -- "...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly)." (By Matt Welsh) --