topic
stringlengths
1
63
text
stringlengths
1
577k
oMenu acts differently in February build
This still is not a fix but seems to solve the problem: [code:1sj4ynfy]METHOD Add( oMenuItem, lRoot ) CLASS TMenu DEFAULT lRoot := .f. AAdd( ::aItems, oMenuItem ) oMenuItem:oMenu = Self if ValType( oMenuItem:bAction ) == "O" .and. ; Uppe...
oMenu acts differently in February build
Ok, thanks! That solves the problem for now! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
oMenu:Disable()
Hi Everybody, Here is a strange one for you.... I my app, I create a menu ... In the example below, I use a logical value to hide a menu choice if I don't want the user to have access to it ... so far so good. [code:14pk0li8] function BuildMenu&#40;&#41; MENU oMenu MENUITEM "Exit" MENU ...
oMenu:Disable()
It seems that WHEN clause has greater priority than Disable() method. EMG
oMenu:Disable()
Jeff, >In the example below, I use a logical value to hide a menu choice if I don't want the user to have access to it ... so far so good. I think it is better to just not to add those items to the menu. I just check user rights when building the menu and leave out those items. If the items are visible and disabled...
oMenu:Disable()
Hi James, I can see what you are saying and it makes perfect sense, but in this case, having the user "see" what they are missing is a good thing ... additional options that are available to purchase <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> Jeff
oMenu:Disable()
Jeff, >I can see what you are saying and it makes perfect sense, but in this case, having the user "see" what they are missing is a good thing ... additional options that are available to purchase. Ah, a very good point indeed! James
oMenuItem:SetCheck(.T.)
Tengo el siguiente problema, ya sea con Estilo 2007 o 2010, el setcheck del menuitem no me funciona, lo marque o desmarque, aún cuando cambio el estado del item, este continua checkeado... Alguien sabe por qué?
oMenuItem:SetCheck(.T.)
Hola, asi funciona bien... [code=fw:1uz6xws4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Mensagens da Barra, Relogio, fecha, Status, Etc.</span><br /><span style="color: #00D7D7;">#Define</span> CLOCK_ON &nbsp; &nbsp; &nbsp; OemToAnsi<span style="color: #000000;">&#...
oMeta difference FW & FWH?
Hi, I'am moving a appliation from FW to FWH and have a problem with showing meta-files. I have created a little sample that works in FW and not in FWH [code:swij82c9]#INCLUDE "fivewin&#46;CH" static sWnd static sscaling &#58;= 3 func test&#40;&#41; local oS&#58; =5200 local sx_offset &#58;= 0 local sy_of...
oMeta difference FW & FWH?
Marc, Keep in mind that FWH uses 32 bits enhanced metafiles (EMF) instead of 16 bits Windows metafiles (WMF). Anyhow, if you rename it with .WMF extension, FWH will manage it too. What file type is inside your DT file ?
oMeta difference FW & FWH?
Antonio, The tmp.dt file is a WMF-file create with the CreateMetaFile() function. If I rename it to tmp.wmf , it still is't working. Should I use CreateEnhMetaFile() function? I have tried it but did't succeed to get it to work. Now I use something like: [code:112cio7d]hDCOut &#58;= CreateMetaFile&#40;'tmp&#46;dt'&#4...
oMeta difference FW & FWH?
Marc, You have an example of its use at source\classes\printer.prg: AAdd( ::aMeta, ::cDir + cTempFile( "\", "emf" ) ) ::hDCOut := CreateEnhMetaFile( ::hDC, ATail( ::aMeta ), ::cDocument )
oMeta difference FW & FWH?
Antonio, That's where I found the example, but wat should I use for ' ::hDC'? I see in the printer.prg that it is ' GetPrintDC()', but I don't want to print it. I only want to show it on screen. I suppose that '::cDocument ' is a desciption of the file. Is that correct? Regards, Marc
oMeta difference FW & FWH?
Marc, You can do hdc = GetDC( 0 ) use it and finally do ReleaseDC( 0, hdc ). Yes, cDocument is the name of the document.
oMeta difference FW & FWH?
Antonio, I have succeed to create te EMF-file, but if I want to display it I get the following error when I want to display it. [code:2aheiyna]Application =========== Path and name&#58; C&#58;\FWH\Projects\oMeta\METATEST&#46;exe &#40;32 bits&#41; Size&#58; 1,272,832 bytes Time from start&#58; 0 hours 0 mins ...
oMeta difference FW & FWH?
Marc, Fixed. Are you using Harbour or xHarbour ? to email you a new lib.
oMeta difference FW & FWH?
Antonio, I'am using xHarbour. Marc
oMeta difference FW & FWH?
We already emailed you a modified LIB for xHarbour. Please try your code again, thanks
oMeta difference FW & FWH?
Thanks Antonio for the quick support. It' working!!! Best regards, Marc
oMeta difference FW & FWH?
good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
oMeta difference FW & FWH?
Antonio, There is only one problem if I want to create a second EMF-file. Then I get 'Error (32) creating Enhanced metafile' Here is an example [code:1mz35ri5]#INCLUDE "fivewin&#46;CH" static sWnd static nZFactor FUNCTION test&#40;&#41; local hPEN &#58;= CreatePen&#40; 0 , 1, 0 &#41; local w &#58;= getsysmetri...
oMeta difference FW & FWH?
Marc, The error 32 means that the EMF file is still open ( "sharing violation" ) so you can not create it again. You may use a different EMF filename as it seems that Windows takes some time to close it, even if we force it to do so: ACTIVATE WINDOW sWnd MAXIMIZED ; VALID ( sWndOpen := .f., DeleteEnhMetaFile(...
oMeta difference FW & FWH?
Antonio Everything is working fine but I have a question using 'hdc = GetDC( 0 )' with CreateEnhMetaFile(hdc,'tmp.emf','testje'). Using this, the dimentions of the meta-file is the same as the screen resolution. Is it possible to have a bigger meta-file. My program is creating drawings, and somethimes they are bigger ...
oMeta difference FW & FWH?
Marc, You need to provide a bigger hDC. You could create a "bigger" window and get its hDC: DEFINE WINDOW oWnd SIZE 4000, 2000 hDC = GetDC( oWnd:hWnd ) ... your code ReleaseDC( oWnd:hWnd, hDC ) oWnd:End()
oMeta difference FW & FWH?
Thanks, I will try it. Regards, Marc
oMeta difference FW & FWH?
Antonio, I doesn't work. The size of the emf-file is still the same... Here is my testcode [code:oopwxahp]FUNCTION test&#40;&#41; local hPEN &#58;= CreatePen&#40; 0 , 1, 0 &#41; local w &#58;= getsysmetrics&#40;0&#41; - 10 local h &#58;= getsysmetrics&#40;1&#41; - 68 nZFactor = 1 DEFINE WINDOW sWnd FR...
oMeta difference FW & FWH?
Marc, There are some errors in your code. Please try this: [code:1n9me4sh] FUNCTION test&#40;&#41; local hPEN &#58;= CreatePen&#40; 0 , 1, 0 &#41; local w &#58;= getsysmetrics&#40;0&#41; - 10 local h &#58;= getsysmetrics&#40;1&#41; - 68 nZFactor = 1 DEFINE WINDOW sWnd FROM 0,0 TO 4000,4000 TITLE '...
oMeta difference FW & FWH?
Antonio, It's the same result... The size is the same as the screen. Regards, Marc
oMeta difference FW & FWH?
Antonio, Do you have a solution for creating 'bigger' meta-files. I allway's get the same size as the screen <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Marc
oMeta difference FW & FWH?
Hello, See this sample: [code:1ndu8jar] // Testing how to scroll a window with its contents #include "FiveWin&#46;ch" #define D_WIDTH 4 #define D_HEIGHT 13 FUNCTION Main&#40;&#41; LOCAL oWnd,oScrWnd LOCAL cGet0101 &#58;= space&#40;10&#41;, ; //Row 1 cGet0102 &#58;= space&#40;10&#41;, ; ...
oMeta difference FW & FWH?
Marc, > Do you have a solution for creating 'bigger' meta-files. We may need to create a larger hDC in memory. Several functions should be used. We are going to review it
oMeta difference FW & FWH?
Thanks Rossine, I'ts working very nice. I will try to 'translate' my program to draw directly to the window and display the drawing instead of painting first to a meta-file and than displaying it. Regards, Marc
oMeta difference FW & FWH?
Very good! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
oMiBase:zap() me da error SOLUCIONADO
Hola a todos: Amigos uso en estas lineas oMiBase:zap(), pero me genera error. Alguna sugerencia? Codigo: oMibase:Tmov():New(, liquida,,.f.) //exclusiva If oMiBase:Use() If oMiBase:lock() oMiBase:zap() Else MsgInfo("no exclu") Endif Else MsgInfo("No use") Endi...
oMiBase:zap() me da error SOLUCIONADO
Ruben, Que error te genera ?
oMiBase:zap() me da error SOLUCIONADO
Antonio el error que tengo es DBF/CDX, dice que no tengo la base abierta exclusiva y yo creo que si. Gracias Saludos
oMiBase:zap() me da error SOLUCIONADO
[code=fw:3lhh8de5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />USE MIBASE EXCLUSIVE <span style="color: #00C800;">NEW</span><br /><br />__ZAP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:3lhh8de5]
oMiBase:zap() me da error SOLUCIONADO
Si, gracias, pero con Tdatabase me genera error en la linea 177 de Database.prg Saludos y gracias.
oMiBase:zap() me da error SOLUCIONADO
Ruben, Quita el If oMiBase:lock() Y intenta nuevamente.
oMiBase:zap() me da error SOLUCIONADO
Kleyber, EXCELENTE. Funcionó, muc has gracias. Saludos Ruben Fernandez
oPanel with Vscroll and Hscroll RESOLVED!!
I need to insert on a dialog a Panel with Vscroll and Hscroll to insert some bitmpas into I wish have on orizontal and vertical scroll only for the tpanel When I create the panel the scrollbar are not created I use the class TScrWnd() to create vscroll and hscroll this the small test I made [code=fw:1onotm9i]<d...
oPanel with Vscroll and Hscroll RESOLVED!!
resolved ! I used tscrollpanel and tscrdlg together
oPen with printer
If i define a pen with DEFINE PEN.... then the width of pen are different in methods fron tPrinter()! oPrn:Box( nZeile+nPenw/2,nPenw/2,nNextzeile,oPrn:nHorzRes()-nPenw/2, oPen) oPrn:line(nZeile,linksrand,nZeile,rechtsrand,oPen)
oPen with printer
[code=fw:y68nv8q8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Relatório do Certificado do Aluno"</span> PREVIEW <span style="color: #0000ff;">MODAL</span><br /><br />...
oPen with printer
How the pen is created in the source code ?
oPen with printer
DEFINE PEN oPen1 WIDTH nPixel COLOR CLR_HBLUE
oPen with printer
Try DEFINE PEN oPen1 WIDTH nPixel COLOR CLR_HBLUE OF oPrn
oPen with printer
Also with the clausula "OF oPrn" the oPrn:line and oPrn:box are different!
oPicture:SaveImage does not work
Here is a sample of the code I used. It generated only an empty file of 0 bytes. Someone an idea of what I am doing wrong.[code:3cxx66ut]Static Function LoadJpg&#40;oPicture,cId&#41; cId &#58;= Trim&#40;cId&#41; + "&#46;JPG" oPicture&#58;LoadFromClipboard&#40;&#41; oPicture&#58;Refresh&#40;&#41; Return Nil Static ...
oPicture:SaveImage does not work
Use this modified SaveImage() method: [code:21c7elx7]METHOD SaveImage&#40; cFile, nFormat, nQuality &#41; CLASS TImage // 0 -> Bmp // 2 -> Jpg // 13 -> Png local hDib &#58;= DibFromBitmap&#40; &#58;&#58;hBitmap &#41; local cTempFile &#58;= cTempFile&#40;&#41; local lSaved DibWrite&#40; cTe...
oPicture:SaveImage does not work
Hello, I was aleady using this version of this method. However I have copied it. The result is the same. There is a JPG file created from 0 bytes. I use the freeimage.dll from 4SEP2005 19h01 from 1032 Kb. This is the one that is delivered with the latest FWH Thanks, Willy
oPicture:SaveImage does not work
I think I found an error in the tImage class. In the header the method SaveImage does not mention the nQuality parameter. The method however has the third parameter. However this does not change the result. I've tried the program also on a Vista PC. There is a difference. On that pc there is no file added. On a Xp...
oPicture:SaveImage does not work
Sorry, it is working fine here. I don't know why it does't work for you. EMG
oPicture:SaveImage does not work
Thanks for trying. Antonio, do you have any idea. Willy
oPopUp in class btnbmp
[quote="karinha":6sdm17s9]Dear Silvio, here you made it PUBLIC as well. The moment you post a source code on FORUM, the source code belongs to all FIVEWIN users. It's the rules, if you understand that you won't be able to fit the forum rules, feel free to stay or leave honorably. Estimado Silvio, aquí lo hiciste PÚBLI...
oPopUp in class btnbmp
I often use btnBmp: oPopUp, but in the button the horizontal space reserved for the PopUp is tight. It is possible in future versions to have a variable to fix the width directly in the btnbmp class. prg? (Now I modified the btnbmp.prg class to enlarge it) Maurizio
oPopUp in class btnbmp
Dear Maurizio, Would you mind to post here your modifications ? many thanks
oPopUp in class btnbmp
As you did? Show us, using this template, please. ¿Como tú hiciste? Muéstranos, usando esta plantilla, por favor. [code=fw:14eoe3ct]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\PICTCOLO.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</s...
oPopUp in class btnbmp
Karinha Please erase the [b:1bqkoai9]FUNCTION AdjustWnd( oBtn, nWidth, nHeight )[/b:1bqkoai9] we havent the autorization to publish it !!!
oPopUp in class btnbmp
[quote="Silvio.Falconi":36b2uqr2]Karinha Please erase the [b:36b2uqr2]FUNCTION AdjustWnd( oBtn, nWidth, nHeight )[/b:36b2uqr2] we havent the autorization to publish it !!![/quote:36b2uqr2] Dear Silvio, I didn't know that you were the owner of this function, since he is PUBLIC. But it's ok, I removed it. I don't ag...
oPopUp in class btnbmp
Dear Silvio, here you made it PUBLIC as well. The moment you post a source code on FORUM, the source code belongs to all FIVEWIN users. It's the rules, if you understand that you won't be able to fit the forum rules, feel free to stay or leave honorably. Estimado Silvio, aquí lo hiciste PÚBLICO también. En el momento ...
oPopUp in class btnbmp
Dear Silvio, function AdjustWnd() is public on github posted by Jose Luis: [url:knxdk4td]https&#58;//github&#46;com/JoseluisSanchez/colossus/blob/0dcf9170fb24c33dd973520097f39a5e3d1d4780/prg/ut_common&#46;prg[/url:knxdk4td] Lets try to help Maurizio here, thanks
oPopUp in class btnbmp
[quote="Antonio Linares":2rt50ijv]Dear Silvio, function AdjustWnd() is public on github posted by Jose Luis: [url:2rt50ijv]https&#58;//github&#46;com/JoseluisSanchez/colossus/blob/0dcf9170fb24c33dd973520097f39a5e3d1d4780/prg/ut_common&#46;prg[/url:2rt50ijv] Lets try to help Maurizio here, thanks[/quote:2rt50ijv] Ant...
oPopUp in class btnbmp
[quote="Maurizio":3sy2n0zr]I often use btnBmp: oPopUp, but in the button the horizontal space reserved for the PopUp is tight. It is possible in future versions to have a variable to fix the width directly in the btnbmp class. prg? (Now I modified the btnbmp.prg class to enlarge it) Maurizio[/quote:3sy2n0zr] Sorry...
oPopUp in class btnbmp
I use April 2022 to June 2022 the changes I made are : line 18 [b:3ot26frw]#define POPWIDTH 30 //12[/b:3ot26frw] new variable in line 129 [b:3ot26frw]DATA nWide_P [/b:3ot26frw] set variable line 325 [b:3ot26frw] ::nWide_P := 22[/b:3ot26frw] and line 503 [b:3ot26frw] ::nWide_P := 22[/b:3ot26...
oPopUp in class btnbmp
Dear Maurizio, good morning would you mind to post the complete PRG here ? many thanks
oPopUp in class btnbmp
[quote="Maurizio":v0wjv1rp]I use April 2022 to June 2022 the changes I made are : line 18 [b:v0wjv1rp]#define POPWIDTH 30 //12[/b:v0wjv1rp] new variable in line 129 [b:v0wjv1rp]DATA nWide_P [/b:v0wjv1rp] set variable line 325 [b:v0wjv1rp] ::nWide_P := 22[/b:v0wjv1rp] and line 503 [b:v0wjv1rp]...
oPopUp in class btnbmp
Dear Silvio, Thats why I asked Maurizio to post the complete PRG <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
oPopUp in class btnbmp
[quote="Antonio Linares":1l86xllc]Dear Silvio, Thats why I asked Maurizio to post the complete PRG <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1l86xllc] I asked now via private mail ...same question
oPopUp in class btnbmp
Antonio btnbmp.prg the files is too big the forum will not accept it, I'll send it to your mail Maurizio
oPrinter:SayBitmap() print-quality
Hi, I'm using oPrinter:SayBitmap() for printing bitmaps. What is the best resolution to make nice printouts. If the print-layout should be ex. 10cm x 5cm, what is the best size for the BMP-file? 1000px x 500px the have a nice printout without deformation like my example? Now I have the original file like this [img:1c...
oPrinter:SayBitmap() print-quality
Try oPrinter:SayImage(...) for better quality
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Hola a todos, He observado que cuando pinto un bitmap (se observa mejor en los bitmaps grandes) con oPrinter:SayBitMap() de la clase TPrinter se me produce una fuga de memoria. Lo observo con un una utilidad de sistema que me va diciendo la memoria usada en %. Cuando el .bmp es pequeño, al ser un % pequeño no se obser...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Hola, Dejo como test del problema el TestPrn2.Prg que demuestra lo que digo: la pérdida/ fuga de memoria. La memoria se recupera solo al salir del programa. El problema se puede comprobar más facilmente imprimiendo pocos bitmaps, cuando el bitmap es grande, o bien, si es pequeño, imprimiendo muchas veces el bitmap. [...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
A. Prueba asi: [code=fw:3s0gf32e]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; ...     <br />&nbsp; &nbsp; &nbsp; aBmpPal  = PalBmpLoad<span style="color: #000000;">&#40;</span> xBitmap <span style="color: #000000;">&#41;</span><br />      hBitmap  = aBmpPal<span style="color: #000000;">&#91;</spa...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Antonio, Muchas gracias por responder. Lamentablemente [b:1dgxfv0z]no[/b:1dgxfv0z] ha funcionado. Lo he probado con PalBmpRead() puesto que tengo el bitmap en disco. Aquí te dejo como ha quedado el metodo despues de las modificaciones: [code=fw:1dgxfv0z]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
A. Podemos seguir haciendo otras pruebas. Comenta esta línea y prueba a ver si hay algún cambio: // DibDraw( ::hDCOut, hDib, hPalette, nRow, nCol,; // nWidth, nHeight, nRaster ) gracias
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Antonio, [quote="Antonio Linares":28cztjpu]A. Podemos seguir haciendo otras pruebas. Comenta esta línea y prueba a ver si hay algún cambio: // DibDraw( ::hDCOut, hDib, hPalette, nRow, nCol,; // nWidth, nHeight, nRaster ) gracias[/quote:28cztjpu] Comentando la funcion DibDraw(): [b:28cztjpu]NO[/b:28czt...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Como compruebas la pérdida de memoria ? El código fuente de DibDraw() está en FWH\source\winapi\dib.c pero no reserva/libera memoria.
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Antonio, La memoria, además de con GlobalMemoryStatusEx(), lo compruebo con una utilidad externa. Ambos devuelven siempre el mismo %, con lo que imagino que esta bien. En todo caso, cuando la carga de memoria es muy alta..., no se el %, entonces empieza a no pintar los bitmaps, como si no tuviese memoria... con lo que...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
A. (Antonio, Adolfo, Alfonso... ?) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Prueba a implementar la función DibDraw() en tu aplicación y asi puedes hacerle modificaciones. Añade este código al final de tu PRG principal: [code=fw:1tf82npf]<div class="fw" id="{CB}" ...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
A. de Antonio <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> He puesto el codigo que me has enviado y he probado y todo sigue igual (sigue consumiendo memoria). Luego he probado a comentar la StretchDIBits( ) y entonces he observado que [b:1dmips6q]NO[/b:1dmips6q] ...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Antonio, Bueno, lo importante es que ya sabemos de donde viene el problema: función StretchDIBits(). Ahora pensemos una estrategia... Miremos por ejemplo el código que use Wine para la función StretchDIBits(): [url:3kas59ld]http&#58;//cvs&#46;winehq&#46;org/cvsweb/wine/dlls/gdi/Attic/dib&#46;c?rev=1&#46;22&content...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Buscando en google veo que otros programadores (en otros lenguajes) han tenido problemas tambien con esta función: [url:o0tr6mqn]http&#58;//stackoverflow&#46;com/questions/8036855/how-to-handle-gdi-resource-leak[/url:o0tr6mqn] Quizá eso nos de una pista de por donde buscar...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Antonio, Si no haces el PREVIEW (quitando esa clausula), se produce la misma pérdida ? gracias por tus pruebas,
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Antonio, RESPUESTA 1: Pues siento decirte que creo que [b:1zhqf62c]NO[/b:1zhqf62c] es la StretchDIBits() porque si modifico lo que me has mandado y pongo: [code=fw:1zhqf62c]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br /><span style="color: #B900B9;">//        if( ( wWidth == 0 ) || ( wHeigh...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Antonio, Encontrado el problema; resulta que yo utilizo una [u:4mnut7fq]RPreview[/u:4mnut7fq] modificada por algun compañero del foro, siento no recordar el nombre; es una [u:4mnut7fq]RPreview[/u:4mnut7fq] que lleva una [u:4mnut7fq]TListView[/u:4mnut7fq] con las miniaturas de las paginas. Pues bien, he puesto la previ...
oPrinter:SayBitmap/ GlobalAlloc-GlobalFree ¿fuga de memoria?
Antonio, Me alegro de que el asunto quede resuelto <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
oPrinter:SetCopies(n)
Hola, Que estoy haciendo mal en este codigo para que no me funcione SetCopies() // ========= codigo ======== [code=fw:1u1vce3d]<div class="fw" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1">&nbsp;</li><li style="" class="li2">&nbsp; &nbsp; <span style="color: #008000;">PRINT</span> oPrn <span...
oPrinter:SetCopies(n)
Hello, somebody is using oPrn:SetCopies(2), it does not work to me in documents of a single page, Regards, Mauricio
oPrinter:SetCopies(n)
Mauricio, [quote="Mauricio":2yj1lmpj]somebody is using oPrn:SetCopies(2), it does not work to me[/quote:2yj1lmpj] I tried it long ago but found it doesn't work will ALL the printer drivers. In my tests I noticed that some other programs (Thunderbird for example) couldn't print multiple copies of the same document too ...
oPrn BOX ERROR
[img:1tge2hhs]https&#58;//i&#46;postimg&#46;cc/4d3VDDjc/jj&#46;jpg[/img:1tge2hhs] I need to make this box and put the text on one of 9 position Top left Top Right Top Center Bottom Left Bottom Right Bottom Center Left Right Center I tried the test of Nages but there is something not run ok I tried with BOx and R...
oPrn BOX ERROR
This works from FWH2007 onwards.
oPrn BOX ERROR
[quote="nageswaragunupudi":30qxsjd2]This works from FWH2007 onwards.[/quote:30qxsjd2] Now I don't remember what version I probably have here in the office I haven't updated the system
oPrn BOX ERROR
[quote="Silvio.Falconi":3t2g6j3x][quote="nageswaragunupudi":3t2g6j3x]This works from FWH2007 onwards.[/quote:3t2g6j3x] Now I don't remember what version I probably have here in the office I haven't updated the system[/quote:3t2g6j3x] however it is even stranger because I took a test and it worked, at least at home B...
oPrn BOX ERROR
[quote="nageswaragunupudi":2tju76gd]This works from FWH2007 onwards.[/quote:2tju76gd] Nages, I make a check on fwh April on function TxtInRct( hDC, aRect, aText ) there is a[b:2tju76gd] ""[/b:2tju76gd] ( school office version) on fwh May and June 2020 on function TxtInRct( hDC, aRect, aText ) t...
oPrn PREVIEW en Apaisado pero imprime en Vertical
Buenas. Tengo un Informe en apaisado que lo visualiza perfectamente , pero al imprimir desde el propio preview, opción file-> print que permite seleccionar el rango de paginas a imprimir, lo hace en vertical aunque este activado, vertical/horizontal automatico en la propiedades de la impresora. Tengo que "obligarla" ...
oPrn PREVIEW en Apaisado pero imprime en Vertical
Buenos días. He probado fwh/samples/tesrprn3.prg, y veo que en este ejemplo pasa lo mismo, por mucho que vea en pantalla en horizontal, imprime en vertical, (lo que tenga en las propiedades la impresora). por no perder mas tiempo, con la clase tReport pasa lo mismo ¿?. Muchas gracias por adelantado
oPrn PREVIEW en Apaisado pero imprime en Vertical
Si no te funciona, intenta poniéndolo dentro de la clausula PAGE [code=fw:tgosd2vv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PAGE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oPrn:<span style="color: #000000;">SetPage<...