Tyr Posted October 20, 2008 Author Share Posted October 20, 2008 hi all,first of all, its not the code thats wrong but i needs some add ons.the point of this edit is that you don't c the black background of a item in your inventory anymore (i already edited whole my item sheet also with that background so it fits perfectly)the problem is that when i run the prog, the pictures where there is no item in are constantly refreshing to the same picture.of course silly u would think its a loop!well thats the point, does nayone has a idea how i could stop this constantly refreshing?oh and here is the code if u needed it:```If Qq = 0 Then frmMirage.picInv(Q).Picture = LoadPicture(App.Path & "\GFX\Icons\standard.gif") Else Call BitBlt(frmMirage.picInv(Q).hDC, 0, 0, PIC_X, PIC_Y, frmMirage.picItems.hDC, (Item(Qq).Pic - Int(Item(Qq).Pic / 6) * 6) * PIC_X, Int(Item(Qq).Pic / 6) * PIC_Y, SRCCOPY) End If```thx by forward!- Tyr Link to comment Share on other sites More sharing options...
Tyr Posted October 27, 2008 Author Share Posted October 27, 2008 *bump* anyone? :) Link to comment Share on other sites More sharing options...
unnown Posted November 12, 2008 Share Posted November 12, 2008 If Qq = 0 Then if frmMirage.picInv(Q).Tag = 0 then frmMirage.picInv(Q).Picture = LoadPicture(App.Path & "\GFX\Icons\standard.gif") frmMirage.picInv(Q).Tag = 1 end if Else Call BitBlt(frmMirage.picInv(Q).hDC, 0, 0, PIC_X, PIC_Y, frmMirage.picItems.hDC, (Item(Qq).Pic - Int(Item(Qq).Pic / 6) * 6) * PIC_X, Int(Item(Qq).Pic / 6) * PIC_Y, SRCCOPY) frmMirage.picInv(Q).Tag = 0 End Ifthis would be enough :-) Link to comment Share on other sites More sharing options...
Tyr Posted November 12, 2008 Author Share Posted November 12, 2008 mhh it didn't work out :(anyhow i was thinking for IF it should work, you will get the image with border on the map if you drop the item… and thats not tat easy to fix. is it? Link to comment Share on other sites More sharing options...
unnown Posted November 13, 2008 Share Posted November 13, 2008 it still refreshes even with my code? that's almost impossible…maybe when it's picking and dropping items the entire time but still :P Link to comment Share on other sites More sharing options...
Tyr Posted November 14, 2008 Author Share Posted November 14, 2008 @unnown:> it still refreshes even with my code? that's almost impossible…maybe when it's picking and dropping items the entire time but still :Pdidn't refresh… just the picture didn't pop up :D Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now