topic
stringlengths
1
63
text
stringlengths
1
577k
el Tgantt esta disponible
Sorry Sylvio, I only wanted to say something like "Let the river in calm" be coherent, please.
el Tgantt esta disponible
ok I understand U BUT NOw I need to modify the class and I not Know How make it I want pubblish to forum because I wish someone help me I not want pubblish with my name ( to have the copyright) but i want pubblish on the first name of the author of the class and the all the modification I insert on it and the modifcation made from another fwuser many year ago.I offer to Anotnio Linares this class : I ask only a small help from all U
el Tgantt esta disponible
Silvio,Thank you for your offer. I think it would be great to have a planning included in FWH, as Tgraph too.
el archivo no empieza por ' %pdf-' ""YA RESUELTO""
Hola Tengo una aplicación para ver archivos PDF en red local y remota estos archivos están incrustados en una tabla de Mysql cuando los saco con mi aplicación se abre una ventanita y los muestra pero en algunos casos que ya son muchos me manda una ventana de ADOBE ACROBAT diciendo [color=#FF0040:kx4sh6ea]el archivo no empieza por ' %pdf-'[/color:kx4sh6ea] <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> no se que pueda ser me podrían orientar ya busque en San Google y ahí el problema sale para el iexplorer <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> [img:kx4sh6ea]http&#58;//2&#46;bp&#46;blogspot&#46;com/_exIhQH8lkAA/R2klQVaV-pI/AAAAAAAAABE/kvltkipHKek/s400/pdfAdobeError&#46;JPG[/img:kx4sh6ea] Gracias... Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
el archivo no empieza por ' %pdf-' ""YA RESUELTO""
Hola Aida, haber si estote ayuda, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- m --><a class="postlink" href="http://microsoft.public.es.sharepoint.narkive.com/pwoGLFI1/el-archivo-no-empieza-por-pdf">http://microsoft.public.es.sharepoint.n ... za-por-pdf</a><!-- m --> <!-- m --><a class="postlink" href="http://microsoft.public.es.sharepoint.narkive.com/uvHFX1jM/el-archivo-no-empieza-con-pdf">http://microsoft.public.es.sharepoint.n ... za-con-pdf</a><!-- m --> aca dan algunas soluciones a tu problema.
el archivo no empieza por ' %pdf-' ""YA RESUELTO""
Gracias Me pondre a leer <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
el archivo no empieza por ' %pdf-' ""YA RESUELTO""
Hola ya funciona bien <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> si era el adobe reader <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> no lo quite pero baje un programa SumatraPDF-3.0-install.exe con eso empezó a funcionar bien los PDF <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Muchas gracias <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
el archivo no empieza por ' %pdf-' ""YA RESUELTO""
[quote="AIDA":17pkn78w]Hola ya funciona bien <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> si era el adobe reader <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> no lo quite pero baje un programa SumatraPDF-3.0-install.exe con eso empezó a funcionar bien los PDF <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Muchas gracias <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->[/quote:17pkn78w] Que bueno se haya resuelto el problema, seguimos a la orden, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
el archivo no empieza por ' %pdf-' ""YA RESUELTO""
Gracias <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: -->
el archivo no empieza por ' %pdf-' ""YA RESUELTO""
Pues el problemita regreso de nuevo <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> ya quite el adobe reader lo reinstale en 4 maquinitas y a un a si sale el mismo error <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> [img:1r13sfgw]http&#58;//2&#46;bp&#46;blogspot&#46;com/_exIhQH8lkAA/R2klQVaV-pI/AAAAAAAAABE/kvltkipHKek/s400/pdfAdobeError&#46;JPG[/img:1r13sfgw] en el link siguiente hablan de este problema y como evitarlo pero es en PHP <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> [url:1r13sfgw]http&#58;//neruv&#46;blogspot&#46;mx/2007/12/fpdf-error-el-archivo-no-empieza-por&#46;html[/url:1r13sfgw] <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
el archivo no empieza por ' %pdf-' ""YA RESUELTO""
Ahora si quedo funcionando solo era poner a si esta linea [code=fw:22lgj2iu]<div class="fw" id="{CB}" style="font-family: monospace;">xoQry := <span style="color: #ff0000;">"SELECT * FROM  pdf WHERE  archivos='%1' ORDER BY documento DESC"</span></div>[/code:22lgj2iu] <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Muchas gracias por todo y a todos y sobre todo a Incos <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
el compilador harbour un renacer para el clipper
[url:8puuc73d]http&#58;//parceladigital&#46;com/2017/10/04/el-compilador-harbour-un-renacer-para-el-clipper/[/url:8puuc73d]
el diseño de TGantt de Ramón Avendaño
La clase TGantt de Ramón es realmente simple y esa simplicidad le hace ser muy flexible. De hecho las modificaciones que se le hayan hecho al modelo inicial, son meros detalles sin importancia y que realmente no hacen falta <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Un objeto TGantt es un control (deriva de TControl) que maneja un array de items. Esos items tienen unas coordenadas y se pintan en la superficie del TGantt. Además de eso, con el ratón podemos mover esos items y redimensionarlos. Y eso es todo! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Lo que queramos representar con esos items, es ya asunto nuestro (como programadores). Vamos a ver un primer ejemplo muy sencillo del uso de TGantt para entenderlo: testgant.prg [code=fw:2q229shd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Gantt.ch"</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, oGantt<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;">"Class TGantt test"</span><br />   <br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> GANTT oGantt <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">300</span> <span style="color: #0000ff;">OF</span> oWnd<br />   <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span>  <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>,  <span style="color: #000000;">30</span>,  <span style="color: #000000;">80</span>, CLR_BLUE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span>  <span style="color: #000000;">40</span>, <span style="color: #000000;">30</span>,  <span style="color: #000000;">60</span>, <span style="color: #000000;">110</span>, CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span>  <span style="color: #000000;">70</span>, <span style="color: #000000;">50</span>,  <span style="color: #000000;">90</span>,  <span style="color: #000000;">90</span>, CLR_GREEN <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">120</span>,  <span style="color: #000000;">80</span>, CLR_CYAN <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">130</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">120</span>, CLR_YELLOW <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   <br />   oWnd:<span style="color: #000000;">oClient</span> = oGantt<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2q229shd] Como veis, definimos 5 items para ese TGantt, y asignamos un color a cada uno de ellos. Podremos asignarles muchas más cosas. Pero de momento, centremonos en la idea. El resultado se ve asi: [img:2q229shd]http&#58;//img577&#46;imageshack&#46;us/img577/2769/capturemwb&#46;png[/img:2q229shd] Moviendo y redimensionando los items: [img:2q229shd]http&#58;//img828&#46;imageshack&#46;us/img828/2615/capturelxg&#46;png[/img:2q229shd] Podeis descargar desde aqui el EXE, para que podais mover y redimensionar los items con el ratón. Se incluye todo el código fuente: [url:2q229shd]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=gantt&#46;zop&can=2&q=[/url:2q229shd]
el diseño de TGantt de Ramón Avendaño
un poco de revisión en el codigo, uso de cursor de arrantres, verificacion de bloque de codigo en onchange, etc. eliminacion de codigo sin uso. Antonio. al dar dobleclick dobre una barra el cursor queda fijo como el de arrastre. pero a moverlo se restaura al cursorwait [code=fw:1bugx4mt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> GWL_STYLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">-16</span><br /><br /><span style="color: #00C800;">STATIC</span> nOldCol, nOldRow<br /><span style="color: #00C800;">STATIC</span> nOldCol1, nOldCol2, nOldRow2<br /><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">CLASS</span> TGantt <span style="color: #0000ff;">FROM</span> TControl<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nWidth, nHeight<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; aItems<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; lCaptured, lCaptuPre<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nItem, nItePre<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nRow1, nRow2 &nbsp; AS NUMERIC <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nCol1, nCol2 &nbsp; AS NUMERIC <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nRowi1, nRowi2 AS NUMERIC <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nColi1, nColi2 AS NUMERIC <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; hTrazoPen<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; hOldPen<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; iRop<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; bLbx<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nLCol, nRCol AS LOGICAL <span style="color: #0000ff;">INIT</span> .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; bChange<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; bPresed<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; bTrovaTIP<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; cToolTip<br /><br />&nbsp; &nbsp;CLASSDATA lRegistered AS LOGICAL<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nTop, nLeft, nWidth, nHeight, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lBorder, lVScroll, lHScroll , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrFore, nClrBack &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bChange, bPresed, bLbx &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Redefine</span><span style="color: #000000;">&#40;</span> nId, oWnd, nClrFore, nClrBack <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MESSAGE</span> FillRect<span style="color: #000000;">&#40;</span> aRect, oBrush, nBarra <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">METHOD</span> _FillRect<span style="color: #000000;">&#40;</span> aRect, oBrush, nBarra <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Display</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">BeginPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">EndPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> LButtonDown<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> LButtonUp<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> MouseMove<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> LDblClick<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Line<span style="color: #000000;">&#40;</span> nTop, nLeft, nBottom, nRight, oPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Rectang<span style="color: #000000;">&#40;</span> nTop, nLeft, nBottom, nRight, oPen, nBarra <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> nRow, nCol &nbsp; &nbsp; &nbsp; &nbsp; , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cText &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrFore, nClrBack , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont, lPixel &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lTransparent, nAlign <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> DibRect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> DibLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nTop, nLeft, nWidth, nHeight, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lBorder, lVScroll, lHScroll , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nClrFore, nClrBack &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bChange, bPresed, blbx &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lBorder &nbsp;:= .T. &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lVScroll := .f. &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lHScroll := .f. &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrFore := <span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack := CLR_WHITE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd &nbsp; &nbsp; := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cCaption</span> &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> := .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptuPre</span> := .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">aitems</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nitem</span> &nbsp; &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nitePre</span> &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nTop</span> &nbsp; &nbsp; &nbsp;:= nTop<br />&nbsp; &nbsp;::<span style="color: #000000;">nLeft</span> &nbsp; &nbsp; := nLeft<br />&nbsp; &nbsp;::<span style="color: #000000;">nBottom</span> &nbsp; := nTop + nHeight - <span style="color: #000000;">1</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nRight</span> &nbsp; &nbsp;:= nLeft + nWidth - <span style="color: #000000;">1</span><br />&nbsp; &nbsp;::<span style="color: #000000;">oWnd</span> &nbsp; &nbsp; &nbsp;:= oWnd<br />&nbsp; &nbsp;::<span style="color: #000000;">bchange</span> &nbsp; := bChange<br />&nbsp; &nbsp;::<span style="color: #000000;">bPresed</span> &nbsp; := bPresed<br />&nbsp; &nbsp;::<span style="color: #000000;">bLbx</span> &nbsp; &nbsp; &nbsp;:= bLbx<br />&nbsp; &nbsp;::<span style="color: #000000;">nStyle</span> &nbsp; &nbsp;:= nOr<span style="color: #000000;">&#40;</span> WS_CHILD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBorder, &nbsp;WS_BORDER, &nbsp;<span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lVScroll, WS_VSCROLL, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lHScroll, WS_HSCROLL, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WS_VISIBLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WS_TABSTOP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cToolTip</span> &nbsp; &nbsp;:= <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrFore, nClrBack <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">hTrazOpen</span> := CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oWnd:<span style="color: #000000;">lVisible</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Create</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lVisible</span> := .t.<br />&nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lVisible</span> &nbsp;:= .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Redefine</span><span style="color: #000000;">&#40;</span> nId, oWnd, nClrFore, nClrBack,bChange, bPresed,blbx <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nId</span> &nbsp; &nbsp; &nbsp; := nId<br />&nbsp; &nbsp;::<span style="color: #000000;">cCaption</span> &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> := .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptuPre</span> := .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">oWnd</span> &nbsp; &nbsp; &nbsp;:= oWnd<br />&nbsp; &nbsp;::<span style="color: #000000;">bchange</span> &nbsp; := bChange<br />&nbsp; &nbsp;::<span style="color: #000000;">bPresed</span> &nbsp; := bPresed<br />&nbsp; &nbsp;::<span style="color: #000000;">bLbx</span> &nbsp; &nbsp; &nbsp;:= bLbx<br />&nbsp; &nbsp;::<span style="color: #000000;">nWidth</span> &nbsp; &nbsp;:= <span style="color: #000000;">100</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nHeight</span> &nbsp; := <span style="color: #000000;">100</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrFore, nClrBack <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lAnd<span style="color: #000000;">&#40;</span> GetWindowLong<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">&#41;</span>, WS_VSCROLL <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> SCROLLBAR ::<span style="color: #000000;">oVScroll</span> <span style="color: #0000ff;">VERTICAL</span> <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lAnd<span style="color: #000000;">&#40;</span> GetWindowLong<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">&#41;</span>, WS_HSCROLL <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> SCROLLBAR ::<span style="color: #000000;">oHScroll</span> <span style="color: #0000ff;">HORIZONTAL</span> <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;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 /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> n, hPen<br /><br />&nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, GetClientRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<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> ::<span style="color: #000000;">aItems</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hPen := CreatePen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> n , <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; FillRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, hPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">bPainted</span> != <span style="color: #00C800;">NIL</span> .and. ValType<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPainted</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPainted</span>, ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hPen <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> Line<span style="color: #000000;">&#40;</span> nTop, nLeft, nBottom, nRight, oPen <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> hPen := iif<span style="color: #000000;">&#40;</span> oPen = <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">0</span>, oPen:<span style="color: #000000;">hPen</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MoveTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, nLeft, nTop <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, nRight, nBottom, hPen <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">ReleaseDC</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;">METHOD</span> Rectang<span style="color: #000000;">&#40;</span> nTop, nLeft, nBottom, nRight, oPen, nBarra <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> hPen := iif<span style="color: #000000;">&#40;</span> oPen &nbsp; == <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">0</span>, oPen:<span style="color: #000000;">hPen</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nBar := iif<span style="color: #000000;">&#40;</span> nBarra == <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">0</span>, nBarra &nbsp; &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;Rectangle<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, nTop, nLeft, nBottom, nRight, hPen <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">ReleaseDC</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;">METHOD</span> <span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> nRow, nCol &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cText &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nClrFore, nClrBack &nbsp; , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFont, lPixel &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lTransparent, nAlign <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nClrFore &nbsp; &nbsp; := ::<span style="color: #000000;">nClrText</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrBack &nbsp; &nbsp; := ::<span style="color: #000000;">nClrPane</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oFont &nbsp; &nbsp; &nbsp; &nbsp;:= ::<span style="color: #000000;">oFont</span> &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lPixel &nbsp; &nbsp; &nbsp; := .f. &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lTransparent := .f.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ValType<span style="color: #000000;">&#40;</span> nClrFore <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"C"</span><br />&nbsp; &nbsp; &nbsp; nClrBack := nClrFore<br />&nbsp; &nbsp; &nbsp; nClrFore := nGetForeRGB<span style="color: #000000;">&#40;</span> nClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nClrBack := nGetBackRGB<span style="color: #000000;">&#40;</span> nClrBack <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nAlign := GetTextAlign<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;WSay<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span> &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRow, nCol &nbsp; &nbsp; &nbsp; &nbsp; , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cValToChar<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrFore, nClrBack , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oFont != <span style="color: #00C800;">NIL</span>, oFont:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, lPixel, lTransparent, nAlign <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">ReleaseDC</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;">METHOD</span> MouseMove<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> neoitem, cText<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lCaptured</span><br /><br />&nbsp; &nbsp; &nbsp; neoItem := AScan<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span>,<span style="color: #000000;">&#123;</span> |val| val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <= nRow .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <= ncol .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> >= ncol .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> >= nRow &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> neoItem = <span style="color: #000000;">0</span> .and. <span style="color: #000000;">&#40;</span> nRow <= ::<span style="color: #000000;">nRow1</span> + <span style="color: #000000;">2</span> .or. nRow >= ::<span style="color: #000000;">nRow2</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> .and. ::<span style="color: #000000;">nlCol</span> .and. ::<span style="color: #000000;">nRCol</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> nCol > nOldCol1 .and. nCol < nOldCol2<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CursorHand<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">hOldPen</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lCaptured</span> := .f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lCaptuPre</span> := .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nRowi1</span> &nbsp; &nbsp;:= ::<span style="color: #000000;">nRow2</span> - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nColi1</span> &nbsp; &nbsp;:= nOldCol2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nColi2</span> &nbsp; &nbsp;:= nCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nRowi2</span> &nbsp; &nbsp;:= nRow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nOldRow &nbsp; &nbsp; := ::<span style="color: #000000;">nRow2</span> - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nOldRow2 &nbsp; &nbsp;:= ::<span style="color: #000000;">nRow2</span> - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nOldCol &nbsp; &nbsp; := nOldCol2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nRowi2</span> &nbsp; &nbsp;:= nOldRow2 + <span style="color: #000000;">&#40;</span> nRow - nOldRow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nColi2</span> &nbsp; &nbsp;:= nOldCol2 + <span style="color: #000000;">&#40;</span> nCol - nOldCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">hOldpen</span> &nbsp; := Selectobject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">hTrazoPen</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nRCol</span> .and. !::<span style="color: #000000;">nLCol</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Cursor</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CURSOR_2"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> nOldCol2 + <span style="color: #000000;">&#40;</span> nCol - nOldCol <span style="color: #000000;">&#41;</span> > ::<span style="color: #000000;">nCol1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nCol2</span> := nOldCol2 + <span style="color: #000000;">&#40;</span> nCol - nOldCol <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;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nLCol</span> .and. !::<span style="color: #000000;">nRCol</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Cursor</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CURSOR_3"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> nOldCol1 + <span style="color: #000000;">&#40;</span> nCol - nOldCol<span style="color: #000000;">&#41;</span> < ::<span style="color: #000000;">nCol2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nCol1</span> := nOldCol1 + <span style="color: #000000;">&#40;</span> nCol - nOldCol <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;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nLCol</span> .and. ::<span style="color: #000000;">nRCol</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorDrag<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol1</span> := nOldCol1 + <span style="color: #000000;">&#40;</span> nCol - nOldCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol2</span> := nOldCol2 + <span style="color: #000000;">&#40;</span> nCol - nOldCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lCaptuPre</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nRowi2</span> := nOldRow2+<span style="color: #000000;">&#40;</span>nRow-nOldRow<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nColi2</span> := nOldCol2+<span style="color: #000000;">&#40;</span>nCol-nOldCol<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nItePre</span> := AScan<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aitems</span>,<span style="color: #000000;">&#123;</span> |val| val<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <= nRow .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;val<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <= ncol .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;val<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> >= ncol .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;val<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> >= nRow &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nItepre</span> != <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorHand<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorArrow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nItem</span> :=AScan<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> |val| val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; <= nRow .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; <= ncol .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">5</span> >= ncol .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; >= nRow &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lCaptured</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nItem</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorHand<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> := .f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lCaptuPre</span> := .t.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nItem</span> !=<span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">aitems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; &nbsp; &nbsp; <= nCol &nbsp; &nbsp; &nbsp;.and. ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">2</span> >= nCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorWE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ELSEIF ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">3</span> <= nCol &nbsp; &nbsp; &nbsp;.and. ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; >= nCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorWE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ELSEIF ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">2</span> <= nCol &nbsp; &nbsp; &nbsp;.and. ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">5</span> >= nCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorHand<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ELSEIF ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; < &nbsp;nCol + <span style="color: #000000;">2</span> &nbsp;.and. ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">3</span> > &nbsp;nCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorHand<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Cursorarrow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">bTrovaTip</span> != <span style="color: #00C800;">NIL</span> .and. ValType<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bTrovaTip</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"B"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bTrovaTip</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cToolTip</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lTooltipBallon</span> &nbsp; &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nTooltipwidth</span> &nbsp; &nbsp; := <span style="color: #000000;">600</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nTooltipTexColor</span> &nbsp;:= RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nTooltipBkColor</span> &nbsp; := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">058</span>, <span style="color: #000000;">116</span>, <span style="color: #000000;">241</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nTooltipIcon</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">ShowToolTip</span><span style="color: #000000;">&#40;</span> nRow, nCol, ::<span style="color: #000000;">cToolTip</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">bTrovaTip</span> != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">DestroyToolTip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; CursorArrow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> LButtonDown<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">bLbx</span> != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">bLbx</span>:<span style="color: #000000;">LbuttonDown</span><span style="color: #000000;">&#40;</span> nRow + <span style="color: #000000;">32</span>, <span style="color: #000000;">40</span>, nKeyFlags <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;nOldCol := nCol<br />&nbsp; &nbsp;nOldRow := nRow<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nItem</span> := AScan<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> |Val| Val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; <= nRow .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; <= nCol .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">5</span> >= nCol .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Val<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> &nbsp; &nbsp; >= nRow &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nItem</span> != <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">hOldPen</span> := Selectobject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">hTrazoPen</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <= nCol <span style="color: #000000;">&#41;</span> .and. <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">2</span> >= nCol <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> :=.t.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRow1</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol1</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol2</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nrow2</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nLCol</span> := .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRCol</span> := .f.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldCol1 := ::<span style="color: #000000;">nCol1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldCol2 := ::<span style="color: #000000;">nCol2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">DibRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorWE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ELSEIF <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">3</span> <= nCol <span style="color: #000000;">&#41;</span> .and. <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> >= nCol <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> := .t.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRow1</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol1</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol2</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRow2</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nLCol</span> := .f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRcol</span> := .t.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldCol1 := ::<span style="color: #000000;">nCol1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldCol2 := ::<span style="color: #000000;">nCol2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">DibRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorWE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ELSEIF <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">2</span> <= nCol <span style="color: #000000;">&#41;</span> .and. <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">5</span> > nCol <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> := .f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lCaptuPre</span> := .t.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRowi1</span> := nRow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nColi1</span> := nCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nColi2</span> := nCol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRowi2</span> := nRow<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldRow2 := nRow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldCol2 := nCol<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">DibLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorHand<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ELSEIF <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aitems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> < nCol + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> .and. <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">3</span> > nCol <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> := .t.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRow1</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol1</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nCol2</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRow2</span> := ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nLCol</span> := .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nRcol</span> := .t.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldCol1 := ::<span style="color: #000000;">nCol1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nOldCol2 := ::<span style="color: #000000;">nCol2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">DibRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CursorDrag<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">LButtonDown</span><span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> LButtonUp<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TGantt<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">DestroyToolTip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lCaptured</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; selectObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">hOldPen</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lCaptuPre</span> := .f.<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lCaptured</span> := .f.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> nOldCol1 != ::<span style="color: #000000;">nCol1</span> .or. nOldCol2 != ::<span style="color: #000000;">nCol2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> <span style="color: #000000;">&#93;</span> := <span style="color: #000000;">&#123;</span> ::<span style="color: #000000;">nRow1</span> + <span style="color: #000000;">2</span>, ::<span style="color: #000000;">nCol1</span>, ::<span style="color: #000000;">nRow2</span> - <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nCol2</span>, ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nItem</span> , <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">bChange</span> != <span style="color: #00C800;">NIL</span> .and. ValType<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bChange</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"B"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bChange</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lCaptuPre</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; selectObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">hOldPen</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lCaptured</span> := .f.<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lCaptuPre</span> := .f.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nItePre</span> !=<span style="color: #000000;">0</span> .and. ::<span style="color: #000000;">nItem</span> != <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nItePre</span> != ::<span style="color: #000000;">nItem</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">bPresed</span> != <span style="color: #00C800;">NIL</span> .and. ValType<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPresed</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"B"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPresed</span>, <span style="color: #00C800;">Self</span> <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;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nItePre</span> := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">LButtonUp</span><span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">METHOD</span> DibRect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">iRop</span> := ClsetroP2<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MoveTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nCol1</span>, ::<span style="color: #000000;">nRow1</span> &nbsp;<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nCol2</span>, ::<span style="color: #000000;">nRow1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nCol2</span>, ::<span style="color: #000000;">nRow2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nCol1</span>, ::<span style="color: #000000;">nRow2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nCol1</span>, ::<span style="color: #000000;">nRow1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;ClseTroP2<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">iRop</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;">METHOD</span> DibLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">iRop</span> := ClsetroP2<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MoveTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nColi1</span>,::<span style="color: #000000;">nRowi1</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nColi2</span>,::<span style="color: #000000;">nRowi2</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;ClseTroP2<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">iRop</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;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hTrazoPen</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Super</span>:<span style="color: #000000;">End</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;">METHOD</span> LDblClick<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> := .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptuPre</span> := .f.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">bLbx</span> != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">bLbx</span>:<span style="color: #000000;">LDblClick</span><span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Super</span>:<span style="color: #000000;">LDblClick</span><span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <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;">METHOD</span> _FillRect<span style="color: #000000;">&#40;</span> aCols, oBrush, nBarra <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nBar := iif<span style="color: #000000;">&#40;</span> nBarra = <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">0</span>, nBarra <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span> ,aCols, oBrush:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nBar > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span> <span style="color: #000000;">&#41;</span> >= nBar<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> nBar <span style="color: #000000;">&#93;</span> := <span style="color: #000000;">&#123;</span> aCols<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aCols<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aCols<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>, aCols<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> aCols<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aCols<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aCols<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>, aCols<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</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><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: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#define</span> HB_API_MACROS<br /><br /><span style="color: #00D7D7;">#include</span> <Windows.h><br /><span style="color: #00D7D7;">#include</span> <hbApi.h><br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CLSETROP2 <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hDll, Ctex )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> &nbsp;SetROP2<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</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 /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><span style="color: #B900B9;">/*EOF*/</span><br /><span style="color: #B900B9;">/*--------------------------------------------------------------------------*/</span><br /><br />&nbsp;</div>[/code:1bugx4mt]
el diseño de TGantt de Ramón Avendaño
Consideremos ahora que queremos representar datos relacionados con un "mes". Hemos implementado un Método GridMonth() en la Clase TGantt que muestra una útil rejilla <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:1wftackc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> GridMonth<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />   <span style="color: #00C800;">local</span> n, nWidth := ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> / <span style="color: #000000;">31</span><br />   <br />   MoveTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span><br />   LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nWidth</span>, <span style="color: #000000;">18</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> <span style="color: #000000;">30</span><br />      MoveTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, nWidth * n, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <br />      LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, nWidth * n, ::<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">next</span>  <br />   <br />   <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">31</span><br />      ::<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">7</span> + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> * nWidth <span style="color: #000000;">&#41;</span>,;<br />             <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> n < <span style="color: #000000;">10</span>, <span style="color: #ff0000;">" "</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,,, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oFont</span>,<span style="color: #000000;">&#41;</span>, .T. <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></div>[/code:1wftackc] Modificamos nuestro primer ejemplo de esta forma: [code=fw:1wftackc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Gantt.ch"</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> oFont, oWnd, oGantt<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;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span><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;">"Class TGantt test"</span><br />   <br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> GANTT oGantt <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">300</span> <span style="color: #0000ff;">OF</span> oWnd<br />   <br />   oGantt:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br />   oGantt:<span style="color: #000000;">lGridMonth</span> = .T.<br />   <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span>  <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span>,  <span style="color: #000000;">50</span>,  <span style="color: #000000;">80</span>, CLR_BLUE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span>  <span style="color: #000000;">60</span>, <span style="color: #000000;">30</span>,  <span style="color: #000000;">80</span>, <span style="color: #000000;">110</span>, CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span>  <span style="color: #000000;">90</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">110</span>,  <span style="color: #000000;">90</span>, CLR_GREEN <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">140</span>,  <span style="color: #000000;">80</span>, CLR_CYAN <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   AAdd<span style="color: #000000;">&#40;</span> oGantt:<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">170</span>, <span style="color: #000000;">120</span>, CLR_YELLOW <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br />   <br />   oWnd:<span style="color: #000000;">oClient</span> = oGantt<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1wftackc] Y aqui tenemos el resultado: [img:1wftackc]http&#58;//img703&#46;imageshack&#46;us/img703/7579/capturedi&#46;png[/img:1wftackc] EXE y código fuente incluido: [url:1wftackc]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=gantt2&#46;zop&can=2&q=[/url:1wftackc]
el diseño de TGantt de Ramón Avendaño
Carlos, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Por favor prueba a implementar tus cambios en esta nueva versión que acabo de publicar <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
el diseño de TGantt de Ramón Avendaño
Gracias Antonio Esto es un buen hilo para hacer uso de esta clase, pues la verdad estaba perdido en su uso, es posible aplicar scrooll Horizontal o Vertical para el manejo de muchas actividades?? asi como tambien definir las activades y sus marcas Sera algo tonta la pregunta pero los valores de las coordenadas bajo que criterio las calculas ??? Reitero, tu apoyo en sacarle provecho a esta clase Gracias Lubin
el diseño de TGantt de Ramón Avendaño
Antonio He probado el ultimo test de Tgantt donde muestras los 31 Dias. el cual permite jalar las barras hasta una nueva posicion, Un detalle : Esta ventana al cambiarse de tamaño, las barras no se redimensionan, son fijas, y esto no debe ser asi, porque obviamente la barra marcara "otro dia" con solo el hecho de agrandar o reducir la ventana. Las barras deben redimensionarse con la venta. otra consulta : Es posible que este metodo me devuelva los "nuevos dias marcados" luego de haberlos movido el tamaño de cada barra del grafico ?? Gracias Lubin
el diseño de TGantt de Ramón Avendaño
Lubin, La Clase TGantt admite muchas posibilidades, pues es un diseño básico que puede ampliarse tanto como se desee. Habría que definir las DATAs de tamaño de columna y de fila, y asi podriamos definir un Método AdItem() que calculase las coordenadas automaticamente. Los items podrian auto redimensionarse en base al tamaño de la columna y fila. Asi mismo lo idóneo seria crear una Clase TGanttItem con DATAs para saber si se ha modificado, etiqueta, tooltip, colores, gradientes, etc. El scroll lateral y vertical es calcular una posición relativa a la hora de pintar (method Paint()). Las posibilidades son muchas, ahora veamos que tal aceptación tiene y que interés despierta, y todo se andará <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
el diseño de TGantt de Ramón Avendaño
Antonio Creo que tambien habria que ir avanzando la impresion del Gantt, pues e 99.99% de los usuarios que usan gant lo desean ver en un papel pegado en la pared para su control, Pensaba una alternativa mientras tanto.. imprimir lo que se ve en la pantalla (siepre y cuando todo el proyecto completo se vea en la pantalla...) voy a estudiar bien la clase a ver que mas puedo aportar, Yo (y nosotros ) sabemos el esfuerzo que hacen en ir atendiediendo las necesidades, pero quiza te parecera algo extremo pedirte en el desarrollo en esta clase insertar comentarios basicos de las operaciones que se hacen.. de tal manera que podamos aprender el tipo de operacion o efecto que se hace,, y asi entender mejor la clase y poder aportar mas en ella.. ??? por ejemplo en el metodo GridMonth(): local n, nWidth := ::nWidth() / 31 && me imagino que sera dividir el ancho de la ventana entre los 31 dias... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> MoveTo( ::hDC, 0, 18 ) && aqui me perdi... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> LineTo( ::hDC, ::nWidth, 18 ) && sigo perdidooo.. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> El saber la accion que se esta haciendo tendra un efecto multiplicador.. !!! Bueno.. ahi iremos avanzando.. Lubin
el diseño de TGantt de Ramón Avendaño
[quote:h5t2f5xn] [b:h5t2f5xn]MoveTo[/b:h5t2f5xn] Changes the painting coordinates Syntax: MoveTo( <hDC>, <nCol>, <nRow> ) --> nLOldPos [/quote:h5t2f5xn] [code=fw:h5t2f5xn]<div class="fw" id="{CB}" style="font-family: monospace;">MoveTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> && aqui me perdi... :<span style="color: #000000;">shock</span>:</div>[/code:h5t2f5xn] [quote:h5t2f5xn] [b:h5t2f5xn]LineTo[/b:h5t2f5xn] Draws a line from the current position up to another Syntax: LineTo( <hDC>, <nRow>, <nCol>, <hPen> ) --> lSuccess [/quote:h5t2f5xn] [code=fw:h5t2f5xn]<div class="fw" id="{CB}" style="font-family: monospace;">LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nWidth</span>, <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> && sigo perdidooo..</div>[/code:h5t2f5xn] Aclaracion: ::hDC = Dispositivo de contexto del control, se refiere al area usada para pintar trazados o dibujos, cada control tiene uno. (a mi se me parece como un plano bidimensional) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> ::nWidth = Ancho del area del control. nRow y nCol posiciones en el Dispositivo de contexto dado en pixel. *asi cada control o ventana en windows tiene un ::hDC, *tiene una posicion inicial: ::nTop ::nLeft *tiene un alto y un ancho ::nWidth ::nHeight para dibujar algo (lineas, cuadros, circulos, poligonos) o pintar algo (iconos, bitmaps, otros controles) hay que ubicar la posicion con MoveTo, para dibujar la linea partiendo de la posicion especificada antes hasta una posicion final se usa LineTo salu2 carlos vargas
el diseño de TGantt de Ramón Avendaño
Hola Perdón por mi indiorancia pero para que es la clase <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
el diseño de TGantt de Ramón Avendaño
Aida, [quote:1ic6j7oj]Un objeto TGantt es un control (deriva de TControl) que maneja un array de items. Esos items tienen unas coordenadas y se pintan en la superficie del TGantt. Además de eso, con el ratón podemos mover esos items y redimensionarlos[/quote:1ic6j7oj] [url:1ic6j7oj]http&#58;//es&#46;wikipedia&#46;org/wiki/Diagrama_de_Gantt[/url:1ic6j7oj] <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
el diseño de TGantt de Ramón Avendaño
Aida El diagrama Gant como habras leido es muy usado para el control de proyectos, planes de produccion, o plan de actividades como por ejemplo controlar la construccion de una casa, permite ver las etapas de la cosntruccion de la casa y como se van desarrollando las actividades ,, finalmente sabran para cuando tienen la casa construida o si estan atrasados... etc etc.. algo asi... 1.Preparar el terreno _____________xxxx 2.Construir la base de la casa__________xxxx 3.plantar las columas_____________________xxxxx 4.Poner las paredes de la Zona A________________xxxxxxxx 5. Poner la paredes de la Zona B______________________xxxxxx 6. Poner las Paredes de la Zona C_______________________xxxxxxx 7. Techado Zona A_____________________________________xxx 8. Techado Zona B________________________________________xxx 9. Cableados instalaciones electricas________________________xxxxxxxxxxxxx 10 Instalaciones Sanitarias__________________________________xxxxxxxxxxxx 9. Acabados Zona A, B_______________________________________xxxxxxxx 10 Acabados Zona C____________________________________________xxxxxxxx 11 Control final / entrega_______________________________________________xxx semanas de proyecto________________xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx _________________________________12345678901234567890123456789012345678 Es de esta manera se grafica ... pero en Fivein .. debe salir muchisimo mas bonito.. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> El sistema debe controlar como van los avances , los atrasos , adelantos de las operaciones es muy util para planificacion. Lubin
el diseño de TGantt de Ramón Avendaño
AIDA, una foto explica más que mil palabras, así que aquí esta algo mas visual: [img:2kajj8m2]http&#58;//ubuntulife&#46;files&#46;wordpress&#46;com/2009/11/openproj_big&#46;jpg[/img:2kajj8m2] Con un diagrama de Gantt puedes mostrar el inicio y el final de una actividad y su relación con otras actividades dentro de determinado projecto... Puedes usar OpenProj que es gratis... (Windows y Linux) [url:2kajj8m2]http&#58;//softlayer&#46;dl&#46;sourceforge&#46;net/project/openproj/OpenProj%20Binaries/1&#46;4/openproj-1&#46;4&#46;msi[/url:2kajj8m2]
el diseño de TGantt de Ramón Avendaño
Efectivamente Bayron ... Tu imagen lo muestra mucho mejor... pero la idea es tenerlo integrado en un sistema hecho en fiveWin,, la pantalla mostrada es del software OpenProj el cual es bastante bueno.. y como dices es gratuito.. El objetivo del desarrollo de la clase TGantt es obtener este tipo de diagramas. Lubin
el diseño de TGantt de Ramón Avendaño
Hola Muchas Gracias por las explicaciones y ejemplos ahora si ya entendí para que son <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
el futuro de Fast Report
Buenos días, Ojalá os encontréis todos bien en estos tiempos tan duros. Esperemos que la tecnología ayude también a encontrar la solución a la pandemia. Como sabéis, Microsoft ha dejado caer que pronto Windows no admitirá versiones de 32 bits, como ya pasó con los 16 bits. Me preocupa el tema con Fast Report, pues nosotros usamos el producto de Sergey y sólo funciona en 32 bits. Ya sé que O Z S ha continuado el producto, pero lamentablemente su soporte técnico no es bueno y no tienen planes de tener una versión de 64 bits, pues parece que aún no lo han logrado con X-ailer. Me pregunto si alguno de vosotros, o incluso Fivetech, ha explorado la posibilidad de continuar el trabajo de Sergey para poder tener una versión de 64 bits. ¡Muchas gracias!
el futuro de Fast Report
A ver si tengo un rato y le doy un empujón aunque las pruebas realizadas son bastante prometedoras <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=34973&hilit=fastreport+net&start=30#p217795">viewtopic.php?f=17&t=34973&hilit=fastreport+net&start=30#p217795</a><!-- l -->
el futuro de Fast Report
[quote="mgsoft":2gaqyzsc]Buenos días, Ojalá os encontréis todos bien en estos tiempos tan duros. Esperemos que la tecnología ayude también a encontrar la solución a la pandemia. Como sabéis, Microsoft ha dejado caer que pronto Windows no admitirá versiones de 32 bits, como ya pasó con los 16 bits. Me preocupa el tema con Fast Report, pues nosotros usamos el producto de Sergey y sólo funciona en 32 bits. Ya sé que O Z S ha continuado el producto, pero lamentablemente su soporte técnico no es bueno y no tienen planes de tener una versión de 64 bits, pues parece que aún no lo han logrado con X-ailer. Me pregunto si alguno de vosotros, o incluso Fivetech, ha explorado la posibilidad de continuar el trabajo de Sergey para poder tener una versión de 64 bits. ¡Muchas gracias![/quote:2gaqyzsc] Hola, esta claro que Microsoft siguiendo con su policita logica de abandonar cosas, dejara las versiones de 32 bits pero para eso creo que faltan varios años, afortunadamente Fivewin no va a tener ese problema, ya que ya esta resuelto, y el tema de FastReport yo creo que el problema es el precio que cuesta, como bien sabes Sergey , desgraciadamente fallecio, pero su esposa con buen criterio quiso continuar la empresa y a rey muerta, rey puesto, es la vida busco otros programadores que continuan desarrollando el producto. En Rusia es facil encontrar programadores buenos en Delphi, a pesar que Embarcadero con su politica de precios los ha ido enviando. Pero.. Si ademas del precio de FastReport despues como es el caso de OZS cobra por el trabajo que ha hecho en adaptarlo a Xailer, hasta ahi estoy conforme, no se debe de regalar el trabajo, pero tambien estoy contigo en que el soporte de esos productos, es pesimo, con un foro totalmente apatico. Si Cristobal consigue adaptar el producto , que lo hara el siguiente paso seria hablar con la empresa de FastReport y consensuar un precio asumible. De todas formas gran producto. Seria muy buen añadido si consiguieramos eso, un precio moderado. Siempre hay que mejorar, apoyo tu propuesta. Saludos. Jose.
el futuro de Fast Report
Hola Cristóbal, ¡Excelente noticia! Cuenta conmigo si quieres para ayudarte a afinar la clase. Estaré pendiente del hilo. Un saludo
el futuro de Fast Report
Eduardo, he creado un slack para reunirnos todos los que estamos interesados en el proyecto <!-- m --><a class="postlink" href="https://join.slack.com/t/fwfastnet/shared_invite/zt-e2aeivv5-VcAXj~mzG_EeaFuGFjXQ5g">https://join.slack.com/t/fwfastnet/shar ... aFuGFjXQ5g</a><!-- m -->
el futuro de Fast Report
Jose Vicente, un tema que quiero aclarar. En este caso, yo utilizo FastReport.Net que convirtieron en Open Source hace tiempo, por lo tanto, el coste del producto FastReport no existe.
el futuro de Fast Report
[quote="cnavarro":17e5djyc]Jose Vicente, un tema que quiero aclarar. En este caso, yo utilizo FastReport.Net que convirtieron en Open Source hace tiempo, por lo tanto, el coste del producto FastReport no existe.[/quote:17e5djyc]Eso es genial Cristóbal. No conocía que existía FastReport. NET, voy a mirar. Gracias. Enviado desde mi POCOPHONE F1 mediante Tapatalk
el programa a veces se queda ""frozen""
Hola, En bucles largos DO WHILE !EOF() y a pesar de llamar a sysrefresh() el programa a veces se queda como colgado y si haces un doble click en la pantalla entonces pone que el programa no responde. ¿Hay alguna forma de evitarlo?. Muchas gracias.
el programa a veces se queda ""frozen""
Lucas por ejemplo como usas el sysRefresh en un bucle? yo por lo general en bucle uso [code=fw:13hsf2g0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span><br />   ...<br />   <span style="color: #00C800;">if</span> <span style="color: #00C800;">mod</span><span style="color: #000000;">&#40;</span> ++contador, <span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span>=<span style="color: #000000;">0</span><br />      sysrefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />  ...<br /><span style="color: #00C800;">enddo</span><br /> </div>[/code:13hsf2g0] osea no en cada iteraccion de bucle, sino que cada cierto tiempo. salu2 carlos vargas
el programa a veces se queda ""frozen""
Carlos, Muchas gracias. Yo lo suelo hacer con un número aleatorio. Pero nada, sobre todo con Windows 7 el mensaje de colgado aparece al los pocos segundos.
elazar varios programas a un ejecutable
Un saludo para todos los miembros del foro, les pediría ayuda en relación a siguiente tema. Estoy pasando una aplicación de 16 a 32 Bit, hecha con fivewin 16bit Clipper 5.3 y Blinker. Tengo muchas dudas al respecto pero lo que mas me complica en estos momentos es como enlazar varios programas a una programa principal en Clipper, compilaba cada prg por separado y luego linkaba utilizando un archivo*.lnk ahora estoy compilando con xharbour y linkando con Borland 5, utilizo el buildx.bat para esto todo anda bien, por el momento pero quisiera saber como puedo agregarle mas programas a mi aplicación hasta ahora lo hago agregando un #include por cada programa adicional pero cada vez que compilo el programa principal me compila todos los programas, quizás hay alguna opción mejor ocupando el ilink32 y enlazando los prg en un programa similar a lo que ocupábamos con Blinker *.lnk [b:3bi1c8a7]Gracias...![/b:3bi1c8a7]
elazar varios programas a un ejecutable
[quote="VPOZO":2z6uft6h]quizás hay alguna opción mejor ocupando el ilink32 y enlazando los prg en un programa similar a lo que ocupábamos con Blinker *.lnk[/quote:2z6uft6h] Hola, aquí te muestro como ejemplo el archivo MiLink.lnk que bien podrías adaptar a tus necesidades: [code=fw:2z6uft6h]<div class="fw" id="{CB}" style="font-family: monospace;">c0w32.obj + <br />Prog1.OBJ +<br />Prog2.OBJ +<br />prog3.OBJ +<br />prog4.OBJ +<br />prog5.OBJ +<br />prog6.OBJ +<br />prog7.OBJ, +<br />Prog1.exe, + <br />Prog1.map, + <br />C:\FWH\lib\Fivehx.lib +<br />C:\FWH\lib\FiveHC.lib +<br />c:\xharbour\lib\hbzip.lib + <br />c:\xharbour\lib\rtl.lib + <br />c:\xharbour\lib\vm.lib + <br />c:\xharbour\lib\pcrepos.lib + <br />c:\xharbour\lib\gtgui.lib + <br />c:\xharbour\lib\lang.lib + <br />c:\xharbour\lib\macro.lib + <br />c:\xharbour\lib\rdd.lib + <br />c:\xharbour\lib\dbfntx.lib + <br />c:\xharbour\lib\dbfcdx.lib + <br />c:\xharbour\lib\dbffpt.lib + <br />c:\xharbour\lib\hbsix.lib + <br />c:\xharbour\lib\debug.lib + <br />c:\xharbour\lib\common.lib + <br />c:\xharbour\lib\pp.lib + <br />c:\bcc55\lib\cw32.lib + <br />c:\bcc55\lib\import32.lib + <br />c:\bcc55\lib\psdk\odbc32.lib + <br />c:\bcc55\lib\psdk\rasapi32.lib + <br />c:\bcc55\lib\psdk\nddeapi.lib + <br />c:\bcc55\lib\psdk\iphlpapi.lib + <br />c:\bcc55\lib\psdk\msimg32.lib,, +<br />Prog1.res Prog2.res<br /> </div>[/code:2z6uft6h] Solo deberás cuidar la posición de las comas. Desde la consola o desde un archivo .bat puedes ejecutar el siguiente comando: c:\bcc55\bin\ilink32 -Gn -aa -Tpe -s -v @MiLink.lnk También puedes revisar \fwh\makes\borland.zip para enlazar tu aplicación usando RMake.exe igual que en Clipper. Espero que ésto te sirva mientras que te familiarizas con el uso de alguna otra utilería de enlazado. Saludos. Manuel Mercado.
elazar varios programas a un ejecutable
Agradecido por la ayuda como tu dijiste solo hay que tener cuidado con las comas al momento de generar el archivo y ademas el orden (puse el prg principal al final), habia hecho esto varias veces sin darme cuenta de la ",". Te agradesco nuevamente.... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
eliminando el tiempo obj:cToolTip
le gustaría cToolTip desaparecer sólo cuando se mueve el ratón, lo que podría cambiar esto? agradecido
email
exist with fwh/xharbour a function to control if the string past is really a email ? type see if there is the @ on a string ...
email
You can use regular expression. [code=fw:3c6yff8f]<div class="fw" id="{CB}" style="font-family: monospace;"><br />hb_regex<span style="color: #000000;">&#40;</span>hb_regexComp<span style="color: #000000;">&#40;</span>cRegExpression,cEmail<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:3c6yff8f]
email
thank but on cRegExpression what I must insert ? or I made a substr to have the second part of mail because I search a smtp server on my archive sample <!-- e --><a href="mailto:silvio.falconi@gmail.com">silvio.falconi@gmail.com</a><!-- e --> -> SubStr( cMailMittente, at("@", cMailMittente) ) -> "@gmail.com" I could see the first chr is a @ ...just an idea ....
email
I found on xharbour reference this sample : // The example tests if a text string contains an eMail address. // The search is case insensitive although the RegEx defines // character classes only with upper case letters. PROCEDURE Main LOCAL cRegEx := "[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}" LOCAL cText := "Send your request to <!-- e --><a href="mailto:info@xharbour.com">info@xharbour.com</a><!-- e --> " + ; "for more information" IF HB_RegExMatch( cRegEx, cText, .F. ) ? "Text contains eMail address" ELSE ? "Text contains no eMail address" ENDIF RETURN
email - Dúvidas Bugs - Linares
Antonio, sobre o email que te enviei: [code:3onh49i7] Em 23/04/07, Eric Magaldi <ericmagaldi@XXXX&#46;XXX> escreveu&#58; Antonio, boa tarde !! Última linha Dialog &#40;RC&#41; para colocar @&#46;&#46;Button no rodapé http&#58;//fivetechsoft&#46;com/forums/viewtopic&#46;php?t=6739 Entendi que a medida são diferentes, poderia me ajudar com um exemplo, para o caso que descreví ? pois da forma que fiz não funcionou&#46; Bug Picture http&#58;//fivetechsoft&#46;com/forums/viewtopic&#46;php?t=6435 Caso foi corrigido, pode me enviar o código/PRG ? Bug ComboBox http&#58;//fivetechsoft&#46;com/forums/viewtopic&#46;php?t=6111 Caso foi corrigido, pode me enviar o código/PRG ? Linkagem xHB&#40;cvs&#41; x FW está incompatível com as recentes alterações do xHB, a lib do FW esta incompatível Error&#58; Unresolved external '_hb_objGetClass' referenced from C&#58;\FWH\LIB\FIVEHC&#46;LIB|MSGS Pode me enviar o BAT para recompilar as LIBs do FW ? Obrigado&#46; -- Virtualmente, Éric M&#46; Magaldi Analista programador de sistemas xHarbour&#46;org &#40;0&#46;99&#46;71 CVS&#41; + Borland C++ &#40;5&#46;5&#46;1&#41; + FiveWin &#40;2&#46;8/6&#46;12&#41; + Pelles C &#40;4&#46;50&#46;113&#41; + HBMake + ADSCDX &#40;Local Server 8&#46;1&#41; Osasco - São Paulo - Brasil [/code:3onh49i7]
email - Dúvidas Bugs - Linares
Eric, > Entendi que a medida são diferentes, poderia me ajudar com um exemplo, para o caso que descreví ? pois da forma que fiz não funcionou. > You have to use GetDialogBaseUnits() as we told you: nDlgHeight = nLogHeight * nLoWord( GetDlgBaseUnits() ) / 4 nDlgWidth = nLogWidth * nHiWord( GetDlgBaseUnits() ) / 8 where nLogHeight and nLogWidth are the logical dimensions that you used for the dialog in the resource The picture bug is not fixed yet Regarding the combobox we proposed you a workaround > Linkagem xHB(cvs) x FW está incompatível You need to upgrade to the most recent FWH build. We can't provide internal compatibility with xHB(cvs) changes, for previous FWH builds
email - blat.exe
Hello, blat.exe I am working on a setup for my windows server backup. I found some solutions where you get a notification through an email sent by blat.exe. I blat.exe a secure software. Can we send emails only with Fivewin, too. Thanks in advance Otto
email - blat.exe
This is what I'm using without problems: [code=fw:1vsbke5d]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cFrom &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"e.m.giordano@emagsoftware.it"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cServer &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"out.alice.it"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cTo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"e.m.giordano@emagsoftware.it"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cSubject &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"Test message"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cMessage &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"This is a test message."</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> aAttach &nbsp; &nbsp; &nbsp; := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cSender &nbsp; &nbsp; &nbsp; := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cUser &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cPassword &nbsp; &nbsp; := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> aCC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> lHtml &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cPort &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> lNotification := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> lSSL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; ? SENDMAIL<span style="color: #000000;">&#40;</span> cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort, lNotification, lSSL <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br />#command <span style="color: #00C800;">IF</span> <condition> THEN <*statements*> => <span style="color: #00C800;">if</span> <condition> ; <statements> ; end<br /><br /><br /><span style="color: #00C800;">FUNCTION</span> SENDMAIL<span style="color: #000000;">&#40;</span> cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort, lNotification, lSSL <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> lOk := .F.<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oCfg, oMsg<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cCc := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> i<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> lHtml &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"<html"</span> $ LOWER<span style="color: #000000;">&#40;</span> cMessage <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> lNotification := .F.<br />&nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> lSSL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCfg = CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCfg:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = cServer<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> cPort <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCfg:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := VAL<span style="color: #000000;">&#40;</span> cPort <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCfg:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCfg:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = .F.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> cUser <span style="color: #000000;">&#41;</span> .AND. !EMPTY<span style="color: #000000;">&#40;</span> cPassword <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCfg:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCfg:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = cUser<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCfg:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := cPassword<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCfg:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = lSSL<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCfg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oMsg = CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #000000;">Configuration</span> = oCfg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> cSender <span style="color: #000000;">&#41;</span> THEN cFrom = <span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"] + cSender + ["</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" <"</span> + cFrom + <span style="color: #ff0000;">">"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #0000ff;">From</span> &nbsp; &nbsp;= cFrom<br />&nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #0000ff;">To</span> &nbsp; &nbsp; &nbsp;= cTo<br />&nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #0000ff;">Subject</span> = cSubject<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> aCc <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> aCc <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> i > <span style="color: #000000;">1</span> THEN cCc += <span style="color: #ff0000;">";"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCc += aCc<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #000000;">CC</span> = cCc<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !lHtml<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #000000;">TextBody</span> = cMessage<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #000000;">HTMLBody</span> = cMessage<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span> aAttach <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> aAttach <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #000000;">AddAttachment</span><span style="color: #000000;">&#40;</span> aAttach<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> lNotification<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #000000;">Fields</span>:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"urn:schemas:mailheader:disposition-notification-to"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = cFrom<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #000000;">Fields</span>:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oMsg:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; lOk = .T.<br />&nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> lOk</div>[/code:1vsbke5d] EMG
email - blat.exe
Hello Enrico, thank you. I will try your solution. Best regards, Otto PS: Are you travelling to the Dolomites in ferragosto? Our problems at the moment: [img:2ai53jqb]http&#58;//www&#46;atzwanger-software&#46;com/fw/rsw&#46;PNG[/img:2ai53jqb]
email - blat.exe
[quote="Otto":157q0b2x]Are you travelling to the Dolomites in ferragosto?[/quote:157q0b2x] Unfortunately not. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
email - blat.exe
In Enrico's example I don't see where he is defining the port. Doesn't CDO require the port? Also, I assume this example would not work with Outlook or Office 365.
email - blat.exe
[quote="dtussman":32ud9b2v]In Enrico's example I don't see where he is defining the port. Doesn't CDO require the port?[/quote:32ud9b2v] [code=fw:32ud9b2v]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> cPort &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #00C800;">NIL</span></div>[/code:32ud9b2v] The default value is used (25, if I remember correctly). You can assign any other (string) value you need: [code=fw:32ud9b2v]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> cPort &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"587"</span></div>[/code:32ud9b2v] EMG
email - blat.exe
[quote="dtussman":3sf0mna6]Also, I assume this example would not work with Outlook or Office 365.[/quote:3sf0mna6] I don't understand, sorry. EMG
email CDO caracter problem
Hi, I work with cdo to send e-mails but in email body i need to display special caracter like ç ã ó é etc. If I select this sentence: Segue convocação para assembleia geral extraordinária tendo como pauta negociação da convenção coletiva. In destination email body display this: Segue convoca??o para assembleia geral extraordin?ria tendo como pauta negocia??o da conven??o coletiva. How I can fix this? Thanks in advance.
email CDO caracter problem
[quote="Wanderson":3q9yy4sc]Segue convocação para assembleia geral extraordinária tendo como pauta negociação da convenção coletiva.[/quote:3q9yy4sc] I just try with your above sample and it worked perfect here. EMG
email CDO caracter problem
I have the same problem.
email CDO caracter problem
Can I see a reduced and self-contained sample of the problem? EMG
email CDO caracter problem
[quote="Enrico Maria Giordano":1e10acpt]Can I see a reduced and self-contained sample of the problem? EMG[/quote:1e10acpt] Enrico above you can see how i send mails, but in destination body email the caracters display wrong. Thanks! Static Function Config_Mail() local lRet := .f. local oCfg, oError local cServ := "smtp.gmail.com" local nPort := "465" local lAut := .t. local lSSL := .t. local cUser := "blablabla" local cRemt := "blablabla@gmail.com" local cDest := "blablabla@gmail.com" local cPass := "blablabla" local cSubject := "test" local cCC := "" local cCCO := "" local cAttach := {} local cTxt := "Segue convocação para assembleia geral extraordinária tendo como pauta negociação da convenção coletiva." TRY oCfg := CREATEOBJECT( "CDO.Configuration" ) WITH OBJECT oCfg:Fields :Item( "http://schemas.microsoft.com/cdo/configuration/smtpserver" ):Value := cServ :Item( "http://schemas.microsoft.com/cdo/configuration/smtpserverport" ):Value := nPort :Item( "http://schemas.microsoft.com/cdo/configuration/sendusing" ):Value := 2 :Item( "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" ):Value := lAut :Item( "http://schemas.microsoft.com/cdo/configuration/smtpusessl" ):Value := lSSL :Item( "http://schemas.microsoft.com/cdo/configuration/sendusername" ):Value := cUser :Item( "http://schemas.microsoft.com/cdo/configuration/sendpassword" ):Value := cPass :Update() END WITH lRet := .t. CATCH oError MsgInfo( "Não Foi possível Enviar o e-Mail!" +CRLF+ ; "Error: " + Transform(oError:GenCode, nil) + ";" +CRLF+ ; "SubC: " + Transform(oError:SubCode, nil) + ";" +CRLF+ ; "OSCode: " + Transform(oError:OsCode, nil) + ";" +CRLF+ ; "SubSystem: " + Transform(oError:SubSystem, nil) + ";" +CRLF+ ; "Mensaje: " + oError:Description, "Atenção" ) lRet := .f. END if lRet lRet := Envia_Mail(oCfg,cRemt,cDest, cCC, cCCO, cTxt, cSubject, cAttach) endif Return lRet ******************************************************************************** Static Function Envia_Mail(oCfg,cFrom, cTo, cCC, cBCC, cMsg, cSubject, cAttach) local cToken local lRet := .f. local Vezes := 0 Do While Vezes <= 5 cTo := Destinatarios( cTo ) //--> PARA cCC := Destinatarios( cCC ) //--> COM COPIA cBCC := Destinatarios( cBCC ) //--> COM COPIA OCULTA TRY oMsg := CREATEOBJECT ( "CDO.Message" ) WITH OBJECT oMsg :Configuration = oCfg :From = cFrom :To = cTo :CC = cCC :BCC = cBCC :Subject = cSubject :TextBody = cMsg For x2 := 1 To Len( cAttach ) if cAttach[x2] <> NIL :AddAttachment(cAttach[x2]) endif Next :Send() END WITH lRet := .t. CATCH lRet := .f. ++Vezes loop END Exit Enddo Return lRet
email CDO caracter problem
[code=fw:28gpi5gi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> cTxt := OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Segue convocação para assembleia geral extraordinária tendo como pauta negociação da convenção coletiva."</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:28gpi5gi] .or. [code=fw:28gpi5gi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> cTxt := AnsiToOem<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Segue convocação para assembleia geral extraordinária tendo como pauta negociação da convenção coletiva."</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:28gpi5gi] Regards
email CDO caracter problem
[quote="karinha":3di09agt][code=fw:3di09agt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> cTxt := OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Segue convocação para assembleia geral extraordinária tendo como pauta negociação da convenção coletiva."</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:3di09agt] .or. [code=fw:3di09agt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> cTxt := AnsiToOem<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Segue convocação para assembleia geral extraordinária tendo como pauta negociação da convenção coletiva."</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:3di09agt] Regards[/quote:3di09agt] Já tentei karinha mas sem resultado. Obrigado.
email CDO caracter problem
xHarbour, normal: [img:2y5pt22s]http&#58;//i&#46;imgur&#46;com/hnuttGQ&#46;png[/img:2y5pt22s]
email CDO caracter problem
[quote="karinha":1p0dsmla]xHarbour, normal: [img:1p0dsmla]http&#58;//i&#46;imgur&#46;com/hnuttGQ&#46;png[/img:1p0dsmla][/quote:1p0dsmla] karinha, mostrando com um alert fica normal sim. Mas após enviar o email com esse texto no corpo o destinatário quando abre, aparece caracteres trocados por causa do cedilha e acentos. Valeu!
email CDO caracter problem
[quote="karinha":1gw3ogtr]xHarbour, normal: [img:1gw3ogtr]http&#58;//i&#46;imgur&#46;com/hnuttGQ&#46;png[/img:1gw3ogtr][/quote:1gw3ogtr] I'm using xHarbour. EMG
email CDO caracter problem
Wanderson, usando o meu RMAIL.PRG está normal. Veja - mira - look: [img:1tarqrln]http&#58;//i&#46;imgur&#46;com/3JoWKoW&#46;png[/img:1tarqrln] Saludos, regards.
email CDO caracter problem
Wanderson, in Windows Live Mail: [img:2k6hvday]http&#58;//i&#46;imgur&#46;com/LVV3M9q&#46;png[/img:2k6hvday] Regards,
email CDO caracter problem
[quote="karinha":2w9gq418]Wanderson, usando o meu RMAIL.PRG está normal. Veja - mira - look: [img:2w9gq418]http&#58;//i&#46;imgur&#46;com/3JoWKoW&#46;png[/img:2w9gq418] Saludos, regards.[/quote:2w9gq418] Karinha, pode disponibilizar? Obrigado!
email CDO caracter problem
Infelizmente esta versão eu não posso Wanderson, pois é personalizada da Empresa. Mas você pode baixar a Original do Ricardo Marques, aqui: [url:2p2adlo8]http&#58;//www&#46;4shared&#46;com/zip/9wQ0A3UHce/RMAIL&#46;html[/url:2p2adlo8]
email desde preview falta el cuerpo del email.
Hola cuando envio un email desde preview que aparece el outllook automáticamente con el fichero adjunto en pdf. Cuando le pongo una firma o escribo algo y lo envío. Solamente llega el fichero, el cuerpo del email no. Si me deja poner la firma y escribir, pero no lo envía. ¿Tenéis alguna idea de porque puede suceder esto?
email desde preview falta el cuerpo del email.
En RPREVIEW.PRG [code=fw:3dspu12r]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> SendEmail<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TPreview<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMail, cName, cFile<br /><br />&nbsp; &nbsp;cName := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oReport</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oReport</span>:<span style="color: #000000;">cName</span>, ::<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">cDocument</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cFile := cFilePath<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">aMeta</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + StrTran<span style="color: #000000;">&#40;</span> cName, <span style="color: #ff0000;">'.'</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> HB_TToS<span style="color: #000000;">&#40;</span> HB_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">".pdf"</span><br /><br />&nbsp; &nbsp;CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cFile := ::<span style="color: #000000;">SaveAs</span><span style="color: #000000;">&#40;</span> .t., cFile, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CursorArrow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! File<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> FWString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"PDF not saved to send Email"</span> <span style="color: #000000;">&#41;</span>, FWString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Information"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;elseif ::<span style="color: #000000;">bEmail</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bEmail</span>, <span style="color: #00C800;">Self</span>, cName, cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">MAIL</span> oMail ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SUBJECT</span> cName ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TEXT</span> <span style="color: #ff0000;">"Cuerpo del email"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILES cFile, cFile ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FROM</span> USER<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">MAIL</span> oMail<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MsgInfo( oMail:nRetCode ) &nbsp;check the returned code!</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oMeta1</span>:<span style="color: #000000;">SetFocus</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:3dspu12r] 
email desde preview falta el cuerpo del email.
Funciona. Ahora si que me envía el documento tenia puesto : TEXT "" Ahora el problema es que me convierte el formato de HTML a formato texto sin formato y tengo que ir en cada email y ponerlo en formato HTML. En el outlook tengo definido que enviar un correo es en formato HTML pero al cambiar el parámetro de TEXT " Cuerpo del email" lo cambia a texto sin formato y claro las firmas son HTML y tengo que ir a cambiarlo para poder poner correctamente la firma. ¿Alguna sugerencia? Gracias.
email desde preview falta el cuerpo del email.
Lo siento, no comprendo perfecto... Mira se ayuda: [code=fw:15cq7l4j]<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;">"Mail.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> MailTo, cSndFile, cSndFile2, cText, cSubj<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Campo Para:</span><br />&nbsp; &nbsp;MailTo &nbsp; := <span style="color: #ff0000;">"joao@pleno.com.br"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Arquivo a Anexar</span><br />&nbsp; &nbsp;cSndFile &nbsp;:= <span style="color: #ff0000;">"C:<span style="color: #000000;">\F</span>WH1306<span style="color: #000000;">\S</span>AMPLES<span style="color: #000000;">\V</span>oNfeUtil2G.Log"</span><br />&nbsp; &nbsp;cSndFile2 := <span style="color: #ff0000;">"C:<span style="color: #000000;">\F</span>WH1306<span style="color: #000000;">\S</span>AMPLES<span style="color: #000000;">\E</span>RROR.Log"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Texto do Corpo do Email</span><br />&nbsp; &nbsp;cText &nbsp; &nbsp;:= <span style="color: #ff0000;">"Favor Verificar Erros da Nota Fiscal Eletrônica - Arquivo Anexo"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Titulo do Email</span><br />&nbsp; &nbsp;cSubj &nbsp; &nbsp;:= <span style="color: #ff0000;">"Erros da Nota Fiscal Eletrônica"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//LogOn in the mail system</span><br />&nbsp; &nbsp;MAPILogOn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Abre o OutLook Express ou o Windows Live Mail - Tem que estar padrao</span><br />&nbsp; &nbsp;SendMail2<span style="color: #000000;">&#40;</span> MailTo, cSndFile, cSndFile2, cText, cSubj <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// LogOff from the mail system</span><br />&nbsp; &nbsp;MAPILogOff<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;">// Envia o arquivo de erro do programa</span><br /><br /><span style="color: #00C800;">FUNCTION</span> SendMail2<span style="color: #000000;">&#40;</span> MailTo, cSndFile, cSndFile2, cText, cSubj <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oMail<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">MAIL</span> oMail &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SUBJECT</span> cSubj &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TEXT</span> cText &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; FILES cSndFile, cSndFile, cSndFile2, cSndFile2 ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FROM</span> USER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TO</span> MailTo<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">MAIL</span> oMail<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> oMail:<span style="color: #000000;">nRetCode</span> <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MsgInfo( "Mensagem Enviada com Sucesso", "Aviso" )</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// nada a fazer</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NÆo Foi Possivel Enviar a Mensagem de Erro"</span> <span style="color: #000000;">&#41;</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Por Favor Verifique se o Enviador de Email"</span> <span style="color: #000000;">&#41;</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"OutLook Express ou Windows Live Mail, &nbsp; &nbsp; "</span> <span style="color: #000000;">&#41;</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Est  Definido Como Enviador PadrÆo, nas &nbsp; "</span> <span style="color: #000000;">&#41;</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Op‡äes da Internet - Internet Explorer. &nbsp; "</span> <span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NÆo Foi Possivel Enviar a Mensagem de Erro"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">/*<br />MAPI Mail Syntax:<br /><br />DEFINE MAIL [ <oMail> ];<br />[ SUBJECT <cSubject> ];<br />[ TEXT <cText> ];<br />[ TYPE <cType> ];<br />[ DATE <dDate> ];<br />[ TIME <cTime> ];<br />[ CONVERSATION <cConversation> ]:<br />[ RECEIPT ];<br />[ FROM USER ];<br />[ FILES <cFilename1> ,<cDescript1>, <cFilenameN>, <cDescriptN> ] ];<br />[ ORIGIN <cOrigin> [ <cOriginAddress> ] ];<br />[ TO <cTarget1>, [ <cTargetAddress1> ] [ <cTargetN> [ <cTargetAddressN> ] ] ];<br /><br />DEFINE MAIL...FILES cFilename1,,cFilename2,,Filename3<br /><br />/*<br />DEFINE MAIL oMail ;<br />SUBJECT cxSUBJECT ;<br />FILES cRutafileA , cRutafileA , cRutafileB , cRutafileB ;<br />TEXT cTexto ;<br />TO cEmail, cEmail<br />ACTIVATE MAIL oMail<br />*/</span><br /><br />*/<br /><br /><span style="color: #B900B9;">// FIM DO PROGRAMA</span><br />&nbsp;</div>[/code:15cq7l4j] 
email desde preview falta el cuerpo del email.
Ele funciona. Agora, se você me enviar o documento estava usando: TEXT "" Agora o problema é que eu converter o formato HTML para o formato de texto simples e tem que ir em cada e-mail e colocá-lo em formato HTML. Na visão que tenho definido que o envio de um e-mail está no formato HTML, mas alterando o parâmetro TEXT "Corpo do e-mail" muda para texto simples e assinaturas claras são HTML e tem que ir para mudar para colocar a assinatura corretamente. Alguma sugestão? Obrigado.
email desde preview falta el cuerpo del email.
Algo asi? [url:306vq9xx]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=31908[/url:306vq9xx] [url:306vq9xx]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/24453-email-com-assinatura-eletronica-e-logotipo/#comment-273025[/url:306vq9xx] Saludos.
email with CDO and attachment
Hello, I have problems when I try to add attachment to email, the follow sample work when I comment the attachment line [code=fw:22ye974p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oEmailMsg<br />   <span style="color: #00C800;">LOCAL</span> cSchema := <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/"</span><br />   <br />      oEmailMsg  := CREATEOBJECT <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br /><br />      WITH OBJECT oEmailMsg<br />     <br />         :<span style="color: #0000ff;">From</span>     := <span style="color: #ff0000;">"email@gmail.com"</span> <br />         :<span style="color: #0000ff;">To</span>       := <span style="color: #ff0000;">"email@gmail.com"</span><br />         :<span style="color: #000000;">CC</span>       := <span style="color: #ff0000;">""</span><br />         :<span style="color: #000000;">BCC</span>      := <span style="color: #ff0000;">""</span><br />         :<span style="color: #0000ff;">Subject</span>  := ALLTRIM<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ALGO"</span> <span style="color: #000000;">&#41;</span><br />         :<span style="color: #000000;">TextBody</span> := <span style="color: #ff0000;">"CUERPITO"</span><br /><br />         :<span style="color: #000000;">AddAttachment</span><span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"email.prg"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// <------ error aqui</span><br />              <br />         WITH OBJECT :<span style="color: #000000;">configuration</span>:<span style="color: #000000;">Fields</span><br /><br />            :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cSchema + <span style="color: #ff0000;">"smtpserver"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>       := <span style="color: #ff0000;">"smtp.gmail.com"</span> <br />            :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cSchema + <span style="color: #ff0000;">"smtpserverport"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>   := <span style="color: #000000;">465</span><br />            :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cSchema + <span style="color: #ff0000;">"sendusing"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>        := <span style="color: #000000;">2</span><br />            :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cSchema + <span style="color: #ff0000;">"smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := .T.<br />            :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cSchema + <span style="color: #ff0000;">"smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>       := .T.<br />            :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cSchema + <span style="color: #ff0000;">"sendusername"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>     := <span style="color: #ff0000;">"email@gmail.com"</span><br />            :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cSchema + <span style="color: #ff0000;">"sendpassword"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>     := <span style="color: #ff0000;">"somepassword"</span><br />            :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cSchema + <span style="color: #ff0000;">"smtpconnectiontimeout"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">30</span><br /><br />            :<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />         END WITH        <br /><br />         :<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      END WITH<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:22ye974p] I get [code=fw:22ye974p]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">0</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">05</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">18</span>, <span style="color: #000000;">08</span>:<span style="color: #000000;">39</span>:<span style="color: #000000;">19</span><br />   Error description: <span style="color: #000000;">Error</span> CDO.<span style="color: #0000ff;">Message</span>/<span style="color: #000000;">3</span>  DISP_E_MEMBERNOTFOUND: <span style="color: #000000;">ADDATTACHMENT</span><br /> </div>[/code:22ye974p] I try :attachments:add("file"), :attachment := "file" and other alternatives, but I can't get that it work, I 'm testing in win10 Some help Regards Marcelo
email with CDO and attachment
Try to put the entire file path even though it is in the folder.
email with CDO and attachment
yes, this resolve the problem thanks very much Marcelo
email with CDO and attachment
Is mailing with CDO a better way than with : DEFINE MAIL oMail ; SUBJECT oRsEmail:header; TEXT cText; FILES cFile, cFile ; TO cMail Just Curious...
email with CDO and attachment
MAPI is for a single mail (manual) while CDO is for a batch of mails (automatic). EMG
email with CDO and attachment
Thanks. I was using MAPI in a loop )) I will look into the sample above. Seems more parameters can be coded like with server,... Marc
email with CDO and attachment
[quote="Marc Venken":1v28t7x3]I was using MAPI in a loop ))[/quote:1v28t7x3] Yes, but you still have to confirm manually each mail sending. EMG
email with CDO and attachment
Indeed. If I use the FROM USER clause, I need to corfirm them one by one. Without the FROM USER (it uses the selected send user) than it works in the loop. The CDO however can be set better, so I will recode my sendmail function for better performance and control. Thanks for the info.
email with CDO and attachment
[quote="Marc Venken":2lvl7ism]Indeed. If I use the FROM USER clause, I need to corfirm them one by one. Without the FROM USER (it uses the selected send user) than it works in the loop.[/quote:2lvl7ism] No, MAPI doesn't work in automatic mode anymore since years. EMG
email with CDO and attachment
Aha, Then I suppose i'm not using MAPI, sorry )) This i Use (then there is another mail option (CDO, this one and MAPI) I will look into CDO. if empty(cFile) DEFINE MAIL oMail ; SUBJECT oRsEmail:header; TEXT cText; TO cMail else DEFINE MAIL oMail ; SUBJECT oRsEmail:header; TEXT cText; FILES cFile, cFile ; TO cMail endif ACTIVATE MAIL oMail For me automatic is when I loop and all mails are send. (Ok, They come into my sendbox, but they go out without my action)
email with CDO and attachment
Ok, works fine for me too, after a confirm dialog that can be avoided. Great! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> I'm using Thunderbird. Can you test with Oulook, please? EMG
email with CDO and attachment
Also Thunderbird. Never Outlook
email with CDO and attachment
I'm afraid that it will not work with Outlook. Anybody can test it? EMG
email with fwppc...
It's possible ..? as ...? regard's andrea
emailing
Dear dtussman you need to #include "mail.ch" in your application. regards Yunus.
emailing
I have been using CDO for emailing but it is becoming problematic since it doesn't seem to support Outlook. Is there something better I can use for emailing with Harbour?
emailing
If Outlook is installed, use MAPI. It's the absolute easiest solution. [code=fw:1d4xvzte]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> SendMAPIMail2<span style="color: #000000;">&#40;</span> MailTo, cSndFile, cText, cSubj <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Send MAPI mail originates email to the MAPI client</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//&nbsp; Updated:&nbsp; &nbsp; 8/2/2015 2:16:52 PM</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oMail<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">MAIL</span> oMail ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SUBJECT</span> cSubj ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TEXT</span> cText ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILES cSndFile, cSndFile ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FROM</span> USER ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TO</span> MailTo<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">MAIL</span> oMail<br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp;</div>[/code:1d4xvzte]
emailing
Is it that simple? That code wouldn't compile with my application, but perhaps I need to incorporate the tmail class?
emailing
Thank you Yunus, I will try that David
emailing
Now when I try to email it say "there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Outlook and set it as the default mail client". I have already done that however. This is windows 10 and I am using an older version of Harbour from 2007. Wonder if the fact that MapiSendMail has been supposedly replaced by MapiSendMailW has anything to do with it?
emailing
This is the best thing I've found and what I use with xHabour/Fivewin. No other software required, compatible with everything. Just include dll with your install. <!-- m --><a class="postlink" href="https://sockettools.com/sockettools-library-edition/">https://sockettools.com/sockettools-library-edition/</a><!-- m --> Randal
emailing
Friends: here is an other option <!-- m --><a class="postlink" href="http://www.afterlogic.com/mailbee/objects">http://www.afterlogic.com/mailbee/objects</a><!-- m --> Regards
emailing
Thanks Randal and Armando. I will try Sockettools first I think. Randal, do you have any snippets of code you could send me showing how you use it with xharbour/Fivewin? Thanks!
emailing
I use the latest FWH. I also have Outlook ( Office 365 ) installed on Windows 10 and it works perfectly. Antonio has provided more recent builds of Harbour for download ( within the past few months ) so upgrading from a 6 year old version might be helpful. Tim
emailing
Tim, I am going to try your suggestion first. I bought the harbor upgrades back in august but never installed them, guess its time to bite the bullet.
emailing
Well, I tried MAPI using FWH 1507 and I got it to work if using MAPISendMail( cSubj, cText, , ,,, .t., ,'dtussman@aol.com' ) . However, I want from user to be set to .f. and when I do that it returns an error code of 2.