> Le 3 juin 2018 à 14:35, Stephen J. Orth via 4D_Tech <[email protected]> a 
> écrit :
> 
> May be a dumb question, but I noticed in the Tab Control documentation
> (V16.3) it says icons can be displayed on each tab, however I don't see any
> documentation on how that is accomplished.
> 
> Would someone be able to point me to documentation on how this is
> implemented?

Hi Steve, 
here's a little (working for me) example:
- create a tab control named "tabControl" (no variable name needed)
- set the type in properties list to "numeric" (important)
- On load code example
   $list_l:=New list  
   APPEND TO LIST($list_l;"Item 1";1)
   APPEND TO LIST($list_l;"Item 2";2)
   APPEND TO LIST($list_l;"Item 3";3)
   $list_p:=OBJECT Get pointer(Object named;"tabControl")
   $list_p->:=Copy list($list_l)
   CLEAR LIST($list_l;*)
   $iconPath_t:=Get 4D folder(Current Resources folder)+"myPict.png"
   READ PICTURE FILE($iconPath_t;$icon_i)
   SET LIST ITEM ICON(*;"tabControl";1;$icon_i)

Doc reference:
<http://doc.4d.com/4Dv16R6/4D/16-R6/SET-LIST-ITEM-ICON.301-3548354.en.html>

-- 
Arnaud 



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to