func_maxgui_setgadgetextra.rst 825 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .. _func_maxgui_setgadgetextra:
  2. ==============
  3. SetGadgetExtra
  4. ==============
  5. SetGadgetExtra -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. SetGadgetExtra( gadget:TGadget, extra:Object )
  10. Stores a pointer to a related object, that can later be retrieved using #GadgetExtra.
  11. This function has many uses - you may want to store a custom type instance to the treeview node that
  12. represents it, or you may want to store a hidden string value that represents a gadget's action.
  13. However, it is important to note that this function will result in a pointer being stored to that object
  14. which will only be released when a new object or #Null is passed to this function, or when the gadget is freed
  15. using #FreeGadget.
  16. Parameters
  17. ==========
  18. Return Values
  19. =============
  20. Nothing.
  21. Examples
  22. ========
  23. See Also
  24. ========