topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
BOX change color how?
|
Thank you for your answer.
Here are more infos.
Tanti saluti
Otto
// Class. Mainly used for Automatic Alignment techniques
#include "FiveWin.ch"
#ifdef __XPP__
#define Super ::TControl
#define New _New
#endif
//----------------------------------------------------------------------------//
CLASS TInvoice FROM TControl
CLASSDATA lRegistered AS LOGICAL
METHOD New( nTop, nLeft, nBottom, nRight, oWnd ) CONSTRUCTOR
METHOD IVHeader()
METHOD IVBody()
METHOD IVFooter()
METHOD IVClear()
METHOD IVSay()
METHOD IVBox()
METHOD IVLine()
ENDCLASS
//----------------------------------------------------------------------------//
METHOD New( nTop, nLeft, nBottom, nRight, oWnd ) CLASS TInvoice
DEFAULT nTop := 0, nLeft := 0, nBottom := 100, nRight := 100,;
oWnd := GetWndDefault()
::nTop = nTop
::nLeft = nLeft
::nBottom = nBottom
::nRight = nRight
::oWnd = oWnd
//::nStyle = nOr( WS_CHILD, WS_VISIBLE )
::nStyle = nOr( WS_CHILD, WS_VISIBLE, WS_TABSTOP )
::lDrag = .f.
::Register()
if ! Empty( ::oWnd:hWnd )
::Create()
::oWnd:AddControl( Self )
else
::oWnd:DefControl( Self )
endif
return Self
//----------------------------------------------------------------------------//
METHOD IVHeader(nRowHeader,Font1,Font2,Font3) CLASS TInvoice
::say(nRowHeader , 20, "ArtNr" ,255,16777215,Font3,.T.)
::say(nRowHeader , 100, "Bezeichnung" ,255,16777215,Font1,.T.)
::say(nRowHeader , 500, "Preis" ,255,16777215,Font2,.T.)
nRowHeader += Font2:nHeight
::say( nRowHeader, 500, "inkl. MWST" ,255,16777215,Font3,.T.)
nRowHeader += Font2:nHeight
return nil
//----------------------------------------------------------------------------//
METHOD IVBody() CLASS TInvoice
return nil
//----------------------------------------------------------------------------//
METHOD IVFooter(nRowFooter,Font1,Font2,Font3) CLASS TInvoice
nRowFooter += Font2:nHeight/2
::line (nRowFooter,11,nRowFooter,700 )
nRowFooter += Font2:nHeight/2
::say(nRowFooter , 20, "ArtNr" ,255,16777215,Font3,.T.)
::say(nRowFooter , 100, "Summe" ,255,16777215,Font1,.T.)
::say(nRowFooter , 500, "999,99" ,255,16777215,Font2,.T.)
nRowFooter += Font2:nHeight
::say( nRowFooter, 500, "inkl. MWST" ,255,16777215,Font3,.T.)
nRowFooter += Font2:nHeight
return nil
//----------------------------------------------------------------------------//
METHOD IVClear(nRow,Font1) CLASS TInvoice
local nRowHelp := 0
local I:=0
nRowHelp := nRow
FOR I = 1 TO 15
::say( nRowHelp, 1, space(1000),255,16777215,Font1,.T.)
nRowHelp += Font1:nHeight
NEXT
return nil
//----------------------------------------------------------------------------//
METHOD IVSay(nRow,nCol,cLine,nClrFore,nClrBack,oFont) CLASS TInvoice
::say( nRow,nCol,cLine,nClrFore,nClrBack,oFont,.T.)
return nil
METHOD IVLine(nRow,nCol1,nCol2) CLASS TInvoice
::Line (nRow,nCol1,nRow,nCol2 )
return nil
METHOD IVBox(nRow,nCol1,nCol2,nRow2) CLASS TInvoice
::box (nRow,nCol1,nRow2,nCol2 )
return nil
|
BOX change color how?
|
[quote="Otto":3g3bi4qj]Thank you for your answer.
Here are more infos.[/quote:3g3bi4qj]
Your class inherits from TControl. Then, if I'm not wrong, you are calling TWindow:Box() method that doesn't have nPen parameter, right?
EMG
|
BOX change color how?
|
You are right.
You think I could draw my own box - 4 lines?
Regards
Otto
|
BOX change color how?
|
This is a working sample:
[code:i2b9r21q]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
ACTIVATE DIALOG oDlg;
ON PAINT DRAWBOX( oDlg, hDC, 10, 10, 100, 100, CLR_HRED );
CENTER
RETURN NIL
STATIC FUNCTION DRAWBOX( oDlg, hDC, nTop, nLeft, nBottom, nRight, nColor )
LOCAL hPen := CREATEPEN( PS_SOLID, 1, nColor )
LOCAL hOldPen := SELECTOBJECT( hDC, hPen )
MOVETO( hDC, nLeft, nTop )
LINETO( hDC, nRight, nTop )
LINETO( hDC, nRight, nBottom )
LINETO( hDC, nLeft, nBottom )
LINETO( hDC, nLeft, nTop )
SELECTOBJECT( hDC, hOldPen )
DELETEOBJECT( hPen )
RETURN NIL[/code:i2b9r21q]
EMG
|
BOX change color how?
|
Thank you.
Otto
|
BOX ROUND
|
HOW create the header round as the HEADER OF OUTLOOK 2003 ?
|
BOX with html
|
How create a small box to call a html page ?
|
BOX with html
|
Silvio,
You can use a SAY with no text or "[ ]" (etc.) like in this example:
[code:37xfefmi]
#include "FiveWin.ch"
Function Main()
LOCAL oDLG,oBRU, oSAY, oSAY1, oHand
DEFINE CURSOR oHand HAND
DEFINE BRUSH oBru FILENAME ( "SPLASH.BMP" )
DEFINE DIALOG oDLG ;
TITLE "Intranet Help" ;
SIZE 500, 320 BRUSH oBRU TRANSPARENT
@ 3,2 SAY oSay PROMPT "Click here for PCAS Intranet Manuals" ;
PIXEL of oDLG COLOR "W+/W"
oDlg:aControls[ 1 ]:lTransparent = .t.
@ 150,2 SAY oSay1 PROMPT "Revision Date "+dtoc( Date() )+;
" "+FWVERSION+" "+VERSION() PIXEL of oDLG COLOR "W+/W"
oDlg:aControls[ 2 ]:lTransparent = .t.
oSay:lWantClick = .T.
oSay:bLClicked = { || SHELLEXECUTE( nil,"open", "http://www.yahoo.com",0,0,1) }
oSay:oCursor = oHand
ACTIVATE DIALOG oDLG CENTERED
RETURN(NIL)
[/code:37xfefmi]
|
BOX with html
|
sorry I am explaining bad
I want open a Tpanel when I open the main window of my application and show into a page ( html)
|
BOX with html
|
Silvio,
Please review FWH\samples\webexp.prg
is it what you want ?
|
BROWSE CON ARRAY ALGUIEN ME LO EXPLICA
|
Alguien me podria explicar como usar BROWSE con ARRAY,
yo uso TSBROWSE,, ahi defino con ADD COLUMN TO Obrw ARRAY ELEMENT
algun ejemplo util
GRACIAS
|
BROWSE CON ARRAY ALGUIEN ME LO EXPLICA
|
Algun Ejemplo URGENTE
|
BROWSE CON ARRAY ALGUIEN ME LO EXPLICA
|
Pon una copia de tu pregunta en la sección de FWH, posiblemente puedan orientarte.
Nosotros no sabemos como ayudarte pues TSBrowse no es estandard de FWH y no estamos familiarizados con él.
|
BROWSE DE HERNAN
|
Consegue me disponibilizar uma versao mais nova da classe wBrowse... por favor ?
att
Gilberto
|
BROWSE DE HERNAN
|
[quote="Giba_Fro":3gnbx1wp]Consegue me disponibilizar uma versao mais nova da classe wBrowse... por favor ?
att
Gilberto[/quote:3gnbx1wp]
Abandone isso. Atualize sua versão do Fivewin com o Gilmer tavares: <!-- e --><a href="mailto:gilmer@fivewin.com.br">gilmer@fivewin.com.br</a><!-- e --> e comece a usar o poder da xBrowse() by mister Nages.
Déjalo caer. Actualice su versión de Fivewin con Gilmer tavares: <!-- e --><a href="mailto:gilmer@fivewin.com.br">gilmer@fivewin.com.br</a><!-- e --> y comience a usar el poder de xBrowse() de mister Nages.
Evite usar classes de terceiros. Só recomendo a SSAY.PRG e a DSAY.PRG nada mais.
Evite el uso de clases de terceros. Solo recomiendo SSAY.PRG y DSAY.PRG y nada más.
Regards, saludos.
|
BROWSE DE HERNAN
|
Muchas gracias Carlos
me funcionó muy bien
|
BROWSE DE HERNAN
|
Adquirí en diciembre la versión de FWH 2019
De casualidad alguien tendrá la librería
del browser de Hernán Diego Cesarelli
para la ultima versión de xharbour 1.2.3. Pcode versión 10 bcc7
no la he podido construir
gracias de antemano
|
BROWSE DE HERNAN
|
[url:1751t0w4]https://castillolawyers.zapto.org/owncloud/index.php/s/JUMoQWiHRSfmcuP[/url:1751t0w4]
incluida las lib para harbour y xharbour.
se construye las lib usando xmate.
[url:1751t0w4]https://castillolawyers.zapto.org/owncloud/index.php/s/st8i36O5ESv97cz[/url:1751t0w4]
si deseas hacer las lib recuerda modificar los archivos .env de xmate para que apunten a los compiladores correspondiente.
salu2
carlos vargas
|
BROWSE DESDE FOLDER
|
Necesito crear un folder que algunos de los dialogos tengan listbox tomo el ejemplo testfld y le añado una pestaña mas con un listbox y me genera el siguiente error :
Can´t create dialogbox y despues me dice que no esta Identificado el control
Non defined Id No. 10
aqui esta el codigo fuente
#include "FWCE.ch"
function Main()
local oWnd, cValue, cText := "Hello world!"
DEFINE WINDOW oWnd TITLE "Folders"
@ 0.5, 1 FOLDER oFld PROMPTS "One", "Two" , "Three" ;
DIALOGS "sub1", "sub2" , "sub3" ;
SIZE 225, 245
REDEFINE COMBOBOX cValue ID 100 OF oFld:aDialogs[ 1 ] ;
ITEMS { "Red", "Green", "Blue" }
REDEFINE BUTTON ID 110 OF oFld:aDialogs[ 1 ] ACTION MsgInfo( "click" )
REDEFINE BUTTON ID 120 OF oFld:aDialogs[ 1 ] ACTION MsgInfo( cValue )
REDEFINE BUTTON ID 104 OF oFld:aDialogs[ 2 ] ACTION MsgInfo( "Second dialog" )
REDEFINE GET cText ID 106 OF oFld:aDialogs[ 2 ] COLOR "GR+/G"
REDEFINE LISTBOX oLbx FIELDS First, Last ID 10 OF oFld:aDialogs[ 3 ]
REDEFINE BUTTON ID 130 OF oFld:aDialogs[ 3 ] ACTION MsgInfo( "click" )
REDEFINE BUTTON ID 140 OF oFld:aDialogs[ 3 ] ACTION MsgInfo( "click" )
REDEFINE BUTTON ID 150 OF oFld:aDialogs[ 3 ] ACTION MsgInfo( "click" )
REDEFINE BUTTON ID 160 OF oFld:aDialogs[ 3 ] ACTION MsgInfo( "click" )
REDEFINE BUTTON ID 170 OF oFld:aDialogs[ 3 ] ACTION MsgInfo( "click" )
REDEFINE BUTTON ID 180 OF oFld:aDialogs[ 3 ] ACTION MsgInfo( "click" )
oFld:InitDialogs() // required to initialize the resources dialogs !
ACTIVATE WINDOW oWnd
return nil
y este el añadido al .rc
sub3 DIALOG 18, 18, 129, 128
STYLE WS_CHILD | 4
{
CONTROL "", 10, "TWBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, 3, 5, 122, 64
PUSHBUTTON "&Incl.", 130, 2, 72, 17, 14
PUSHBUTTON "&Borr.", 140, 20, 72, 17, 14
PUSHBUTTON "&Copia", 150, 38, 72, 17, 14
PUSHBUTTON "&Ver ", 160, 56, 72, 17, 14
PUSHBUTTON "&Total", 170, 74, 72, 17, 14
PUSHBUTTON "&Salir", 180, 92, 72, 17, 14
}
si comento el TWBrowse en el RC y el REDEFINE del mismo en el PRG si me muestra la pestaña los botones.
en conclusion deseo mostrar en pestañas TWBrowse que debo hacer.
de antemano muchas Gracias.
|
BROWSE DESDE FOLDER
|
Mario,
Prueba a incluir esta línea en el PRG:
#include "FWCE.ch"
function Main()
local oWnd, cValue, cText := "Hello world!"
DEFINE WINDOW oWnd TITLE "Folders"
[color=red:ubjqtnvw]TWBrowse()[/color:ubjqtnvw]
@ 0.5, 1 FOLDER oFld PROMPTS "One", "Two" , "Three" ;
DIALOGS "sub1", "sub2" , "sub3" ;
SIZE 225, 245
...
|
BROWSE DESDE FOLDER
|
Antonio
Gracias por responder pero Incluyo la Linea TWBrowse()
y sigue generando el mismo error.
|
BROWSE DESDE FOLDER
|
Mario,
Asi funciona bien:
[code:31igu480]
#include "FWCE.ch"
function Main()
local oWnd, cValue, cText := "Hello world!", oLbx
DEFINE WINDOW oWnd TITLE "Folders"
USE ( CurDir() + "\Customer" )
oLbx := TWBrowse():New( 100, 100 )
oLbx:End()
@ 0.5, 1 FOLDER oFld PROMPTS "One", "Two", "Three" ;
DIALOGS "sub1", "sub2", "sub3" ;
SIZE 225, 245
REDEFINE COMBOBOX cValue ID 100 OF oFld:aDialogs[ 1 ] ;
ITEMS { "Red", "Green", "Blue" }
REDEFINE BUTTON ID 110 OF oFld:aDialogs[ 1 ] ACTION MsgInfo( "click" )
REDEFINE BUTTON ID 120 OF oFld:aDialogs[ 1 ] ACTION MsgInfo( cValue )
REDEFINE BUTTON ID 104 OF oFld:aDialogs[ 2 ] ACTION MsgInfo( "Second dialog" )
REDEFINE GET cText ID 106 OF oFld:aDialogs[ 2 ] COLOR "GR+/G"
REDEFINE LISTBOX oLbx FIELDS First, Last ID 10 OF oFld:aDialogs[ 3 ]
oFld:InitDialogs() // required to initialize the resources dialogs !
ACTIVATE WINDOW oWnd
return nil
[/code:31igu480]
[url=http://imageshack.us:31igu480][img:31igu480]http://img149.imageshack.us/img149/6872/browsefx8.png[/img:31igu480][/url:31igu480]
|
BROWSE DESDE FOLDER
|
Muy Agradecido
ahora si funciona Ok.
|
BROWSE DESDE FOLDER
|
bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BROWSE com muitos registros - MYSQL remoto
|
Amigos,
Tenho uma tabela de produtos com muitos registros, e vou acessar este banco MYSQL remotamente.
Alguem teria uma dica de como criar uma consulta com TSBROWSE/TWBROWSE + SQLRDD, de modo que esta consulta não fique lenta?
Muito Obrigado
|
BROWSE com muitos registros - MYSQL remoto
|
Hola,,
Con TWBROWSE y EAGLE1 lo hago asi:
[code=fw:2sayqujl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oDatos := TMSQuery<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oMySQL <span style="color: #000000;">)</span><br />oDatos:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SELECT * FROM productos ORDER BY detalle"</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">If</span> oDatos:<span style="color: #000000;">RecCount</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">LISTBOX</span> oLbx ;<br /> FIELDS oDatos:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span>, ;<br /> oDatos:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span>, ;<br /> oDatos:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</span> ;<br /> HEADERS <span style="color: #ff0000;">"Codigo"</span>, ;<br /> <span style="color: #ff0000;">"detalle"</span>, ;<br /> <span style="color: #ff0000;">"precio"</span> ;<br /> SIZES <span style="color: #000000;">80</span>,<span style="color: #000000;">350</span>,<span style="color: #000000;">100</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> MySetBrowse<span style="color: #000000;">(</span>oLbx, oDatos<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">EndIf</span><br /> <br /><br /><br /> </div>[/code:2sayqujl]
|
BROWSE com muitos registros - MYSQL remoto
|
Willi,
obrigado por ter respondido.
estou usando o SQLRDD, e da maneira como postou não ficaria lento? pois todo o conteudo da tabela seria carregado no browse!
Obrigado
|
BROWSE com muitos registros - MYSQL remoto
|
Prueba a usar XBROWSE + ADO, va muy bién. Pues ADO crea en forma local un array denominado recordset con los datos de nuestra consulta. imagínate si es un array será rápido. Únicamente al inicio de la carga se siente un poco la espera, después todo OK.
Un saludo
Marcelo Jingo
|
BROWSE com muitos registros - MYSQL remoto
|
Marcelo,
Por favor, teria um exemplo de como usar ADO e um exemplo de browse com ADO?
Muito obrigado
|
BROWSE com muitos registros - MYSQL remoto
|
1.- Bajar de la página de Mysql [url:3s5h0cqc]http://www.mysql.com[/url:3s5h0cqc] el conector ODBC la versión que esté disponible. Si tienes problemas te puedo enviar a tu correo.
2. Ejecutar el programa de instalación del conector.
3. Asegurarte que en el servidor no haya restricciones para el puerto del Mysql (supongo ya lo tienes resuelto)
4. Aqui va el código de ejemplo:
[code=fw:3s5h0cqc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//Crear el objeto conexión</span><br /><span style="color: #B900B9;">//--------------------------------------------------</span><br /><span style="color: #00C800;">TRY</span><br /> oCon := TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"adodb.connection"</span><span style="color: #000000;">)</span><br />CATCH oError<br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se pudo crear el objeto conexión !"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>.F.<span style="color: #000000;">)</span><br />END<br /><br />cdrive:=<span style="color: #ff0000;">"MySQL ODBC 5.1 DRIVER"</span><br />cserver:=<span style="color: #ff0000;">"tu IP"</span><br />cDB:=<span style="color: #ff0000;">"nombre_BDatos"</span><br />cUser:=<span style="color: #ff0000;">"nombre_usuario"</span><br />cPasw:=<span style="color: #ff0000;">"clave"</span><br /><span style="color: #B900B9;">//Abrir la conexión usando el objeto connection creado</span><br /><span style="color: #B900B9;">//----------------------------------------------------</span><br />oCon:<span style="color: #000000;">ConnectionString</span> :=<span style="color: #ff0000;">"Driver={"</span>+alltrim<span style="color: #000000;">(</span>cDrive<span style="color: #000000;">)</span>+<span style="color: #ff0000;">"};Server="</span> + ALLTRIM<span style="color: #000000;">(</span>cServer<span style="color: #000000;">)</span> + ;<br /><span style="color: #ff0000;">";Port=3306;Database="</span> + ALLTRIM<span style="color: #000000;">(</span>cDB<span style="color: #000000;">)</span> + ;<br /><span style="color: #ff0000;">";User="</span> + ALLTRIM<span style="color: #000000;">(</span>cUser<span style="color: #000000;">)</span>+;<br /><span style="color: #ff0000;">"; Password="</span> + ALLTRIM<span style="color: #000000;">(</span>cPasW<span style="color: #000000;">)</span> + <span style="color: #ff0000;">";Option=3;"</span><br /><br /><span style="color: #00C800;">TRY</span><br /> oCon:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />CATCH oError<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Falló el intento de conexión con la cuenta "</span>+cuser+<span style="color: #ff0000;">" , REVISE LA CONEXION DE SU RED O LA CONEXION A INTERNET !"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>.F.<span style="color: #000000;">)</span><br />END<br /><br /><span style="color: #B900B9;">//Creamos el objeto recodset</span><br /> <span style="color: #00C800;">TRY</span><br /> ::<span style="color: #000000;">oRsBrw</span>= TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"adodb.recordset"</span><span style="color: #000000;">)</span><br /> CATCH oError<br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se ha podido crear el RECORDSET de la Tabla Seleccionada!"</span>, <span style="color: #000000;">)</span><br /> ShowError<span style="color: #000000;">(</span>oError<span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oRsBrw</span> := <span style="color: #00C800;">NIL</span><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>.F.<span style="color: #000000;">)</span><br /> END<br /> <br /><span style="color: #B900B9;">//Configuramos el recordset</span><br /> ::<span style="color: #000000;">oRsBrw</span>:<span style="color: #000000;">CursorLocation</span> := adUseClient<br /> ::<span style="color: #000000;">oRsBrw</span>:<span style="color: #000000;">LockType</span> := adLockOptimistic<br /> ::<span style="color: #000000;">oRsBrw</span>:<span style="color: #000000;">CursorType</span> := adOpenKeyset<span style="color: #B900B9;">//adOpenDynamic</span><br /> ::<span style="color: #000000;">oRsBrw</span>:<span style="color: #000000;">Source</span> := <span style="color: #ff0000;">"SELECT * FROM MITABLA"</span><br /> ::<span style="color: #000000;">oRsBrw</span>:<span style="color: #000000;">ActiveConnection</span><span style="color: #000000;">(</span>oCon<span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//abrimos el recordset </span><br /> <span style="color: #00C800;">TRY</span><br /> ::<span style="color: #000000;">oRsBrw</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> CATCH oError<br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"No se pudo abrir La Tabla Seleccionada!"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>.F.<span style="color: #000000;">)</span><br /> END/</div>[/code:3s5h0cqc]
Aqui va la creacion del xbrowse de forma basica:
[code=fw:3s5h0cqc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ::<span style="color: #000000;">oBrw</span> := TXBrowse<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #000000;">)</span> <br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nleft</span>:=<span style="color: #000000;">0</span><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ntop</span>:=<span style="color: #000000;">30</span><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lFastEdit</span>:= .t.<br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lEditmode</span>:= .t.<br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLCELL<br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nColDividerStyle</span> = LINESTYLE_DARKGRAY<br /><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">SetAdo</span><span style="color: #000000;">(</span>::<span style="color: #000000;">oRsBrw</span>,.t.,.t.<span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bpastEof</span>=<span style="color: #000000;">{</span>||MsgBeep<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> </div>[/code:3s5h0cqc]
Espero te sirva
Un saludo
Marcelo Jingo
|
BROWSE com muitos registros - MYSQL remoto
|
Muito obrigado Marcelo.
|
BROWSE com muitos registros - MYSQL remoto
|
Marcelo,
1) De onde baixo o ADORDD?
2) Poderia enviar para o meu email:
Bajar de la página de Mysql <!-- m --><a class="postlink" href="http://www.mysql.com">http://www.mysql.com</a><!-- m --> el conector ODBC la versión que esté disponible. Si tienes problemas te puedo enviar a tu correo.
<!-- e --><a href="mailto:santosuj@bol.com.br">santosuj@bol.com.br</a><!-- e -->
obrigado
|
BROWSE com muitos registros - MYSQL remoto
|
Marcelo,
eu consegui fazer os testes e como você disse ele demora um pouco mais para carregar mais depois fica muito bom para navegar no browse.
porém, fiquei com algumas dúvidas:
1)Imagine o usuário fazendo uma venda, ele vai consultar na mesma venda varios produto, em cada consulta o sistema vai carregar a base(objeto RECORDERSET). Isso vai gerar demora! Como você faz?
2)Pensei em carregar no inicio do sistema o objeto RECORDERSET, desse modo não vai gerar a demora citada acima, porque os dados já estão carregados, mais o problema é: Imagine que o usuário adicione um novo produto ou altere algum campo, eu teria que prever isso para recarregar o objeto RECORDERSET.
Desde já te agradeço
|
BROWSE com muitos registros - MYSQL remoto
|
1)Imagine o usuário fazendo uma venda, ele vai consultar na mesma venda varios produto, em cada consulta o sistema vai carregar a base(objeto RECORDERSET). Isso vai gerar demora! Como você faz?
Entiendo que te refieres a que el usuario está facturando. Si no son muchos productos se podría hacer la consulta de toda la tabla y bajarlo al Recordset, y si hay cambios en la tabla sea con insert delete o update se puede usar el método requery() para refrescar el Recordset
Iden para la segunda pregunta.
Ado da la oportunidad de usar varias formas de hacer los cambios a las tablas, bien puedes hacer usando los métodos del recordset o ejecutando una sentencia SQL directamente a la tabla mediante el objeto Comand o mediante el método Execute() del objeto Conexión que es la forma que yo lo hago.
Personalmente cargo todas las tablas(recordsets) que necesito al inicio de la aplicación. Lo importante es cargar sólo lo necesario usando las colunltas SELECT.
Al momento estoy desarrollando un sistema de control de vehículos donde inicialmente cargo 20 tablas que no son muy grandes, hoy por hoy no se nota mucha la lentitud, veremos que pasa luego cuando aumenten los datos.
Lo que nos queda es PROBAR.
Saluditos
Marcelo Jingo
|
BROWSE com muitos registros - MYSQL remoto
|
Marcelo,
você poderia me enviar a sua ADORDD.PRG/LIB? a que consegui é muito antiga!
Marcelo: y si hay cambios en la tabla sea con insert delete o update se puede usar el método requery() para refrescar el Recordset
Você teria exemplos (PRG) de como usar INSERT/DELETE/UPDATE/REQUERY, me ajudaria muito.
Marcelo, uma duvida:
Imagine que um usuario(1) carrega a tabela de produtos ao iniciar, outro usuario(2) entra e carrega toda tabela de produto tambem, se o usuario(1) adicionar um produto, este novo produto nao estara visivel para o usuario(2)?
Obrigado
<!-- e --><a href="mailto:santosuj@bol.com.br">santosuj@bol.com.br</a><!-- e -->
|
BROWSE com muitos registros - MYSQL remoto
|
Estimado Santos
No uso ADORDD, lo hago directamente con las instrucciones propias.
Lo que quieres hacer depende del tipo de cursor que implementes, cada uno tiene sus ventajas y desventajas. Debemos estar claros que se quiere hacer, si se quiere solo consultar o una edición en línea. De acuerdo al tipo será más lento o más velóz.
*******************
Tipo de cursor: adOpenForwardOnly,sólo permite desplazarse hacia adelante en los registros
AdOpenKeyset, Igual que un cursor dinámico, excepto que no se pueden ver los registros que agregan otros usuarios
adOpenDynamic, Las incorporaciones, cambios y eliminaciones que hacen otros usuarios permanecen visibles, y se admiten todo tipo de movimientos entre registros
adOpenStatic, Cursor estático. Una copia estática de un conjunto de registros que se puede usar para buscar datos o generar informes. Las incorporaciones, cambios o eliminaciones que hacen otros usuarios no son visibles.
Tipo de bloqueo: adLockReadOnly, Predeterminado. Sólo lectura- no puede modificar los datos
AdLockPessimistic, Bloqueo pesimista, registro a registro: el provedor hace lo necesario para asegurar la modificación correcta de los registros, generalmente bloqueando registros en el origen de datos durante el preceso de modificación
AdLockOptimistic, Bloqueo optimista, registro a registro: el provedor usa bloqueo optimista, bloqueando registros sólo cuando llama al método Update.
AdLockBatchOptimistic, Actualizaciones optimistas por lotes: requirido para el modo de actualización por lotes como contraposición al modo de actualización inmediata.
****************
Ejemplos de como hago para insertar y eliminar
//----------------------------------------------------------------------------//
//Inserto Un registro vacío para luego rellenar en el los datos
//Esto es conveniente así tenemos el registro con el siguiente numero autoincrementado
//oRs Recordset que maneja la tabla
//tabla nombre de la tabla donde se va a insertar
//is_auto indica si el registro es autoincremental, por defecto es verdadero
//akey_ext array con el nombre y valor del campo con clave externa
METHOD InsIt(oRs,tabla,is_auto,akey_ext) CLASS TVehic
local cQuery,nobra
local i
default is_auto:=.t.
CursorWait()
if is_auto
if akey_ext!=nil
cQuery :="insert into " + tabla + "(" + oRs:Fields(0):Name + ","+ akey_ext[1] +") values(0,"+str(akey_ext[2])+")"
else
cQuery :="insert into " + tabla + "(" + oRs:Fields(0):Name + ") values(0)"
endif
else
if akey_ext!=nil
cQuery :="insert into " + tabla + "(" + oRs:Fields(0):Name + ","+ akey_ext[1] + ") values('" + space(20) + "'," + akey_ext[2]+")"
else
cQuery :="insert into " + tabla + "(" + oRs:Fields(0):Name + ") values('"+space(20)+"')" //ojo si el campo es numerico puede dar error
endif
endif
oCon:Execute(cQuery,"INSERT")
oRs:Requery()
oRs:Movelast()
return .t.
METHOD DelIt(oRs,ctabla) CLASS TVehic
local cQuery,nrec,nlen
local uclave //Registro actual //asumimos que el campo clave es el primero
local cfield
CursorWait()
if !oRs:BOF .and. !oRs:EOF
uclave:=oRs:Fields(0):Value //Registro actual //asumimos que el campo clave es el primero
cfield:=oRs:Fields(0):Name
cQuery :="delete from " + ctabla + " where "+ cfield +" = " +if(valtype(uclave)="N",str(uclave),"'"+alltrim(uclave)+"'")
nrec:=oRs:AbsolutePosition
oCon:Execute(cQuery,"DELETE")
oRs:Requery()
nLen:=oRs:RecordCount()
if !oRs:BOF .and. !oRs:EOF
if nrec > nLen
oRs:Movelast()
else
oRs:Move(nrec-1)
endif
endif
else
msgstop("No hay nada para borrar")
endif
return nil
Para los cambios de la fila el mismo Xbrowse lo hace automaticamente indicando el tipo de edicion a la columna:
for n := nini to Len( ::oBrw:aCols )
oCol:nEditType := EDIT_GET
next
Espero te sirva
Saludos
Marcelo Jingo
|
BROWSE com muitos registros - MYSQL remoto
|
Ok,
Marcelo muito obrigado amigo, agora vou fazer varios testes referente as informações que você me forneceu.
Muito obrigado
|
BROWSE com muitos registros - MYSQL remoto
|
SGS
Visita este blog
<!-- m --><a class="postlink" href="http://sqlcmd.blogspot.com/">http://sqlcmd.blogspot.com/</a><!-- m -->
Ahí encontraras casí todo sobre ADO y MySql
Saludos
|
BROWSE com muitos registros - MYSQL remoto
|
Obrigado Armando!
|
BROWSE con varias paginas
|
Estimados
alguna forma de que el browse se vea en varias pagina con TWEB
resulta que demora en mostrar los resultados
lo estoy haciendo de esta manera
[code=fw:2gyhxsna]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ROWGROUP o<br /> <span style="color: #0000ff;">DEFINE</span> BROWSE oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'ringo'</span>HEIGHT <span style="color: #000000;">800</span> EXPORT SEARCH TOOLS <span style="color: #0000ff;">OF</span> o<br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'ite'</span> HEADER <span style="color: #ff0000;">'item'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'emi'</span> HEADER <span style="color: #ff0000;">'fecha'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'tip'</span> HEADER <span style="color: #ff0000;">'Tipo'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'doc'</span> HEADER <span style="color: #ff0000;">'Doc.'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'rut'</span> HEADER <span style="color: #ff0000;">'Rut'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'nom'</span> HEADER <span style="color: #ff0000;">'Nombre'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'net'</span> HEADER <span style="color: #ff0000;">'Neto'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'iva'</span> HEADER <span style="color: #ff0000;">'Iva'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'tot'</span> HEADER <span style="color: #ff0000;">'Total'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'cre'</span> HEADER <span style="color: #ff0000;">'Crédito'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'con'</span> HEADER <span style="color: #ff0000;">'Contado'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'ven'</span> HEADER <span style="color: #ff0000;">'Vendedor'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'efe'</span> HEADER <span style="color: #ff0000;">'Efectivo'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'tar'</span> HEADER <span style="color: #ff0000;">'Tarjeta'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'che'</span> HEADER <span style="color: #ff0000;">'Cheque'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'tra'</span> HEADER <span style="color: #ff0000;">'Trans.'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'ncr'</span> HEADER <span style="color: #ff0000;">'Nota NCR'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'res'</span> HEADER <span style="color: #ff0000;">'Reserva'</span><br /> ADD oCol <span style="color: #0000ff;">TO</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #ff0000;">'hor'</span> HEADER <span style="color: #ff0000;">'Hora'</span><br /> END o<br /> </div>[/code:2gyhxsna]
no veo la forma que se puede ver los datos en paginas
|
BROWSE con varias paginas
|
Hola,
TWeb no tiene todavia paginación, está pendiente de de implmentación. Si te tarda mucho es que debes enviar muchos datos. Mi consejo es que busques la manera de optimizar una busqueda y acotes la cantidad de registros.
Saludos.
C.
|
BROWSE con varias paginas
|
gracias
lo he solucionado con esta linea en el archivo twebbrowse.prg
[b:1i57a704]data-pagination="{{ IF( oThis:lPagination, 'true', 'false') }}"[/b:1i57a704]
si que cree una variable en la clase y esta funcionando
[code=fw:1i57a704]<div class="fw" id="{CB}" style="font-family: monospace;"> data-row-<span style="color: #0000ff;">style</span>=<span style="color: #ff0000;">"{{ oThis:cRowStyle }}"</span><br /> data-pagination=<span style="color: #ff0000;">"{{ IF( oThis:lPagination, 'true', 'false') }}"</span><br /> data-virtual-<span style="color: #0000ff;">scroll</span>=<span style="color: #ff0000;">"{{ IF( oThis:lVirtualScroll, 'true', 'false') }}"</span><br /> </div>[/code:1i57a704]
|
BROWSE con varias paginas
|
Patricio,
Si esta opcion te sirve perfecto, pero recuerda que lo que haces es activar una paginacion "client-side", que no es lo mismo que la "server-side" que es la que para mi tiene sentido. Si tienes los datos ya en el navegador, para que quieres paginarlos ? <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
|
BROWSE editavel com FIVELINUX?
|
Sr. Antonio é possível browse editavel com FIVELINUX?
obrigado
|
BROWSE editavel com FIVELINUX?
|
SGS,
Aún no está implementado. Lo más sencillo es que abras un diálogo encima del browse y que ahí realices la edición.
|
BROWSE editavel com FIVELINUX?
|
obrigado Sr. Antonio
|
BROWSE() in testtcbr.prg
|
In testtcbr.prg in the fwh\samples folder, it calls the function BROWSE()
The MODIFY, DELETE and PRINT buttons work, and I can't see what functions are called.
When I put BROWSE() in my app, none of the buttons do anything.
Why?
|
BROWSE() in testtcbr.prg
|
Ollie,
FWH function Browse() source code is located at source\function\browse.prg. There you will see that those actions have to be supplied as codeblocks when calling Browse():
function Browse( cTitle, cListName, bNew, bModify, bDelete, bSearch, bList, aColSizes )
|
BROWSE() in testtcbr.prg
|
I know, but in that sample it is simply called as browse().
So my question is - why it is working - without specifying code blocks?
|
BROWSE() in testtcbr.prg
|
Ollie,
Because inside function Browse() some codeblocks are defined by default:
[code:27779bgv]
DEFAULT cTitle := "Browse", cListName := "Fields",;
bNew := { || oLbx:RecAdd(), oLbx:Refresh() },;
bDelete := { || RecDelete( oLbx ) },;
bModify := { || RecModify( oLbx ) },;
bList := { || Report( oLbx ) }
[/code:27779bgv]
|
BRW Error ""Could not allocate memory""
|
I used BRW and the show error message when I duplicate Dialog as follow; 1st Error Message from BRW.----------------------------------"New field instance fail"2nd Error Message from BRW.----------------------------------"Could not allocate memory"The size file of DLL is 910Kb and when save to RC format is 2216Kb.Regards,Dutch
|
BRW Error ""Could not allocate memory""
|
Can you send the offending resource file to my private email?EMG
|
BRW Error ""Could not allocate memory""
|
I've got the problem with .RC file. It has the limitation size of file. When I create a DLL file almost 1 Mb, it will alway show error. I will try to split for 2 RC files but when I use xBuild and add 2 RC. The second file has not used when I refer from second RC file. Can I add 2 RC in xBuilder (xHb.com)? If so, how?Regards,Dutch
|
BRW Error ""Could not allocate memory""
|
I think not. If I remember correctly, it is a limitation of the C tools used with xBuilder. But please ask to xHarbour.com.EMG
|
BRW Error ""Could not allocate memory""
|
Dutch it is very easy, if you have 2 or more rc files example rc1.rc and rc2.rccreate a rc file example myrc.rcin this file add#include rc1.rc#include rc2.rcand you are donei use 7 rc files with my app, no problem with Xharbour or Borland (note i use borland now)HTHRichard
|
BRW Error ""Could not allocate memory""
|
Mr.RichardGood tip.- Ramesh Babu P
|
BRW Error ""Could not allocate memory""
|
Dear Richard,I've used xHb.com + FWH 8.04.I'm not successful with 2 rc files as your recommendation. I try by copy screen32.dll from fwh\dll and save to rc file and add 2 lines as following. It doesn't work.What I did wrong?Regards,Dutch[code:qm2w5tty]
/***********************************************************
ez4fo5.rc
produced by Borland Resource Workshop
************************************************************/
#include 'ez4fo.rc'
#include 'ez4bmp.rc'
DVCLAL RCDATA
{
'23 78 5D 23 B6 A5 F3 19 43 F3 40 02 26 D1 11 C7'
}
[/code:qm2w5tty][quote="Richard Chidiak":qm2w5tty]Dutch
it is very easy,
if you have 2 or more rc files example rc1.rc and rc2.rc
create a rc file example myrc.rc
in this file add
#include rc1.rc
#include rc2.rc
and you are done
i use 7 rc files with my app, no problem with Xharbour or Borland (note i use borland now)
HTH
Richard[/quote:qm2w5tty]
|
BRW Error ""Could not allocate memory""
|
Hi Mr.Dutch [code:srw7yvum]
Yours :
#include 'ez4fo.rc'
#include 'ez4bmp.rc'
Mr.Richard's
#include rc1.rc
#include rc2.rc
[/code:srw7yvum]Please check that you have included your rc files in quotes. Mr.Richardhas included the rc files without quotes. This might be reason for yourerrors.- Ramesh Babu P
|
BRW Error while save after delete DVCLAL in DLL
|
Dear All,
I converted RC to DLL32 and it has RCDATA->DVCLAL. I try to delete and save, because it cannot build if it exist.
But it will show an error while save (BRW error)
WORKSHOP
An error has occurred in your application.
Thanks in advance,
Dutch
|
BRW Error while save after delete DVCLAL in DLL
|
Can't you delete that section manually from the RC ?
|
BRW Error while save after delete DVCLAL in DLL
|
Dear Antonio,
Yes, I can. I used to delete and save in DLL but many I cannot save in DLL. I don't know why.
|
BRW Error while save after delete DVCLAL in DLL
|
Maybe by the time that the resource workshop was created, Borland was not supporting (its) DVCLAL yet.
Anyhow if you can do it manually, then you have a solution <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BRW Error while save after delete DVCLAL in DLL
|
Dear Antonio,
Ok, I've got it. I understood that this are a lot of question posts in here but could you tell me. Which is the best resource editor and fully compatible with BRW (replacement)?
Anyway, Happy New Year and hope all of Fivewiners are healthy and happy in New Year 2014... ; )
|
BRW Error while save after delete DVCLAL in DLL
|
Dutch,
[quote:17hr544g]Which is the best resource editor and fully compatible with BRW (replacement)?[/quote:17hr544g]
you can use the resource editor of Pelles C. I´m using it since years.
|
BRW Error while save after delete DVCLAL in DLL
|
Dear Stefan,
Thanks a lot, it is good choice.
Firstly, It is compatible with BRW but not all. Some file can open by BRW but Pelle C unable to open it.
Secondly, Are All object compatible with FWH? I don't test it all yet.
Anyway, it can replace BRW and free of charge.
|
BRW Error while save after delete DVCLAL in DLL
|
Hi Dutch,
[quote:d2yexxet]Secondly, Are All object compatible with FWH? I don't test it all yet.[/quote:d2yexxet]
I didn´t find any incompatible controls so far, if they are supported by fwh.
|
BRW Error while save after delete DVCLAL in DLL
|
Dear Stefan,
Thanks for your valuable information.
|
BRW gpf when importing an alpha chanel ( uwe )
|
Uwe
I am using the Pixelformer program to import alpha chanel .bmp and .png and exporting them back as alpha chanel .bmp as a reduced size .. 256 x 256 to 40 x 40 .. The conversion goes well and I can use the converted .bmp with the following syntax :
[code=fw:i9pbd8i8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> oButt1 <span style="color: #0000ff;">OF</span> oBar FILE c_path + <span style="color: #ff0000;">"GLOBE1.BMP"</span> ;<br /><span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Search Vendors for Parts Availibility"</span> ;<br /><span style="color: #0000ff;">ACTION</span> _Search<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Search"</span><br /> </div>[/code:i9pbd8i8]
however when I try to import the .bmp into borland resource workshop .. BRW can not seem to read the format. I have used BRW to import other alpha chanel bitmaps without any problems .. any idea why the import fails ??
Rick Lipkin
[url=http://imageshack.us/photo/my-images/705/globe2.jpg/:i9pbd8i8][img:i9pbd8i8]http://img705.imageshack.us/img705/6145/globe2.jpg[/img:i9pbd8i8][/url:i9pbd8i8]
[url=http://imageshack.us/photo/my-images/593/import.jpg/:i9pbd8i8][img:i9pbd8i8]http://img593.imageshack.us/img593/9974/import.jpg[/img:i9pbd8i8][/url:i9pbd8i8]
[url=http://imageshack.us/photo/my-images/854/errorcb.jpg/:i9pbd8i8][img:i9pbd8i8]http://img854.imageshack.us/img854/4743/errorcb.jpg[/img:i9pbd8i8][/url:i9pbd8i8]
|
BRW gpf when importing an alpha chanel ( uwe )
|
Hello Rick,
there seems to be a Problem, using Alphachannel-BMP's to import with Workshop ( unknown Format-message ).
I tested < Adduser.bmp > from Fivewin-samples.
Next I converted the BMP to 24 Bit without Alpachannel ( can be done with Pixelformer => Properties )
After that, I replaced the transparent-area with Color ( used on Listboxes 16 x 16 ).
The Import with Workshop was OK, but You will have no Shadow-effect ( only black border ).
Your Post :
however when I try to import the .bmp into borland resource workshop .. BRW can not seem to read the format.
[color=#0040FF:12bswcbx]I have used BRW to import other alpha chanel bitmaps without any problems [/color:12bswcbx].. any idea why the import fails ??
Can You send me one of these BMP's, to detect the difference ?
[img:12bswcbx]http://www.pflegeplus.com/pictures/workshop1.jpg[/img:12bswcbx]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
BRW gpf when importing an alpha chanel ( uwe )
|
uwe
Give me your e-mail address and I will send you the original 256x256 and the modified bitmap that fails.
Thanks
Rick Lipkin
<!-- e --><a href="mailto:r1.1955@live.com">r1.1955@live.com</a><!-- e -->
|
BRW gpf when importing an alpha chanel ( uwe )
|
Rick,
Email to : <!-- e --><a href="mailto:Esckoenig@aol.com">Esckoenig@aol.com</a><!-- e -->
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
BRW gpf when importing an alpha chanel ( uwe )
|
Rick,
it seems, Pixelformer changes the BMP-structure, saving a resized BMP.
Loading as a external File, there is no Problem only with Workshop-import.
I [color=#FF0000:bqj4nak8]resized Globe.bmp with MS-paint [/color:bqj4nak8]und Workshop accepts the Format without Error-message.
Alpha-chanel is still working ( tested )
[img:bqj4nak8]http://www.pflegeplus.com/pictures/Alphabmp1.jpg[/img:bqj4nak8]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
BRW gpf when importing an alpha chanel ( uwe )
|
Uwe
It seems BRW does not like 32 bpp .. I re-sized and exported the bitmap as 24 bpp and Resource workshop accepted the file .. re-sizing with paint did not work for me .. however the bitmap did load in Workshop but would not display in my application ..
The 24 bpp is not as crisp as using the file reference with 32 bbp but I would rather have my resources compiled into my app and not as a file reference.
Thanks for your help !
Rick Lipkin
[url=http://imageshack.us/photo/my-images/703/pixf.jpg/:3h8w6fzi][img:3h8w6fzi]http://img703.imageshack.us/img703/599/pixf.jpg[/img:3h8w6fzi][/url:3h8w6fzi]
[url=http://imageshack.us/photo/my-images/64/pix1c.jpg/:3h8w6fzi][img:3h8w6fzi]http://img64.imageshack.us/img64/6268/pix1c.jpg[/img:3h8w6fzi][/url:3h8w6fzi]
[url=http://imageshack.us/photo/my-images/9/brw1.jpg/:3h8w6fzi][img:3h8w6fzi]http://img9.imageshack.us/img9/3006/brw1.jpg[/img:3h8w6fzi][/url:3h8w6fzi]
[url=http://imageshack.us/photo/my-images/801/brw2.jpg/:3h8w6fzi][img:3h8w6fzi]http://img801.imageshack.us/img801/9201/brw2.jpg[/img:3h8w6fzi][/url:3h8w6fzi]
|
BRW gpf when importing an alpha chanel ( uwe )
|
Rick,
I tested from Resource ( Workshop ).
Converted from 32 to 24 Bit ( no Alpha-chanel ) with Pixelformer and included in RC-file :
REDEFINE BUTTONBMP oBtn50 ID 30 OF oDlg5 ;
ACTION ( oDlg5:End() ) ;
BITMAP [color=#FF0000:y1o4kfxk]"Alert" [/color:y1o4kfxk]PROMPT " Exit" TEXTRIGHT
oBtn50:cToolTip = { "Close" + CRLF + ;
"the Dialog","Background-Test", 1, CLR_BLACK, 14089979 }
[img:y1o4kfxk]http://www.pflegeplus.com/pictures/res10.jpg[/img:y1o4kfxk]
The BMP :
[code=fw:y1o4kfxk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Alert BITMAP <br /><span style="color: #000000;">{</span><br /> <span style="color: #ff0000;">'42 4D 52 1B 00 00 00 00 00 00 36 00 00 00 28 00'</span><br /> <span style="color: #ff0000;">'00 00 30 00 00 00 30 00 00 00 01 00 18 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 1B 00 00 13 0B 00 00 13 0B 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 05 05 05 28'</span><br /> <span style="color: #ff0000;">'25 25 2E 2B 2B 30 2C 2C 30 2E 2E 32 2E 2E 32 2F'</span><br /> <span style="color: #ff0000;">'2F 34 30 30 34 30 30 35 32 32 36 32 32 37 34 34'</span><br /> <span style="color: #ff0000;">'37 34 34 38 35 35 39 37 37 39 37 37 3A 38 38 3B'</span><br /> <span style="color: #ff0000;">'39 39 3B 3A 3A 3D 3A 3A 3D 3B 3B 3E 3C 3C 3E 3D'</span><br /> <span style="color: #ff0000;">'3D 3F 3E 3E 3F 3E 3E 41 3F 3F 42 40 40 42 41 41'</span><br /> <span style="color: #ff0000;">'43 42 42 44 43 43 45 44 44 46 44 44 46 46 46 47'</span><br /> <span style="color: #ff0000;">'46 46 48 48 48 48 48 48 48 47 47 47 46 46 46 46'</span><br /> <span style="color: #ff0000;">'46 46 44 44 45 44 44 43 42 42 24 24 24 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 05 04 04 82 77 77 AF'</span><br /> <span style="color: #ff0000;">'A3 A4 B2 A6 A6 B3 A8 A8 B4 AA AA B6 AB AB B8 AD'</span><br /> <span style="color: #ff0000;">'AD B9 AF AF BB B0 B0 BC B2 B2 BE B4 B4 C0 B5 B6'</span><br /> <span style="color: #ff0000;">'C1 B7 B8 C3 B9 B9 C4 BB BB C5 BD BD C7 BF BE C8'</span><br /> <span style="color: #ff0000;">'C0 C0 CA C2 C2 CB C3 C3 CC C4 C4 CD C5 C5 CE C6'</span><br /> <span style="color: #ff0000;">'C6 CF C7 C7 D0 C8 C8 D1 C9 C9 D2 CA CA D2 CB CB'</span><br /> <span style="color: #ff0000;">'D3 CC CC D4 CD CD D5 CE CE D6 CF CF D7 D0 D0 D8'</span><br /> <span style="color: #ff0000;">'D1 D1 D8 D2 D2 D7 D1 D1 D5 CE CF D3 CC CC D0 C9'</span><br /> <span style="color: #ff0000;">'C9 CE C7 C7 CB C4 C4 CA C3 C3 DC D8 D8 4B 4A 4A'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 1D 1B 1B AD A1 A1 5E'</span><br /> <span style="color: #ff0000;">'8F BC 30 8C D3 2E 92 D5 2B 98 D7 29 9E DA 26 A4'</span><br /> <span style="color: #ff0000;">'DC 24 AB DE 22 B1 E0 1F B7 E2 1D BB E4 1D BD E4'</span><br /> <span style="color: #ff0000;">'1D BD E3 1D BE E3 1D C1 E3 1C C5 E3 1C C8 E3 1C'</span><br /> <span style="color: #ff0000;">'CC E3 1C CF E3 1C D3 E3 1C D6 E2 1B D9 E2 1B DC'</span><br /> <span style="color: #ff0000;">'E1 1B DF E1 1F E0 E1 2B E0 E0 36 E0 E0 42 DF DF'</span><br /> <span style="color: #ff0000;">'4D DF DF 57 DF DF 62 DE DE 6C DE DE 77 DD DD 80'</span><br /> <span style="color: #ff0000;">'DD DD 88 DC DD 90 DC DC 97 DC DC 9C DB DB 9F DB'</span><br /> <span style="color: #ff0000;">'DB A0 DA DA A0 DA DA 98 CF CF A9 A7 A7 99 96 96'</span><br /> <span style="color: #ff0000;">'01 01 01 00 00 00 00 00 00 0D 0C 0C A1 95 95 83'</span><br /> <span style="color: #ff0000;">'A0 BD 1A 8D E6 16 96 EB 12 9E EE 0F A5 F1 0C AD'</span><br /> <span style="color: #ff0000;">'F4 09 B5 F7 06 BD F9 03 C4 FC 01 CB FF 00 CD FF'</span><br /> <span style="color: #ff0000;">'00 CE FF 00 CF FF 00 D2 FF 00 D7 FF 00 DC FF 00'</span><br /> <span style="color: #ff0000;">'E0 FF 00 E5 FF 00 E9 FF 00 EE FF 00 F2 FF 00 F7'</span><br /> <span style="color: #ff0000;">'FF 00 FB FF 02 FF FF 10 FF FF 1E FF FF 2D FF FF'</span><br /> <span style="color: #ff0000;">'3B FF FF 49 FF FF 56 FF FF 64 FF FF 70 FF FF 7B'</span><br /> <span style="color: #ff0000;">'FF FF 86 FF FF 90 FF FF 98 FF FF 9E FF FF A3 FF'</span><br /> <span style="color: #ff0000;">'FF A4 FF FF A4 FF FF 8E CC CC C1 BA BA 72 6F 6F'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 4E 49 49 B6'</span><br /> <span style="color: #ff0000;">'AD AE 41 8F CD 16 94 EA 13 9C ED 10 A4 F0 0D AB'</span><br /> <span style="color: #ff0000;">'F3 0A B3 F6 07 BB F9 04 C2 FC 01 CA FE 00 CD FF'</span><br /> <span style="color: #ff0000;">'00 CE FF 00 CF FF 00 D1 FF 00 D5 FF 00 DA FF 00'</span><br /> <span style="color: #ff0000;">'DF FF 00 E3 FF 00 E8 FF 00 EC FF 00 F0 FF 00 F5'</span><br /> <span style="color: #ff0000;">'FF 00 F9 FF 00 FD FF 08 FF FF 16 FF FF 24 FF FF'</span><br /> <span style="color: #ff0000;">'32 FF FF 3F FF FF 4B FF FF 58 FF FF 63 FF FF 6E'</span><br /> <span style="color: #ff0000;">'FF FF 78 FF FF 81 FF FF 88 FF FF 8E FF FF 91 FF'</span><br /> <span style="color: #ff0000;">'FF 93 FF FF 90 F5 F6 97 A0 A1 CE C9 C9 0D 0D 0D'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 06 05 05 9E'</span><br /> <span style="color: #ff0000;">'93 93 9C AA B9 1C 91 E3 14 9A ED 11 A2 EF 0E A9'</span><br /> <span style="color: #ff0000;">'F2 0B B1 F5 08 B9 F8 05 C1 FB 02 C8 FE 00 CC FF'</span><br /> <span style="color: #ff0000;">'00 CE FF 00 CF FF 00 D0 FF 00 D4 FF 00 D8 FF 00'</span><br /> <span style="color: #ff0000;">'DD FF 00 E1 FF 00 E5 FE 09 CF E0 18 AE B8 16 BB'</span><br /> <span style="color: #ff0000;">'C2 05 E6 ED 00 FB FF 02 FF FF 0D FF FF 1A FF FF'</span><br /> <span style="color: #ff0000;">'28 FF FF 34 FF FF 40 FF FF 4C FF FF 57 FF FF 61'</span><br /> <span style="color: #ff0000;">'FF FF 6B FF FF 73 FF FF 79 FF FF 7E FF FF 81 FF'</span><br /> <span style="color: #ff0000;">'FF 83 FF FF 7B B9 B9 CD C7 C7 55 53 53 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38'</span><br /> <span style="color: #ff0000;">'35 35 B8 AF AF 58 97 C6 15 98 EC 12 A0 EF 0F A7'</span><br /> <span style="color: #ff0000;">'F2 0C AF F4 09 B6 F7 06 BE FA 03 C6 FD 00 CC FF'</span><br /> <span style="color: #ff0000;">'00 CD FF 00 CE FF 00 D0 FF 00 D2 FF 00 D7 FF 00'</span><br /> <span style="color: #ff0000;">'DB FF 00 DF FF 18 A3 B4 47 50 51 5A 59 59 6E 6D'</span><br /> <span style="color: #ff0000;">'6D 61 7E 7E 0F D4 D8 00 FD FF 04 FF FF 10 FF FF'</span><br /> <span style="color: #ff0000;">'1D FF FF 29 FF FF 35 FF FF 40 FF FF 4A FF FF 54'</span><br /> <span style="color: #ff0000;">'FF FF 5D FF FF 64 FF FF 6A FF FF 6E FF FF 71 FF'</span><br /> <span style="color: #ff0000;">'FF 70 EF EF A7 A6 A6 AF AA AA 07 06 06 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02'</span><br /> <span style="color: #ff0000;">'02 02 87 80 80 B4 B3 B7 20 93 DF 13 9E EE 10 A5'</span><br /> <span style="color: #ff0000;">'F0 0D AD F4 0A B4 F6 07 BB F9 04 C3 FC 01 CA FE'</span><br /> <span style="color: #ff0000;">'00 CD FF 00 CE FF 00 CF FF 00 D1 FF 00 D5 FF 00'</span><br /> <span style="color: #ff0000;">'D9 FF 01 D6 F7 3D 47 47 39 38 38 4E 4E 4E 64 63'</span><br /> <span style="color: #ff0000;">'63 74 73 73 4A 87 89 00 FA FF 00 FD FF 06 FF FF'</span><br /> <span style="color: #ff0000;">'12 FF FF 1D FF FF 28 FF FF 33 FF FF 3C FF FF 45'</span><br /> <span style="color: #ff0000;">'FF FF 4D FF FF 54 FF FF 5A FF FF 5E FF FF 60 FD'</span><br /> <span style="color: #ff0000;">'FD 75 A9 A9 D5 D0 D0 30 2F 2F 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 1F 1D 1D BA B1 B1 73 A0 C1 14 9B EC 11 A2'</span><br /> <span style="color: #ff0000;">'F0 0E AA F2 0B B1 F5 08 B9 F8 05 C0 FB 02 C8 FD'</span><br /> <span style="color: #ff0000;">'00 CC FF 00 CD FF 00 CE FF 00 D0 FF 00 D3 FF 00'</span><br /> <span style="color: #ff0000;">'D7 FF 04 BF DD 3E 3D 3C 31 30 30 43 42 42 54 54'</span><br /> <span style="color: #ff0000;">'54 5E 5E 5E 52 6A 6A 00 F8 FF 00 FA FF 00 FE FF'</span><br /> <span style="color: #ff0000;">'06 FF FF 11 FF FF 1B FF FF 26 FF FF 2F FF FF 37'</span><br /> <span style="color: #ff0000;">'FF FF 3F FF FF 45 FF FF 4A FF FF 4E FF FF 55 DA'</span><br /> <span style="color: #ff0000;">'DA BA B8 B8 8A 86 86 02 02 02 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 70 6B 6B BE BA BD 31 96 D6 12 9F'</span><br /> <span style="color: #ff0000;">'EF 0F A7 F1 0C AE F4 09 B6 F7 07 BD F9 04 C5 FC'</span><br /> <span style="color: #ff0000;">'01 CB FF 00 CD FF 00 CE FF 00 CF FF 00 D1 FF 00'</span><br /> <span style="color: #ff0000;">'D4 FF 01 D2 F7 3C 47 49 2C 2B 2B 34 33 33 40 3F'</span><br /> <span style="color: #ff0000;">'3F 49 49 49 3A 7A 7D 00 F4 FF 00 F7 FF 00 FA FF'</span><br /> <span style="color: #ff0000;">'00 FE FF 05 FF FF 0E FF FF 18 FF FF 21 FF FF 28'</span><br /> <span style="color: #ff0000;">'FF FF 30 FF FF 35 FF FF 3A FF FF 3E FC FC 82 A9'</span><br /> <span style="color: #ff0000;">'A9 D0 CA CA 18 17 17 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 0B 0A 0A BB B3 B3 93 AB BE 15 9B'</span><br /> <span style="color: #ff0000;">'EA 10 A4 F0 0D AB F3 0B B2 F5 08 BA F8 05 C1 FB'</span><br /> <span style="color: #ff0000;">'02 C8 FD 00 CC FF 00 CE FF 00 CF FF 00 D0 FF 00'</span><br /> <span style="color: #ff0000;">'D2 FF 00 D6 FF 15 A4 BC 3B 49 4B 38 37 37 3B 39'</span><br /> <span style="color: #ff0000;">'39 3C 5C 5F 0A CB DA 00 F0 FF 00 F4 FF 00 F7 FF'</span><br /> <span style="color: #ff0000;">'00 FA FF 00 FD FF 02 FF FF 0A FF FF 12 FF FF 19'</span><br /> <span style="color: #ff0000;">'FF FF 20 FF FF 25 FF FF 29 FF FF 48 C7 C7 C9 C4'</span><br /> <span style="color: #ff0000;">'C4 66 63 63 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 51 4E 4E C6 C1 C1 4A 9A'</span><br /> <span style="color: #ff0000;">'CD 11 A1 EF 0F A8 F2 0C AF F5 09 B7 F7 07 BD FA'</span><br /> <span style="color: #ff0000;">'04 C4 FC 01 CB FF 00 CD FF 00 CE FF 00 CF FF 00'</span><br /> <span style="color: #ff0000;">'D0 FF 00 D3 FF 00 D7 FE 06 C7 E7 12 A9 BF 10 B1'</span><br /> <span style="color: #ff0000;">'C5 03 D8 EF 00 EA FF 00 ED FF 00 F0 FF 00 F3 FF'</span><br /> <span style="color: #ff0000;">'00 F6 FF 00 F9 FF 00 FC FF 01 FE FF 04 FF FF 0A'</span><br /> <span style="color: #ff0000;">'FF FF 11 FF FF 15 FF FF 1D F6 F6 9B AC AC B4 AE'</span><br /> <span style="color: #ff0000;">'AE 0B 0B 0B 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 05 05 05 AA A4 A4 AF B6'</span><br /> <span style="color: #ff0000;">'BE 16 9B E7 10 A4 F1 0D AB F3 0B B3 F6 08 BA F8'</span><br /> <span style="color: #ff0000;">'05 C0 FB 03 C8 FD 00 CC FF 00 CD FF 00 CE FF 00'</span><br /> <span style="color: #ff0000;">'CF FF 00 D1 FF 00 D5 FF 00 D9 FF 00 DC FF 00 E0'</span><br /> <span style="color: #ff0000;">'FF 00 E4 FF 00 E7 FF 00 E9 FF 00 ED FF 00 F0 FF'</span><br /> <span style="color: #ff0000;">'00 F2 FF 00 F5 FF 00 F8 FF 00 FA FF 00 FC FF 00'</span><br /> <span style="color: #ff0000;">'FE FF 03 FF FF 06 FF FF 47 B8 B8 D2 CC CC 43 41'</span><br /> <span style="color: #ff0000;">'41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 2F 2D 2D CF C9'</span><br /> <span style="color: #ff0000;">'C9 64 9F C4 11 A1 EF 0F A8 F1 0C AF F4 09 B6 F7'</span><br /> <span style="color: #ff0000;">'07 BC F9 04 C3 FC 02 CA FE 00 CD FF 00 CE FF 00'</span><br /> <span style="color: #ff0000;">'CF FF 00 D0 FF 31 41 43 2C 2A 2A 35 33 33 3F 3E'</span><br /> <span style="color: #ff0000;">'3D 48 47 47 34 78 7F 00 E6 FF 00 E9 FF 00 EC FF'</span><br /> <span style="color: #ff0000;">'00 EE FF 00 F1 FF 00 F3 FF 00 F6 FF 00 F8 FF 00'</span><br /> <span style="color: #ff0000;">'F9 FF 00 FB FF 12 E3 E5 B3 B9 B9 97 93 93 03 03'</span><br /> <span style="color: #ff0000;">'03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 01 01 01 8E 8A'</span><br /> <span style="color: #ff0000;">'8A C0 C1 C6 29 9B DD 10 A4 F0 0E AB F3 0B B2 F5'</span><br /> <span style="color: #ff0000;">'08 B8 F8 06 BF FA 03 C5 FD 01 CB FF 00 CD FF 00'</span><br /> <span style="color: #ff0000;">'CE FF 00 CF FF 29 2A 2A 12 12 12 22 22 22 36 36'</span><br /> <span style="color: #ff0000;">'36 47 47 47 3D 71 77 00 E2 FF 00 E5 FF 00 E8 FF'</span><br /> <span style="color: #ff0000;">'00 EA FF 00 ED FF 00 EF FF 00 F1 FF 00 F3 FF 00'</span><br /> <span style="color: #ff0000;">'F5 FF 01 F5 FD 69 B3 B5 CD C6 C6 24 23 23 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 18 17'</span><br /> <span style="color: #ff0000;">'17 D4 CE CE 82 A8 C2 12 9F EE 0F A7 F1 0D AD F4'</span><br /> <span style="color: #ff0000;">'0A B4 F6 08 BA F8 05 C1 FB 03 C7 FD 01 CC FF 00'</span><br /> <span style="color: #ff0000;">'CD FF 00 CB FB 29 27 27 12 12 12 22 22 22 37 37'</span><br /> <span style="color: #ff0000;">'37 47 47 47 40 6A 70 00 DF FF 00 E1 FF 00 E4 FF'</span><br /> <span style="color: #ff0000;">'00 E6 FF 00 E9 FF 00 EB FF 00 ED FF 00 EF FF 00'</span><br /> <span style="color: #ff0000;">'F0 FF 21 CD D6 C4 C2 C3 7D 79 79 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 72 6F 6F D1 CE D0 4D A2 D5 1E A7 F1 12 AA F2'</span><br /> <span style="color: #ff0000;">'0C AF F4 09 B5 F7 07 BC F9 05 C2 FB 02 C8 FE 00'</span><br /> <span style="color: #ff0000;">'CC FF 01 C4 F4 27 25 25 0F 0F 0F 1D 1D 1D 2E 2E'</span><br /> <span style="color: #ff0000;">'2E 3D 3D 3D 40 61 67 00 DB FF 00 DD FF 00 E0 FF'</span><br /> <span style="color: #ff0000;">'00 E2 FF 00 E4 FF 00 E6 FF 00 E8 FF 00 EA FF 02'</span><br /> <span style="color: #ff0000;">'E8 FB 91 B1 B4 BA B3 B3 11 10 10 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 0A 09 09 C5 C2 C2 B3 BD C7 56 B7 F0 4E BB F4'</span><br /> <span style="color: #ff0000;">'41 BC F5 31 BD F7 22 BF F8 15 C1 FA 0C C5 FC 06'</span><br /> <span style="color: #ff0000;">'CA FE 05 BD EB 24 23 23 0A 0A 0A 14 14 14 20 20'</span><br /> <span style="color: #ff0000;">'20 2A 2A 2A 39 53 58 00 D7 FF 00 D9 FF 00 DC FF'</span><br /> <span style="color: #ff0000;">'00 DE FF 02 E0 FF 04 E3 FF 08 E5 FF 0E E7 FF 43'</span><br /> <span style="color: #ff0000;">'BC C9 D0 C9 C9 52 4F 4F 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 4B 4A 4A E0 DB DB 7B AF D0 55 BA F3'</span><br /> <span style="color: #ff0000;">'54 BF F5 53 C4 F6 53 C9 F8 52 CD FA 4E D1 FB 47'</span><br /> <span style="color: #ff0000;">'D3 FD 3C BF E1 22 21 21 05 05 05 0B 0B 0B 13 13'</span><br /> <span style="color: #ff0000;">'13 19 19 19 36 45 48 33 DC FF 36 DE FF 3A E1 FF'</span><br /> <span style="color: #ff0000;">'41 E3 FF 47 E6 FF 4D E8 FF 55 EA FF 61 E1 F2 B8'</span><br /> <span style="color: #ff0000;">'C0 C2 A4 9D 9D 07 07 07 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 02 02 02 B3 B2 B2 C6 C9 CE 5E B3 E7'</span><br /> <span style="color: #ff0000;">'54 BB F3 53 C0 F5 52 C4 F7 52 C8 F8 51 CD FA 50'</span><br /> <span style="color: #ff0000;">'D1 FB 48 B8 D9 26 26 25 04 03 03 03 03 03 08 08'</span><br /> <span style="color: #ff0000;">'08 0B 0B 0B 2F 35 36 54 E0 FF 55 E0 FF 56 E2 FF'</span><br /> <span style="color: #ff0000;">'57 E4 FF 58 E5 FF 59 E7 FF 5A E7 FF 8A BD C6 CC'</span><br /> <span style="color: #ff0000;">'C5 C5 30 2E 2E 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 27 27 27 E7 E4 E4 91 B3 CB'</span><br /> <span style="color: #ff0000;">'54 B6 F1 53 BB F3 52 C0 F5 51 C4 F7 51 C9 F8 50'</span><br /> <span style="color: #ff0000;">'CD FA 46 AE D0 2E 2D 2C 0D 0D 0C 06 06 05 03 03'</span><br /> <span style="color: #ff0000;">'03 03 03 03 27 29 29 52 DF FF 53 DF FF 54 DF FF'</span><br /> <span style="color: #ff0000;">'55 E1 FF 56 E2 FF 57 E3 FF 64 D0 E5 C4 C3 C4 8B'</span><br /> <span style="color: #ff0000;">'85 85 01 01 01 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 9D 9B 9B D6 D5 D8'</span><br /> <span style="color: #ff0000;">'64 AD DE 53 B6 F2 52 BB F4 51 BF F5 51 C4 F7 50'</span><br /> <span style="color: #ff0000;">'C8 F8 44 A4 C7 33 33 31 1A 19 17 13 12 11 0D 0D'</span><br /> <span style="color: #ff0000;">'0C 0A 09 08 28 27 26 50 DC FD 52 DE FF 53 DF FF'</span><br /> <span style="color: #ff0000;">'54 DF FF 55 E0 FF 56 E0 FF 9C BA C1 BE B7 B7 1C'</span><br /> <span style="color: #ff0000;">'1B 1B 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 11 11 11 E2 E0 E0'</span><br /> <span style="color: #ff0000;">'AA BA C9 52 B1 EF 52 B6 F2 51 BB F3 51 BF F5 50'</span><br /> <span style="color: #ff0000;">'C3 F6 43 9A BE 33 32 30 1E 1D 1B 1D 1C 1A 1B 1A'</span><br /> <span style="color: #ff0000;">'18 19 18 16 31 2F 2E 4C D3 F5 50 DD FF 51 DE FF'</span><br /> <span style="color: #ff0000;">'52 DE FF 53 DF FF 6A C2 D8 CC C5 C5 62 5E 5E 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 68 68 68'</span><br /> <span style="color: #ff0000;">'E4 E1 E1 71 AA D4 52 B1 F0 51 B6 F2 50 BA F3 50'</span><br /> <span style="color: #ff0000;">'BE F5 45 95 B9 2F 2E 2C 1E 1D 1B 1E 1D 1B 1E 1D'</span><br /> <span style="color: #ff0000;">'1B 1E 1D 1B 34 33 31 4A CA EB 4E DB FF 4F DC FF'</span><br /> <span style="color: #ff0000;">'50 DD FF 55 D7 F6 AE BD C3 AA A2 A2 0C 0B 0B 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 06 06 06'</span><br /> <span style="color: #ff0000;">'CE CD CD B9 C0 CA 57 AB E9 51 B0 F0 51 B5 F1 50'</span><br /> <span style="color: #ff0000;">'B9 F3 47 90 B5 2C 2B 29 1E 1D 1B 1E 1D 1B 1E 1D'</span><br /> <span style="color: #ff0000;">'1B 1E 1D 1B 34 33 31 48 BF E2 4E D7 FE 4E D9 FE'</span><br /> <span style="color: #ff0000;">'4E DB FF 7A BE CF C8 C0 C0 42 3F 3F 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'38 38 38 E5 E1 E1 86 AB CC 51 AB EE 51 AF EF 50'</span><br /> <span style="color: #ff0000;">'B3 F1 49 89 AE 28 27 25 1E 1D 1B 1E 1D 1B 1E 1D'</span><br /> <span style="color: #ff0000;">'1B 1E 1D 1B 34 33 31 46 B4 D9 4E D1 FB 4E D4 FC'</span><br /> <span style="color: #ff0000;">'58 CA EC BD BF C1 97 90 90 02 02 02 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'01 01 01 AD AA AA C9 CA CE 5F A4 DF 51 AA EE 50'</span><br /> <span style="color: #ff0000;">'AE EF 4C 85 AA 24 23 21 1E 1D 1B 1E 1D 1B 1E 1D'</span><br /> <span style="color: #ff0000;">'1B 1E 1D 1B 34 33 31 45 A8 CF 4E CB FA 4F CE FA'</span><br /> <span style="color: #ff0000;">'91 B8 C7 BC B3 B3 26 24 24 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 1E 1D 1D D9 D5 D5 99 AF C7 51 A4 EC 51'</span><br /> <span style="color: #ff0000;">'A8 ED 4F 81 A7 20 1F 1D 1E 1D 1B 1E 1D 1B 1E 1D'</span><br /> <span style="color: #ff0000;">'1B 1E 1D 1B 33 33 31 44 9E C5 4F C6 F8 5F BA DF'</span><br /> <span style="color: #ff0000;">'C6 BE BF 74 6E 6E 01 01 01 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 74 72 72 D6 D0 D0 67 A1 D6 51'</span><br /> <span style="color: #ff0000;">'A3 EC 4F 7B A0 1E 1D 1B 1E 1D 1B 1E 1D 1B 1E 1D'</span><br /> <span style="color: #ff0000;">'1B 1E 1D 1B 33 32 30 43 94 BD 52 BD F1 A5 B8 C2'</span><br /> <span style="color: #ff0000;">'AE A5 A5 11 10 10 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 0B 0B 0B C6 C0 C0 AC B7 C6 53'</span><br /> <span style="color: #ff0000;">'A1 E7 4C 75 9A 31 31 30 31 31 30 31 31 30 30 31'</span><br /> <span style="color: #ff0000;">'30 31 31 30 3F 3F 3F 45 91 BC 74 AF D1 C2 BA BB'</span><br /> <span style="color: #ff0000;">'4F 4B 4B 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 4A 49 49 D3 CD CC 76'</span><br /> <span style="color: #ff0000;">'A5 D0 4B 97 DB 48 89 C2 49 8A C2 4A 8B C3 49 8E'</span><br /> <span style="color: #ff0000;">'C4 49 90 C5 49 92 C5 54 A8 E0 B4 B8 BF A2 9B 9B'</span><br /> <span style="color: #ff0000;">'06 06 06 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 02 02 02 AF A9 A9 BC'</span><br /> <span style="color: #ff0000;">'BE C4 55 A0 E2 4D A1 EB 4E A1 EB 4F A2 EB 50 A3'</span><br /> <span style="color: #ff0000;">'EB 50 A5 EC 50 A8 ED 89 AA C7 BC B3 B3 31 2F 2F'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 28 27 27 C9'</span><br /> <span style="color: #ff0000;">'C2 C2 8B AA C8 4C A0 EB 4C A0 EB 4E A1 EB 4F A2'</span><br /> <span style="color: #ff0000;">'EB 4F A2 EB 5D A0 DC BF B9 BB 7F 78 78 02 02 02'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 01 01 01 82'</span><br /> <span style="color: #ff0000;">'7E 7E C6 C0 C2 59 9E DC 4B A0 EB 4C A0 EB 4D A1'</span><br /> <span style="color: #ff0000;">'EB 4F A1 E9 9A AE C4 B3 AA AA 1B 1A 1A 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10'</span><br /> <span style="color: #ff0000;">'0F 0F BD B5 B5 9F B0 C4 4B 9E E8 4A 9F EA 4B A0'</span><br /> <span style="color: #ff0000;">'EB 6B A1 D3 BF B7 B7 5C 57 57 01 01 01 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 56 53 53 C5 BD BE 6B A1 D3 49 9E EA 4E 9E'</span><br /> <span style="color: #ff0000;">'E5 AB B3 BF A6 9C 9C 0A 0A 0A 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 04 04 04 AF A6 A6 AE B5 C1 4C 9C E4 7A A4'</span><br /> <span style="color: #ff0000;">'CC B9 B1 B1 42 3E 3E 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 33 30 30 BC B3 B3 9C B0 C6 BB B7'</span><br /> <span style="color: #ff0000;">'BB 88 80 80 04 04 04 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 01 01 01 62 5C 5C A8 9E 9E 92 89'</span><br /> <span style="color: #ff0000;">'89 19 18 18 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 08 07 07 03 03'</span><br /> <span style="color: #ff0000;">'03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'</span><br /> <span style="color: #ff0000;">'00 00'</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:y1o4kfxk]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
BRush.prg ( poder excluir freeimage.dll )
|
un pequeño cambio en brush.prg
en el metodo new...linea 183 +-
[code=fw:196djkw3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">local</span> hGDIBmp<br /> ........<br /><br /> <span style="color: #00C800;">case</span> cBmpFile != <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">if</span> File<span style="color: #000000;">(</span> cBmpFile <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> Lower<span style="color: #000000;">(</span> cFileExt<span style="color: #000000;">(</span> cBmpFile <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">'bmp'</span><br /> ::<span style="color: #000000;">hBitMap</span> = ReadBitmap<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, cBmpFile <span style="color: #000000;">)</span><br /> elseif UseGDI<span style="color: #000000;">(</span><span style="color: #000000;">)</span> .AND. UPPER<span style="color: #000000;">(</span> cFileExt<span style="color: #000000;">(</span> cBmpFile <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">"PNG,JPG,EMF,WMF,JPEG"</span> <span style="color: #B900B9;">// nuevo</span><br /> hGDIBmp:= GdiPlusImageLoadCachedFile<span style="color: #000000;">(</span> cBmpFile <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">hBitmap</span> := GdiPlusCreateHBitmapImage<span style="color: #000000;">(</span> hGDIBmp <span style="color: #000000;">)</span><br /> GdiPlusImageDispose<span style="color: #000000;">(</span> hGDIBmp <span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">else</span> <span style="color: #B900B9;">// fin nuevo </span><br /> ::<span style="color: #000000;">hBitmap</span> = FILoadImg<span style="color: #000000;">(</span> cBmpFile, @nFormat <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">nBmpFormat</span> = nFormat<br /> <span style="color: #00C800;">endif</span><br /> ::<span style="color: #000000;">hBrush</span> = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">hBitmap</span> != <span style="color: #000000;">0</span>, CreatePatternBrush<span style="color: #000000;">(</span> ::<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><br /> </div>[/code:196djkw3]
|
BRush.prg ( poder excluir freeimage.dll )
|
y un par de tips para cuellar ....
si quieres tener el brush dentro de un blob ( como las fotos ) .
Se recuperaria facilmente de esta forma
[code=fw:1q5zrmhe]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">local</span> cStr := oFONDOS:<span style="color: #000000;">FONDO</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush GRADIENT hbmpGDIStr<span style="color: #000000;">(</span> cStr <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">FUNCTION</span> hbmpGDIStr<span style="color: #000000;">(</span> cStr <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> hGDIBmp := GdiPlusImageLFromStr<span style="color: #000000;">(</span> cStr, len<span style="color: #000000;">(</span> cStr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> hBitmap := GdiPlusCreateHBitmapImage<span style="color: #000000;">(</span> hGDIBmp <span style="color: #000000;">)</span><br /> GdiPlusImageDispose<span style="color: #000000;">(</span> hGDIBmp <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> hBitmap<br /><br /> </div>[/code:1q5zrmhe]
Si quieres evitar tener que introducir los cambios propuestos en el brush.prg y asi todo saltar el uso de freeimage en los brush existe una alternativa.
DEFINE BRUSH oBrush GRADIENT GDIcFileResizehBmp ( cFileImage )
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
BRush.prg ( poder excluir freeimage.dll )
|
Instead of making small changes like this to use GDI+, I prefer to adopt GDI+ everywhere for all image formats and then change all FWH libraries.
Surely I need your help. I am about to write email to you personally.
I am badly stuck up with handling AlphaBitmaps. Once we cross this hurdle, with your help, we can make good progress in adopting GDI+.
|
BRush.prg ( poder excluir freeimage.dll )
|
Muchas Gracias Manuel
Con:
[code=fw:1oqudlzm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILE <span style="color: #ff0000;">"D:<span style="color: #000000;">\S</span>istemas<span style="color: #000000;">\I</span>MAGENES<span style="color: #000000;">\B</span>ITMAPS<span style="color: #000000;">\O</span>RIENTE.BMP"</span> STRETCH <span style="color: #B900B9;">//No pide freeimage.dll con RESOURCE también</span><br /> </div>[/code:1oqudlzm]
Saludos,
Adhemar
|
BRush.prg ( poder excluir freeimage.dll )
|
Manuel
Me topé con otro.
En un xBrowse cargo un listado para su vista previa y en los saltos de página Chr(12) pide freeimage.dll
Gracias por la ayuda.
Saludos,
Adhemar
|
BRush.prg ( poder excluir freeimage.dll )
|
[quote="acuellar":e1f5zkpe]Manuel
Me topé con otro.
En un xBrowse cargo un listado para su vista previa y en los saltos de página Chr(12) pide freeimage.dll
Gracias por la ayuda.
Saludos,
Adhemar[/quote:e1f5zkpe]
We shall take care of this in future releases.
|
BSOD on Leopard
|
<!-- m --><a class="postlink" href="http://www.theregister.co.uk/2007/10/27/leopard_install_problems/">http://www.theregister.co.uk/2007/10/27 ... _problems/</a><!-- m -->
<!-- m --><a class="postlink" href="http://discussions.apple.com/thread.jspa?threadID=1195031&tstart=0">http://discussions.apple.com/thread.jsp ... 1&tstart=0</a><!-- m -->
no comments <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BTNBMP
|
Bom Dia a todos..
Como faço para aumentar a distancia entre a imagem e o texto da BtnBmp ??
[img:20xgkfei]http://img809.imageshack.us/img809/8131/btnbmp.png[/img:20xgkfei]
A imagem está muito junto com o texto...
Eu gostaria que ficasse com os espaços igual aos buttons da ButtonBar
[img:20xgkfei]http://img441.imageshack.us/img441/7710/imagemylx.png[/img:20xgkfei]
Desde Já Obrigado..
|
BTNBMP
|
Hola amigo...
Prueba así:
[code=fw:n9oem90a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> Btn2 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CANCELAR22"</span> BOTTOM;<br /> <span style="color: #0000ff;">ACTION</span> oWnd1:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:n9oem90a]
Tienes 4 opciones para probar: LEFT, RIGHT, TOP y BOTTOM.
Espero te sirva.
|
BTNBMP
|
Ola Ojeda.. Obrigado por responder
Veja bem, Eu já estou usando BOTTOM, e mesmo usando o TOP o espaço entre a imagem e o texto são muitos próximos como mostra na 1ª imagem. e não quero usar LEFT nem RIGHT
Estou Fazendo assim;
[code=fw:2svl8l8b]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Redefine</span> <span style="color: #0000ff;">BTNBMP</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"&Sair"</span> ;<br /> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"#8005"</span>,<span style="color: #ff0000;">"#8002"</span>,<span style="color: #ff0000;">"#8004"</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4005</span> <span style="color: #0000ff;">Of</span> oDlg ;<br /> BOTTOM ;<br /> <span style="color: #0000ff;">Action</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> NOBORDER</div>[/code:2svl8l8b]
O button fica assim;
[img:2svl8l8b]http://img809.imageshack.us/img809/8131/btnbmp.png[/img:2svl8l8b]
e eu quero com este espaço
[img:2svl8l8b]http://img441.imageshack.us/img441/7710/imagemylx.png[/img:2svl8l8b]
Abraços..
|
BTNBMP
|
Hola...
Entonces prueba poner un renglón en blanco en el botton.
[code=fw:2ua86zb0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" "</span>+CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span>+CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">"&Sair"</span><br /> </div>[/code:2ua86zb0]
De todas formas no entiendo por qué tienes varios recursos en el mismo bottón.
[code=fw:2ua86zb0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"#8005"</span>,<span style="color: #ff0000;">"#8002"</span>,<span style="color: #ff0000;">"#8004"</span><br /> </div>[/code:2ua86zb0]
No me queda claro eso en tu REDEFINE.
Espero te sirva.
Saludos, Esteban
|
BTNBMP
|
Bom Dia Ojeda..
Não Resolveu..
Tenho 3 imagens no button porque ao pressionar o button a imagem troca, e quando ela está disable tb. mostra outra imagem..
Abraços..
|
BTNBMP
|
Resolvido desta forma ;
[code=fw:3ectafej]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Redefine</span> <span style="color: #0000ff;">BTNBMP</span> obtn<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">Prompt</span> Space<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">"&Fechar"</span> ;<br /> <span style="color: #0000ff;">Resource</span>....</div>[/code:3ectafej]
Obrigado..
|
BTNBMP
|
Hi to all <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
How to obtain a vertical center and horizontal center in BTNBMP buttons?
My goal is to display only a coloured button without a bmp contained in it
in other words a coloured Button it's ok
Best regards
Marco
[code=fw:r5kp8fpu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">LOCAL</span> oDlg<br /><br /><span style="color: #00C800;">LOCAL</span> oBtn1<br /><span style="color: #00C800;">LOCAL</span> oBtn2<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">100</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">500</span> , <span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br /><br />@ <span style="color: #000000;">40</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Button &1"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span> , <span style="color: #000000;">20</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">)</span><br /><br />@ <span style="color: #000000;">70</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Button &2"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span> , <span style="color: #000000;">20</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"2"</span> <span style="color: #000000;">)</span><br />oBtn2:<span style="color: #000000;">setcolor</span><span style="color: #000000;">(</span> CLR_WHITE, CLR_HRED <span style="color: #000000;">)</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /> </div>[/code:r5kp8fpu]
|
BTNBMP
|
Marco,
do You mean a GRADIENT painted horizontal or vertical ?
[color=#0000FF:2aid5i41][b:2aid5i41]oBtn1:bClrGrad = { | lMouseOver | If( ! lMouseOver,;
{ { 0.50, 11513775, 16777215 }, ;
{ 0.50, 16777215, 11513775 } }, ;
{ { 0.50, 16761992, 16777215 }, ;
{ 0.50, 16777215, 16761992 } } ) }[/b:2aid5i41][/color:2aid5i41]
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
BTNBMP
|
[code=fw:2raqs7j0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oDlg<br /><br /> <span style="color: #00C800;">LOCAL</span> oBtn1<br /> <span style="color: #00C800;">LOCAL</span> oBtn2<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">100</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">500</span> , <span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #B900B9;">// LEFT, CENTER OR RIGHT</span><br /><br /> @ <span style="color: #000000;">40</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Button &1"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span> , <span style="color: #000000;">20</span> <span style="color: #0000ff;">RIGHT</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">70</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Button &2"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span> , <span style="color: #000000;">20</span> <span style="color: #0000ff;">CENTER</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"2"</span> <span style="color: #000000;">)</span><br /><br /> oBtn2:<span style="color: #000000;">setcolor</span><span style="color: #000000;">(</span> CLR_WHITE, CLR_HRED <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:2raqs7j0]
|
BTNBMP
|
Dear friends,
I want to obtain a simple Button with a different colour
Is it possible to colour a BUTTON?
Text is centered in a perfect way!
[img:256cwjs5]http://www.marcoboschi.it/public/cattura.png[/img:256cwjs5]
[code=fw:256cwjs5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oDlg<br /><br /> <span style="color: #00C800;">LOCAL</span> oBut<br /> <span style="color: #00C800;">LOCAL</span> oBtn<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">100</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">500</span> , <span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #B900B9;">// LEFT, CENTER OR RIGHT</span><br /><br /> @ <span style="color: #000000;">40</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBut <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Button"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span> , <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> @ <span style="color: #000000;">70</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"BtnBmp"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span> , <span style="color: #000000;">20</span><br /> oBtn:<span style="color: #000000;">setcolor</span><span style="color: #000000;">(</span> CLR_WHITE, CLR_HRED <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:256cwjs5]
|
BTNBMP
|
Marco,
I changed the two buttons as a test :
[img:3nfzaapa]http://www.pflegeplus.com/pictures/Btncolor1.jpg[/img:3nfzaapa]
@ nSHeight - 685, nSWidth - 105 BTNBMP oSBtn[2] OF oWnd ;
SIZE 95, 65 PIXEL 2007 ;
NOBORDER ;
PROMPT " &Window" + CRLF + "painter" ;
ACTION ( W_PAINTER(oSay1), oWnd:Refresh() ) ;
FONT oFont1 ;
CENTER
oSBtn[2]:bClrGrad = { | lMouseOver | If( ! lMouseOver,;
{ { 1, 11513775, 11513775 }, { 1, 11513775, 11513775 } }, ;
{ { 1, 16761992, 16761992 }, { 1, 16761992, 16761992 } } ) }
oSBtn[2]:cToolTip = { "Select the" + CRLF + "Window-painter","SELECT", 1, CLR_BLACK, 14089979 }
oSBtn[2]:SetColor( 0, )
@ nSHeight - 610, nSWidth - 105 BTNBMP oSBtn[3] OF oWnd ;
SIZE 95, 65 PIXEL 2007 ;
NOBORDER ;
PROMPT " &Dialog" + CRLF + "painter" ;
ACTION D_PAINTER(oSay1) ;
FONT oFont1 ;
CENTER
oSBtn[3]:bClrGrad = { | lMouseOver | If( ! lMouseOver,;
{ { 1, 255, 255 }, { 1, 255, 255 } }, ;
{ { 1, 16761992, 16761992 }, { 1, 16761992, 16761992 } } ) }
oSBtn[3]:SetColor( 16777215, )
oSBtn[3]:cToolTip = { "Select the" + CRLF + "Dialog-painter","SELECT", 1, CLR_BLACK, 14089979 }
best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
BTNBMP
|
Uwe and karinha
Many thanks
marco
|
BTNBMP
|
Another problem using BTNBMP
If I click using Mouse on btnbmp I can see that settext method works fine
If I press "1" or "2" on keyboard I cannot see changes into buttons.
I can't understand the reason
Help needed
Best regars
Marco
[code=fw:1pd68j0r]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oDlg<br /><span style="color: #00C800;">LOCAL</span> oBut1<br /><span style="color: #00C800;">LOCAL</span> oBut2<br /><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">100</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">500</span> , <span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br /><br />@ <span style="color: #000000;">1</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBut1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&1.First"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">20</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oBut1:<span style="color: #000000;">settext</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Pressed..."</span> <span style="color: #000000;">)</span> , ;<br /> sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span> , ;<br /> <span style="color: #0000ff;">sleep</span><span style="color: #000000;">(</span> <span style="color: #000000;">1000</span> <span style="color: #000000;">)</span> , ;<br /> oBut1:<span style="color: #000000;">settext</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"&1.First"</span> <span style="color: #000000;">)</span> , ;<br /> sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span> , <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"OK1"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">CENTER</span><br />oBut1:<span style="color: #000000;">setcolor</span><span style="color: #000000;">(</span> CLR_WHITE , CLR_HBLUE <span style="color: #000000;">)</span><br /><br />@ <span style="color: #000000;">30</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBut2 <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">20</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oBut2:<span style="color: #000000;">settext</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Pressed..."</span> <span style="color: #000000;">)</span> , ;<br /> sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span> , ;<br /> <span style="color: #0000ff;">sleep</span><span style="color: #000000;">(</span> <span style="color: #000000;">1000</span> <span style="color: #000000;">)</span> , ;<br /> oBut2:<span style="color: #000000;">settext</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"&2.Second"</span> <span style="color: #000000;">)</span> , ;<br /> sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span> , <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"OK2"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">CENTER</span><br />oBut2:<span style="color: #000000;">setcolor</span><span style="color: #000000;">(</span> CLR_WHITE , CLR_HRED <span style="color: #000000;">)</span><br /><br /><br />oDlg:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">{</span> |nKey| Premi<span style="color: #000000;">(</span> nKey , oBut1 , oBut2 <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span> oBut1:<span style="color: #000000;">settext</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"&1.First"</span> <span style="color: #000000;">)</span> , oBut2:<span style="color: #000000;">settext</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"&2.Second"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> PREMI<span style="color: #000000;">(</span> nKey , oBut1 , oBut2 <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> cPressed := UPPER<span style="color: #000000;">(</span> CHR<span style="color: #000000;">(</span> nKey <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> cPressed = <span style="color: #ff0000;">"1"</span><br /> oBut1:<span style="color: #0000ff;">Click</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> cPressed = <span style="color: #ff0000;">"2"</span><br /> oBut2:<span style="color: #0000ff;">Click</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">ENDCASE</span><br /><span style="color: #00C800;">RETURN</span> .T.</div>[/code:1pd68j0r]
|
BTNBMP
|
Marco,
try these changes :
[code=fw:3u7nz1gm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oDlg<br /><span style="color: #00C800;">LOCAL</span> oBut1<br /><span style="color: #00C800;">LOCAL</span> oBut2<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">100</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">500</span> , <span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span><br /><br />@ <span style="color: #000000;">1</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBut1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&1.First"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">20</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> <span style="color: #0000ff;">sleep</span><span style="color: #000000;">(</span> <span style="color: #000000;">1000</span> <span style="color: #000000;">)</span>, ;<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"OK1"</span> <span style="color: #000000;">)</span>, ;<br /> oBut1:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">"&1.First"</span>, ; <span style="color: #B900B9;">// back to original promttext</span><br /> oBut1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">CENTER</span><br />oBut1:<span style="color: #000000;">setcolor</span><span style="color: #000000;">(</span> CLR_WHITE , CLR_HBLUE <span style="color: #000000;">)</span><br /><br />@ <span style="color: #000000;">30</span> , <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBut2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&2.Second"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> , <span style="color: #000000;">20</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> <span style="color: #0000ff;">sleep</span><span style="color: #000000;">(</span> <span style="color: #000000;">1000</span> <span style="color: #000000;">)</span>, ;<br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"OK1"</span> <span style="color: #000000;">)</span>, ;<br /> oBut2:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">"&2.Second"</span>, ; <span style="color: #B900B9;">// back to original promttext</span><br /> oBut2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /><span style="color: #0000ff;">CENTER</span><br />oBut2:<span style="color: #000000;">setcolor</span><span style="color: #000000;">(</span> CLR_WHITE , CLR_HRED <span style="color: #000000;">)</span><br /><br />oDlg:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">{</span> |nKey| Premi<span style="color: #000000;">(</span> nKey , oBut1 , oBut2 <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// -----------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> PREMI<span style="color: #000000;">(</span> nKey , oBut1 , oBut2 <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> cPressed := UPPER<span style="color: #000000;">(</span> CHR<span style="color: #000000;">(</span> nKey <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> cPressed = <span style="color: #ff0000;">"1"</span><br /> oBut1:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">"Pressed..."</span><br /> oBut1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBut1:<span style="color: #0000ff;">Click</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">CASE</span> cPressed = <span style="color: #ff0000;">"2"</span><br /> oBut2:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">"Pressed..."</span><br /> oBut2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBut2:<span style="color: #0000ff;">Click</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDCASE</span><br /><br /><span style="color: #00C800;">RETURN</span> .T. <br /> </div>[/code:3u7nz1gm]
Best regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
|
BTNBMP
|
Ok,
many thanks
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
BTNBMP FWH1402 X FWH1408
|
Antonio
BTNBMP muestra de manera diferente debido la versión FWH
@ 11, 138 BTNBMP OF oDlg SIZE 40, 15 PIXEL 2007 NOBORDER PROMPT " &Ok" FONT oFont LEFT RESOURCE "BMP_BTOK" ACTION (lOk:=.t., oDlg:End())
@ 179, 2 BTNBMP OF oDlg SIZE 180, 18 PIXEL 2007 NOBORDER PROMPT " SISTEM INFORMÁTICA " FONT oFont4 LEFT RESOURCE "BMP_INF2" ACTION SobreInfo2()
OK [FWH1402]
[img:1wnhn9eq]http://imagizer.imageshack.us/v2/640x680q90/538/rwfNjZ.jpg[/img:1wnhn9eq]
NO OK [FWH1408]
[img:1wnhn9eq]http://imagizer.imageshack.us/v2/640x680q90/673/P0XzYr.jpg[/img:1wnhn9eq]
|
BTNBMP FWH1402 X FWH1408
|
Vamos a revisarlo de inmediato, gracias
|
BTNBMP FWH1402 X FWH1408
|
Por favor modifica estos métodos con este código:
[code=fw:4vx9ep2k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> PaintCaption<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBtnBmp<br /><br /> <span style="color: #00C800;">local</span> nStyle, nClr<br /> <span style="color: #00C800;">local</span> hOldFont, aRect, lMultiline, cWord, cWord2<br /> <span style="color: #00C800;">local</span> nOffset, nMaxWidth, nLine<br /> <span style="color: #00C800;">local</span> nTxtTop, nTxtLeft, nTxtRight<br /> <span style="color: #00C800;">local</span> nTxtHeight, nAdjust := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">local</span> nLayOut := ::<span style="color: #000000;">nLayOut</span><br /><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">cCaption</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oFont</span> == <span style="color: #00C800;">nil</span><br /> ::<span style="color: #000000;">GetFont</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> lMultiLine = ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">cCaption</span> <span style="color: #000000;">)</span> .and. CRLF $ ::<span style="color: #000000;">cCaption</span><br /><br /> <span style="color: #00C800;">if</span> lMultiLine<br /> cWord = cStrWord<span style="color: #000000;">(</span> ::<span style="color: #000000;">cCaption</span>, nOffset, CRLF <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">while</span> nOffset < Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">cCaption</span> <span style="color: #000000;">)</span><br /> nMaxWidth = <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span> nMaxWidth,;<br /> Len<span style="color: #000000;">(</span> cWord2 := cStrWord<span style="color: #000000;">(</span> ::<span style="color: #000000;">cCaption</span>, @nOffset, CRLF <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> Len<span style="color: #000000;">(</span> cWord <span style="color: #000000;">)</span> < nMaxWidth<br /> cWord = cWord2<br /> <span style="color: #00C800;">endif</span><br /> end<br /><br /> nLine = MLCount<span style="color: #000000;">(</span> ::<span style="color: #000000;">cCaption</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> cWord = ::<span style="color: #000000;">cCaption</span><br /> nTxtHeight = GetTextHeight<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">)</span><br /> nTxtTop = ::<span style="color: #000000;">nHeight</span> / <span style="color: #000000;">2</span> - nTxtHeight / <span style="color: #000000;">2</span><br /> nMaxWidth = GetTextWidth<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, cWord, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span><br /> nTxtLeft = ::<span style="color: #000000;">nWidth</span> / <span style="color: #000000;">2</span> - nMaxWidth / <span style="color: #000000;">2</span> <br /> nTxtRight = ::<span style="color: #000000;">nWidth</span> / <span style="color: #000000;">2</span> + nMaxWidth / <span style="color: #000000;">2</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nLayOut</span> == <span style="color: #000000;">1</span> <span style="color: #B900B9;">// TOP</span><br /> nTxtLeft -= <span style="color: #000000;">3</span><br /> <span style="color: #00C800;">endif</span> <br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nLayout</span> == <span style="color: #000000;">2</span> <span style="color: #B900B9;">// LEFT</span><br /> nTxtLeft += <span style="color: #000000;">5</span><br /> nTxtRight += nBmpWidth<span style="color: #000000;">(</span> ::<span style="color: #000000;">hBmp</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> - <span style="color: #000000;">5</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nLayout</span> == <span style="color: #000000;">4</span> <span style="color: #B900B9;">// RIGHT</span><br /> nTxtLeft -= nBmpWidth<span style="color: #000000;">(</span> ::<span style="color: #000000;">hBmp</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> - <span style="color: #000000;">5</span><br /> nTxtRight -= nBmpWidth<span style="color: #000000;">(</span> ::<span style="color: #000000;">hBmp</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> - <span style="color: #000000;">5</span><br /> <span style="color: #00C800;">endif</span><br /><br /> nStyle = nOr<span style="color: #000000;">(</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">nLayOut</span> == <span style="color: #000000;">0</span>, DT_CENTER, nLayOut <span style="color: #000000;">)</span>, DT_WORDBREAK,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">nLayOut</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, DT_VCENTER, DT_TOP <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> nClr = <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> IsWindowEnabled<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span>, ::<span style="color: #000000;">nClrText</span>,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lDisColor</span>, CLR_HGRAY, ::<span style="color: #000000;">nClrTextDis</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> SetTextColor<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> nClr <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"B"</span>, Eval<span style="color: #000000;">(</span> nClr, ::<span style="color: #000000;">lMOver</span> <span style="color: #000000;">)</span>, nClr <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> SetBkMode<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span> .or. ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span><br /> hOldFont = SelectObject<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oPopup</span> != <span style="color: #00C800;">nil</span><br /> nTxtRight -= <span style="color: #000000;">12</span><br /> <span style="color: #00C800;">endif</span><br /><br /> aRect = <span style="color: #000000;">{</span> nTxtTop, nTxtLeft, ::<span style="color: #000000;">nHeight</span> - <span style="color: #000000;">4</span>, nTxtRight <span style="color: #000000;">}</span><br /><br /> lMultiLine = <span style="color: #000000;">(</span> nTxtHeight := DrawText<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">cCaption</span>, aRect,;<br /> nOr<span style="color: #000000;">(</span> DT_WORDBREAK, DT_CALCRECT <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> > ;<br /> DrawText<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">cCaption</span>, aRect, nOr<span style="color: #000000;">(</span> DT_SINGLELINE, DT_CALCRECT <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nLayOut</span> == <span style="color: #000000;">1</span> <span style="color: #B900B9;">// TOP</span><br /> nStyle = nOr<span style="color: #000000;">(</span> DT_CENTER, DT_WORDBREAK <span style="color: #000000;">)</span><br /> aRect<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> = aRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> - nTxtHeight<br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nLayOut</span> == <span style="color: #000000;">3</span><br /> aRect<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> = <span style="color: #000000;">2</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lPressed</span><br /> aRect<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>++<br /> aRect<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>++<br /> aRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>++<br /> aRect<span style="color: #000000;">[</span> <span style="color: #000000;">4</span> <span style="color: #000000;">]</span>++<br /> <span style="color: #00C800;">endif</span><br /><br /> DrawText<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">cCaption</span>, aRect, nStyle <span style="color: #000000;">)</span><br /><br /> SelectObject<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, hOldFont <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:4vx9ep2k]
[code=fw:4vx9ep2k]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> PaintBitmap<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TBtnBmp<br /><br /> <span style="color: #00C800;">local</span> hBmp := ::<span style="color: #000000;">hBmp</span><br /> <span style="color: #00C800;">local</span> nTop := <span style="color: #000000;">(</span> ::<span style="color: #000000;">nHeight</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">(</span> nBmpHeight<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nLeft := <span style="color: #000000;">(</span> ::<span style="color: #000000;">nWidth</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">(</span> nBmpWidth<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span> .and. ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">cCaption</span> <span style="color: #000000;">)</span> .and. ::<span style="color: #000000;">nLayOut</span> == <span style="color: #000000;">2</span> <span style="color: #B900B9;">// LEFT</span><br /> nLeft -= GetTextWidth<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, ::<span style="color: #000000;">cCaption</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span> - <span style="color: #000000;">5</span><br /> <span style="color: #00C800;">endif</span> <br /><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">cCaption</span> <span style="color: #000000;">)</span><br /> nTop -= <span style="color: #000000;">10</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oPopup</span> != <span style="color: #00C800;">nil</span><br /> nLeft -= <span style="color: #000000;">6</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nLayOut</span> == <span style="color: #000000;">2</span> <span style="color: #B900B9;">// LEFT</span><br /> nTop += <span style="color: #000000;">10</span><br /> nLeft -= <span style="color: #000000;">10</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nLayOut</span> == <span style="color: #000000;">4</span> <span style="color: #B900B9;">// RIGHT</span><br /> nTop += <span style="color: #000000;">10</span><br /> nLeft += <span style="color: #000000;">35</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBmpTransparent</span><br /> <span style="color: #00C800;">if</span> SetAlpha<span style="color: #000000;">(</span><span style="color: #000000;">)</span> .and. ::<span style="color: #000000;">aAlpha</span><span style="color: #000000;">[</span> ::<span style="color: #000000;">nBtn</span> <span style="color: #000000;">]</span><br /> ABPaint<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, nTop + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lPressed</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>,;<br /> nLeft + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lPressed</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, hBmp, ::<span style="color: #000000;">nAlphaLevel</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> DrawTransBmp<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, hBmp, nTop + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lPressed</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>,;<br /> nLeft + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lPressed</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, nBmpWidth<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span>,;<br /> nBmpHeight<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">else</span><br /> DrawBitmap<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, hBmp, nTop + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lPressed</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>,;<br /> nLeft + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lPressed</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, nBmpWidth<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span>,;<br /> nBmpHeight<span style="color: #000000;">(</span> hBmp <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:4vx9ep2k]
|
BTNBMP FWH1402 X FWH1408
|
ahora
esta bien
gracias
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.