topic
stringlengths
1
63
text
stringlengths
1
577k
toolbar tbitmap urgente pro favor
[quote="tomafa":w4fd1lif]Antonio hice lo que me indicaste me fije en el ejemplo de los samples en fwh y viene la instruccion asi oImageList:AddMasked( TBitmap():Define( "new",, oWnd ), nRGB( 255, 0, 255 ) ) oImageList:AddMasked( TBitmap():Define( "open",, oWnd ), nRGB( 255, 0, 255 ) ) parte de mi codigo es este pero no me pone las imagenes transparentes al boton se ven con el fondo blanco estoy haciendo algo mal oImgList:= TImageList():New( 32, 32 ) oImgList:AddMasked( oBmp[1] := TBitmap():Define( "TOOL_CLIENTE" ,, oWnd ), nRGB( 255, 0, 255 ) ) oImgList:AddMasked( oBmp[2] := TBitmap():Define( "TOOL_PROVEDOR" ,, oWnd ), nRGB( 255, 0, 255 ) ) oImgList:AddMasked( oBmp[3] := TBitmap():Define( "TOOL_PRODUCTO" ,, oWnd ), nRGB( 255, 0, 255 ) ) oImgList:AddMasked( oBmp[4] := TBitmap():Define( "TOOL_SERVICIOS",, oWnd ), nRGB( 255, 0, 255 ) )[/quote:w4fd1lif] Podría llegar a ser el color que le pones a tu imagen en el fondo para que sea transparente.
toolbar tbitmap urgente pro favor
Buenas tomafa: Es lo mismo que me pasaba a mi, pero si es el blanco es: RGB(255,255,255) SALUDOS <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> , Miguel A.
tooltip + Vista
Hello, Using some fwh programs on Xp , tooltips works as expected , not on VISTA , at least on mine version (Home Basic , service pack2) Is it a known problem ? Can it be resolved ? Frank Demont Using FWH 8.10
tooltip + Vista
Frank I have no problems with tooltips on my vista home service pack 2 PS : I am using a much more recent fwh version , 9.06 HTH Richard
tooltip + Vista
[quote="Richard Chidiak":28ayf6xc]Frank I have no problems with tooltips on my vista home service pack 2 PS : I am using a much more recent fwh version , 9.06 HTH Richard[/quote:28ayf6xc] Richard , Thanks for the answer , maybe fwh8.10 is the problem Frank
tooltip + Vista
Do you use aero or the classic and standard windows color schemes in vista? Best regards, Otto
tooltip en vista
Antonio y demás Colegas del foro Buena tarde SetBalloon( .T. ) Funciona perfectamente en Win XP pero vista no, no se ven los tooltip Inhabilito SetBalloon( .T. ) y salen bien en todos los PCs pero claro sin el efecto balon ¿Como se puede solucionar? Gracias de antemano Jairo Barbosa
tooltip en vista
Jairo, FWH\samples\Test2007.prg usa SetBalloon() y funciona correctamente en Windows 7. Alguien puede probarlo en Vista ? gracias
tooltip en vista
Antonio Gracias por tu pronta respuesta Asi lo tengo pero no funciona en vista Probare el sample Testt2007 en vista y te entero Cordialmente Jairo
tooltip en vista
hola, Tengo sistemas corriendo en Windows vista Home Premium y esta ok. se ve perfectamente el efecto balloon, FWH 802 + xharbour Saludes desde Managua, Nicaragua Ramon Paredes
tooltip en vista
com Windows Vilta Ultimate Service pack 1, fwh904 + xharbour 1.10 esta perfeito tambem... Ronaldo
tooltip en vista
Antonio El reporte en Windows vista funciono OK Pasa excepcionalmente que en un PC nuevo dell con vista no funciona Es posible que sea algo de configuración, si tu o algún colega que aya tenido esa experiencia y la quiera compartir en el foro, bienvenida es. Gracias Cordialmente Jairo
tooltip on headers xbrowse
it is possible to show tooltips on the headers ones of xbrowse ?
tooltip on headers xbrowse
Not possible right now. I too want that facility
tooltip su say
ciao a tutti,esiste un modo per attivare i tooltips sulle SAY ?o più in generale attivare un tooltip su una determinata area senza controlli attivi?grazie in anticipo, marzio
tooltip su say
Non che io sappia. Un controllo temo ci voglia. E non so se una SAY vada bene. Prova conoSay:cTooltip = "Tuo messaggio"Se non funziona allora prova a metterci intorno un groupbox o qualche altro controllo e metti il tooltip a quello.EMG
tooltip su say
ho già provato:oSay:cToolTip := "messaggio"anche con un GROUP intorno,ma anche sul groupbox non visualizza il tooltip.marzio
tooltip su say
Non mi viene in mente altro, mi dispiace.EMG
tooltip su say
ci vorrebbe un controllo trasparente da mettere sulla say.si puo fare un button trasparente?ho provato:DEFINE BRUSH oBrush STYLE NULL@ n,n BUTTON oBtn ....oBtn:oBrush := oBrushma non diventa trasparente.grazie comunque, marzio
tooltip timing
Is there away to adjust the timing of tooltips? Use FWH909.
tooltip timing
Harvey, Try oWnd:nToolTip. James
tooltip timing
Thanks James: Not sure where to put it and is it to be set to a time oWnd:ntooltip := ???
tooltip timing
Harvey, OK, I should have explained. nTooltip is CLASSDATA of TWindow. This means that it is like a STATIC. All instances of TWindow and any instances of subclasses of TWindow will inherit this instance variable AND and its value. So you only have to set it once in your app. nTooltip defaults to 900 milliseconds. Remember that most controls inherit from TWindow via TControl, so all those controls will have the overridden nTooltip value. Example: define window oWnd title "Main Window" oWnd:nTooltip:= 1000 Or you can use this unsual syntax: TWindow():nTooltip := 1000 Now your toolbar, GETs, etc, will have the longer time. Regards, James
tooltip timing
James: ownd:ntoolTip := 1000, doesn't work [code=fw:jxnfeayg]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <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> BOLD <br />          <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> OWND1 <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">75</span>  ;<br />         <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Up Your Cash Flow XT2-2009"</span> ;<br />        <span style="color: #0000ff;">MENU</span><span style="color: #000000;">&#40;</span> BUILDMENU<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>                                 ;<br />       <span style="color: #0000ff;">COLOR</span> CLR_WHITE, CLR_BLUE<br />       oWnd1:<span style="color: #000000;">nTooltip</span> := <span style="color: #000000;">1000</span><br />       </div>[/code:jxnfeayg] Can't get the tool tips to last more the 6 seconds. Even if i change the value higher.
tooltip timing
Harvey, After looking at the code, it appears that nTooltips is only being used with Clipper. I am going to have to look at this more when I have time. James
tooltip timing
Harvey, James, [url:20yncohy]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/bb760404(VS&#46;85)&#46;aspx[/url:20yncohy] We should modify this section of code in FWH\source\classes\window.prg: [code=fw:20yncohy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />         hWnd = CreateToolTip<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>:<span style="color: #000000;">hWnd</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ValType<span style="color: #000000;">&#40;</span> cToolTip <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"A"</span>, cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, cToolTip <span style="color: #000000;">&#41;</span>,  ;<br />                               <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lBalloon</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">lBalloon</span>, lTTBalloon <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />         <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> cToolTip <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"A"</span><br />            <span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> cToolTip <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span><br />               <span style="color: #00C800;">if</span> ! Empty <span style="color: #000000;">&#40;</span> cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />                  SendMessage<span style="color: #000000;">&#40;</span> hWnd, TTM_SETTITLE, ;<br />                     <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cToolTip <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span> .and. ! Empty<span style="color: #000000;">&#40;</span> cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ;<br />                        cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, TTI_INFO <span style="color: #000000;">&#41;</span>, cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #00C800;">endif</span><br />               ...<br /> </div>[/code:20yncohy] Maybe enhancing CreateToolTip() to accept new parameters, or simply adding new calls to SendMessage() there, the same way we do it for TTM_SETTITLE, etc. First I would recommend to read that Microsoft docs info and decided what values we want to support
tooltip timing
Antonio: Read the information you sent looked at the code. Looked at window.prg and I cant seem to figure out what to do. <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
tooltip timing
Harvey, That was not a solution, just the section of code where the solution needs to go. Antonio was requesting feedback on any other properties that we might want to also add at the same time as the timing fix. I haven't looked at the docs yet. James
tooltip timing
Yes I know. This seems to be the location where the attribures of the tooltip take place but the if statement == "A" is a problem since the tooltip is a "C". I may be way off but i couldn't find any othe place in window.prg where the tool yip is adjusted. [code=fw:261z4nzl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> cToolTip <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"A"</span><br />       <span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> cToolTip <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">1</span><br />            <span style="color: #00C800;">if</span> ! Empty <span style="color: #000000;">&#40;</span> cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />             SendMessage<span style="color: #000000;">&#40;</span> hWnd, TTM_SETTITLE, ;<br />              <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cToolTip <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span> .and. ! Empty<span style="color: #000000;">&#40;</span> cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ;<br />              cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, TTI_INFO <span style="color: #000000;">&#41;</span>, cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> cToolTip <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">3</span><br />           <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"N"</span><br />                SendMessage<span style="color: #000000;">&#40;</span> hWnd, TTM_SETTIPTEXTCOLOR, cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />             <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> cToolTip <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">4</span><br />           <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"N"</span><br />               SendMessage<span style="color: #000000;">&#40;</span> hWnd, TTM_SETTIPBKCOLOR, cToolTip<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />                 <span style="color: #00C800;">endif</span><br />          <span style="color: #00C800;">endif</span><br />              <span style="color: #00C800;">endif</span><br />            <span style="color: #00C800;">endif</span><br />         <span style="color: #00C800;">endif</span><br /> </div>[/code:261z4nzl]
tooltip timing
Harvey, Your code should go outside of that if ... endif unless you plan to use an array for the tooltip info: [code=fw:xn0mte6u]<div class="fw" id="{CB}" style="font-family: monospace;"><br />SendMessage<span style="color: #000000;">&#40;</span> hWnd, TTM_SETDELAYTIME, TTDT_AUTOPOP, nMakeLong<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6000</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:xn0mte6u]
tooltip timing
Harvey, #define TTM_SETDELAYTIME (WM_USER + 3) #define TTDT_AUTOPOP 2 Those values are defined in c:\bcc55\include\commctrl.h
tooltip timing
Antonio: Doesnt work <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> I need to define the ttm_setdelaytime #define TTM_SETDELAYTIME ??? what value #define TTDT_AUTOPOP ??? what value I placed SendMessage( hWnd, TTM_SETDELAYTIME, TTDT_AUTOPOP, nMakeLong( 6000, 0 ) ) below the endif in the array if endif statement. Nothing happens BUT If I set #define TTM_SETDELAYTIME (WM_USER +24) the ToolTip looks much better better but no time change or time control. Thanks again for the help but so far not working.
tooltip timing
Perfect. Thanks for the help
tooltips de ballon en rebar
Hola: En mi windows.prg he hecho el cambio hWnd = CreateToolTip( Self:hWnd, cToolTip, .t. ) //for ballon tooltips ! para tener tooltips de balón. Si creo una ventana con una toolbar me aparecen los tooltip de balón, pero si lo que creo es una rebar el tooltip es el cuadrado de siempre. ¿ Porqué ? Saludos,
tooltips de ballon en rebar
Me respondo <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=6113&highlight=tooltip">http://fivetechsoft.com/forums/viewtopi ... ht=tooltip</a><!-- m --> Saludos,
topics ordered by number of views
Dear Uwe, Is there a way using your tools to see the topics ordered by number of views ? Just curiosity <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tortoise cvs to harbour
hi, someone has the parameters? i lost.....
total days of millennium
hi to all is there any function that return total days from years 0 ? thanks
total days of millennium
do you know that the Gregorian calendar was introduced on 1582? And the year 1 starts 7 days after Christ born?
total days of millennium
[quote="damianodec":306lqrm5]hi to all is there any function that return total days from years 0 ? thanks[/quote:306lqrm5] What date do you mean by "Year 0"? Date() - CTOD( "" ) --> JulianDay meaning number of days from January 1, 4713 BC
total days of millennium
hi Mr Rao thank you, CTOD("") is what I was looking for bye
total in xbrowse
excuse me, i'm starting to use xbrowse I have customer.dbf can someone help me put the total of INVOICE field to the bottom ? thanks
total in xbrowse
[b:2t3tiuzd]I hope I can help you [/b:2t3tiuzd] [img:2t3tiuzd]http&#58;//img543&#46;imageshack&#46;us/img543/7783/orderae&#46;jpg[/img:2t3tiuzd] @ 0, 0 XBROWSE oBrw OF oFld:adialogs[1] ; PIXEL CELL LINES FOOTERS NOBORDER FASTEDIT oBrw:lfooter:=.t. oBrw:nStretchCol:= -1 aBrowse := { { { ||IN->ITCODE}, i18n("Codice"), 50, },; { { ||IN->ITDESC }, i18n("Descrizione"), 180, } ,; { { ||IN->ITMEASURE }, i18n("U.m."), 40, } ,; { { ||IN->ITQTY }, i18n("Q.tà"), 30,"9999" } ,; { { ||IN->ITTAX }, i18n("Iva"), 40,"99%" } ,; { { ||IN->ITDESCONT}, i18n("Sconti"), 80, } ,; { { ||IN->ITUNIT }, i18n("Unitario"), 80,'@ €99,999.99' } ,; { { ||IN->ITTOTAL }, i18n("Totale"), 80,'@ €99,999.99' }} FOR i := 1 TO Len(aBrowse) oCol := oBrw:AddCol() oCol:bEditValue := aBrowse[ i, 1 ] oCol:cHeader := aBrowse[ i, 2 ] oCol:nWidth := aBrowse[ i, 3 ] if !Empty(aBrowse[ i, 4 ]) oCol:cEditPicture:=aBrowse[ i, 4 ] Endif oCol:oDataFont := oFont oCol:bOnChange := { ||Calcolo_Riga(IN->ITQTY,IN->ITUNIT,IN->ITTAX,IN->ITDESCONT,OBRW),; oBrw:MakeTotals(), ; oBrw:RefreshFooters() } NEXT WITH OBJECT oBrw .... WITH OBJECT oBrw:aCols[8] :nDataStrAlign := AL_RIGHT :cEditPicture := '@ €99,999.99' :lTotal := .t. * :nTotal := nTotal :nFooterType := AGGR_SUM :nFootStrAlign := AL_RIGHT :nFootBmpNo := 1 // Footer BMP END :nStretchCol := STRETCHCOL_WIDEST :lHscroll:=.f. :lVscroll:=.T. :lRecordSelector := .f. :bChange = {|| oBrw:MakeTotals() } END oBrw:CreateFromCode()
total in xbrowse
Grazie silvio, domani provo e ti faccio sapere!
total in xbrowse
ok dimmi se hai problemi al massimo mi puoi chiamare in privato
total in xbrowse
ho creato la mia procedura, ma quando la dialog viene creata il totale non esce se poi clicco su una parte qualsiasi della dialog il totale esce: questo è lo spezzone di prg: *------------------------------- @ 10,10 XBROWSE oBrw SIZE -10,-30 PIXEL OF oDlg ; CELL LINES FOOTERS NOBORDER FASTEDIT oBrw:lfooter:=.t. oBrw:nStretchCol:= -1 aBrowse := { ; { { ||UTILE1->RAGSOC}, i18n("RAGIONE SOCIALE"), 360, },; { { ||UTILE1->KGTOTA }, i18n("KG TOTALI"), 80, '@E 9,999,999'} ,; { { ||UTILE1->IMPONI }, i18n("IMPONIBILE"), 80, '@E 999,999.99' } ,; { { ||UTILE1->EURTON }, i18n("UTILE/TN"), 60,'@E 99,999.99' } ,; { { ||UTILE1->BLOCCO }, i18n("BLK"), 30, }} FOR i := 1 TO Len(aBrowse) oCol := oBrw:AddCol() oCol:bEditValue := aBrowse[ i, 1 ] oCol:cHeader := aBrowse[ i, 2 ] oCol:nWidth := aBrowse[ i, 3 ] if !Empty(aBrowse[ i, 4 ]) oCol:cEditPicture:=aBrowse[ i, 4 ] Endif oCol:oDataFont := oFont NEXT WITH OBJECT oBrw WITH OBJECT oBrw:aCols[2] :nDataStrAlign := AL_RIGHT :cEditPicture := '@E 99,999.99' :lTotal := .t. :nFooterType := AGGR_SUM :nFootStrAlign := AL_RIGHT END :nStretchCol := STRETCHCOL_WIDEST :lHscroll:=.f. :lVscroll:=.T. :lRecordSelector := .f. :bChange = {|| oBrw:MakeTotals() } END oBrw:CreateFromCode() ACTIVATE DIALOG oDlg CENTERED *------------------------------------------------------
total in xbrowse
[quote="damianodec":1o1ezh62]excuse me, i'm starting to use xbrowse I have customer.dbf can someone help me put the total of INVOICE field to the bottom ? thanks[/quote:1o1ezh62] Which version of FWH are you using?
total in xbrowse
FWH 12.01 (jan 2012)
total in xbrowse
Please let us know the dbstructure() of the dbf you want to browse and which columns of the dbf you want to browse.
total in xbrowse
this is the dbstructure(): DbCreate( "c:\cruscotto\utile1", {{ "LOGICA","L", 1, 0 },; { "DOCENT" ,"C", 8, 0 },; { "CODICE" ,"C", 7, 0 },; { "RAGSOC" ,"C", 50, 0 },; { "SALDO" ,"N", 15,2 },; { "PAGATO" ,"N", 15,2 },; { "RISCHI" ,"N", 15,2 },; { "INSOLU" ,"L", 1,0 },; { "BLOCCO" ,"L", 1,0 },; { "LEGALE" ,"L", 1,0 },; { "KGTOTA" ,"N", 10,0 },; { "PERCUT" ,"N", 6,2 },; { "EURTON" ,"N", 10,2 },; { "IMPONI" ,"N", 12,2 },; { "TOTUTI" ,"N", 10,2 },; { "FIDO" ,"N", 10,2 } }) the columns are: UTILE1->RAGSOC UTILE1->KGTOTA UTILE1->IMPONI UTILE1->EURTON UTILE1->PERCUT UTILE1->TOTUTI UTILE1->FIDO (utile1->SALDO - UTILE1->PAGATO) utile1->PAGATO utile1->RISCHI utile1->INSOLU utile1->LEGALE UTILE1->BLOCCO thanks
total in xbrowse
hallo, I'm trying this code: [code=fw:dh2upsfc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp; <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-11</span> BOLD<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">760</span>,<span style="color: #000000;">440</span> <span style="color: #0000ff;">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'Xbrowse Color Gradients'</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">"codice"</span>, <span style="color: #ff0000;">"ragsoc"</span>, <span style="color: #ff0000;">"Saldo"</span>, <span style="color: #ff0000;">"kgtota"</span>, <span style="color: #ff0000;">"legale"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">360</span>,<span style="color: #000000;">180</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FOOTERS LINES CELL <br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">bPopUp</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> |o| ColMenu<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">cToolTip</span> := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'Column :'</span> + CRLF + o:<span style="color: #000000;">cHeader</span>, <span style="color: #ff0000;">'ToolTip'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> oCol := oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"kgtota"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">nTotal</span> &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">lTotal</span> &nbsp; := .t.<br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">nEditType</span> := EDIT_GET<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp;</div>[/code:dh2upsfc] this is the same code of function RddBrwSelColsDlg in testxbr3.prg in samples FWH directory, but the total in KGTOTA is empty, why?
total in xbrowse
Good way to start. This is missing in your code: In the line "@ 10,10 XBROWSE oBrw .............." you SHOULD add the clause [b:3v7f70rh][u:3v7f70rh]ALIAS "<aliasname>"[/u:3v7f70rh][/b:3v7f70rh] Instead of the older syntax [code=fw:3v7f70rh]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">nTotal</span> &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">lTotal</span> &nbsp; := .t.<br />&nbsp;</div>[/code:3v7f70rh] you can use the new single line syntax: [code=fw:3v7f70rh]<div class="fw" id="{CB}" style="font-family: monospace;">oCol:<span style="color: #000000;">nFooterType</span> := AGGR_SUM</div>[/code:3v7f70rh]
total in xbrowse
this is very hard for me... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> this is my new code: [code=fw:2d7xzb9q]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> xbrows<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oDbf<br /><br />  <span style="color: #00C800;">local</span> oDlg, oBrw, oCol, cAlias := cGetNewAlias<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"UTILE1"</span> <span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> oBr, oFont, cfunc<br /><br />   cFunc := ProcName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />   USE UTILE1 <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span> SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br />   SET ORDER <span style="color: #0000ff;">TO</span> TAG FIRST<br />   GO TOP<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont   <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-11</span> BOLD<br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">760</span>,<span style="color: #000000;">440</span> <span style="color: #0000ff;">FONT</span> oFont ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'Xbrowse Color Gradients'</span><br /><br />   @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw  ;<br />            COLUMNS <span style="color: #ff0000;">"codice"</span>, <span style="color: #ff0000;">"ragsoc"</span>, <span style="color: #ff0000;">"Saldo"</span>, <span style="color: #ff0000;">"kgtota"</span>, <span style="color: #ff0000;">"legale"</span> ;<br />            HEADERS <span style="color: #ff0000;">"a"</span>, <span style="color: #ff0000;">"b"</span>, <span style="color: #ff0000;">"c"</span>, <span style="color: #ff0000;">"D"</span>, <span style="color: #ff0000;">"e"</span> ;<br />            <span style="color: #0000ff;">OF</span> oDlg ;<br />            <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">360</span>,<span style="color: #000000;">180</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ALIAS</span> cAlias;<br />            AUTOSORT FOOTERS LINES CELL <br />            <br />   <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> oCol := oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"kgtota"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      oCol:<span style="color: #000000;">nFooterType</span> := AGGR_SUM<br />      oCol:<span style="color: #000000;">nEditType</span> := EDIT_GET<br />   <span style="color: #00C800;">endif</span><br /><br />   oBrw:<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />    <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2d7xzb9q] but column kgtota is without total, please help me...
total in xbrowse
if !Empty( oCol := oBrw:oCol( "kgtota" ) ) replace with if !Empty( oCol := oBrw:oCol( "D" ) ) // it is the header title that is assigned Hth Richard
total in xbrowse
thank Richard!!!
total in xbrowse
Again xbrowse, I would like to put a value (total column 3 / total colum 5) to the bottom of column "kgtota" an not the total of "kgtota" Thanks
total in xbrowse
[quote="damianodec":2lm1nkl2]Again xbrowse, I would like to put a value (total column 3 / total colum 5) to the bottom of column "kgtota" an not the total of "kgtota" Thanks[/quote:2lm1nkl2] [code=fw:2lm1nkl2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nFooterType</span> := AGGR_TOTAL<br />oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nFooterType</span> := AGGR_TOTAL<br />oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">bFooter</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nTotal</span> / oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nTotal</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2lm1nkl2]
total in xbrowse
Thank you, tomorrow I'll try that code.
total in xbrowse
ok nageswaragunupudi, it's ok. I have a question: if I use ths code: [code=fw:9bwxpfi2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            FOOTERS LINES CELL ;<br /><br />ADD COLUMN <span style="color: #0000ff;">TO</span> oBrw;<br />    <span style="color: #00C800;">DATA</span> utile2->descri;<br />    HEADER <span style="color: #ff0000;">"DESCRIZIONE"</span> ;<br />    <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">280</span><br /><br />ADD COLUMN <span style="color: #0000ff;">TO</span> oBrw;<br />    <span style="color: #00C800;">DATA</span> utile2->UM;<br />    HEADER <span style="color: #ff0000;">"UM"</span><br />    <br />ADD COLUMN <span style="color: #0000ff;">TO</span> oBrw;<br />    <span style="color: #00C800;">DATA</span> utile2->quanti;<br />    HEADER <span style="color: #ff0000;">"QUANTITA'"</span>;<br />    <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@E 9,999,999.99"</span> ;<br />    <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span> TOTAL ntotal FOOTER ufoot<br /><br />oBrw:<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:9bwxpfi2] I get this error: Time from start: 0 hours 0 mins 15 secs Error occurred at: 06-03-2013, 18:50:14 Error description: Error BASE/1004 Class: 'NIL' has no exported method: EVAL Args: [ 1] = U [ 2] = U Stack Calls =========== Called from: => EVAL( 0 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:BOOKMARK( 2847 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:MAKETOTALS( 6593 ) can you help me?
total in xbrowse
You have to specify the DATASOURCE in the XBROWSE command. You did not specify the alias "utile2" as datasource in the command. That is the problem [code=fw:fh95x4wp]<div class="fw" id="{CB}" style="font-family: monospace;">@ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-30</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />            DATASOURCE <span style="color: #ff0000;">"utile2"</span> FOOTERS LINES CELL ;<br /> </div>[/code:fh95x4wp] Explanation: When the line oBrw:MakeTotals() is executed, XBrowse should know from where to read the data and total. When you did not inform xbrowse the datasource, it fails. [b:fh95x4wp][color=#FF0000:fh95x4wp]CAUTION: Please NEVER forget to specify the datasource while creating xbrowse. The datasouce can be an array, alias, object, etc.[/color:fh95x4wp] [/b:fh95x4wp] Note: Though you can create columns by using ADD command, I strongly recommend creating the columns with COLUMNS command inside the main XBROWSE command. That has many advantages you will realise as you go.
total in xbrowse
Good very good, i'll try.
total in xbrowse
Yes, but I want restrict utile2.dbf using ordscope() function. which command can I use with cAlias in xbrowse, LOCATE, SET FILTER?
total in xbrowse
You can use ordscope() or setfilter() as you like. Before or during xbrowse.
total in xbrowse
Explain me, if I want to use combining two .dbf in xbrowse, how can I do?
total in xbrowse
[quote="damianodec":cme3ckqu]Explain me, if I want to use combining two .dbf in xbrowse, how can I do?[/quote:cme3ckqu] You probably mean when a dbf is set relation to another. Assume that the customer.dbf is related to states.dbf in the fwh\samples folder/ @ 0,0 XBROWSE oBrw OF oWnd DATASOURCE "CUSTOMER" ; COLUMNS "First", "City", "State", "STATES->Name" ; HEADERS nil, nil, nil, "StateName" .......... <remaining clauses>
total in xbrowse
Ok, if field states->nane is numeric, can I to get total on foot?
total in xbrowse
yes
total in xbrowse
Thank you!!!
totales columnas xbrowse condicionadas
hola foro, tengo un xbrowse donde sumo 2 columnas y despliego sus totales en el footer, pero habra alguna manera de sumar los totales bajo una condicion de un campo del registro ? saludos paco
touch.prg
Hello Antonio, if you slide a bit and then click you see the input dialog. Then if you enter PW and user you get into metroUI. But metroUI is not operable any more. If you slide till you see the icon and then click on the icon all is working. Best regards, Otto
touch.prg
Otto, You may oWnd:Disable() the main window until the slider ends and then oWnd;Enable() it
touch.prg
Hello Antonio, can you please show me where to put oWnd:Disable() and oWnd:Enable(). Best regards, Otto
touch.prg
Otto, I placed them insize Class TSliderMetro: [code=fw:2o7ffnc9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> GoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSliderMetro<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oBmp</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> ::<span style="color: #000000;">oBmp</span>:<span style="color: #000000;">nTop</span> > -ScreenHeight<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">100</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oBmp</span>:<span style="color: #000000;">nTop</span> -= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oBmp</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">Enable</span><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 />&nbsp;</div>[/code:2o7ffnc9] Here it seems to be working fine, please test it, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
touch.prg
Hello Antonio, You resolved the navigation in touch.prg with image. How can we reach the navigation by keyboard? Thanks in advance Otto DEFINE DIALOG oDlg SIZE ScreenWidth(), ScreenHeight() + 100 ; STYLE nOr( WS_CHILD, WS_POPUP ) ; COLOR CLR_BLUE, CLR_DIALOGS @ 20, 20 IMAGE oImgBack FILENAME "..\bitmaps\metro\back-black-48.png" OF oDlg ; PIXEL NOBORDER oImgBack:bLClicked := { || oDlg:End() } or @ 100, 570 IMAGE oImgAdd FILENAME "..\bitmaps\metro\plus_50_black.png" OF oDlg ; SIZE 40, 40 PIXEL NOBORDER oImgAdd:bLClicked := { || AddCompany() }
touch.prg error
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=27550&start=0&hilit=FLATBTN">viewtopic.php?f=6&t=27550&start=0&hilit=FLATBTN</a><!-- l -->
touch.prg error
Hola amigos: Algiuien me ayuda con este error que se produce en touch.prg. Se produce luego de mover la pantalla hacia arriba y me queda la manito... Gracias. Application =========== Path and name: C:\fwh1404\samples\touch.exe (32 bits) Size: 2,934,784 bytes Compiler version: Harbour 3.2.0dev (r1307082134) FiveWin Version: FWH 14.04 Windows version: 6.1, Build 7601 Service Pack 1 Time from start: 0 hours 0 mins 2 secs Error occurred at: 06/27/14, 09:01:44 Error description: Error BASE/1004 Message not found: TBTNFLAT:DEFCONTROL Args: [ 1] = O TBTNFLAT Stack Calls =========== Called from: => __ERRRT_SBASE( 0 ) Called from: ../../../tobject.prg => TBTNFLAT:ERROR( 0 ) Called from: ../../../tobject.prg => (b)HBOBJECT( 0 ) Called from: ../../../tobject.prg => TBTNFLAT:MSGNOTFOUND( 0 ) Called from: ../../../tobject.prg => TBTNFLAT:DEFCONTROL( 0 ) Called from: .\source\classes\BTNFLAT.PRG => TBTNFLAT:NEW( 108 ) Called from: touch.prg => LOGIN( 329 ) Called from: touch.prg => (b)MAIN( 39 ) Called from: .\source\classes\WINDOW.PRG => TWINDOW:LBUTTONDOWN( 1942 ) Called from: => TWINDOW:HANDLEEVENT( 0 ) Called from: .\source\classes\WINDOW.PRG => _FWH( 3236 ) Called from: => WINRUN( 0 ) Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1003 ) Called from: touch.prg => MAIN( 39 ) System
touch.prg error
Ruben, Has modificado touch.prg ? Aqui funciona bien
touch.prg error
No Antonio: Nada de nada, solo el ejemplo. Gracias.
touch.prg error
En la Clase TFlatBtn usamos este código: [code=fw:2l7p41rw]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">Create</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> XEval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nClrText</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span><br />      oWnd:<span style="color: #000000;">AddControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      oWnd:<span style="color: #000000;">DefControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span></div>[/code:2l7p41rw] Luego si el error lo da en DefControl, quiere decir que por alguna razón la ventana principal no se ha creado, pues su DATA hWnd vale cero ó nil, y entonces pasa por el else. Para segurarnos añade este método a la Clase TFlatBtn y vuelve a probarlo: METHOD DefControl() VIRTUAL
touch.prg error
Antonio en la version 14.04 la clase btnflat dice esto if ! Empty( oWnd:hWnd ) ::Create() ::SetColor( XEval( ::nClrText ), ::nClrPane ) if ::oFont == nil ::SetFont( ::oFont ) else ::GetFont() endif Gracias, la estoy modificando.
touch.prg error
Antonio: Cuando entro en la aplicacion y deslizo la pantalla hacia arriba, ingreso los datos, pero no aparece ningun boton de segiuir o cancelar... Ya hice lo cambios en flatbtn y la agregue al proyecto. Gracias.
touch.prg error
Ruben, Que resolución de pantalla usas ? Prueba a darle a tabulación para ver si asi llegas hasta el boton de OK
touch.prg error
Antonio uso : 1366 X 768 Gracias.
touch.prg error
Ruben, La resolución que uso es menor (1280x800) y se ve bien. Puedes poner una captura de pantalla de cómo se ve ? gracias
touch.prg error
Si Antonio, gracias en cuanto llegue a mi casa, gracias ahora estoy en el trabajo. Gracias
touch.prg error
Antonio, a mi tambien me ha dado algun error como el que se comenta. Creo que el problema, que existe desde la version 14.04 puede ser el siguiente: [code=fw:3eqks72j]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />   <span style="color: #B900B9;">//oWnd  := Self        // -> Comentar esta linea</span><br /><br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> ::<span style="color: #000000;">oFont</span> == <span style="color: #00C800;">nil</span> .and. oWnd:<span style="color: #000000;">oWnd</span> != <span style="color: #00C800;">nil</span><br />      oWnd     := oWnd:<span style="color: #000000;">oWnd</span><br />      ::<span style="color: #000000;">oFont</span>  := oWnd:<span style="color: #000000;">oFont</span><br />   <span style="color: #00C800;">enddo</span><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oFont</span> == <span style="color: #00C800;">nil</span> .and. WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">nil</span><br />      ::<span style="color: #000000;">oFont</span>  := WndMain<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oFont</span><br />   <span style="color: #00C800;">endif</span><br /><br /><br />   ::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span> nOR<span style="color: #000000;">&#40;</span> CS_VREDRAW, CS_HREDRAW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <br /><br />       .../...<br /><br /> </div>[/code:3eqks72j] Asi lo he probado y aparentemente ya no da el error en el DefControl
touch.prg error
Cristobal, En que clase has hecho esa modificación ? No lo localizo. gracias!
touch.prg error
En el metodo New de la clase CLASS TBtnFlat version 14.04, que según parece es a la que se refería el compañero En la version 14.06 ese código no está, y las pruebas que he realizado funcionan correctamente
touch.prg error
Cristobal, ok, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
tpop3 Help Use
I have a small problem using the class tpop3, down below in the source code of my program [code=fw:kjktqmps]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> PegaMail<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oInMail<br /><br />   cIP := GetHostByName<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pop.inteligence.com.br"</span><span style="color: #000000;">&#41;</span><br />   oInMail = TPop3<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cIp,, <span style="color: #ff0000;">"[email protected]"</span>, <span style="color: #ff0000;">"m941201"</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// mail server IP</span><br /><br />   oInMail:<span style="color: #000000;">bConnecting</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Connecting to 194.224.203.2..."</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oInMail:<span style="color: #000000;">bConnected</span>  = <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Connected"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oInMail:<span style="color: #000000;">bDone</span>       = <span style="color: #000000;">&#123;</span> || ReadEmails<span style="color: #000000;">&#40;</span> oInMail <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />    ?<span style="color: #ff0000;">"Aqui"</span><br />   oInMail:<span style="color: #000000;">GetMail</span><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;">function</span> ReadEmails<span style="color: #000000;">&#40;</span> oInMail <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> n<br />    ? <span style="color: #ff0000;">"Aqui"</span><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Total emails: "</span> + Str<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> oInMail:<span style="color: #000000;">aMsgs</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> oInMail:<span style="color: #000000;">aMsgs</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oInMail:<span style="color: #000000;">aMsgs</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:kjktqmps] I wanted Catch the email with attachment and download them, then delete them. As I do this, a light please <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
tprinter
Antonio, De igual forma que en la clase TReport mientras se genera la previsualización sale un mensaje indicando el número de página que está preparando, sería bueno hacer lo mismo en la clase tprinter. Muchas gracias por tu atención. Un saludo, Moisés
tprinter
¿Lo podrías incluir en FW.7.12, por favor?. Muchas gracias!!!.
tprinter
MOISES, prueba esta modificacion de uno de los ejemplos de fw [code:13k98zgt] #include "FiveWin&#46;ch" static oWnd function Main&#40;&#41; DEFINE WINDOW oWnd TITLE "Testing Class TPreview" MDI ; MENU BuildMenu&#40;&#41; DEFINE STATUSBAR OF oWnd PROMPT "FWH Multiple previews management" ACTIVATE WINDOW oWnd MAXIMIZED return nil function BuildMenu&#40;&#41; local oMenu MENU oMenu MENUITEM "Build a Preview" MENU MENUITEM "First" ACTION Preview1&#40;&#41; SEPARATOR MENUITEM "&Exit" ACTION oWnd&#58;End&#40;&#41; ENDMENU oMenu&#58;AddMdi&#40;&#41; MENUITEM "&Help" ENDMENU return oMenu function Preview1&#40;&#41; local oPrn, odlg, osay, npagina &#58;= 1, i DEFINE DIALOG oDlg FROM 100,100 TO 200,300 PIXEL @ 10,10 SAY oSay VAR STR&#40;npagina&#41; OF oDlg PIXEL ACTIVATE DIALOG oDlg CENTER NOWAIT PRINTER oPrn PREVIEW FOR i &#58;= 1 TO 30 PAGE oPrn&#58;ImportWMF&#40; "invoice&#46;emf" &#41; ENDPAGE oSay&#58;refresh&#40;&#41; npagina++ NEXT oDlg&#58;end&#40;&#41; ENDPRINT return nil [/code:13k98zgt][/quote][/code]
tprinter
Hola, ¡¡Muchas gracias!!. Pues sí, se trata más o menos de eso. Antonio, por favor, ¿puedes modificar la clase para que se comporte igual que TREPORT, sacando el mismo diálogo que está en prev32.dll/preview.dll?. Muchas gracias. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> PD: Lo chulo sería que TREPORT y TPRINTER sacaran una Progessbar, eso sería de 10. <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o --> <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->
tprinter
Moisés, Ese es un cambio que habría que consultar primero con los usuarios, pues afectaría a la "estética" de la aplicación y no todo el mundo puede estar de acuerdo
tprinter
Antonio, podria ser opcional a traves de un atributo (DATA) de la clase, que por defecto no esta activo, solo ideas saludos Marcelo
tprinter
Eso es. Un parámetro adicional para especificarlo a voluntad!!. En todo caso, lo del diálogo en TPRINTER como en que hay en Report no creo que le importe a nadie.
tprogress cMsg
Can anyone explain to me what "cMsg" is for in the TProgress class: this variable is not inserted in the execution of the control. sample oProgress := TProgress():New( 2.8, 2, oDlgProgress, , , , .f.,, 150, 15, [b:2sp9552u]"cmsg is useless"[/b:2sp9552u], .f., .f. )
tprogress y windows vista
Hola, tengo una función de reindexar que usa la clase tprogress para mostrar el avance por pantalla. Algo asi, [code:105ou9kz] Db_OpenNoIndex&#40; "Libros", "LI" &#41; oMeter&#58;setRange&#40; 0, LI->&#40;LastRec&#40;&#41;&#41; &#41; pack nMeter &#58;= 0 index on upper&#40;LiCodigo&#41;; tag CODIGO; for ! deleted&#40;&#41;; eval&#40; oMeter&#58;SetPos&#40; nMeter++ &#41;, oMeter&#58;Refresh&#40;&#41;, &#46;t&#46; &#41;; every 1 [/code:105ou9kz] El caso es que en XP va perfecto, pero en Windows Vista el meter no arranca, como que se queda parado. ¿ Alguna idea ? Saludos,
tprogress y windows vista
Jose Luis, Revisa samples\ProgTime.prg, aqui funciona bien en Vista. Prueba a aumentarle el incremento: oMeter:SetPos( nMeter += 5 )