Changing the bitmap in the bookmark

Post Reply
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Changing the bitmap in the bookmark

Post by Natter »

Hi,
In the TFolderEx bookmarks, I need, depending on the situation, to change the bitmap (from the resource) . How can this be done ?
User avatar
karinha
Posts: 7935
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Changing the bitmap in the bookmark

Post by karinha »

Maybe,

Code: Select all | Expand

   BITMAPS IIF( lCondition, "Bitmap01", "BitMap02" )
 
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Re: Changing the bitmap in the bookmark

Post by Natter »

Not suitable. I need to interactively change pictures in bookmarks. I tried the methods SetBitmap and SetBrightBMP, but it didn't work out :(
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Changing the bitmap in the bookmark

Post by cnavarro »

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: Select all | Expand

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
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Re: Changing the bitmap in the bookmark

Post by Natter »

If I run the method: SetBitmap ("modif", oFld:nOption), then the bookmark simply becomes empty
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Changing the bitmap in the bookmark

Post by cnavarro »

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
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Re: Changing the bitmap in the bookmark

Post by Natter »

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.
User avatar
karinha
Posts: 7935
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: Changing the bitmap in the bookmark

Post by karinha »

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Post Reply