Page 1 of 1

Is this possible at all?

Posted: Sun Nov 20, 2005 4:13 pm
by MPrimal
I am writing a program and I want to do something but have not idea if it is ever possible in Pure Basic.

I would like to be able to either hover over a selection option in a ListIcon (or Right click on it) and for a small thumbnail picture of the item to be displayed roughly where the mouse is.

I have seen this done in some windows applications before but have no idea if Pure Basic is capabile.

Can someone tell me if this can be done, and how it might be achieved.

Thanks

Andy

Posted: Sun Nov 20, 2005 7:23 pm
by Trond
Should be possible.

Posted: Mon Nov 21, 2005 8:44 am
by Pantcho!!
Shoud'nt be that hard at all.

i can give you these tips.

- create a ListIconGadget
- catch rightclick mouse event
- grab the item name (probebly full file name that is a valid image)
- open a window in the mouse x/y with the height and width of the image
you wish to load and create a ImageGadget in the new window created.
- display the image
- any other click outside of the new open window will close it.

thats it .

good luck.

Posted: Mon Nov 21, 2005 8:46 am
by dagcrack
heh don't forget to free those little windows ;)

also update the position of the window based on the pointer co-ords, apart from that its a good idea, It could easily be implemented. Don't forget to hide this windows from the taskbar, Else it would be kind of odd ;)

Posted: Mon Nov 21, 2005 10:15 am
by MPrimal
Thank you. That is exactly what I wanted to know. I didn't want the code, just clues on what to do.

Pantcho!!: That is perfect. I understand that completly, even though I am fairly new at this. I can go off and have a play to see what I can do.


Thank you both again.

Andy