Arnaud,

Great...thank you.

Best,


Steve

-----Original Message-----
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Arnaud de 
Montard via 4D_Tech
Sent: Sunday, June 03, 2018 9:28 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Arnaud de Montard <arn...@init5.fr>
Subject: Re: Icons On Tab Control


> Le 3 juin 2018 à 14:35, Stephen J. Orth via 4D_Tech <4d_tech@lists.4d.com> 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:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

**********************************************************************
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:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to