gft_robert@gsbacd.uchicago.edu (opcode ranger) (04/17/91)
Let's say you have a dialog with an icon item. You want to change the icon to something else. So you do a SetDItem() with the Handle to the new icon (which you've read in thru GetResource()). OK, but what happens to the Handle to the old icon (which you can get prior to the SetDItem() with GetDItem())? That is, should I perform a ReleaseResource() on it after I to the SetDItem with the new icon Handle? If not, will the Dialog Manager do it for me? If so, what do I do with non-resource based dialog items? DisposeHandle()? Any info much appreciated! Robert ============================================================================ = gft_robert@gsbacd.uchicago.edu * generic disclaimer: * "It's more fun to = = * all my opinions are * compute" = = * mine * -Kraftwerk = ============================================================================ --
vrm@babcock.cerc.wvu.wvnet.edu (Vasile R. Montan) (04/18/91)
From article <1991Apr17.081146.1@gsbacd.uchicago.edu>, by gft_robert@gsbacd.uchicago.edu (opcode ranger): > Let's say you have a dialog with an icon item. You want to change the icon to > something else. [Deleted discussion of possible answers] I had this same problem, but I handled it a different way. Rather than using the dialog manager's icon items, I just defined user items in the size of an icon and drew the icons in myself. This circumvented the problems you describe. --Kurisuto un020070@vaxa.wvnet.edu