Changing the bitmap in the bookmark

Changing the bitmap in the bookmark

Postby Natter » Sun Jan 29, 2023 8: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 ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Changing the bitmap in the bookmark

Postby karinha » Sun Jan 29, 2023 7:01 pm

Maybe,

Code: Select all  Expand view  RUN

   BITMAPS IIF( lCondition, "Bitmap01", "BitMap02" )
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7835
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Changing the bitmap in the bookmark

Postby Natter » Mon Jan 30, 2023 6: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 :(
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Changing the bitmap in the bookmark

Postby cnavarro » Mon Jan 30, 2023 1: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: Select all  Expand view  RUN

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
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Changing the bitmap in the bookmark

Postby Natter » Mon Jan 30, 2023 1:15 pm

If I run the method: SetBitmap ("modif", oFld:nOption), then the bookmark simply becomes empty
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Changing the bitmap in the bookmark

Postby cnavarro » Mon Jan 30, 2023 1: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
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Changing the bitmap in the bookmark

Postby Natter » Mon Jan 30, 2023 2: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.
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Changing the bitmap in the bookmark

Postby karinha » Mon Jan 30, 2023 3:44 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7835
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 106 guests