FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Changing the bitmap in the bookmark
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Changing the bitmap in the bookmark
Posted: Sun Jan 29, 2023 08:46 AM

Hi,

In the TFolderEx bookmarks, I need, depending on the situation, to change the bitmap (from the resource) . How can this be done ?

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Changing the bitmap in the bookmark
Posted: Sun Jan 29, 2023 07:01 PM
Maybe,
Code (fw): Select all Collapse
   BITMAPS IIF( lCondition, "Bitmap01", "BitMap02" )
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Changing the bitmap in the bookmark
Posted: Mon Jan 30, 2023 06:36 AM
Not suitable. I need to interactively change pictures in bookmarks. I tried the methods SetBitmap and SetBrightBMP, but it didn't work out :(
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Changing the bitmap in the bookmark
Posted: Mon Jan 30, 2023 01:09 PM
Natter wrote:Not suitable. I need to interactively change pictures in bookmarks. I tried the methods SetBitmap and SetBrightBMP, but it didn't work out :(
Sorry, this not run ok ?
Code (fw): Select all Collapse
oFld:SetBitMap( "modif", oFld:nOption )   // "modif" -> resource of bitmap
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Changing the bitmap in the bookmark
Posted: Mon Jan 30, 2023 01:15 PM

If I run the method: SetBitmap ("modif", oFld:nOption), then the bookmark simply becomes empty

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Changing the bitmap in the bookmark
Posted: Mon Jan 30, 2023 01:43 PM
Natter wrote:If I run the method: SetBitmap ("modif", oFld:nOption), then the bookmark simply becomes empty
Resource "modif" exist in your file .RC or .RES ?
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Changing the bitmap in the bookmark
Posted: Mon Jan 30, 2023 02:25 PM

I didn't understand the question. First, the resources are registered in .RC, after compilation we get .RES

When installing TFolderEx, everything is fine - bookmarks with text and pictures.

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Changing the bitmap in the bookmark
Posted: Mon Jan 30, 2023 03:44 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion