topic
stringlengths
1
63
text
stringlengths
1
577k
Bitmap en folder
Hola Joao Me preguntas que porqué no migro a xharbour. No me importaría, ahora que estoy empezando con harbour, lo que quiero es escojer algo que sea el más utilizado dentro de nuestra comunidad xbase, y me parecía por la cantidad de post, y en las antiguas news que lo más manejado era harbour. Yo por ser lo más cómodo utilizo Verce 4.3, y creo que no habría problema. Ayer recompilé en xharbour la aplicación que estoy migrando de fivewin, y empezaron de nuevo los errores de compilación que ya tenía superados en harbour, así que si no me aconsejan otra cosa seguiré con harbour, salvo que me indiquen si hay muchas diferencias tanto en el resultado final de la aplicación, como en la problematica de generación de aplicaciones. Un saludo Jose Luis
Bitmap en folder
REDEFINE GET cBitmap ID 116 OF oFld:aDialogs[ 1 ] ; ON CHANGE( cBitmap := AllTrim( oDbf:Ma_Bitmap ), ; oBmp:Load( cBitmap ), oBmp:Refresh() ) UPDATE Saludos
Bitmap en folder
Hola jbrita Con esto que me pones podré colocar un bitmap en cada pestaña? Tengo que redefinir un bitmap para cada pesteña del folder? Cuando puedas me contestas . De todas formas, con tanto trasiego de poner librerias, cambiar includes, cambiar codigo a ver si funciona de una manera o de otra, ahora resulta que el folder que antes se veía así <!-- m --><a class="postlink" href="http://img220.imageshack.us/my.php?image=clien1er9.jpg">http://img220.imageshack.us/my.php?image=clien1er9.jpg</a><!-- m --> Es decir, las pestañas del color del resto Ahora se ve así <!-- m --><a class="postlink" href="http://img220.imageshack.us/my.php?image=clientesij9.jpg">http://img220.imageshack.us/my.php?imag ... tesij9.jpg</a><!-- m --> Es decir las pestañas del folder se ven gris y el resto del color brush que tengo definido. Será cuestión del recurso o del fuente. Ya he hecho de todo y nada. Por otra parte y con respecto a lo que me dijo joao que hiciera para probar, si denomino al recurso como Tfolder e incluyo la libreria foldbmp32.lib en la compilación, al ejecutar el programa me da el error: ******************************* Error description: Error BASE/3003 Cannot find super class: __CLSINSTSUPER ************************************** Saludos y gracias Jose luis
Bitmap en folder
cBitmap1 := AllTrim( oDbf:MA_Bitmap1 ) cBitmap2 := AllTrim( oDbf:MA_Bitmap2 ) DEFINE DIALOG oDlg RESOURCE "ART_FOLDER" TITLE cTitulo OF oVentPrinc REDEFINE FOLDER oFld ID 99 OF oDlg ; PROMPT "&General","&Comercial" ; DIALOGS "ART_GENERAL" , "ART_COMERCIAL" REDEFINE BITMAP oBmp FILENAME cBitmap1 ADJUST ID 114 OF oFld:aDialogs[ 1 ] UPDATE REDEFINE BITMAP oBmp FILENAME cBitmap2 ADJUST ID 118 OF oFld:aDialogs[ 2 ] UPDATE
Bitmap en folder
Hola jbrita Esto que me has mandado, salvo error lo que hace es pintar un bitmap en un folder, pero mi porblema está en las pestañitas de cada folder, en la parte superior, al lado de donde pone "General" y "Comercial", un bmp de esos pequeños de 16x16. De todas las maneras como explico anteriormente ya lo he desechado, porque me ha dicho Joao que no se puede en harbour, y ahora mi problema viene porque esas pestañitas no me cogen el color del resto del folder como he explicado también. Un saludo Jose Luis
Bitmap en folder
CAMBIASTES SYSTABCONTROL32 POR "TFOLDER" EN LAS PROPRIEDADS DEL FOLDER???
Bitmap en folder
Si, hice todo tipo de cambios y probaturas y nada. Si nos olvidamos de los bitmaps, lo que no entiendo es porqué al principio las orejas del folder se veían así [url=http&#58;//img299&#46;imageshack&#46;us/my&#46;php?image=fold1mf5&#46;jpg:8gupgodv][img:8gupgodv]http&#58;//img299&#46;imageshack&#46;us/img299/7977/fold1mf5&#46;th&#46;jpg[/img:8gupgodv][/url:8gupgodv] es decir orejas con color. Ahora las veo así [url=http&#58;//img480&#46;imageshack&#46;us/my&#46;php?image=fold2ii6&#46;jpg:8gupgodv][img:8gupgodv]http&#58;//img480&#46;imageshack&#46;us/img480/2299/fold2ii6&#46;th&#46;jpg[/img:8gupgodv][/url:8gupgodv] Es decir sin color Y en el ejemplo de Fwh se ve así [url=http&#58;//img54&#46;imageshack&#46;us/my&#46;php?image=fold3jz7&#46;jpg:8gupgodv][img:8gupgodv]http&#58;//img54&#46;imageshack&#46;us/img54/7391/fold3jz7&#46;th&#46;jpg[/img:8gupgodv][/url:8gupgodv] Es decir con una rayita amarilla en la parte superior que queda muy bien. Alguna sugerencia? Saludos Jose Luis
Bitmap en folder
Compile estes ejemplos con HARBOUR... <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=674">http://www.fivewin.com.br/exibedicas.asp?id=674</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=673">http://www.fivewin.com.br/exibedicas.asp?id=673</a><!-- m --> En contrário... Migres a XHARBOUR.
Bitmap en folder
Hola Esta noche he empezado a pasar todo otra vez ahora a xharbour como me ha recomendado Joao, a ver si se acaban los problemas de la migración y puedo dedicarme a la programación en sí. Después de compilar para xharbour librerias que tenía para harbour, me da error en tsbutton. *********************** Application =========== Path and name: c:\fuentes\xharbour\mocwin2006\gespaq.Exe (32 bits) Size: 816,128 bytes Time from start: 0 hours 0 mins 0 secs Error occurred at: 18/11/06, 10:43:31 Error description: Error BASE/1086 Argument error: ++ Args: [ 1] = U Stack Calls =========== Called from: => TSBUTTON(0) Called from: C:\fuentes\xharbour\mocwin2006\PRG\gespaq.prg => INICIO(791) Called from: C:\fuentes\xharbour\mocwin2006\PRG\gespaq.prg => (b)MAIN(143) Called from: => TMDIFRAME:ACTIVATE(0) Called from: C:\fuentes\xharbour\mocwin2006\PRG\gespaq.prg => MAIN(143) ********************** La parte del programa a la que hace referencia es REDEFINE SBUTTON oBtn1 ID 550 OF oDlg RESOURCE "Lamp1", "Lamp2",, "Lamp3", 'shape3' SHAPE PROMPT "Aceptar" TEXT ON_RIGHT ; ACTION iif( ValidaUser(cClave, @oClave,"C" ) ,; (Seguir:=.T., SEAT1->(rlock()),SEAT1->Activo:=.t.,seat1->(dbUnlock()),oDlg:End()) , oBtn2:sendmsg( FM_CHANGEFOCUS ) ) Esto en harbour me funciona; creo recordar que éste error me salió el otro día cuando estaba pasando de Five a harbour y la verdad, no sé cómo lo solucioné. Un saludo Jose Luis
Bitmap en folder
Jose Luis, > Error description: Error BASE/1086 Argument error: ++ > REDEFINE SBUTTON oBtn1 ID 550 OF oDlg RESOURCE "Lamp1", "Lamp2",, "Lamp3", 'shape3' SHAPE PROMPT "Aceptar" TEXT ON_RIGHT ; ACTION iif( ValidaUser(cClave, @oClave,"C" ) ,; (Seguir:=.T., SEAT1->(rlock()),SEAT1->Activo:=.t.,seat1->(dbUnlock()),oDlg:End()) , oBtn2:sendmsg( FM_CHANGEFOCUS ) > Ahi no se ve ningún "++" Busca dentro del fuente de TSButton
Bitmap en folder
Cual és la versión de FIVEWIN y XHARBOUR que usas?? Kreo ke necesitas de una TSBUTTON/TSBROWSE generada para la Versión que usted usas.
Bitmap en folder
Creo que es la 2.8 (la revisión de Octubre). He recompilado Tsbutton con ésta version a través de verce 4.3. En fin, seguiré probando Saludos Jose Luis
Bitmap en folder
Intente en HARBOUR: No Incorpore a tu proyecto, la Libreria FOLDBMP32.LIB(XHARBOUR) y si, FOLDBMP.LIB(HARBOUR). Kreo, ke és esto. Original: <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=473">http://www.fivewin.com.br/exibedicas.asp?id=473</a><!-- m --> Saludos
Bitmap en folder
Mira estes ejemplos también: <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=627">http://www.fivewin.com.br/exibedicas.asp?id=627</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=603">http://www.fivewin.com.br/exibedicas.asp?id=603</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=549">http://www.fivewin.com.br/exibedicas.asp?id=549</a><!-- m -->
Bitmap en folder
Sabeis lo que me pasa? Pues que me pierdo con la cantidad de librerias para lo mismo. Sbutton, Sbuttonh, Tsbutton, etc.. y ya no se ni que version de tsbutton.Compilo una tsbutton, y me da algun error, compilo otra y me da otro error, y ya la que no me da error al compilar, pue la meto en la aplicación, y empiezan los errores como éste. Por ejemplo ayer estuve con el tema de probar en lugar de harbour, xharbour desde las 9 de la mañana hasta las 3 de la madrugada solo descansando para comer, y lo mas frustrante es que no avanzo nada. Me gustaria que funcionara todo como en fivewin y definitivamente tener tiempo para dedicarme a mejorar la aplicación en sí con cosas que necesito, pero como no soy capaz de que funcione nada, pues estoy parado y preocupado porque la aplicación se necesita acabada en mi empresa. Un saludo Jose Luis
Bitmap en folder
José, cuando si está iniciando, el ideal, és que siempre se use CONTROLES NATIVOS DEL FIVEWIN, y no cosas de terceros. Siempre que usted tengas una versión nueva de FIVEWIN o XHARBOUR, és necesario, REGENERAR LAS LIBRERIAS.
Bitmap en folder
Aki, un ejemplo de como GENERAR LA LIBRERIA DE TSBUTTON. <!-- m --><a class="postlink" href="http://www.fivewin.com.br/Dicas/520BAR_TSBUT.zip">http://www.fivewin.com.br/Dicas/520BAR_TSBUT.zip</a><!-- m -->
Bitmap en folder
Hola Joao Muchas gracias por tu interés. - Con respecto a lo del folder en harbour: Si enlazo con la libreria que me has dicho, me sale este error *************************** Application =========== Path and name: C:\fuentes\harbour\mocwin2006\gespaq.Exe (32 bits) Size: 813,056 bytes Time from start: 0 hours 0 mins 4 secs Error occurred at: 19/11/06, 13:23:17 Error description: Error BASE/1086 Argument error: ++ Args: [ 1] = U Stack Calls =========== Called from: => TFOLDER(0) Called from: C:\fuentes\harbour\mocwin2006\PRG\prove.prg => ENTREG(205) Called from: C:\fuentes\harbour\mocwin2006\PRG\prove.prg => (b)PROVE(111) ********************** - Con respecto al tema del button en xharbour: si enlazo con la que me dices me sale el siguiente error *********************** Application =========== Path and name: C:\fuentes\xharbour\mocwin2006\gespaq.Exe (32 bits) Size: 813,056 bytes Time from start: 0 hours 0 mins 4 secs Error occurred at: 19/11/06, 13:23:17 Error description: Error BASE/1086 Argument error: ++ Args: [ 1] = U Stack Calls =========== Called from: => TSBUTTON(0) Called from: C:\fuentes\xharbour\mocwin2006\PRG\gespaq.prg => ENTREG(789) Called from: C:\fuentes\xharbour\mocwin2006\PRG\gespaq.prg => (b)PROVE(102) **************************** Y como ya me constesto Antonio, que en las líneas a las que hace referencia no hay ningún argumento ++, por lo que tiene que estar en las librerias. El caso es que ésto siempre me ocurre con cualquier libreria externa que yo intento enlazar tanto en harbour como en xharbour, tanto si creo las librerias con los rmake que me vienen en ellas, como si lo hago con verce 4.3. Así que como creo que soy incapaz, y que mis conocimientos no son suficientes para gestionar este maremagnum de errores, librerias, etc., voy a seguir con mi fivewin de siempre, y que no me da ningun problema. Incluso, aunque dispongo de todos los hasta las 2.8, sigo utilizando la 2.4, ya que a partir de ella, si intento hacer algo, siempre hay algún error en algún sitio. Es una lástima porque llevo intentando aplicar harbour ó xharbour desde que salió el primer proyecto harbour, pero pierdo muchisimo tiempo. A lo más que he llegado es a poder compilar los ejemplos que vienen con cada revisión, y funcionan perfectamente, pero luego los aplico a mis programas y empiezan los errores y ya estamos en el ajo. Gracias a todos y Saludos Jose Luis
Bitmap from Resource for TFolderEx()
hi, i want to add Bitmap to TFolder but all Sample use File "from Disk" [code=fw:1si47wi8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">local</span> aBitmaps := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\e</span>xit.bmp"</span>,;<br />                    ...<br />                    <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\e</span>xit.bmp"</span> <span style="color: #000000;">&#125;</span><br /><br />   @ <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ADJUST</span>;<br />          <span style="color: #0000ff;">PROMPT</span>  <span style="color: #ff0000;">"Opction 1 fghfg abcd"</span>, <span style="color: #ff0000;">"Option 2"</span>, <span style="color: #ff0000;">"Option 3"</span>, <span style="color: #ff0000;">"Option 4"</span>, <span style="color: #ff0000;">"Option 5"</span>, <span style="color: #ff0000;">"Option 6"</span><span style="color: #000000;">&#41;</span><br />          <span style="color: #0000ff;">BITMAPS</span> aBitmaps;</div>[/code:1si47wi8] how to use Resource like "MYFIXDRIVE16" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> --- when use oTab:AddItem() how to assign Bitmap to new TAB <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Bitmap from Resource for TFolderEx()
:SetBitmap("aaa(16x32)", n) :Refresh()
Bitmap from Resource for TFolderEx()
hi, [quote="Natter":21yhymxs]:SetBitmap("aaa(16x32)", n) :Refresh()[/quote:21yhymxs] YES, that work fine <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> thx
Bitmap from a variable
Hi, I was counting a recordset from the MariaDB database. From this recordset, I load the bitmap into the TImage control using the method :LoadFromMemory(). Everything works fine. However, the downloaded bitmap looks bad. I don't know what the reason is, but the bitmap downloaded from the file looks good. I wanted to try using TXImage, but I don't know how to load a bitmap from a variable into it
Bitmap from a variable
oImage:SetSource( ... )
Bitmap from a variable
Thank you Rao ! Everything is fine with TXImage
Bitmap from a variable
Bitmap looks good in TXImage. I save it using the method :Save(). However, the Bitmap saved to the file looks much worse
Bitmap from a variable
Dear Natter, CLASS TXImage METHOD Save( lAsViewed, cFile, nQuality ) what nQuality parameter value are you using ? Please try with 100
Bitmap from the window client-area
How to make this? Wndprint() etc. brings always the complete window with bar and so.
Bitmap from the window client-area
Gunther, I have never tried this, but TBitmap inherts a print method from TWindow, so try: oBmp:Print( oTarget, nRow, nCol, nScale ) Where oTarget is the printer object. Regards, James
Bitmap in XBrowse
Dear All, Dear Mr. RAO, Is xBrowse can do this dual bitmap? [img:14cvrpx1]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/tree&#46;png[/img:14cvrpx1] any sample?
Bitmap in XBrowse
Just an update.. I tricked it. I used these images for xBrw:SetTree( oTree, { 'openbook', 'closebook', 'Blank16' } ) [img:3r7ygsfa]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/toc_openbook&#46;jpg[/img:3r7ygsfa] [img:3r7ygsfa]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/toc_closedbook&#46;jpg[/img:3r7ygsfa] [img:3r7ygsfa]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/xtree&#46;png[/img:3r7ygsfa] But the issue of independently display 2 or more images for the Tree is istill undone.
Bitmap in XBrowse
[quote:382x7kvx]I tricked it. I used these images for xBrw:SetTree( oTree, { 'openbook', 'closebook', 'Blank16' } ) [/quote:382x7kvx] This is the best and only solution.
Bitmap in XBrowse
Dear Mr. RAO, Thanks for the clarification.. The tricked works just like it.
Bitmap in version 24 February
In my program I display bitmap in background. [code:1w56k0d9]@ 0,0 BITMAP oBmp1 FILENAME CURDIR&#40;&#41;+'\rybcie&#46;bmp' OF oWnd SIZE 250,280 NOBORDER [/code:1w56k0d9] In prior version of FWPPC it was correct. Now this bitmap look like [code:1w56k0d9]oBmp1&#58;lTransparent&#58;=&#46;T&#46; [/code:1w56k0d9] but I can't change this Data. What is wrong? regards Eugeniusz
Bitmap in version 24 February
Eugeniusz, Set the bitmap pixel 0, 0 to a different color to all the others pixels in the bitmap, and none of them will be made transparent. We have changed the used function to display them in order to get transparency by request from FWPPC users.
Bitmap in version 24 February
Thank You Antonio. When TBrush class will be ready? regards Eugeniusz
Bitmap in version 24 February
Eugeniusz, Class TBrush is already working. What test have you done ?
Bitmap in xBrowse
Hi all, i have a xBrowse column where i put a bitmap beside the data to show that there is something special with that data. Unfortunately this bitmap gets badly visible when the row gets selected. I know it's not a xBrowse error but bad color from my side. [img:z3l6wd59]http&#58;//www&#46;d-hoefner&#46;de/files/fw-screen&#46;gif[/img:z3l6wd59] Is there a way just to highlite only colums 2 and 3 so that my bitmaps stays visible? Regards, Detlef
Bitmap in xBrowse
there is another topic for this problem We are working ( daniel, Uwe and me) to resolve the problem <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=14347">viewtopic.php?f=3&t=14347</a><!-- l -->
Bitmap in xBrowse
Hello Detlef, can You add these two lines to Your xBrowser, to see, if there is a change ? In my tests, the BMP is visible. [code:11try099] // for < oBrw > use Your browse-object // ------------------------------------------- aClrCol &#58;= { { 0, 15724527 }, { 0, 14671839 } } // Alternated Colors oBrw&#58;bClrStd &#58;= { || aClrCol&#91; oBrw&#58;KeyNo % 2 + 1 &#93; } [/code:11try099] Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Bitmap in xBrowse
Hi Silvio and Uwe, i think i made a bad description of my problem. The bitmap is not hidden. Its just too dark and a dark lightbar makes it hard to see. I now made the lightbar with a very bright color. But i would prefer a lightbar with the original blue color which covers only my columns 2, 3 and not column 1. Someone how how to do this? Thanks for your advices. Regards, Detlef
Bitmap in xBrowse
Detlef, Try to set this DATA of your first column object: [code:ri3coq1n] oCol1&#58;bClrSelFocus = { || { CLR_BLACK, CLR_WHITE } } [/code:ri3coq1n] Here you have a working example: [code:ri3coq1n] #include "FiveWin&#46;ch" #include "XBrowse&#46;ch" function Main() local oWnd, oBrw, oCol USE Customer DEFINE WINDOW oWnd @ 0, 0 XBROWSE oBrw OF oWnd ALIAS "Customer" oCol = oBrw&#58;AddCol() oCol&#58;bStrData = { || Customer->First } oCol&#58;cHeader = "First" oCol&#58;bClrSelFocus = { || { CLR_BLACK, CLR_WHITE } } oCol = oBrw&#58;AddCol() oCol&#58;bStrData = { || Customer->Last } oCol&#58;cHeader = "Last" oCol = oBrw&#58;AddCol() oCol&#58;bStrData = { || Customer->Street } oCol&#58;cHeader = "Street" oBrw&#58;nMarqueeStyle = MARQSTYLE_HIGHLROW oBrw&#58;CreateFromCode() oWnd&#58;oClient = oBrw ACTIVATE WINDOW oWnd return nil [/code:ri3coq1n] [url=http&#58;//imageshack&#46;us:ri3coq1n][img:ri3coq1n]http&#58;//img525&#46;imageshack&#46;us/img525/9881/capturenr9&#46;png[/img:ri3coq1n][/url:ri3coq1n]
Bitmap in xBrowse
Hello Detlef, You can use Antonio's solution or change the color of the focused row with any of the blue-color-values ( +, ++ ( lighter ) : [code:zazks5st] // 0 = Black // 16777215 = White // 8388608 = DarkBlue // 15365376 = Blue + // 16757606 = Blue ++ // 16764831 = Blue +++ // 16767411 = Blue ++++ // Selected Row-color on Focus ( Text / Background ) // ------------------------------------------------------------ oLbx&#58;bClrSelFocus = { || { 0, 16757606 } } // Selected Row-color on change Focus ( Text / Background ) // ----------------------------------------------------------------- oLbx&#58;bClrSel = { || { 0, 16757606 } } [/code:zazks5st] Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Bitmap in xBrowse
Antonio, many thanks for your help. Its working fine now. Also thanks to Uwe for your color tip. Regards, Detlef
Bitmap in xBrowse
Hello Detlef, A screenshot : [img:1he8ayl1]http&#58;//www&#46;pflegeplus&#46;com/pictures/colors7&#46;jpg[/img:1he8ayl1] Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Bitmap in xBrowse
why on my application I cannot see the bitmaps ???????
Bitmap in xBrowse
Hello Silvio, I hope I get it ready, to put a early release of the tools tomorrow in this place. It is easy for You, to check all possible combinations to see what's wrong. There are 9 different backgrounds together for Windows and Dialog = 18 Test. These tests in combination with Marquestyles ( 7 ) are together 126 Tests. Maybe with all the tests, we can find out, what's wrong. Some combinations are working ( 80 % <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> ), some not. Test Selection [img:3nnm2ifm]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrowse30&#46;jpg[/img:3nnm2ifm] Selection Result ( xBrowse-Test in Windows and Dialog together ) [img:3nnm2ifm]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrowse31&#46;jpg[/img:3nnm2ifm] Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Bitmap in xBrowse
I use a special dialog ( nOR( WS_CHILD, 4 )) and I put xbrowse into Now I use this : [code:pv3r6973] App()&#58;oDlg&#58;NewGrid( nSplit ) oApp()&#58;oGrid&#58;nColDividerStyle &#58;= LINESTYLE_BLACK oApp()&#58;oGrid&#58;nRowDividerStyle &#58;= LINESTYLE_FORECOLOR oApp()&#58;oGrid&#58;nMarqueeStyle &#58;=MARQSTYLE_HIGHLCELL oApp()&#58;oGrid&#58;lColDividerComplete &#58;= &#46;T&#46; oApp()&#58;oGrid&#58;lRecordSelector &#58;= &#46;F&#46; oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;AddResource("sort1") oCol&#58;AddResource("sort2") oCol&#58;bStrData &#58;= { || (oDCli)->NUMCLI} oCol&#58;cHeader &#58;= "Codice" oCol&#58;nWidth &#58;= 80 oCol&#58;nHeadBmpNo &#58;= 1 oCol&#58;nHeadBmpAlign &#58;= AL_RIGHT oCol&#58;bLClickHeader &#58;={ ||(Sel_Index(1,oDCli), oApp()&#58;oTab&#58;nOption&#58;=1,oApp()&#58;oTab&#58;refresh()) } //PER LA SELEZIONE oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;AddResource("C_Pal") oCol&#58;AddResource("STATO3") oCol&#58;bBmpData &#58;= { || Ds_Mar(1,2)} oCol&#58;cHeader &#58;= "" oCol&#58;nWidth &#58;= 25 oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;AddResource("sort1") oCol&#58;AddResource("sort2") oCol&#58;bStrData &#58;= { || (oDCli)->NOMEINTERO} oCol&#58;cHeader &#58;= "Cognome Nome" oCol&#58;nWidth &#58;= 250 oCol&#58;nHeadBmpNo &#58;= 2 oCol&#58;nHeadBmpAlign &#58;= AL_RIGHT oCol&#58;bLClickHeader &#58;={ ||(Sel_Index(2,oDCli), oApp()&#58;oTab&#58;nOption&#58;=2,oApp()&#58;oTab&#58;refresh()) } oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;AddResource("sort1") oCol&#58;AddResource("sort2") oCol&#58;AddResource("UOMO") oCol&#58;AddResource("DONNA") * oCol&#58;bStrData &#58;= { || (oDCli)->SESSO} oCol&#58;bBmpData &#58;= { || IF( ALLTRIM(UPPER("UOMO")) $ ALLTRIM(UPPER((oDCli)->SESSO)),3,4)} oCol&#58;cHeader &#58;= "Sesso" oCol&#58;nWidth &#58;=40 oCol&#58;nHeadBmpNo &#58;= 2 oCol&#58;nHeadBmpAlign &#58;= AL_RIGHT oCol&#58;bLClickHeader &#58;={ ||(Sel_Index(3,oDCli) , oApp()&#58;oTab&#58;nOption&#58;=3,oApp()&#58;oTab&#58;refresh()) } oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;AddResource("FONDATORE") oCol&#58;AddResource("ORDINARIO") oCol&#58;AddResource("SOSTENITORE") oCol&#58;AddResource("ALTRO") *oCol&#58;bStrData &#58;= { || (oDCli)->TIPO} oCol&#58;cHeader &#58;= "Adesione" * oCol&#58;bEditValue &#58;= { || (oDCli)->TIPO } oCol&#58;nDataStyle &#58;= oCol&#58;DefStyle( AL_LEFT, &#46;T&#46;) oCol&#58;bBmpData &#58;= { || (oDCli)->TIPO} oCol&#58;nWidth &#58;= 30 oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;AddResource("sort1") oCol&#58;AddResource("sort2") oCol&#58;AddResource("ATTIVO") oCol&#58;AddResource("NOATTIVO") *oCol&#58;bStrData &#58;= { || (oDCli)->STATO} oCol&#58;cHeader &#58;= "Status" oCol&#58;nHeadBmpNo &#58;= 2 oCol&#58;nHeadBmpAlign &#58;= AL_RIGHT oCol&#58;bBmpData &#58;= { || iif( (oDCli)->STATO, 3, 4) } oCol&#58;bLClickHeader &#58;={ ||(Sel_Index(5,oDCli) , oApp()&#58;oTab&#58;nOption&#58;=5,oApp()&#58;oTab&#58;refresh()) } oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;AddResource("sort1") oCol&#58;AddResource("sort2") oCol&#58;nHeadBmpNo &#58;= if( (oDCli)->( ORDNUMBER() ) == 6, 1, 2) oCol&#58;nHeadBmpAlign &#58;= AL_RIGHT oCol&#58;bLClickHeader &#58;={ ||(Sel_Index(7,oDCli) , oApp()&#58;oTab&#58;nOption&#58;=7,oApp()&#58;oTab&#58;refresh()) } oCol&#58;AddBmpFile("&#46;\BITMAPS\MENU\GRADI\GIOVANE&#46;BMP") oCol&#58;AddBmpFile("&#46;\BITMAPS\MENU\GRADI\PENSIONATO&#46;BMP") oCol&#58;AddBmpFile("&#46;\BITMAPS\MENU\GRADI\STUDENTE&#46;BMP") oCol&#58;AddBmpFile("&#46;\BITMAPS\MENU\GRADI\ESPERTO&#46;BMP") oCol&#58;AddBmpFile("&#46;\BITMAPS\MENU\GRADI\OBIETTORE&#46;BMP") oCol&#58;AddBmpFile("&#46;\BITMAPS\MENU\GRADI\REGIONALE&#46;BMP") oCol&#58;bStrData &#58;= { || (oDCli)->ATTIVITA} oCol&#58;cHeader &#58;= "Tipo" oCol&#58;bEditValue &#58;= { || (oDCli)->ATTIVITA } oCol&#58;nDataStyle &#58;= oCol&#58;DefStyle( AL_LEFT, &#46;T&#46;) oCol&#58;bBmpData &#58;= { || (oDCli)->attivita + 2} oCol&#58;nWidth &#58;=40 oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;AddResource("sort1") oCol&#58;AddResource("sort2") oCol&#58;cHeader &#58;= "Grado" oCol&#58;nHeadBmpNo &#58;= if( (oDCli)->( ORDNUMBER() ) == 7, 1, 2) oCol&#58;nHeadBmpAlign &#58;= AL_RIGHT oCol&#58;bLClickHeader &#58;={ ||(Sel_Index(6,oDCli) , oApp()&#58;oTab&#58;nOption&#58;=6,oApp()&#58;oTab&#58;refresh()) } oCol&#58;AddResource("GRADO1") oCol&#58;AddResource("GRADO2") oCol&#58;AddResource("GRADO3") oCol&#58;AddResource("GRADO4") oCol&#58;AddResource("GRADO5") oCol&#58;AddResource("GRADO6") oCol&#58;AddResource("GRADO7") oCol&#58;AddResource("GRADO8") oCol&#58;AddResource("GRADO0") oCol&#58;bStrData &#58;= { || (oDCli)->GRADO} oCol&#58;bBmpData &#58;= { || (oDCli)->GRADO + 2} oCol&#58;nWidth &#58;=40 oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;bStrData &#58;= { || CF((oDCli)->NASCITA)} oCol&#58;cHeader &#58;= "Data di nascita" oCol&#58;nWidth &#58;= 90 oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;bStrData &#58;= { || (oDCli)->LUO_NASC } oCol&#58;cHeader &#58;= "Luogo di Nascita" oCol&#58;nWidth &#58;= 150 oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;bStrData &#58;= { || (oDCli)->INDIRIZZO } oCol&#58;cHeader &#58;= "Indirizzo" oCol&#58;nWidth &#58;= 200 oCol&#58;= oApp()&#58;oGrid&#58;AddCol() oCol&#58;AddResource("sort1") oCol&#58;AddResource("sort2") oCol&#58;bStrData &#58;= { || (oDCli)->LOCALITA } oCol&#58;cHeader &#58;= "Località" oCol&#58;nWidth &#58;= 100 oCol&#58;bLClickHeader &#58;={ ||(Sel_Index(4,oDCli), oApp()&#58;oTab&#58;nOption&#58;=4,oApp()&#58;oTab&#58;refresh()) } oApp()&#58;oGrid&#58;nFreeze &#58;=3 oApp()&#58;oGrid&#58;SetRDD() * oApp()&#58;oGrid&#58;bClrStd &#58;= { || Colores(oDCli) } * oApp()&#58;oGrid&#58;bClrStd &#58;= {|| {CLR_WHITE, CLR_BLACK} } * oApp()&#58;oGrid&#58;cBmpAdjBrush &#58;="&#46;\bitmaps\pclogog&#46;BMP" oApp()&#58;oGrid&#58;bClrStd &#58;= { || Colores(oDCli) } oApp()&#58;oGrid&#58;SetBackGround( "&#46;\bitmaps\pclogog&#46;BMP" ) oApp()&#58;oGrid&#58;CreateFromCode() oApp()&#58;oGrid&#58;bChange &#58;={ || (RefreshCont(oCont,oDCli)) } oApp()&#58;oGrid&#58;bRClicked &#58;= {|nRow,nCol| Disp_Men(oApp()&#58;oDlg,nRow,nCol,oDCli) } oApp()&#58;oGrid&#58;bKeyDown &#58;={|nKey| Val_nKey(nKey,oApp()&#58;oDlg) [/code:pv3r6973] I can see the bitmaps but the bar is on each cell and not on each row as U can see here : [img:pv3r6973]http&#58;//img516&#46;imageshack&#46;us/img516/3290/cellvdsdb5&#46;png[/img:pv3r6973] I cannot use the backgroud because in this mode it not is usefull...
Bitmap in xBrowse
Hello Silvio, during preparing the download, I tested colors. Because of a mistake, the rowselection of the dialog was white. Suddenly I could see the bitmap. Slowly I am a little bit perplexed. [code:334hwsk3] oBrw&#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLROW oBrw&#58;nRecSelColor = 15512898 // Selected Row Black on White oBrw&#58;bClrSelFocus = { || { 0, 16777215 } } // LostFocus Black on White oBrw&#58;bClrSel = { || { 0, 16777215 } } [/code:334hwsk3] [img:334hwsk3]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrowse50&#46;jpg[/img:334hwsk3] The same Test with a brush : [img:334hwsk3]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrowse52&#46;jpg[/img:334hwsk3] Regards Uwe <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
Bitmap in xBrowse
Now run but now I have a white bar I wish have a bar with a light color how I can modify it ?
Bitmap in xBrowse
found !!! I insert the darkorange color office 2007 style ...now I see bitmaps oApp():oGrid:nColDividerStyle := LINESTYLE_BLACK oApp():oGrid:nRowDividerStyle := LINESTYLE_FORECOLOR oApp():oGrid:nMarqueeStyle := MARQSTYLE_HIGHLROW oApp():oGrid:nRecSelColor = 15512898 // Selected Row Black on White oApp():oGrid:bClrSelFocus = { || { 0, nRGB( 238, 152, 25 ) } } // LostFocus Black on White oApp():oGrid:bClrSel ={ || { 0, nRGB( 238, 152, 25 ) } }
Bitmap in xBrowse
#define DARKCYAN nRGB( 125, 165, 224 ) oApp():oGrid:nRecSelColor = 15512898 // Selected Row Black on White oApp():oGrid:bClrSelFocus = { || { 0, DARKCYAN } } // LostFocus Black on White oApp():oGrid:bClrSel ={ || { 0, DARKCYAN } } [img:2lzin9j7]http&#58;//img243&#46;imageshack&#46;us/img243/6773/bargoodmu6&#46;png[/img:2lzin9j7]
Bitmap o imagen en message de window - Solucionado
Buenas noches, Lo que me interesaría es colocar un par de bitmap, según un estado lógico, en el set message de la window principal. Actualmente uso: [code=fw:16i9csqr]<div class="fw" id="{CB}" style="font-family: monospace;">set <span style="color: #0000ff;">message</span> <span style="color: #0000ff;">of</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Sistema de Gestión de '</span> + cCompania<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #0000ff;">font</span> oMsgfont CLOCK DATE KEYBOARD <span style="color: #000000;">2007</span></div>[/code:16i9csqr] Pero me interesaría agregar, como dije, un par de bitmaps en esta línea de message. Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Bitmap o imagen en message de window - Solucionado
Hola, ¿Alguna idea al respecto?. ¿Se puede hacer? Gracias. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Bitmap o imagen en message de window - Solucionado
Hola Rolando prueba asi [quote:3bzu56uw] SET MESSAGE OF oWnd TO "Sistema Administrativo Comercial, © 2012, por Patricio Avalos Aguirre";// 2007; COLOR CLR_BLACK, CLR_NBLUE oWnd:oMsgBar:AddItem( TMsgItem():New( oWnd:oMsgBar, "PATRICIO", 150, , , , , { || msgInfo("action")}, ; "AYUDA" ) ) /*METHOD New( oMsgBar, cMsg, nWidth, oFont, nClrText, nClrBack, lAdd, bAction,; cBmp1, cBmp2, cToolTip ) CLASS TMsgItem*/ [/quote:3bzu56uw]
Bitmap o imagen en message de window - Solucionado
Patricio, Muchas gracias. Funciona perfecto. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Bitmap o imagen en message de window - Solucionado
rolando entonces edita el primer mensaje y en asunto ponle al final SOLUCIONADO
Bitmap on image
Hello, I need to put an image (tBITMAP) using transparency over an image (tIMAGE) in the Window. But transparency does not work, could anyone help? Thank you.
Bitmap on image
Christiano, Please have a look at sample < [color=#0000FF:3aqf2n6i]BmponBmp.p[/color:3aqf2n6i]rg > If it doesn't work, there will be a problem with Your top-image. regards uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Bitmap on listbox
I tried fwbrowse sample into fwppc but it not run ok I not see any bitmaps I want show bitmaps for level as fwbrowse.prg ( clients functions)
Bitmap on listbox
Hello can you try Listbox? The way I use bitmaps in listbox works fine, (this example for simulate mark/Unmark a browse cell: [code=fw:2zcgynle]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; hBmpCheckOn := LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"checkon"</span> <span style="color: #000000;">&#41;</span>&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; hBmpCheckOff:= LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"checkoff"</span> <span style="color: #000000;">&#41;</span>&nbsp;&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">LISTBOX</span> aoLbx<span style="color: #000000;">&#91;</span>LBX_GRUPOPR<span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FIELDS <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> PasGrpPr->OK=<span style="color: #ff0000;">" "</span>, hBmpCheckOff, hBmpCheckOn <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PasGrpPr->DESCRIPCIO,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PasGrpPr-><span style="color: #000000;">&#40;</span>TRANSFORM<span style="color: #000000;">&#40;</span>CANTIDAD,<span style="color: #ff0000;">"99999.9"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PasGrpPr-><span style="color: #000000;">&#40;</span>TRANSFORM<span style="color: #000000;">&#40;</span>PRECIO,<span style="color: #ff0000;">"99,999.99"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PasGrpPr-><span style="color: #000000;">&#40;</span>transform<span style="color: #000000;">&#40;</span>existencia,<span style="color: #ff0000;">"99999"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HEADERS <span style="color: #ff0000;">"Ok"</span>, <span style="color: #ff0000;">"Descripcion"</span>, <span style="color: #ff0000;">"Cant"</span>, <span style="color: #ff0000;">"Precio"</span>, <span style="color: #ff0000;">"Existencia"</span> ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">901</span> <span style="color: #0000ff;">OF</span> aoDlgs<span style="color: #000000;">&#91;</span>DLG_GRUPOPR<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ALIAS</span> cAlias2<br />&nbsp;</div>[/code:2zcgynle] see the result .ppo and you can view how the function is called.
Bitmap on listbox
thank you but on fbrowse.prg ( fwh) the bitmaps are different : look here please [code=fw:3cwmmak0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Clients<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oLbx<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cVar<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aHBitMaps:= <span style="color: #000000;">&#123;</span> ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\L</span>evel1.bmp"</span> <span style="color: #000000;">&#41;</span>, ; <span style="color: #B900B9;">// BitMaps de 14 x 32</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\L</span>evel2.bmp"</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\L</span>evel3.bmp"</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\L</span>evel4.bmp"</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\L</span>evel5.bmp"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"clientes.dbf"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DbCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Clientes.dbf"</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Nombre"</span>, &nbsp; &nbsp;<span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Direccion"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Telefono"</span>, &nbsp;<span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Edad"</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"N"</span>, &nbsp;<span style="color: #000000;">2</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Productos"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Nivel"</span>, &nbsp; &nbsp; <span style="color: #ff0000;">"N"</span>, &nbsp;<span style="color: #000000;">2</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;USE Clientes<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> RecCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; APPEND BLANK<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Clientes->Nombre <span style="color: #0000ff;">TO</span> CliName<br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> CliName<br /><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">26</span>, <span style="color: #000000;">79</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Clients Management"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, &nbsp;<span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">" &Clients List"</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">LISTBOX</span> oLbx FIELDS aHBitmaps<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, Clientes->Nivel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Clientes->Nombre, AllTrim<span style="color: #000000;">&#40;</span> Clientes->Direccion <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Clientes->Telefono,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Str<span style="color: #000000;">&#40;</span> Clientes->Edad, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEADERS &nbsp; &nbsp;<span style="color: #ff0000;">"L"</span>, <span style="color: #ff0000;">"Name"</span>, <span style="color: #ff0000;">"Address"</span>, <span style="color: #ff0000;">"Phone"</span>, <span style="color: #ff0000;">"Age"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELDSIZES <span style="color: #000000;">16</span>, <span style="color: #000000;">222</span>, <span style="color: #000000;">213</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">24</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">284</span>, <span style="color: #000000;">137</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Lets use different row colors</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nClrText</span> &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#123;</span> || SelColor<span style="color: #000000;">&#40;</span> Clientes->Nivel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nClrForeFocus</span> = <span style="color: #000000;">&#123;</span> || SelColor<span style="color: #000000;">&#40;</span> Clientes->Nivel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">bRClicked</span> &nbsp; &nbsp; = <span style="color: #000000;">&#123;</span> | nRow, nCol | ShowPopup<span style="color: #000000;">&#40;</span> nRow, nCol, oLbx <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Try different line styles !!!</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nLineStyle</span> = <span style="color: #000000;">1</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">bKeyChar</span> := <span style="color: #000000;">&#123;</span>|nKey| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nKey == VK_RETURN , EditRecord<span style="color: #000000;">&#40;</span> oLbx <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">aJustify</span> = <span style="color: #000000;">&#123;</span> .f., .f., .t., .f., .t. <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Uncomment this to quickly calculate the desired columns width</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Right click with the mouse over the browse and you will</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// see the columns sizes!</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// oLbx:bRClicked = { || oLbx:ShowSizes() }</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">8.7</span>, &nbsp;<span style="color: #000000;">1.4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&New"</span> &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> EditClient<span style="color: #000000;">&#40;</span> oLbx, .t. <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">8.7</span>, &nbsp;<span style="color: #000000;">9.4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Modify"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> EditClient<span style="color: #000000;">&#40;</span> oLbx, .f. <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">8.7</span>, <span style="color: #000000;">17.4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Delete"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> DelClient<span style="color: #000000;">&#40;</span> oLbx <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">8.7</span>, <span style="color: #000000;">25.4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Search"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> SeekClient<span style="color: #000000;">&#40;</span> oLbx <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">8.7</span>, <span style="color: #000000;">33.4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Print"</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> oLbx:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"clients Report"</span>, .t. <span style="color: #000000;">&#41;</span> ; &nbsp;<span style="color: #B900B9;">// .t. --> wants preview</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">8.7</span>, <span style="color: #000000;">42</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Exit"</span> &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp;USE<br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aHBitmaps, <span style="color: #000000;">&#123;</span> | hBmp | DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:3cwmmak0]
Bitmap on listbox
I dont know FWH yet, but apears to be very similar, maybe if you increase column 1 size more than 16...
Bitmap on listbox
Hi Silvio: [quote="Silvio":2tyl3h8k]I tried fwbrowse sample into fwppc but it not run ok I not see any bitmaps I want show bitmaps for level as fwbrowse.prg ( clients functions)[/quote:2tyl3h8k] You should better use resources for bitmaps, here you are a working sample: [code=fw:2tyl3h8k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FWCE.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Local</span> oWnd, oLbx, ;<br />         aHBitMaps:= <span style="color: #000000;">&#123;</span> LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Level1"</span> <span style="color: #000000;">&#41;</span>, ;<br />                       LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Level3"</span> <span style="color: #000000;">&#41;</span>, ;<br />                       LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Level2"</span> <span style="color: #000000;">&#41;</span>, ;<br />                       LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Level4"</span> <span style="color: #000000;">&#41;</span>, ;<br />                       LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Level5"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   USE <span style="color: #000000;">&#40;</span> CurDir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"<span style="color: #000000;">\C</span>lientes"</span> <span style="color: #000000;">&#41;</span> EXCLUSIVE <span style="color: #00C800;">NEW</span><br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Clientes->Nombre <span style="color: #0000ff;">TO</span> CliName<br />   SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> CliName<br />   GO TOP<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Clients Management"</span><br /><br />   @  <span style="color: #000000;">0</span>,  <span style="color: #000000;">0</span> <span style="color: #0000ff;">LISTBOX</span> oLbx ;<br />            FIELDS aHBitmaps<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, Clientes->Nivel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>, ;<br />                              Clientes->Nombre, AllTrim<span style="color: #000000;">&#40;</span> Clientes->Direccion <span style="color: #000000;">&#41;</span>, ;<br />                              Clientes->Telefono, ;<br />                              Str<span style="color: #000000;">&#40;</span> Clientes->Edad, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />            HEADERS <span style="color: #ff0000;">"L"</span>, <span style="color: #ff0000;">"Name"</span>, <span style="color: #ff0000;">"Address"</span>, <span style="color: #ff0000;">"Phone"</span>, <span style="color: #ff0000;">"Age"</span> ;<br />            FIELDSIZES <span style="color: #000000;">16</span>, <span style="color: #000000;">112</span>, <span style="color: #000000;">112</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">24</span> ;<br />            <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">234</span>, <span style="color: #000000;">263</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br />   <span style="color: #B900B9;">// Lets use different row colors</span><br />   oLbx:<span style="color: #000000;">nClrText</span>      = <span style="color: #000000;">&#123;</span> || SelColor<span style="color: #000000;">&#40;</span> Clientes->Nivel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oLbx:<span style="color: #000000;">nClrForeFocus</span> = <span style="color: #000000;">&#123;</span> || SelColor<span style="color: #000000;">&#40;</span> Clientes->Nivel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   <span style="color: #B900B9;">// Try different line styles !!!</span><br />   oLbx:<span style="color: #000000;">nLineStyle</span> = <span style="color: #000000;">1</span><br />   oLbx:<span style="color: #000000;">aJustify</span> = <span style="color: #000000;">&#123;</span> .F., .F., .F., .F., .T. <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Click!"</span> <span style="color: #000000;">&#41;</span><br /><br />   DbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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;">Static</span> <span style="color: #00C800;">Function</span> SelColor<span style="color: #000000;">&#40;</span> nNivel <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Local</span> nColor := CLR_BLACK<br /><br />   <span style="color: #00C800;">Do</span> <span style="color: #00C800;">Case</span><br />      <span style="color: #00C800;">Case</span> nNivel == <span style="color: #000000;">1</span><br />           nColor = CLR_HRED<br />      <span style="color: #00C800;">Case</span> nNivel == <span style="color: #000000;">2</span><br />           nColor = CLR_HGREEN<br />      <span style="color: #00C800;">Case</span> nNivel == <span style="color: #000000;">3</span><br />           nColor = CLR_HBLUE<br />   <span style="color: #00C800;">EndCase</span><br /><br /><span style="color: #00C800;">Return</span> nColor </div>[/code:2tyl3h8k] The RC file [code=fw:2tyl3h8k]<div class="fw" id="{CB}" style="font-family: monospace;">Level1 BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itmaps<span style="color: #000000;">\L</span>evel1.bmp"</span><br />Level2 BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itmaps<span style="color: #000000;">\L</span>evel2.bmp"</span><br />Level3 BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itmaps<span style="color: #000000;">\L</span>evel3.bmp"</span><br />Level4 BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itmaps<span style="color: #000000;">\L</span>evel4.bmp"</span><br />Level5 BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itmaps<span style="color: #000000;">\L</span>evel5.bmp"</span><br /> </div>[/code:2tyl3h8k] Make sure that bitmaps are in refered FwPpc folder and "Clientes.dbf" is in PocketPc testing folder. Best regards. Manuel Mercado.
Bitmap on listbox
thanks, but why we cannot use bitmap at folder and we must use resources? Perhaps there is a bug on xharbour ce? I sad this because i try to use pp4 hand basic last year before to purchase fwppc and with it can use all in source , the last one you cannot use are dbf files instead of pdb files. Manuel, when we can use your sbrowse and your sbutton in fwppc? I am sure U're working for us... .
Bitmap on listbox
thanks to All NOW i SEE BITMAPS ON listbox the error I made is this : [b:3lb3yj0d]aHBitMaps:= { ReadBitmap( 0, CurDir() +"\Level1.bmp" ), ; // BitMaps de 14 x 32 ReadBitmap( 0, CurDir() +"\Level2.bmp" ), ; ReadBitmap( 0, CurDir() +"\Level3.bmp" ), ; ReadBitmap( 0, CurDir() +"\Level4.bmp" ),; ReadBitmap( 0, CurDir() +"\Level5.bmp" ) }[/b:3lb3yj0d] instead of this [b:3lb3yj0d]aHBitMaps:= { LoadBitmap( GetResources(), "Level1" ), ; LoadBitmap( GetResources(), "Level3" ), ; LoadBitmap( GetResources(), "Level2" ), ; LoadBitmap( GetResources(), "Level4" ), ; LoadBitmap( GetResources(), "Level5" ) }[/b:3lb3yj0d]
Bitmap on listbox
Hi Silvio: [quote="Silvio":1cc1oyfu]but why we cannot use bitmap at folder and we must use resources? Perhaps there is a bug on xharbour ce?[/quote:1cc1oyfu]Not such a bug, it was just an advice for portability. [quote="Silvio":1cc1oyfu]I sad this because i try to use pp4 hand basic last year before to purchase fwppc and with it can use all in source , the last one you cannot use are dbf files instead of pdb files.[/quote:1cc1oyfu]????? [quote="Silvio":1cc1oyfu]Manuel, when we can use your sbrowse and your sbutton in fwppc?[/quote:1cc1oyfu]No problem with TSBrowse, TSButton have problems with transparency and some non supported GDI functions. [quote="Silvio":1cc1oyfu]I am sure U're working for us...[/quote:1cc1oyfu]Are you? <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Regards. Manuel Mercado
Bitmap on listbox
Sorry Manuel Fwppc perhaps not support GDI but you can found helps from this <!-- m --><a class="postlink" href="http://www.pocketpcdn.com/forum/index.php">http://www.pocketpcdn.com/forum/index.php</a><!-- m --> Or you can see here : <!-- m --><a class="postlink" href="http://www.pocketpcdn.com/articles/transparent_static.html">http://www.pocketpcdn.com/articles/tran ... tatic.html</a><!-- m --> or here <!-- m --><a class="postlink" href="http://www.codeproject.com/KB/mobile/transparent_controls.aspx">http://www.codeproject.com/KB/mobile/tr ... trols.aspx</a><!-- m --> For WinCE 2.0 and later you can the TransparentImage() instead of BitBlt which takes a COLORREF as its last parameter that is used as a transparency color Here's the function prototype for TransparentImage BOOL TransparentImage(HDC hdcDest, LONG DstX, LONG DstY, LONG DstCx, LONG DstCy, HANDLE hSrc, LONG SrcX, LONG SrcY, LONG SrcCx, LONG SrcCy, COLORREF TransparentColor ); It may not do exactly what you want but it will give you a wider range to use as the transparent color for sample I found How draw a circle in Transparency /// This will hold the data regarding the Transparency BLENDFUNCTION blendFunction; blendFunction.BlendOp = (byte)0x00; blendFunction.BlendFlags = (byte)0x00; blendFunction.SourceConstantAlpha = 210; blendFunction.AlphaFormat = (byte)0; //////////////////////////////////////////////////////////////////////////////// /////////// Draw the transpernt image if (0 == AlphaBlend(hdc, 0, BTStripY,DEVICEWIDTH,100, hcompdc, 0, 0, 48,20, blendFunction));
Bitmap on toolbar alignment not fixed in 9.10
There was a report, confirmed by several people, that there exists a problem with the bitmaps / text on toolbars. When the buttons are first displayed, they are higher on the bar, but if you highlight them with the mouse, they will drop lower on the bar. This was not fixed in 9.10. Is there a fix ?
Bitmap on toolbar alignment not fixed in 9.10
This seems a proper fix (Paint() method of TBtnBmp class): [code=fw:1ofkqx22]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBarBtn</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">l2007</span> = ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">l2007</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oFont</span> == <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span>:<span style="color: #000000;">cFaceName</span> != <span style="color: #ff0000;">"Tahoma"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-11</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-11</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oFont</span> == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oFont</span> == <span style="color: #00C800;">nil</span> .and. ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span></div>[/code:1ofkqx22] EMG
Bitmap on toolbar alignment not fixed in 9.10
Thank you. Perhaps it will be fixed in the next release. I don't like having to keep separate copies of classes because when other improvements are made we have to update the class manually. This is a known bug reported by several people.
Bitmap on toolbar alignment not fixed in 9.10
Yes, confirmed: it will be fixed in the next FWH release. EMG
Bitmap on toolbar alignment not fixed in 9.10
Thank you. It did fix the problem. Your help is appreciated.
Bitmap position
Hi, Can I place bitmap on the xbrowse column header in the specified position ?
Bitmap position
You can place either on left or right by specifying [code=fw:2vt712f6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCol:<span style="color: #000000;">nHeadBmpAlign</span> := AL_LEFT/AL_RIGHT<br />&nbsp;</div>[/code:2vt712f6] If you want to have a totally different look, you can paint the header yourself with [code=fw:2vt712f6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCol:<span style="color: #000000;">bPaintHeader</span> := <span style="color: #000000;">&#123;</span> |oCol,nRow, nCol, nHeight, lInvert, hDC, nGrpWidth, aBitmap| your func <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2vt712f6]
Bitmap sizes
Hi to all!It there a way to get the bitmap sizes (width & height) read by ReadBitmap() function ?TIA & Regards, Euclides
Bitmap sizes
Hello,I think, that works.I used it in my old ONPAINT-function :nBMPWIDTH := oBmp:Super:nWidth() nBMPHIGHT := oBmp:Super:nHeight() Before FWH 8.07, i used it for painting text on gradient-bmp's.With FWH 8.07 it is easy to handle. If you don't work with FWH 8.07, you can use this function.The function includes some more informations, aboutBitmap-handling. Maybe you find something, you can use.For this BMP, I had to do :[img:1kvobcgz]http&#58;//www&#46;pflegeplus&#46;com/pictures/gradient70&#46;jpg[/img:1kvobcgz][code:1kvobcgz] // using FWH-function &#58; Gradient&#40; hDC, aRect, nVColor, nBColor, &#46;T&#46; &#41; // ----------------------------------------------------------------------- // nVcolor = 1&#46; Gradient-color // nBColor = 2&#46; Gradient-color // nColor = Text-color // cText = String // e_oBfont2 = Font // B_Posleft = Left Start-pos&#46; of text // B_Orient = Hor&#46; / Vert&#46; // B_Brush = Brush used if no gradient needed // B_pen = Box-frame // B_End = Row-position of browser-selection FUNCTION ONPAINTT&#40; hDC,oBmp, nVcolor, nBColor, nColor, cText, ; e_oBfont2, B_POSLEFT, B_END,B_ORIENT, B_BRUSH, B_PEN &#41; LOCAL hOldFont, oNewbrush hOldFont &#58;= SelectObject&#40; hDC, e_oBFont2&#58;hFont &#41; nTXTLG &#58;= GettextWidth&#40; hDC, cText &#41; // Your values !!!! // ------------------ nBMPWIDTH &#58;= oBmp&#58;Super&#58;nWidth&#40;&#41; nBMPHIGHT &#58;= oBmp&#58;Super&#58;nHeight&#40;&#41; nFONTHIGHT &#58;= e_oBfont2&#58;nInpHeight * -1 nLEFT &#58;= 0 IF B_POSLEFT = 0 nLEFT &#58;= nBMPHIGHT - &#40;&#40;nBMPHIGHT - nTXTLG&#41; / 2&#41; ELSE nLEFT &#58;= nBMPHIGHT - nLeft ENDIF nNEWHIGHT &#58;= nFONTHIGHT nTOP &#58;= &#40;nBMPWIDTH - nNEWHIGHT&#41; / 2 // Browser selection &#40; brushes if not using colors &#41; // --------------------------------------------------------- IF B_END = 8 DEFINE BRUSH oNewBrush STYLE BORLAND ENDIF IF B_END = 9 DEFINE BRUSH oNewBrush STYLE TILED ENDIF IF B_END = 10 DEFINE BRUSH oNewBrush STYLE BRICKS ENDIF IF B_END = 12 DEFINE BRUSH oNewBrush FILE B_BRUSH ENDIF aRect &#58;= GETCLIENTRECT&#40; oBmp&#58;hWnd &#41; IF B_END <> 8 &#46;and&#46; B_END <> 9 &#46;and&#46; B_END <> 10 ; &#46;and&#46; B_END <> 12 // Horizontal nGRADIENT &#58;= Gradient&#40; hDC, aRect, nVColor, nBColor, &#46;T&#46; &#41; IF B_ORIENT = 2 // Vertical nGRADIENT &#58;= Gradient&#40; hDC, aRect, nVColor, BColor, &#46;F&#46; &#41; ENDIF oBmp&#58;oBrush &#58;= TBrush&#40;&#41;&#58;New&#40; , nGRADIENT &#41; ELSE oBmp&#58;oBrush &#58;= oNewbrush ENDIF FillRect&#40; hDC, aRect, oBmp&#58;oBrush&#58;hBrush &#41; SetBkMode&#40; hDC, 0 &#41; // 1 = Transparent SetTextColor&#40; hDC,nColor&#41; TextOut&#40; hDC, nLEFT, nTOP, cText &#41; SelectObject&#40; hDC, hOldFont &#41; IF B_PEN > 0 DRAWBOX&#40; aRect, hDC, nColor, nBMPWIDTH, nBMPHIGHT, B_PEN &#41; ENDIF RETURN NIL [/code:1kvobcgz]Best regardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Bitmap sizes
[quote="Euclides":2xef24cg]Hi to all! It there a way to get the bitmap sizes (width & height) read by ReadBitmap() function ? TIA & Regards, Euclides[/quote:2xef24cg]nBmpWidth( hBmp )nBmpHeight( hBmp )Source: \fwh\source\function\fwbmp.c
Bitmap sizes
Hi Uwe and NageswaraRao, thanks for the help.NageswaraRao´s info solved my problemRegards, Euclides
Bitmap to String
Hello All, This shows the string as bitmap in xbrowse: [code=fw:vxlqsk2w]<div class="fw" id="{CB}" style="font-family: monospace;"><br />..<br />cStr := BmpToStr<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span> cStr <span style="color: #000000;">&#41;</span><br />..<br />&nbsp;</div>[/code:vxlqsk2w] True and correct. but If I use MsgInfo( cStr ).. shows only 'BM6$'.. Why? the length is 4000 bytes.. I tried MsgInfo( AnsiToOEM(cStr) ) .. or .. MsgInfo( OEMToAnsi(cStr) ).. but almost the same with only 4 chars.. Can anybody explain please.. Regards, FAP
Bitmap to String
MsgInfo() can not show Binary Data and also some variables. XBrowse() function is different. It can show any kind of variable/data you can imagine. For quick debugging purposes during development, instead of MsgInfo, MsgList, etc, we can use xbrowse( uVar ). There can be no variable that XBrowse does not show in the appropriate way. It can even show objects as object inspector. You can try xbrowse( oWnd )
Bitmap to String
[quote="nageswaragunupudi":wku3sp2o]MsgInfo() can not show Binary Data and also some variables. XBrowse() function is different. It can show any kind of variable/data you can imagine. For quick debugging purposes during development, instead of MsgInfo, MsgList, etc, we can use xbrowse( uVar ). There can be no variable that XBrowse does not show in the appropriate way. It can even show objects as object inspector. You can try xbrowse( oWnd )[/quote:wku3sp2o] Dear RAO, I use xBrowse( uVar ) too for debugging unusual variable and even objects. My purpose of using ' BmpToStr() -> bmpstring ', is to attach the bmpstring to sql command something like this.. [code=fw:wku3sp2o]<div class="fw" id="{CB}" style="font-family: monospace;"><br />..<br /><span style="color: #ff0000;">"Update table Set blobfield = Convert('"</span> +bmpstring + <span style="color: #ff0000;">"', SQL_BINARY )"</span> &nbsp; <span style="color: #B900B9;">// => failed.</span><br />.. <br />&nbsp;</div>[/code:wku3sp2o] If I test it using something like this.. [code=fw:wku3sp2o]<div class="fw" id="{CB}" style="font-family: monospace;"><br />..<br /><span style="color: #ff0000;">"Update table Set blobfield = Convert( '1234567890' , SQL_BINARY )"</span> &nbsp; &nbsp; <span style="color: #B900B9;">// => success</span><br />..<br />&nbsp;</div>[/code:wku3sp2o] I know there's adsFile2blob() but using SQL scalar Convert() or Cast() makes it more cleaner and simplified. Best regards, FAP
Bitmap to String
If you are particular of using SQL update statement to set binary data, you may construct the sql statement as: "UPDATE TABLE SET FLDNAME = 0x" + StrToHex( <cBinaryData> ) This works for MSSql but I am not sure it works in ADS. You may try. If we want to set directly from RDD it is simpler: ALIAS->FLDNAME := <cBinaryData>. No need to use blob functions.
Bitmap to String
[quote="nageswaragunupudi":9zbr2xm0]If you are particular of using SQL update statement to set binary data, you may construct the sql statement as: "UPDATE TABLE SET FLDNAME = 0x" + StrToHex( <cBinaryData> ) This works for MSSql but I am not sure it works in ADS. You may try. If we want to set directly from RDD it is simpler: ALIAS->FLDNAME := <cBinaryData>. No need to use blob functions.[/quote:9zbr2xm0] Dear RAO, I tried.. [code=fw:9zbr2xm0]<div class="fw" id="{CB}" style="font-family: monospace;">..<br /><span style="color: #ff0000;">"UPDATE TABLE SET FLDNAME = Convert( '0x'"</span> + StrToHex<span style="color: #000000;">&#40;</span> &nbsp;BmpToStr<span style="color: #000000;">&#40;</span> oImg:<span style="color: #000000;">hBitmap</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"', SQL_BINARY) "</span> &nbsp;<span style="color: #B900B9;">//success!</span><br />..</div>[/code:9zbr2xm0] but when.. [code=fw:9zbr2xm0]<div class="fw" id="{CB}" style="font-family: monospace;">..<br /><span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Table'</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//no image displayed..</span><br />..</div>[/code:9zbr2xm0] If I check the variable like this.. [code=fw:9zbr2xm0]<div class="fw" id="{CB}" style="font-family: monospace;">..<br />cStr := BmpToStr<span style="color: #000000;">&#40;</span> oImg:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span> cStr <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">//image was displayed.. OK</span><br />..</div>[/code:9zbr2xm0] if I check the variable like this.. [code=fw:9zbr2xm0]<div class="fw" id="{CB}" style="font-family: monospace;">..<br />cStr := StrToHex<span style="color: #000000;">&#40;</span>BmpToStr<span style="color: #000000;">&#40;</span> oImg:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//Or &nbsp;'0x'+StrToHex(BmpToStr( oImg:hBitmap )) </span><br /><span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span> cStr <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">//apps crashed.. NO ERROR.</span><br />..</div>[/code:9zbr2xm0] maybe '0x' for binary? I dont know. Best regards, FAP
Bitmap to String
Dear RAO, I tried to attached '0x' like '0x'+BmpToStr( oImg:hBitmap ) but with still not saving.. Regards, FAP
Bitmap to String
Oh. We shall find a way to do through SQL. Till then you are aware that adsFile2Blob(..) works and even much simpler way of ALIAS->IMAGEFIELD := MemoRead( <ImageFile> ) works well. I prefer the last simpler method. There is a sample at <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=18396">viewtopic.php?f=6&t=18396</a><!-- l --> Meanwhile let me also test the SQL way.
Bitmap to String
It appears it is not possible to do this in Streamline SQL ( Advantage SQL ) directly in the manner you wanted. Here is a posting from Advantage Forums on the same issue: [quote:id4cw39e]Hi Reinaldo, You need to use parameters for binary data. Best Regards, Lance Schmidt Advantage R&D "Reinaldo Crespo-Bazán" <noname@microsoft.com> wrote in message news:4a8b25d7@solutions.advantagedatabase.com... > Hi, again; > > I have the contents of a JPG file on a memory variable and would like to > store it on a binary field. Can someone help with the SQL syntax? > > Suppose the memory variable is cBuffer, then I'm looking for something > like: > > INSERT INTO MyTable(document) VALUES ( CAST(" + cBuffer + " AS > SQL_BINARY )" > > Or better yet; > > INSERT INTO myTable(Document) > SELECT * FROM > OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB) > > Or > > INSERT INTO Mytable(document) VALUES(x'C9CBBBCCCEB9C8CABCCCCEB9C9CBBB') > > Thank you, > > > Reinaldo. > [/quote:id4cw39e]
Bitmap to String
[quote="nageswaragunupudi":1whlj2wc]It appears it is not possible to do this in Streamline SQL ( name of ADS SQL ) directly in the manner you wanted. Here is a posting from Advantage Forums on the same issue: [quote:1whlj2wc]Hi Reinaldo, You need to use parameters for binary data. Best Regards, Lance Schmidt Advantage R&D "Reinaldo Crespo-Bazán" <noname@microsoft.com> wrote in message news:4a8b25d7@solutions.advantagedatabase.com... > Hi, again; > > I have the contents of a JPG file on a memory variable and would like to > store it on a binary field. Can someone help with the SQL syntax? > > Suppose the memory variable is cBuffer, then I'm looking for something > like: > > INSERT INTO MyTable(document) VALUES ( CAST(" + cBuffer + " AS > SQL_BINARY )" > > Or better yet; > > INSERT INTO myTable(Document) > SELECT * FROM > OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB) > > Or > > INSERT INTO Mytable(document) VALUES(x'C9CBBBCCCEB9C8CABCCCCEB9C9CBBB') > > Thank you, > > > Reinaldo. > [/quote:1whlj2wc][/quote:1whlj2wc]
Bitmap to String
Dear RAO, Thank you so much for all your inputs and highlights. it seems [u:19jv0z1y]not possible at this time.[/u:19jv0z1y]. I used: [code=fw:19jv0z1y]<div class="fw" id="{CB}" style="font-family: monospace;">..<br />ALIAS->IMAGEFIELD := uBinary  <span style="color: #B900B9;">//works ok..  but need to create index of table.. totally RDD style.  it works ok..</span><br />..</div>[/code:19jv0z1y] Im still looking forward for the SQL way of handling binary/image objects.. Thank to so much.. Best regards, FAP
Bitmap to String
Yes, I use this syntax "ALIAS->IMAGEFIELD := uBinary " This is always very simple.
Bitmap to String
Hi. If you want save file BMP into SQL table, you can use these functions: Regards [code=fw:3cnjl4pk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />cFileBmp := MEMOREAD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"image.bmp"</span><span style="color: #000000;">&#41;</span><br />txtBmp := Text2Hex<span style="color: #000000;">&#40;</span>cFileBmp<span style="color: #000000;">&#41;</span><br /><br />oData:<span style="color: #0000ff;">Image</span> := txtBmp &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// save to blob field</span><br />...<br />...<br /><br />txtBmp := oData:<span style="color: #0000ff;">Image</span> &nbsp; &nbsp;<span style="color: #B900B9;">// read bmp file</span><br /><br />cFileBmp := Hex2Txt<span style="color: #000000;">&#40;</span>txtBmp<span style="color: #000000;">&#41;</span><br /><br />MEMOWRITE<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"image.bmp"</span>, cFileBmp<span style="color: #000000;">&#41;</span> &nbsp; <br /><br />oBmp := LoadBmp<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"image.bmp"</span><span style="color: #000000;">&#41;</span><br />....<br />..<br />.<br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> Text2Hex<span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Str2Hex(cFile)</span><br /><span style="color: #00C800;">local</span> nLen, nCont, cChr, cBin<br />cBin := <span style="color: #ff0000;">""</span><br />nLen := LEN<span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">FOR</span> nCont := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nLen<br />&nbsp; &nbsp;cChr := <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cFile, nCont, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cBin := cBin + STRTOHEX<span style="color: #000000;">&#40;</span>cChr<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span> nCont<br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>cBin<span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> Hex2Text<span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Hex2Str(cFile)</span><br /><span style="color: #00C800;">local</span> nLen, nCont, cChr, cBin<br />cBin := <span style="color: #ff0000;">""</span><br />nLen := LEN<span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">FOR</span> nCont := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nLen STEP <span style="color: #000000;">2</span><br />&nbsp; &nbsp;cChr := <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cFile, nCont, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cBin := cBin + HEXTOSTR<span style="color: #000000;">&#40;</span>cChr<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span> nCont<br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>cBin<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//====================================================================================================</span><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapiitm.h"</span> &nbsp; &nbsp;<span style="color: #B900B9;">//#include "hbfast.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbstack.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbdefs.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbvm.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapierr.h"</span><br /><br />HB_ULONG HB_EXPORT hb_hextonum<span style="color: #000000;">&#40;</span>char *cHex<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HB_ULONG &nbsp; ulNum = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;char &nbsp; &nbsp; &nbsp; c;<br />&nbsp; &nbsp;int &nbsp; &nbsp; &nbsp; &nbsp;iDigit;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> *cHex && <span style="color: #000000;">&#40;</span>*cHex == <span style="color: #ff0000;">' '</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> cHex++;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> *cHex <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; ulNum <<= <span style="color: #000000;">4</span>;<br /><br />&nbsp; &nbsp; &nbsp; c = *cHex;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> c >= <span style="color: #ff0000;">'0'</span> && c <= <span style="color: #ff0000;">'9'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iDigit = c - <span style="color: #ff0000;">'0'</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> c >= <span style="color: #ff0000;">'A'</span> && c <= <span style="color: #ff0000;">'F'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iDigit = c - <span style="color: #ff0000;">'A'</span> + <span style="color: #000000;">10</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> c >= <span style="color: #ff0000;">'a'</span> && c <= <span style="color: #ff0000;">'f'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iDigit = c - <span style="color: #ff0000;">'a'</span> + <span style="color: #000000;">10</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ulNum = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; ulNum += iDigit;<br />&nbsp; &nbsp; &nbsp; cHex++;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> ulNum;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> NUMTOHEX <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;int &nbsp; &nbsp; &nbsp; iDigit;<br />&nbsp; &nbsp;char &nbsp; &nbsp; &nbsp;ret<span style="color: #000000;">&#91;</span> <span style="color: #000000;">33</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp;int &nbsp; &nbsp; &nbsp; iLen, iDefaultLen;<br />&nbsp; &nbsp;HB_ULONG &nbsp;ulNum;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; iLen = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; iLen = <span style="color: #000000;">&#40;</span> iLen < <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> <span style="color: #000000;">&#40;</span> iLen > <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span> ? <span style="color: #000000;">32</span> : <span style="color: #000000;">iLen</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; iDefaultLen = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; iLen = <span style="color: #000000;">32</span>;<br />&nbsp; &nbsp; &nbsp; iDefaultLen = <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; ulNum = hb_parnint<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ISPOINTER<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; ulNum = <span style="color: #000000;">&#40;</span>HB_PTRDIFF<span style="color: #000000;">&#41;</span> hb_parptr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; hb_errRT_BASE_SubstR<span style="color: #000000;">&#40;</span> EG_ARG, <span style="color: #000000;">3012</span>, <span style="color: #00C800;">NULL</span>, <span style="color: #ff0000;">"NUMTOHEX"</span>, <span style="color: #000000;">2</span>, hb_paramError<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_paramError<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;ret<span style="color: #000000;">&#91;</span> iLen <span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">'<span style="color: #000000;">\0</span>'</span>;<br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; iDigit = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> ulNum & 0x0F <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; ret<span style="color: #000000;">&#91;</span> --iLen <span style="color: #000000;">&#93;</span> = iDigit + <span style="color: #000000;">&#40;</span> iDigit < <span style="color: #000000;">10</span> ? <span style="color: #ff0000;">'0'</span> : <span style="color: #ff0000;">'A'</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; ulNum >>= <span style="color: #000000;">4</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> iDefaultLen ? ulNum > <span style="color: #000000;">0</span> : <span style="color: #000000;">iLen</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_retc<span style="color: #000000;">&#40;</span> &ret<span style="color: #000000;">&#91;</span> iLen <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> HEXTONUM <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! ISCHAR<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; hb_errRT_BASE_SubstR<span style="color: #000000;">&#40;</span> EG_ARG, <span style="color: #000000;">3012</span>, <span style="color: #00C800;">NULL</span>, <span style="color: #ff0000;">"HEXTONUM"</span>, <span style="color: #000000;">1</span>, hb_paramError<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;hb_retnint<span style="color: #000000;">&#40;</span> hb_hextonum<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> STRTOHEX <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;char &nbsp; *cOutBuf;<br />&nbsp; &nbsp;char &nbsp; *cStr;<br />&nbsp; &nbsp;char &nbsp; *c;<br />&nbsp; &nbsp;char &nbsp; *cSep = <span style="color: #ff0000;">""</span>;<br />&nbsp; &nbsp;unsigned char &nbsp;ucChar;<br />&nbsp; &nbsp;ULONG &nbsp;ul, ulLen, ulLenSep = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;int &nbsp; &nbsp;iDigit;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! ISCHAR<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; hb_errRT_BASE_SubstR<span style="color: #000000;">&#40;</span> EG_ARG, <span style="color: #000000;">3012</span>, <span style="color: #00C800;">NULL</span>, <span style="color: #ff0000;">"STRTOHEX"</span>, <span style="color: #000000;">2</span>, hb_paramError<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_paramError<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;cSep = hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp;ulLenSep = hb_parclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;cStr = hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;ulLen = hb_parclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;c = cOutBuf = <span style="color: #000000;">&#40;</span>char*<span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> ulLen * <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> ulLen - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> * ulLenSep + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> ul = <span style="color: #000000;">0</span>; ul < ulLen; ul++ <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ulLenSep && ul <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;memcpy<span style="color: #000000;">&#40;</span> c, cSep, ulLenSep <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;c += ulLenSep;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; ucChar = <span style="color: #000000;">&#40;</span>unsigned char<span style="color: #000000;">&#41;</span> cStr<span style="color: #000000;">&#91;</span> ul <span style="color: #000000;">&#93;</span>;<br /><br />&nbsp; &nbsp; &nbsp; iDigit = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> ucChar & 0x0F <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; c<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = iDigit + <span style="color: #000000;">&#40;</span> iDigit < <span style="color: #000000;">10</span> ? <span style="color: #ff0000;">'0'</span> : <span style="color: #ff0000;">'A'</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; ucChar >>= <span style="color: #000000;">4</span>;<br /><br />&nbsp; &nbsp; &nbsp; iDigit = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> ucChar;<br />&nbsp; &nbsp; &nbsp; c<span style="color: #000000;">&#91;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#93;</span> = iDigit + <span style="color: #000000;">&#40;</span> iDigit < <span style="color: #000000;">10</span> ? <span style="color: #ff0000;">'0'</span> : <span style="color: #ff0000;">'A'</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; c += <span style="color: #000000;">2</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;hb_retclen<span style="color: #000000;">&#40;</span> cOutBuf, c - cOutBuf <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span> cOutBuf <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> HEXTOSTR <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;char *cOutBuf, *cStr;<br />&nbsp; &nbsp;char c;<br />&nbsp; &nbsp;int &nbsp;iByte, iFirst;<br />&nbsp; &nbsp;ULONG &nbsp;ul, ulLen, ulPos, ulAlloc;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! ISCHAR<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; hb_errRT_BASE_SubstR<span style="color: #000000;">&#40;</span> EG_ARG, <span style="color: #000000;">3012</span>, <span style="color: #00C800;">NULL</span>, <span style="color: #ff0000;">"HEXTOSTR"</span>, <span style="color: #000000;">1</span>, hb_paramError<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;cStr = <span style="color: #000000;">&#40;</span>char *<span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;ulLen = hb_parclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;ulAlloc = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> ulLen / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;cOutBuf = <span style="color: #000000;">&#40;</span>char *<span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> ulAlloc + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;ulPos = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;iByte = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;iFirst = <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span> ul = <span style="color: #000000;">0</span>; ul < ulLen; ul++ <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; iByte <<= <span style="color: #000000;">4</span>;<br /><br />&nbsp; &nbsp; &nbsp; c = *cStr++;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> c >= <span style="color: #ff0000;">'0'</span> && c <= <span style="color: #ff0000;">'9'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iByte += c - <span style="color: #ff0000;">'0'</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> c >= <span style="color: #ff0000;">'A'</span> && c <= <span style="color: #ff0000;">'F'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iByte += c - <span style="color: #ff0000;">'A'</span> + <span style="color: #000000;">10</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> c >= <span style="color: #ff0000;">'a'</span> && c <= <span style="color: #ff0000;">'f'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iByte += c - <span style="color: #ff0000;">'a'</span> + <span style="color: #000000;">10</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">continue</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; iFirst ^= <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> iFirst <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cOutBuf<span style="color: #000000;">&#91;</span> ulPos++ <span style="color: #000000;">&#93;</span> = <span style="color: #000000;">&#40;</span>char<span style="color: #000000;">&#41;</span> iByte;<br />&nbsp; &nbsp; &nbsp; &nbsp; iByte = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;hb_retclen<span style="color: #000000;">&#40;</span> cOutBuf, ulPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span> cOutBuf <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /><br />&nbsp;</div>[/code:3cnjl4pk]
Bitmap transparentes en toolbar
estimados compañeros Quiero hacer un toolbar con bmp desde RC con estilo Wxp, pero no consigo hacer transparentes los Bitmap ¿ Como es posible ? Mil gracias Un saludo a todos!
Bitmap transparentes en toolbar
Encontre la solución simplemente era insertando RGB(255,255,255).. Yo lo tenía como RGB(255,0,255) Mil gracias
Bitmap y XBrowse
Muy buenas foro, estoy intentando tener un xBrowse con array con la 1ª columna con un bitmap (Sin texto solo el bitmap) y cuando haga doble click en la fila me cambie el bitmap (la columna es boolean) y cambie el valor en el array.¿Como podría hacerlo?Un Saludo.
Bitmap y XBrowse
Buenas Softruz <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> :To tengo un ejemplo (que me solucionaron ayer) donde lo hago, es un array con una columna booleana que muestra un bitmap si es un valor u otro, para cambiar las imagenes con un doble click del raton hago lo siguiente:[code:1f92bb6a] oTbrOut&#58;bLDblClick&#58;=&#123;|| aSalidas&#91;oTbrOut&#58;nArrayAt,2&#93;&#58;=!aSalidas&#91;oTbrOut&#58;nArrayAt,2&#93;,oTbrOut&#58;refresh&#40;&#41; &#125; [/code:1f92bb6a]Espero que te sirva.Saludos
Bitmap y XBrowse
Muchas gracias, lo he probado y totalmente funcional.Un Saludo.
Bitmap y texto combinado en XBROWSE
Hola amigos,,, Como hago para que xbrowse me muestre un bitmap y un texto combinado, parecido al btnbmp,,, la data lo tengo en una array, y dependiendo de la condicion del dato del array, debe mostrar 1 de 3 bitmaps,,, Salu2
Bitmap y texto combinado en XBROWSE
Willi, No se si es esto lo que quieres hacer [quote="Carles":36ao9qm2] Piensa que con el nuevo metodo ::bPaintText puedes controlar toda la celda y pintar lo que te de la gana [url=http&#58;//imageshack&#46;us:36ao9qm2][img:36ao9qm2]http&#58;//img123&#46;imageshack&#46;us/img123/3538/browsezc7&#46;jpg[/img:36ao9qm2][/url:36ao9qm2][/quote:36ao9qm2] [url:36ao9qm2]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=13533[/url:36ao9qm2]
Bitmap+cText en una Celda de un listbox
Compañeros: Intento mostrar [b:1l63pi5v]en una misma celda [/b:1l63pi5v]de un listbox un bitmap + un texto. Hasta ahora muestro el texto o el bitmap pero no consigo unir los 2 en una misma celda. ¿Es posible? Mil gracias. LORENZO.
Bitmap+cText en una Celda de un listbox
Lorenzo, Creo se puede hacer con xbrowse y tsbrowse, con twbrowse de hdc no se puede, la unica forma es haciendo un bitmap con la imagen y el texto y desplegarlo como bitmap salu2 paco
Bitmap-Format of Record-selector in xBrowse ?
Hello,There are still some little problems in the newxbrowse-tools, i couldn't fix.It is possible now, to have a real big preview with a databaseof all used settings.Because i can change the color of the RECORD-SELECTOR,i have to add a new BITMAP for the pointer as well.I couldn't find out, what format and colors for the bitmap i have to use.I tested everything, Bitmaps are not shown transparent.It is the same NON-transparent effect like Cellbitmaps on Brushes.In this sample, the best result would be a white Arrow.The xBrowse-class uses : ::hBmpRecSel := FwRArrow()I think, FwRArrow() does the handling of the background.I couldn't find the function ( is not included in the source ).[code:2tl7oj1h] // BRSELECT2 = Bitmap // SELCOLOR2 = Color of Rec-Selector IF !EMPTY&#40; BRSELECT2 &#41; oBmp &#58;= ReadBitmap&#40; 0, BRSELECT2 &#41; oBrw&#58;hBmpRecSel&#40; oBmp &#41; ENDIF DEFINE BRUSH oBrush COLOR SELCOLOR2 oBrw&#58;hBrushRecSel&#40; oBrush &#41; RELEASE BRUSH oBrush [/code:2tl7oj1h][img:2tl7oj1h]http&#58;//www&#46;pflegeplus&#46;com/pictures/selector4&#46;jpg[/img:2tl7oj1h]A Bitmap size : 9 x 15[img:2tl7oj1h]http&#58;//www&#46;pflegeplus&#46;com/pictures/selector3&#46;jpg[/img:2tl7oj1h]How can i get a transparent symbol ?It is not the same, like the bitmaps in cells.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->