Search found 44 matches: obitmap

Return to advanced search

load png from rpreview

... = FWBitmap2( "EXCEL" ) it run but the image is compress so is not compatible with png STATIC FUNCTION FWBitmap2( cResname ) LOCAL oBitmap DEFINE BITMAP oBitmap RESNAME cResname IF HB_IsObject( oBitmap ) RETURN oBitmap:hBitmap ENDIF RETURN 0
by Silvio.Falconi
Wed Nov 15, 2023 1:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: load png from rpreview
Replies: 6
Views: 333

Re: Mr. Nages please: HARU PDF Bugs/Extensions

... http://byte-one.com/2.png http://byte-one.com/3.png If i before redefine with REDEFINE BITMAP .... and later using oBitmap:hBitmap in PrintImage(..) is all ok!
by byte-one
Thu Mar 05, 2020 4:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mr. Nages please: HARU PDF Bugs/Extensions
Replies: 21
Views: 5530

Re: resize a position with fw_drawimage

//------------- BMP-Brush ----------- FUNCTION DRAW_BMP( hDC, oBitmap, aColors, nColorSel ) LOCAL oBMPBrush, aGrad LOCAL aRect := GETCLIENTRECT( oBitmap:hWnd ) IF nColorSel = 1 aGrad := { { .5, CLR_WHITE, aColors[2] }, { .5, aColors[2], CLR_BLACK } } ELSE ...
by ukoenig
Mon May 20, 2019 9:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: resize a position with fw_drawimage
Replies: 12
Views: 1565

Re: A problem TFOLDEREX tab-images from resource ?

... to DLL to load the images SET RESOURCES TO c_path + "SYSTEM.dll" // select DLL oBtn[1]:SetFile( "EXIT" ) // set button-image oBitmap:SetBMP( "IMAGE1" ) // set Image oBitmap:Refresh() aBitmaps1 := { "BOOKS",; // define folder-tab-images "BOOKS",; ...
by ukoenig
Tue Jul 19, 2016 11:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Painting Tab-images from res. RC and DLL TFOLDEREX (solved)
Replies: 19
Views: 5565

Re: Dynamically create buttons

... 1, CLR_BLACK, 14089979 } oBtn[1]:SetColor( 0, ) //------------- BMP-Brush shows the selected color ----------- FUNCTION BMP_COLOR( oBitmap, hDC, nColor ) LOCAL aRect := GETCLIENTRECT( oBitmap:hWnd ) LOCAL oBrush DEFINE BRUSH oBrush COLOR nColor FillRect( oBitmap:hDC, aRect, oBrush:hBrush ...
by ukoenig
Wed Mar 11, 2015 12:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dynamically create buttons
Replies: 1
Views: 551

Re: Poner 1 imagen encima browse+botones

... que tambien redefiniras como los demás controles, la diferencia es que desde la claúsula ON INIT del diálogo ocultaras ese control: oBitmap:Hide() y cuando quieras mostrarlo solo tienes que hacer oBitmap:Show() y a todos los demás controles (ó solo a los que quieras inhabilitar) ...
by Antonio Linares
Wed Dec 03, 2014 4:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Poner 1 imagen encima browse+botones
Replies: 3
Views: 405

Re: How to change the cursor of a defined image-area ?

Enrico,

Thank You very much.
The Cursors are defined on Top of the App. together with the fonts.
There is only a SWITCH needed ( NO function ) :

oBitmap:bMMoved = { | nX, nY | IIF( nY > aRect[4] - 24, ;
oBitmap:oCursor := oCrsHand, ;
oBitmap:oCursor := oArrow ) }


Best Regards
Uwe :oops:
by ukoenig
Tue Sep 10, 2013 4:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change the cursor of a defined image-area ?
Replies: 4
Views: 1024

Re: How to change the cursor of a defined image-area ?

Antonio, Thank You very much. oBitmap:bMMoved works fine, but I had to define a extra MAIN-cursor, to switch back from HAND The solution is included in my new MESSAGE-PAINTER ........FUNCTION DRAW_TITLE( oDlg, oBitmap, nStyle, hDC, lDirect, ...
by ukoenig
Tue Sep 10, 2013 10:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change the cursor of a defined image-area ?
Replies: 4
Views: 1024

How to change the cursor of a defined image-area ?

... hDC, 0, 0, aRect[3], aRect[4], aGrad, lDirect ) DEFINE CURSOR oCrsHand RESOURCE "Hand" // changes the cursor of the main-image // oBitmap:oCursor := oCrsHand hBitmap2 := ReadBitmap( 0, c_path1 + cBitmap2 ) ABPaint( hDC, aRect[4] - 30, nBTop, hBitmap2, 255 ) oBitmap:bLClicked = ...
by ukoenig
Tue Sep 10, 2013 6:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change the cursor of a defined image-area ?
Replies: 4
Views: 1024

Re: Btnbmp disabled()

Yup, they do not always look good.
If I have a need for disabled bitmaps I create my own and add it to the command line or using oBitmap:LoadBitmaps().
by Gale FORd
Wed Mar 14, 2012 3:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Btnbmp disabled()
Replies: 5
Views: 1395

Re: SetAlpha

Is it possible to setAlpha only for a single control in my case oBitmap?
Thanks in advance
Otto
by Otto
Fri Jul 22, 2011 8:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SetAlpha
Replies: 13
Views: 6273

Re: A transparent MDI-child to show Backgrd. of MDI-frame ?

... }    ENDIFENDIFACTIVATE WINDOW oWndThumb ;ON INIT oBmp:Move( 0, 0, 200, 150, .T. )RETURN( NIL )  FUNCTION DRAW_BRUSH( oBitmap, hDC, nStyle, nVColor, nBColor, nMove, lDirect, cImage ) nStyle : selected 1 = Color, 2 = Gradient, 3 = Brush (tiled), 4 = Brush (adjusted), ...
by ukoenig
Thu Jan 06, 2011 12:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A transparent MDI-child to show Backgrd. of MDI-frame ?
Replies: 9
Views: 4262

Possible, to include Image-Format-Detection => PalBmpDraw ?

... PalBmpDraw >. IF cFileExt( cFileName ) = "BMP" ... ... BMP with reduced Quality using ,, .T. PalBmpDraw( hDC, 0, 0, oImage:hBitmap, , oBitmap:nWidth, oBitmap:nHeight ), , .T. ) !!! only for non BMP ( used as well for the JPG-Image-selection, to change a Bitmap from Resource ) http://www.pflegeplus.com/pictures/quality10.jpg ...
by ukoenig
Tue Nov 16, 2010 6:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Possible, to include Image-Format-Detection => PalBmpDraw ?
Replies: 0
Views: 276

Re: Fitting an Image in its Container

... oBMP10:bPainted := {|hDC| FO_IMAGE( oBMP10, cIMAGE1 }      ....// ------------ IMAGE  ------------FUNCTION FO_IMAGE( oBitmap, cBitmap)Local oImage// c_path := CURDRIVE() + ":\" + GETCURDIR()cFile :=  c_path + "\" + ALLTRIM(cBitmap)IF File( "&cFile" ...
by ukoenig
Thu May 13, 2010 10:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fitting an Image in its Container
Replies: 3
Views: 766

Re: Iconos y Bitmaps

... DEFINE DIALOG oDlg RESOURCE "MIDIALOGO" TITLE cTitulo FONT oFont1 ICON "ICONO1" .......... Para usar un BITMAP REDEFINE BTNBMP oBitmap RESOURCE "BITMAP1","BITMAP2" ID 102 OF oDlg; ACTION oDlg:End() NOBORDER ............. Para usar un CURSOR DEFINE CURSOR ...
by Manuel Aranda
Tue Apr 27, 2010 6:23 pm
 
Forum: FiveWin para CA-Clipper
Topic: Iconos y Bitmaps
Replies: 4
Views: 2073
Next

Return to advanced search