Wish: Icons in the module tabs

Kevin

Well-Known Member
Licensed User
Longtime User
As mentioned in the other thread, I'm putting the request here at Erel's suggestion...


While I think icons would be best, I would even settle for different colored tabs. I also would like B4A to remember the order we last left the tabs in.
 

Roger Garstang

Well-Known Member
Licensed User
Longtime User
New icons are great. Can we also get them in the panel on the right? It would be cool if all the icons/tabs over there were enhanced- Subs like mentioned above, Files tab still sets the text of added files as mixed case but saves them as lowercase, Logs Tab has no Disconnect, Libs Tab could allow users to give their Libraries icons, Files tab could also have icons and without the need of creating an imagelist- The OS actually provides one (Code is from PowerBASIC and APIs which may be difficult in .NET, but should work):

B4X:
Local sfi As SHFILEINFO

szTemp= ""   ' This is an ASCIIZ (Null Terminated String)
imagelist= SHGetFileInfo(szTemp, 0, sfi, Len(sfi), %SHGFI_SYSICONINDEX Or %SHGFI_SMALLICON)

SHGetFileInfo(szFileName, 0, sfi, Len(sfi), %SHGFI_SMALLICON Or %SHGFI_SYSICONINDEX)

After the last line above is executed sfi.iIcon contains the index into the System Image list of the File's icon.

Be sure not to destroy the returned System Imagelist and set any flags in your TreeViews/ListViews to not automatically destroy the imagelist (They may call the flag/option "Shared Image List" which would be set to true).
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…