FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TFolderX, button, PNG possible?
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
TFolderX, button, PNG possible?
Posted: Tue Aug 26, 2014 07:23 AM

Hi,

Is it possible to use png file in button of TFolderX.

If yes, Can you give me an exampe?

Thanks,

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: TFolderX, button, PNG possible?
Posted: Wed Aug 27, 2014 05:39 AM
Horizon wrote:Hi,

Is it possible to use png file in button of TFolderX.

If yes, Can you give me an exampe?

Thanks,


any comment?
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: TFolderX, button, PNG possible?
Posted: Wed Aug 27, 2014 07:50 AM

Look

viewtopic.php?f=6t=26283

viewtopic.php?f=6t=26166

Sorry, I have not read your post well

&&

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: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: TFolderX, button, PNG possible?
Posted: Thu Aug 28, 2014 03:05 PM


LoadBitmaps( cResName1, cResName2, cBmpFile1, cBmpFile2,;
cResName3, cBmpFile3, cResName4, cBmpFile4 )


Loads Exit1.png as visible from file ( 3. position )
oBtn1:LoadBitmaps( , , ".\bitmaps\Exit1.png" )

Code (fw): Select all Collapse
@ 100, 100 BTNBMP oBtn1 OF oFld:aDialogs[ 1 ] ;
SIZE 100, 50 PIXEL 2007 ;
ROUND NOBORDER ;
PROMPT " &Exit   " ;
ACTION oWnd:End() ;
FONT oFont ;
LEFT
oBtn1:bClrGrad = { | lMouseOver | If( ! lMouseOver,;
    { { 0.50, 16763283, 16777215 }, ;
    { 0.50, 16777215, 16763283 } }, ;
    { { 0.50, 9934847, 16777215 }, ;
    { 0.50, 16777215, 9934847 } } ) }
oBtn1:lTransparent := .t.   
oBtn1:cToolTip =  { "Exit" + CRLF + "Foldertest","EXIT", 1, CLR_BLACK, 14089979 }
oBtn1:SetColor( 0, )  

oBtn1:LoadBitmaps( , , ".\bitmaps\Exit1.png" ) // Loads Exit1.png => visible = 3. position


best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: TFolderX, button, PNG possible?
Posted: Sat Aug 30, 2014 12:44 PM

Hi,

I am also trying to use png file in ribbonbar button. I use FWH 13.12 but it does not show the png file.

I have checked the png file is in path.

Is there any method to show?

Thanks.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: TFolderX, button, PNG possible?
Posted: Sat Aug 30, 2014 01:48 PM


A little bit different to BTNBMP :

@ 25, 10 ADD BUTTON oBtn36 GROUP oGr5 BITMAP ".\Bitmaps\Exit.bmp" ; // normal bitmap
SIZE 70, 50 PROMPT "Exit" MOSTLEFT round ;
action oWnd:End()
oBtn36:LoadBitmaps( ".\bitmaps\Exit1.png" ) // will overwrite Exit.bmp


best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion