So if you do this it will work perfectly:
Code: Select all
ButtonGadget(0, ....)
ButtonGadget(1, ....)
StringGadget(#PB_Any, ...)
StringGadget(2, ...) ; <- Notice that this does not clash with the other string gadget, because #PB_Any selected a huge number.
Code: Select all
CreateImage(12, ....)
CreateImage(12, ....) ; Frees the old image #12 and creates a new one
i = CreateImage(#PB_Any, ....)
; CreateImage(i, ...) ; <- RE-USE OF DYNAMIC NUMBER NOT ALLOWED
; Do this:
FreeImage(i)
i = CreateImage(#PB_Any, ....)