Print Page | Close Window

Show Selected Item In Inventory

Printed From: Mirage Source
Category: Tutorials
Forum Name: Temporary Archive (Read Only)
Forum Discription: Temporary 3.0.3 archive tutorials, will be deleted when converted.
URL: http://ms.shannaracorp.com/backup-forums/forum_posts.asp?TID=145
Printed Date: 20 December 2006 at 5:52pm
Software Version: Web Wiz Forums 8.01 - http://www.webwizforums.com


Topic: Show Selected Item In Inventory
Posted By: Sync
Subject: Show Selected Item In Inventory
Date Posted: 11 February 2006 at 3:06pm
Difficulty: Easy 1/5

Originaly Posted By: Solosturm

by Lucidar

Make 2 pictureboxes,

make one called picItem you see this one

and one called picItem2 you get the items from this one
set this one's stuff to:
-autoredraw = true
-autoresize = true
-visible = false
-picture = items.bmp (or whatever its called)

now in the click event for lstInv (the inventory listbox)
put this code:

If Player(MyIndex).Inv(lstInv.ListIndex + 1).Num <> 0 Then
Call BitBlt(picItem.hdc, 0, 0, PIC_X, PIC_Y, picItem2.hdc, 0, Item(GetPlayerInvItemNum(MyIndex, lstInv.ListIndex + 1)).Pic * PIC_Y, SRCCOPY)
else
Call BitBlt(picItem.hdc, 0, 0, PIC_X, PIC_Y, picItem2.hdc, 0, 0, SRCCOPY)
End If



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums version 8.01 - http://www.webwizforums.com
Copyright ©2001-2006 Web Wiz Guide - http://www.webwizguide.info