I made
oImageList = TImageList():New()
oBmp1 := TBitmap():Define( "open",, oDlg )
oBmp2 := TBitmap():Define( "close",, oDlg)
@ 5, 1 TREEVIEW oTree OF oDlg SIZE 80, 80 COLOR 0, GetSysColor( 15 )
oTree:SetImageList( oImageList )
https://i.postimg.cc/T32NLcbh/tt.png
Why I not see the bmps ...
Search found 31 matches: obmp2
Searched query: obmp2
- Fri Sep 27, 2024 10:37 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: imagelist on tree
- Replies: 15
- Views: 4300
- Mon May 11, 2020 9:56 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Actualizar en un BMP
- Replies: 3
- Views: 525
Actualizar en un BMP
... texto Fijo transparente pero también necesito colocar una variable que deberá actualizarse cada determinado tiempo
por ejemplo:
@ 5, 5 BITMAP oBmp2 FILENAME "c:\conteo\logo.bmp" SIZE 500, 400 OF oWnd NOBORDER
oBmp:bPainted = { || SetBkMode( oBmp:hDC, 1 ),;
SetTextColor( oBmp:hDC, CLR_YELLOW ...
por ejemplo:
@ 5, 5 BITMAP oBmp2 FILENAME "c:\conteo\logo.bmp" SIZE 500, 400 OF oWnd NOBORDER
oBmp:bPainted = { || SetBkMode( oBmp:hDC, 1 ),;
SetTextColor( oBmp:hDC, CLR_YELLOW ...
- Thu Sep 27, 2018 1:30 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: How can I use image on image with all transparent?
- Replies: 3
- Views: 795
How can I use image on image with all transparent?
Dear All,
The oBmp1 can not transparent on oBmp2.
- oBmp1 = "LOGO3" is True Color + Alpha (32bits) in (RES).
- oBmp2 is JPG file.
How can I make oBmp1 as transparent?
DEFINE WINDOW oWnd ICON oIcon ; MENU BuildMenu() @ 0, 0 BITMAP oBmp1 RESOURCE "LOGO3" OF oWnd NOBORDER oBmp:nAlphaLevel := 150 ...
The oBmp1 can not transparent on oBmp2.
- oBmp1 = "LOGO3" is True Color + Alpha (32bits) in (RES).
- oBmp2 is JPG file.
How can I make oBmp1 as transparent?
DEFINE WINDOW oWnd ICON oIcon ; MENU BuildMenu() @ 0, 0 BITMAP oBmp1 RESOURCE "LOGO3" OF oWnd NOBORDER oBmp:nAlphaLevel := 150 ...
- Fri Apr 27, 2018 2:03 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: BOM production
- Replies: 3
- Views: 1232
Re: BOM production
... f.
obl1:odlg:UPDATE()
obl1:odlg:obar:AEVALwhen()
return
FUNCTION eng0504(itemid1,version1,ctable1,ctable2)
local oWnd1, oTree, oBmp1, oBmp2, odb1
// private oImageList
if ctable1==nil
ctable1:="bom1"
end
if ctable2==nil
ctable2:="bom2"
end
DEFINE WINDOW oWnd1 FROM 3, 0 TO 30 ...
obl1:odlg:UPDATE()
obl1:odlg:obar:AEVALwhen()
return
FUNCTION eng0504(itemid1,version1,ctable1,ctable2)
local oWnd1, oTree, oBmp1, oBmp2, odb1
// private oImageList
if ctable1==nil
ctable1:="bom1"
end
if ctable2==nil
ctable2:="bom2"
end
DEFINE WINDOW oWnd1 FROM 3, 0 TO 30 ...
- Tue Mar 24, 2015 9:09 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Problema / Bug TWINDOW y controles
- Replies: 12
- Views: 2621
Problema / Bug TWINDOW y controles
... error:
Error FiveWin/3 Cannot create Dialog Box:
Resource: MIDLG
Pero si pongo al empezar:
DEFINE WINDOW oWnd MENU buildmenu()
@0,0 BITMAP oBmp2 FILE "" NOBORDER SIZE 0,0 OF oWnd
ACTIVATE WINDOW oWnd MAXIMIZED
Funciona perfectamente!!!!!
El problema es si no se ha definido un control en ...
Error FiveWin/3 Cannot create Dialog Box:
Resource: MIDLG
Pero si pongo al empezar:
DEFINE WINDOW oWnd MENU buildmenu()
@0,0 BITMAP oBmp2 FILE "" NOBORDER SIZE 0,0 OF oWnd
ACTIVATE WINDOW oWnd MAXIMIZED
Funciona perfectamente!!!!!
El problema es si no se ha definido un control en ...
- Fri Sep 19, 2014 1:15 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Problema con la MsgBar
- Replies: 6
- Views: 973
Re: Problema con la MsgBar
Joaquín,
Entonces elimina estas líneas pues son innecesarias, y posiblemente de ahi viene el problema:
oBmp1:End()
oBmp2:End()
oBmp3:End()
oBmp4:End()
oBmp5:End()
oBmp6:End()
Entonces elimina estas líneas pues son innecesarias, y posiblemente de ahi viene el problema:
oBmp1:End()
oBmp2:End()
oBmp3:End()
oBmp4:End()
oBmp5:End()
oBmp6:End()
- Fri Sep 19, 2014 10:26 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Problema con la MsgBar
- Replies: 6
- Views: 973
Re: Problema con la MsgBar
... oDlgarbol RESOURCE "ARBOLGRUPOS" FONT px:oDomiFont //oFnt1
REDEFINE BITMAP oBmp1 ID 109 OF oDlgarbol RESOURCE 1809 TRANSPARENT
REDEFINE BITMAP oBmp2 ID 111 OF oDlgarbol RESOURCE 1807 TRANSPARENT
REDEFINE BITMAP oBmp3 ID 112 OF oDlgarbol RESOURCE 1808 TRANSPARENT
REDEFINE BITMAP oBmp4 ID 113 OF ...
REDEFINE BITMAP oBmp1 ID 109 OF oDlgarbol RESOURCE 1809 TRANSPARENT
REDEFINE BITMAP oBmp2 ID 111 OF oDlgarbol RESOURCE 1807 TRANSPARENT
REDEFINE BITMAP oBmp3 ID 112 OF oDlgarbol RESOURCE 1808 TRANSPARENT
REDEFINE BITMAP oBmp4 ID 113 OF ...
- Thu Dec 15, 2011 12:02 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: HIDE y SHOW con bitmaps
- Replies: 3
- Views: 658
Re: HIDE y SHOW con bitmaps
Lorenzo, el código no es autocontenido, sin embargo, parece que no le estás pasando los parámetros a la Function Acciones():
Acciones(oBmp1,oBmp2)
Function Acciones(oBmp1,oBmp2)
...
...
Acciones(oBmp1,oBmp2)
Function Acciones(oBmp1,oBmp2)
...
...
- Tue Dec 29, 2009 10:27 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Juan Planelles Lazaga
- Replies: 9
- Views: 7597
Re: Juan Planelles Lazaga
... TImageList():New()
// oBmp1 = TBitmap():Define( , ".\BITMAPS\wdoc2.bmp" , oWnd )
oBmp1 = TBitmap():Define( , ".\BITMAPS\WDoc.bmp", oWnd )
oBmp2 = TBitmap():Define( , ".\BITMAPS\wFrmmask.bmp", oWnd )
oImageList:Add( oBmp1, oBmp2 ) // Image 0 = OMISION
// 1 ..
oImageList:Add( TBitmap ...
// oBmp1 = TBitmap():Define( , ".\BITMAPS\wdoc2.bmp" , oWnd )
oBmp1 = TBitmap():Define( , ".\BITMAPS\WDoc.bmp", oWnd )
oBmp2 = TBitmap():Define( , ".\BITMAPS\wFrmmask.bmp", oWnd )
oImageList:Add( oBmp1, oBmp2 ) // Image 0 = OMISION
// 1 ..
oImageList:Add( TBitmap ...
- Tue Dec 29, 2009 10:22 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Juan Planelles Lazaga
- Replies: 9
- Views: 7597
Re: Juan Planelles Lazaga
... segun sea llamada a ayudas o a formatear anteced/historias
FUNCTION MAIN( cPar )
local oTree, bMasMeno
local oBar, oItem, oItem1, oItem2, oBmp1, oBmp2, oImageList, oSplit, oComo, oTxt, wOk, bComo, lG32 := .f.
local oItem3, oItem4, aItems := Array( 50 ), bResize, cTLee, oBrush, bLee2, cLee2, nOpc ...
FUNCTION MAIN( cPar )
local oTree, bMasMeno
local oBar, oItem, oItem1, oItem2, oBmp1, oBmp2, oImageList, oSplit, oComo, oTxt, wOk, bComo, lG32 := .f.
local oItem3, oItem4, aItems := Array( 50 ), bResize, cTLee, oBrush, bLee2, cLee2, nOpc ...
- Sat Nov 07, 2009 9:42 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Transparent bitmap on MDI with manifest file
- Replies: 14
- Views: 3414
Re: Transparent bitmap on MDI with manifest file
... lTransparent:=.t.
activate window oWnd;
ON INIT ( FOLDER(), Show_Alpha(hDC) )
return nil
// -------
Function Show_Alpha(hDC)
LOCAL oBmp1, oBmp2, oBmp3
cALPHA1 := c_path + "\IMAGES\Image1.BMP"
cALPHA2 := c_path + "\IMAGES\Image2.BMP"
cALPHA3 := c_path + "\IMAGES\Image3.BMP"
// Left / Top ...
activate window oWnd;
ON INIT ( FOLDER(), Show_Alpha(hDC) )
return nil
// -------
Function Show_Alpha(hDC)
LOCAL oBmp1, oBmp2, oBmp3
cALPHA1 := c_path + "\IMAGES\Image1.BMP"
cALPHA2 := c_path + "\IMAGES\Image2.BMP"
cALPHA3 := c_path + "\IMAGES\Image3.BMP"
// Left / Top ...
- Mon Oct 12, 2009 6:23 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Main Window background
- Replies: 13
- Views: 3754
Re: Main Window background
Uwe,
You have to destroy oBmp2 after using it:
oBmp2:End()
Better if you keep it in a static variable and only load it once.
You have to destroy oBmp2 after using it:
oBmp2:End()
Better if you keep it in a static variable and only load it once.
- Thu Jul 30, 2009 8:16 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Turn off Horizontal Scrole bar on xBrowse
- Replies: 2
- Views: 702
Re: Turn off Horizontal Scrole bar on xBrowse
... F.
oLbx3:lFooter := .T.
oLbx3:bLClicked := { | nRow, nCol | ROW_POS2 := oLbx3:nRowSel, ;
( BR_COLOR2 := NEW_COLORE(), ;
oLbx0:Refresh(), ;
oBmp2:Refresh(), ;
oBR_COLOR2:Refresh() ) }
oLbx3:aCols[ 2 ]:AddResource("Black")
oLbx3:aCols[ 2 ]:AddResource("White")
oLbx3:aCols[ 2 ]:AddResource ...
oLbx3:lFooter := .T.
oLbx3:bLClicked := { | nRow, nCol | ROW_POS2 := oLbx3:nRowSel, ;
( BR_COLOR2 := NEW_COLORE(), ;
oLbx0:Refresh(), ;
oBmp2:Refresh(), ;
oBR_COLOR2:Refresh() ) }
oLbx3:aCols[ 2 ]:AddResource("Black")
oLbx3:aCols[ 2 ]:AddResource("White")
oLbx3:aCols[ 2 ]:AddResource ...
- Thu Oct 23, 2008 9:33 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Possible, to show a buttonbar on fixed screen-position ?
- Replies: 5
- Views: 1213
Possible, to show a buttonbar on fixed screen-position ?
... ON INIT ( MAKEBAR1( oWnd ) ) ;
ON PAINT ( gradpaint1( hDC, oWnd ), ;
ABPaint( hDC, 50, 10, oBmp1:hBitmap, 220 ), ;
ABPaint( hDC, 380, 10, oBmp2:hBitmap, 220 ), ;
ABPaint( hDC, 50, 220, oBmp3:hBitmap, 220 ), ;
ABPaint( hDC, 380, 220, oBmp4:hBitmap, 220 ), ;
ABPaint( hDC, 50, 430, oBmp5 ...
ON PAINT ( gradpaint1( hDC, oWnd ), ;
ABPaint( hDC, 50, 10, oBmp1:hBitmap, 220 ), ;
ABPaint( hDC, 380, 10, oBmp2:hBitmap, 220 ), ;
ABPaint( hDC, 50, 220, oBmp3:hBitmap, 220 ), ;
ABPaint( hDC, 380, 220, oBmp4:hBitmap, 220 ), ;
ABPaint( hDC, 50, 430, oBmp5 ...
- Fri Jul 04, 2008 12:29 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: ANONIO A QUE SE DEBE ESTE ERROR
- Replies: 7
- Views: 2206