well I can break it down simply what I was doing....

1) I filled an array that returned the mouse pos based on inventory panels...
cell_1, cell_2 etc...

2) I read mouse clicks in accordance with each cell and bound them to a few simple checks and functions...
it went sorta like this....

on mouse over the mouse returned a few values...
1. is cell used
2. item description(read from a text file)
ex.
is cell used(is there an item)? then...read cell 1.txt into buffer text.
(every cell had an individual text file associated with it for simplicity...there was also a temp text to read in and out of like a buffer)
once you have the info contained in cell_1 you could move it to cell_2 etc..
part of the data that is stored in the text files contains...
1. current location(cell)
2. bitmap representation used
3. stack count
4. item information(like DAMAGE, GUN/SWORD etc...)
you could go on and on adding to this code I have not submitted it, because
a) it is not complete and
b) in order to test it I had to get it fairly deeply ingrained into my current project and there is a lot of code bleeding between the two....
and finally
c)while it is easy to use, implement and understand...I feel what George will come up with will be better and more robust(besides I just got a new computer and have to sort through all my backed up files to see what is worth salvaging...and I am not sure I will resurrect this...as with all code, I always see better ways to write it the second time.)


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/