Bitmap from Resource for TFolderEx()

Bitmap from Resource for TFolderEx()

Postby Jimmy » Thu Feb 02, 2023 1:28 am

hi,

i want to add Bitmap to TFolder but all Sample use File "from Disk"

Code: Select all  Expand view
local aBitmaps := { "..\bitmaps\alphabmp\exit.bmp",;
                    ...
                    "..\bitmaps\alphabmp\exit.bmp" }

   @ 3, 3 FOLDEREX oFld PIXEL ADJUST;
          PROMPT  "Opction 1 fghfg abcd", "Option 2", "Option 3", "Option 4", "Option 5", "Option 6")
          BITMAPS aBitmaps;

how to use Resource like "MYFIXDRIVE16" :?:

---

when use oTab:AddItem() how to assign Bitmap to new TAB :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Bitmap from Resource for TFolderEx()

Postby Natter » Thu Feb 02, 2023 7:06 pm

:SetBitmap("aaa(16x32)", n)
:Refresh()
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Bitmap from Resource for TFolderEx()

Postby Jimmy » Fri Feb 03, 2023 4:45 am

hi,
Natter wrote::SetBitmap("aaa(16x32)", n)
:Refresh()

YES, that work fine :D
thx
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests