Search found 128 matches: loadbitmap

Return to advanced search

xBrowse questions

... SIZE 130 ALIGN 2,1 What would be the equivalent code in txbrowse ? Also, using tsbrowse, I can add a bitmap by first defining it: aBmp := { LoadBitMap( GetResources( ) , "CM1" ), ; LoadBitMap( GetResources( ), "CM2" ), LoadBitMap(GetResources( ), "CM3") } And ...
by TimStone
Thu Jun 11, 2009 4:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse questions
Replies: 10
Views: 2288

Re: How to create a <special> Buttonbar (9.04 / code included)

... RT_RCDATA NONDISCARDABLE "imagem.png" My question is another: How to load it and have a valid handle, maybe something like: hBitmap = LoadBitmap( GetResources(), cResName ) Thanks and best regards, Toninho.toninhofwi Posts: 65 Joined: Tue Oct 18, 2005 10:01 am Best Regards Uwe :lol:
by ukoenig
Sat May 23, 2009 1:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to create a <spec.> Buttonbar 9.04 ( Symbols included )
Replies: 24
Views: 7124

Re: How load png from resource

Hi Uwe,

Borland Resource Workshop can do it:

#define RT_RCDATA 10
nId RT_RCDATA NONDISCARDABLE "imagem.png"

My question is another: How to load it and have a valid handle, maybe something like:

hBitmap = LoadBitmap( GetResources(), cResName )


Thanks and best regards,

Toninho.
by toninhofwi
Tue Mar 31, 2009 11:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How load png from resource
Replies: 4
Views: 897

Re: checkbox en columna de un listbox

... recursos que van incrustados en el EXE o usar un fichero BMP externo. Las formas de cargarlo en una variable son: 1. Desde recursos: local hBmp := LoadBitmap( GetResources(), cBmpResName ) 2. Desde un fichero BMP externo: local hBmp := ReadBitmap( 0, cBmpFileName ) En FWPPC\samples\Tutor10.prg ...
by Antonio Linares
Fri Feb 06, 2009 10:19 pm
 
Forum: FiveWin para Pocket PC
Topic: checkbox en columna de un listbox
Replies: 4
Views: 828

Migrar a XBrowse

... antiguo Wbrowse, el problema concreto esta en los bitmaps, como conoces, antes si la columna traía un numero montaba el bitmap. Ejemplo : hBmp := LoadBitmap( 0, 32760 ) hSel := LoadBitmap( GetResources(), "Send16" ) FIELDS if( ( dbfFamilia )->lSelDoc, hSel, 0 ),; (dbfFamilia)->cCodFam,; ...
by manuelcalerosolis
Fri Jan 16, 2009 12:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Migrar a XBrowse
Replies: 9
Views: 2180

From Tcbrowse to Xbrowse Bitmap Problem

Hi Everyone: How to Transfer Column Bitmap From Tcbrowse to Xbrowse ? local aPics:= { ; LoadBitmap( GetResources() , "WORK_DONE" ) ,; LoadBitmap( GetResources() , "CHK_OFF" ) ,; LoadBitmap( GetResources() , "KS_WRITE" ) ,; LoadBitmap( GetResources() ...
by kokookao2007
Wed Jan 14, 2009 7:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: From Tcbrowse to Xbrowse Bitmap Problem
Replies: 3
Views: 716

Que raro que no te funcione, a mi me va bien, carga otro bitmap y mira prueba a poner en tu programa en esta parte asi: hBmp1 := LoadBitmap(GETRESOURCES(),"PRINTER") hBmp2 := LoadBitmap(GETRESOURCES(),"NUEVOBITMAP") oLbx:bLdblclick:= {||EditoTrabajos(str(recno())) , cambiaimg(@oLbx,hBmp2), ...
by Francisco Horta
Fri Dec 26, 2008 7:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Header con bitmap en TWBorwse
Replies: 5
Views: 1036

Rolando prueba asi: aBmp := LoadBitmap(GetResources(),"PRINTER") @ 0,0 LISTBOX oBrw ; FIELDS ; HEADER "", "FECHA", aBmp, "Folio", "", "Departamento", "Recibio" ; SIZES 22, 80, 32, 80, 22, 300, 300 y para cambiarlo prueba haciendo: aBmp ...
by Francisco Horta
Fri Dec 26, 2008 3:46 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Header con bitmap en TWBorwse
Replies: 5
Views: 1036

How to resize a bitmap ?

Hi ppl, How I do to resize a loaded bitmap? For example: hBmp = LoadBitmap( GetResources(), cBitmap ) hBmp is a 16x16 loaded image and I need resize it to 32x32, without display it, only resize loaded hBmp, something like: hBmp = BitmapResize( hBmp, 32, ...
by toninhofwi
Sat Nov 08, 2008 4:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to resize a bitmap ?
Replies: 8
Views: 1881

Lailton,

TMsgBar uses a bitmap to get painted, so in order to change its colors, you have to create your own MsgBar2007( ::hDC ) function that will return your desired hBmp.

Or simply replace this line:

hBmp = MsgBar2007( ::hDC )

with

hBmp = LoadBitmap( GetResources(), "myBMP" )
by Antonio Linares
Mon Oct 27, 2008 8:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Antonio
Replies: 25
Views: 3339

... error: Macro redefinition of 'FindWindow'. D:\COMPILER\xHB\c_include\win\winuser.h(4907): error: Macro redefinition of 'LoadBitmap'. D:\COMPILER\xHB\c_include\win\winuser.h(4908): error: Macro redefinition of 'LoadCursor'. D:\COMPILER\xHB\c_include\win\winuser.h(4910): ...
by hterce
Wed Sep 03, 2008 10:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Source code for Tree32.lib
Replies: 13
Views: 3517

Browsing generally

... "Blank" in first column instead of "Y" or "N" . How do I do that ? I use v1.95 Very easy: a) load your two bitmaps in a handler variable: hBmp1 := LoadBitmap(GetResources(),"name_of_ the_bitmap") hBmp2 := LoadBitmap(GetResources(),"name_of_the_other_bitmap") b) and in the fields clause use the ...
by Antonio Linares
Wed Aug 27, 2008 7:35 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 97141

Bitmaps

... EXE (using Blinker's RC command). How can I access that bitmap. Is there another function such like ReadBitmap() You bet there's such a function: LoadBitmap(Getresources(),"bitmapname") Yes, it's LoadBitmap(). -------------------------------------------------------------------------------- Is ...
by Antonio Linares
Wed Aug 27, 2008 7:34 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 97141

... are not configurables yet. We plan to provide it soon. Regarding the message bar, you have to provide a function that returns a bitmap handle (use LoadBitmap() or ReadBitmap()). Just replace this function with your own in source\classes\msgbar.prg: hBmp = MsgBar2007( ::hDC ) whatever bitmap you ...
by Antonio Linares
Thu Aug 21, 2008 12:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Color change l2007!
Replies: 4
Views: 969

... For many years I have used the following for a Tick / Empty pair: -------------- // Use OEM system resources <- Black tick LOCAL _hOn := LoadBitMap(0, OBM_CHECK) // Next equates to an empty cell and is treated as if it were bitmap LOCAL _hOff := Chr(160) ------------- //When finished ...
by Colin Wisbey
Wed Aug 13, 2008 8:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Are there checked uncheck box bitmap functions ?
Replies: 8
Views: 1822
PreviousNext

Return to advanced search