Is this possible at all?

Just starting out? Need help? Post your questions and find answers here.
MPrimal
User
User
Posts: 15
Joined: Fri Nov 11, 2005 4:54 pm
Location: England

Is this possible at all?

Post 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
Real Power Comes From Sharing It With Those Who Think They Have It All.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Should be possible.
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post 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.
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post 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 ;)
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
MPrimal
User
User
Posts: 15
Joined: Fri Nov 11, 2005 4:54 pm
Location: England

Post 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
Real Power Comes From Sharing It With Those Who Think They Have It All.
Post Reply