my problem is, when i replace/update an existing pose, my function that overwrittes the old thumbnail image do its work properly (as you can see in (3), the old image is replaced by the new one),
but my code that loads the thumbnail, when i select an item from the pose list still loads the old thumbnail of the replaced pose.(as you can see in the (1) window)
this problem exist until i restart max.
so how can I get rid of this old thumbnail 'cache'- (i suppose) and make my listbox click even load the new bitmap? (as you can see by the code i used in the end of the thread i even tried freeSceneBitmaps() function, but no good)
my current code :
on expression_list selected nameIndex do ( --make text box have the slected item's name set_textbox_to_sel_name() looking_bitmap=openBitMap (getFilenamePath(getSourceFileName()) + "\\snapgrabs\\"+ edt1.text + ".jpg") if looking_bitmap != undefined then ( --reads the dimentions of the current looking bitmap looking_bitmap_w = looking_bitmap.width looking_bitmap_h = looking_bitmap.height createdialog thumbview looking_bitmap_w looking_bitmap_h style:#(#style_toolwindow) thumbview.thumbnail.width= looking_bitmap_w thumbview.thumbnail.height= looking_bitmap_h freeSceneBitmaps() thumbview.thumbnail.filename = (getFilenamePath(getSourceFileName()) + "\\snapgrabs\\"+ edt1.text + ".jpg") ) else DestroyDialog thumbview )