TFolderX, button, PNG possible?

TFolderX, button, PNG possible?

Postby Horizon » Tue Aug 26, 2014 7: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: TFolderX, button, PNG possible?

Postby Horizon » Wed Aug 27, 2014 5: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: TFolderX, button, PNG possible?

Postby cnavarro » Wed Aug 27, 2014 7:50 am

Look
viewtopic.php?f=6&t=26283
viewtopic.php?f=6&t=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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: TFolderX, button, PNG possible?

Postby ukoenig » Thu Aug 28, 2014 3:05 pm

Image

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


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

Code: Select all  Expand view

@ 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 :lol:
Last edited by ukoenig on Sat Aug 30, 2014 1:48 pm, edited 1 time in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: TFolderX, button, PNG possible?

Postby Horizon » 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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: TFolderX, button, PNG possible?

Postby ukoenig » Sat Aug 30, 2014 1:48 pm

Image

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 :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 64 guests