messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2008-08-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Un último detalle para TDatePicker -recibido como observación de un cliente- no aparece el 31 de marzo, por lo que deben considerarse 38 columnas y no 37.", "time": "03:24", "topic": "Calendario anual", "username": "Alfredo Arteaga" } ]
Calendario anual
[ { "date": "2008-08-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Aquí os dejo una agenda anual basada totalmente en TPickDate.\r\n\r\nSi alguien está interesado, el ejecutable puede usarse de forma autonoma, y el PRG junto al RC puede integrarse dentro del propio codigo.\r\n\r\nEl calendario indica la fecha actual y permite marcar tareas (arrastrando o no) de hasta seis tipos diferentes, representados por otros tantos colores, está corregido lo del 31 de Marzo etc.\r\n\r\nEl código que gestiona la agenda está \"reciclado\" de una antigua aplicación mia, pero que aún es bastante correcto aunque está ahí para mejorarse.\r\n\r\n[url:v51d7maq]http://cid-6be220caaa0bc6fd.skydrive.live.com/self.aspx/Agenda%20Anual/agenda%20ANUAL.zip[/url:v51d7maq]\r\n\r\n[img:v51d7maq]http://cid-6be220caaa0bc6fd.skydrive.live.com/self.aspx/Agenda%20Anual/CalAnual.jpg[/img:v51d7maq]", "time": "16:02", "topic": "Calendario anual", "username": "José Vicente Beltrán" } ]
Calendario anual
[ { "date": "2008-08-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Excelente, te recomendaría que le hicieras llegar a Otto el fuente con la corrección para que todos vayamos por el mismo rumbo, ya que la idea original fue de él y es quien ha estado recopilando y organizando las modificaciones", "time": "17:01", "topic": "Calendario anual", "username": "quique" } ]
Calendario anual
[ { "date": "2008-08-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Marchando..... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "18:06", "topic": "Calendario anual", "username": "José Vicente Beltrán" } ]
Calendario anual
[ { "date": "2008-08-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Tuve necesidad de agregar otros arreglos. Para conservar la esencia de la clase es mejor agregar un método y ya desde el programa pasar las series que se deseen. \r\n\r\noPickDate:AddSerie( aDays, nColor, nBrush )\r\n\r\nHe aquí los cambios:\r\n\r\n[code:bj51cscf]\n#Include \"FiveWin&#46;ch\"\n\nMemVar nClrM // Color principal usado en toda la aplicación\n // por definición GetSysColor&#40;2&#41;\n\nCLASS TPickDate FROM TControl\n\n DATA dStart, dEnd, dTemp, lMove\n DATA nYear\n DATA oBrushSunday, oBrushSelected, oFontHeader\n DATA nLeftStart, nTopStart\n DATA bSelect\n\n DATA aSeries, aColors // días especiales\n\n CLASSDATA lRegistered AS LOGICAL\n\n METHOD New&#40; nTop, nLeft, nWidth, nHeight, oWnd, nYear, nClrFore, nClrBack &#41;\n METHOD Redefine&#40; nId, oWnd &#41;\n METHOD Paint&#40;&#41;\n METHOD Display&#40;&#41; INLINE &#58;&#58;BeginPaint&#40;&#41;, &#58;&#58;Paint&#40;&#41;, &#58;&#58;EndPaint&#40;&#41;, 0\n METHOD Destroy&#40;&#41;\n METHOD AddSerie&#40;&#41;\n METHOD LButtonDown&#40; nRow, nCol, nKeyFlags &#41;\n METHOD LButtonUp&#40; nRow, nCol, nKeyFlags &#41;\n METHOD PreviousYear&#40;&#41; INLINE &#58;&#58;nYear--, &#58;&#58;Refresh&#40;&#41;\n METHOD NextYear&#40;&#41; INLINE &#58;&#58;nYear++, &#58;&#58;Refresh&#40;&#41;\n METHOD EraseBkGnd&#40; hDC &#41; INLINE 0\n METHOD MouseMove&#40; nRow, nCol, nKeyFlags &#41;\n\nENDCLASS\n\n//----------------------------------------------------------------------------//\n\nMETHOD New&#40; nTop, nLeft, nWidth, nHeight, oWnd, nYear, nClrFore, nClrBack &#41; CLASS TPickDate\n\n DEFAULT nWidth &#58;= 800,;\n nHeight &#58;= 300,;\n nLeft &#58;= 0,;\n nTop &#58;= 0,;\n nYear &#58;= Year&#40; Date&#40;&#41; &#41;, ;\n oWnd &#58;= GetWndDefault&#40;&#41;,;\n nClrM &#58;= GetSysColor&#40; 2 &#41;\n\n &#58;&#58;lMove = &#46;F&#46;\n &#58;&#58;nTopStart = 0 // for header\n &#58;&#58;nLeftStart = 65 // col header\n\n &#58;&#58;aSeries = &#123;&#125;\n &#58;&#58;aColors = &#123;&#125;\n\n &#58;&#58;nTop = nTop\n &#58;&#58;nLeft = nLeft\n &#58;&#58;nBottom = nTop + nHeight - 1\n &#58;&#58;nRight = nLeft + nWidth - 1\n &#58;&#58;nYear = Year&#40; Date&#40;&#41; &#41;\n &#58;&#58;oWnd = oWnd\n\n &#58;&#58;dStart &#58;= &#58;&#58;dEnd &#58;= &#58;&#58;dTemp &#58;= Date&#40;&#41;\n\n &#58;&#58;nClrText = nClrFore\n &#58;&#58;nClrPane = nClrBack\n &#58;&#58;nStyle = nOr&#40; WS_CHILD, WS_VISIBLE, WS_TABSTOP, WS_BORDER &#41;\n\n DEFINE BRUSH &#58;&#58;oBrushSunday COLOR LightColor&#40;240,nClrM&#41; // Sundays column\n DEFINE BRUSH &#58;&#58;oBrushSelected COLOR nRGB&#40; 240, 232, 188 &#41; // Selected days\n\n DEFINE FONT &#58;&#58;oFont NAME \"MS Sans Serif\" SIZE 0, -10 BOLD\n DEFINE FONT &#58;&#58;oFontHeader NAME \"MS Sans Serif\" SIZE 0, -10\n\n #ifdef __XPP__\n DEFAULT &#58;&#58;lRegistered &#58;= &#46;F&#46;\n #endif\n\n &#58;&#58;Register&#40;&#41;\n\n if ! Empty&#40; oWnd&#58;hWnd &#41;\n &#58;&#58;Create&#40;&#41;\n oWnd&#58;AddControl&#40; Self &#41;\n else\n oWnd&#58;DefControl&#40; Self &#41;\n endif\n\nreturn self\n\n//----------------------------------------------------------------------------//\n\nMETHOD Redefine&#40; nId, oWnd &#41; CLASS TPickDate\n\n DEFAULT oWnd &#58;= GetWndDefault&#40;&#41;, ;\n nClrM&#58;= GetSysColor&#40; 2 &#41;\n\n &#58;&#58;nId = nId\n &#58;&#58;oWnd = oWnd\n &#58;&#58;lMove = &#46;F&#46;\n &#58;&#58;nTopStart = 0 // for header\n &#58;&#58;nLeftStart = 65 // col header\n &#58;&#58;dStart &#58;= &#58;&#58;dEnd &#58;= &#58;&#58;dTemp &#58;= Date&#40;&#41;\n &#58;&#58;nYear = Year&#40; Date&#40;&#41; &#41;\n\n &#58;&#58;aSeries = &#123;&#125;\n &#58;&#58;aColors = &#123;&#125;\n\n DEFINE BRUSH &#58;&#58;oBrushSunday COLOR LightColor&#40;240,nClrM&#41; // Sundays column\n DEFINE BRUSH &#58;&#58;oBrushSelected COLOR nClrM // Selected days\n\n DEFINE FONT &#58;&#58;oFont NAME \"MS Sans Serif\" SIZE 0, -10 BOLD\n DEFINE FONT &#58;&#58;oFontHeader NAME \"MS Sans Serif\" SIZE 0, -10\n\n &#58;&#58;SetColor&#40; 0, 0 &#41;\n\n &#58;&#58;Register&#40;&#41;\n\n oWnd&#58;DefControl&#40; Self &#41;\n\nreturn Self\n\n//----------------------------------------------------------------------------//\n\nMETHOD Paint&#40;&#41; CLASS TPickDate\n\n local aInfo &#58;= &#58;&#58;DispBegin&#40;&#41;\n local hDC &#58;= &#58;&#58;hDC, cDay, nDay, n, dDate, nColStep, nRowStep\n local dTmpDate, nMonth &#58;= 0, nLeftCol &#58;= 0\n\n local nColor, cDate // para evaluar días especiales\n local lBrush, nBrush, oBrush, nI\n\n FillRect&#40; hDC, GetClientRect&#40; &#58;&#58;hWnd &#41;, &#58;&#58;oBrush&#58;hBrush &#41;\n\n nRowStep = &#40; &#40;&#58;&#58;nHeight-3&#41; - &#58;&#58;nTopStart &#41; / 13\n\n // Uso de Gradient&#40;&#41; en vez de GradientFill&#40;&#41;\n Gradient&#40; &#58;&#58;hDC, &#123; 0, 0, &#58;&#58;nHeight, &#58;&#58;nWidth &#125;, LightColor&#40;250,nClrM&#41;, LightColor&#40;200,nClrM&#41;, &#46;T&#46; &#41;\n\n dDate = CToD&#40; \"01/01/\" + Str&#40; &#58;&#58;nYear, 4 &#41; &#41;\n dDate += 8 - DoW&#40; dDate &#41;\n\n nColStep = &#40; &#58;&#58;nWidth - &#58;&#58;nLeftStart - 3 &#41; / 38\n\n Gradient&#40; &#58;&#58;hDC, &#123; 0, 0, nRowStep - 1, &#58;&#58;nWidth &#125;, LightColor&#40;225,nClrM&#41;, LightColor&#40;175,nClrM&#41;, &#46;T&#46; &#41;\n\n &#58;&#58;Say&#40; &#40; &#58;&#58;nTopStart + &#40; nRowStep / 2 &#41; - &#40; &#58;&#58;oFont&#58;nHeight / 2 &#41;&#41;,;\n &#40; &#40; &#58;&#58;nLeftStart + nColStep &#41; / 2 &#41; - &#40; GetTextWidth&#40; hDC, Str&#40; &#58;&#58;nYear, 4 &#41;, &#58;&#58;oFont&#58;hFont &#41; / 2 &#41;,;\n Str&#40; &#58;&#58;nYear, 4 &#41;,,, &#58;&#58;oFont, &#46;T&#46;, &#46;T&#46; &#41;\n\n // Paint Sunday background color\n for n = 1 to 37 step 7\n FillRect&#40; hDC, &#123; 0, &#58;&#58;nLeftStart + &#40; nColStep * n &#41;,;\n &#58;&#58;nHeight - 1, &#58;&#58;nLeftStart + &#40; nColStep * &#40; n + 1 &#41; &#41; &#125;, &#58;&#58;oBrushSunday&#58;hBrush &#41;\n next\n\n for nMonth = 1 to 12\n &#58;&#58;Line&#40; &#58;&#58;nTopStart + nMonth * nRowStep, 0,&#40;&#58;&#58;nTopStart + nMonth * nRowStep&#41;, &#58;&#58;nWidth - 1 &#41;\n &#58;&#58;Say&#40; &#58;&#58;nTopStart + nMonth * nRowStep + &#40; nRowStep / 2 &#41; - &#40; &#58;&#58;oFont&#58;nHeight / 2 &#41;, 3, cMonth&#40; RegionDate&#40;nMonth, Str&#40; Year&#40; Date&#40;&#41; &#41;, 4 &#41;&#41;&#41; ,,, &#58;&#58;oFont, &#46;T&#46;, &#46;T&#46; &#41;\n next\n\n // fill selected days\n if &#58;&#58;lMove\n dTmpDate = Min&#40; &#58;&#58;dStart, &#58;&#58;dEnd &#41;\n\n while dTmpDate <= Max&#40; &#58;&#58;dStart, &#58;&#58;dEnd &#41;\n nMonth = Month&#40; dTmpDate &#41;\n nLeftCol = &#58;&#58;nLeftStart + &#40; nColStep * &#40; DoW&#40; RegionDate&#40; nMonth, Str&#40; &#58;&#58;nYear, 4 &#41; &#41; &#41; &#41; &#41; + ;\n nColStep * &#40; Day&#40; dTmpDate &#41; - 1 &#41;\n FillRect&#40; hDC, &#123; &#58;&#58;nTopStart + month&#40;dTmpDate&#41; * nRowStep + 1,;\n nLeftCol, &#58;&#58;nTopStart + Month&#40; dTmpDate &#41; * nRowStep + nRowStep,;\n nLeftCol + nColStep&#125;, &#58;&#58;oBrushSelected&#58;hBrush &#41;\n dTmpDate++\n end\n\n endif\n\n // Draw days\n for n = 1 to 37\n &#58;&#58;Line&#40; 0, &#58;&#58;nLeftStart + &#40; nColStep * n &#41;, &#58;&#58;nHeight - 1, &#58;&#58;nLeftStart + &#40; nColStep * n &#41; &#41;\n\n nColor &#58;= if&#40; DoW&#40; dDate &#41; ==1, CLR_RED, 0 &#41;\n cDay = SubStr&#40; CDoW&#40; dDate++ &#41;, 1, 1 &#41;\n\n &#58;&#58;Say&#40; &#40; &#58;&#58;nTopStart + nRowStep * 0&#46;4 &#41;-2,;\n &#58;&#58;nLeftStart + &#40; nColStep * n &#41; + &#40; nColStep / 2 &#41; - &#40; GetTextWidth&#40; hDC, cDay, &#58;&#58;oFont&#58;hFont &#41; / 2 &#41; + 1,;\n cDay, nColor, 0, &#58;&#58;oFont, &#46;T&#46;, &#46;T&#46; &#41;\n next\n\n // Draw months\n for nMonth = 1 to 12\n dDate = RegionDate&#40;nMonth,Str&#40; &#58;&#58;nYear, 4 &#41; &#41;\n nDay = DoW&#40; dDate &#41;\n\n while Month&#40; dDate &#41; == nMonth\n\n cDay = AllTrim&#40; Str&#40; Day&#40; dDate &#41; &#41; &#41;\n\n nColor &#58;= 0\n lBrush &#58;=&#46;F&#46;\n cDate &#58;= DtoS&#40; dDate&#41;\n\n // identifica el día y define el pintado\n\n if DoW&#40; dDate &#41; == 1 // sunday\n nColor &#58;= CLR_RED\n else\n FOR nI=1 TO Len&#40;&#58;&#58;aSeries&#41;\n IF AScan&#40;&#58;&#58;aSeries&#91;nI&#93;,cDate&#41;<>0\n nColor&#58;=&#58;&#58;aColors&#91;nI&#93;&#91;1&#93;\n nBrush&#58;=&#58;&#58;aColors&#91;nI&#93;&#91;2&#93;\n lBrush&#58;=&#46;T&#46;\n nI&#58;=Len&#40;&#58;&#58;aSeries&#41;\n ENDIF\n NEXT nI\n endif\n if !lBrush\n if dDate=Date&#40;&#41; // current day\n nColor &#58;= CLR_YELLOW\n nBrush &#58;= CLR_GREEN\n lBrush &#58;= &#46;T&#46;\n endif\n endif\n\n if lBrush\n nMonth = Month&#40; dDate &#41;\n nLeftCol = &#58;&#58;nLeftStart + &#40; nColStep * &#40; DOW&#40; RegionDate&#40; nMonth, Str&#40; &#58;&#58;nYear, 4 &#41; &#41; &#41; &#41; &#41; + ;\n nColStep * &#40; Day&#40; dDate &#41; - 1 &#41;\n\n DEFINE BRUSH oBrush COLOR nBrush\n\n FillRect&#40; hDC, &#123; &#58;&#58;nTopStart + month&#40;dDate&#41; * nRowStep + 1,;\n nLeftCol + 1, &#58;&#58;nTopStart + Month&#40; dDate &#41; * nRowStep + nRowStep,;\n nLeftCol + nColStep&#125;, oBrush&#58;hBrush &#41;\n\n oBrush&#58;End&#40;&#41;\n endif\n\n &#58;&#58;Say&#40; &#40; &#58;&#58;nTopStart + nMonth * nRowStep + &#40; nRowStep * 0&#46;4 &#41; &#41;-2,;\n &#58;&#58;nLeftStart + &#40; nColStep * nDay++ &#41; + &#40; nColStep / 2 &#41; - &#40; GetTextWidth&#40; hDC, cDay, &#58;&#58;oFont&#58;hFont &#41; / 2 &#41; + 1,;\n cDay, nColor, 0, &#58;&#58;oFontHeader, &#46;T&#46;, &#46;T&#46; &#41;\n\n dDate++\n end\n next\n\n if ValType&#40; &#58;&#58;bPainted &#41; == \"B\"\n Eval&#40; &#58;&#58;bPainted, hDC, Min&#40; &#58;&#58;dStart, &#58;&#58;dEnd &#41;, Max&#40; &#58;&#58;dStart, &#58;&#58;dEnd &#41;, Self &#41;\n endif\n\n &#58;&#58;DispEnd&#40; aInfo &#41;\n\nreturn 0\n\n//----------------------------------------------------------------------------//\n\nMETHOD Destroy&#40;&#41; CLASS TPickDate\n\n &#58;&#58;oBrushSunday&#58;End&#40;&#41;\n &#58;&#58;oBrushSelected&#58;End&#40;&#41;\n &#58;&#58;oFontHeader&#58;End&#40;&#41;\n\nreturn Super&#58;Destroy&#40;&#41;\n\nMETHOD AddSerie&#40; aSerie, nColor, nBrush &#41; CLASS TPickDate\n AAdd&#40; &#58;&#58;aSeries, aSerie &#41;\n AAdd&#40; &#58;&#58;aColors, &#123; nColor, nBrush &#125; &#41;\nRETURN Len&#40; &#58;&#58;aSeries &#41;\n\n//----------------------------------------------------------------------------//\n\nMETHOD LButtonDown&#40; nRow, nCol, nKeyFlags &#41; CLASS TPickDate\n\n local nMonth &#58;= Int&#40; &#40; nRow - &#58;&#58;nTopStart &#41; / &#40; &#40; &#58;&#58;nHeight - &#58;&#58;nTopStart &#41; / 13 &#41; &#41;\n local nDay &#58;= Int&#40; &#40; nCol - &#58;&#58;nLeftStart &#41; / &#40; &#40; &#58;&#58;nWidth - &#58;&#58;nLeftStart &#41; / 38 &#41; &#41; - ;\n DoW&#40; RegionDate&#40; nMonth, Str&#40; &#58;&#58;nYear, 4 &#41; &#41; &#41; + 1\n\n if nDay > 0 &#46;and&#46; nMonth > 0 // to work with valid dates only\n &#58;&#58;dStart &#58;= CToD&#40; AllTrim&#40; AllTrim&#40; Str&#40; nDay &#41; &#41;+ \"/\" + Str&#40; nMonth &#41; &#41; + \"/\" + Str&#40; &#58;&#58;nYear, 4 &#41; &#41;\n &#58;&#58;lMove &#58;= &#46;T&#46;\n &#58;&#58;Refresh&#40; &#46;F&#46; &#41;\n endif\n\nreturn Super&#58;LButtonDown&#40; nRow, nCol, nKeyFlags &#41;\n\n//-----------------------------------------------------------------//\n\nMETHOD LButtonUp&#40; nRow, nCol, nKeyFlags &#41; CLASS TPickDate\n\n if ValType&#40; &#58;&#58;bSelect &#41; == \"B\"\n Eval&#40; &#58;&#58;bSelect, Min&#40; &#58;&#58;dStart, &#58;&#58;dEnd &#41;, Max&#40; &#58;&#58;dStart, &#58;&#58;dEnd &#41;, Self &#41;\n endif\n\n &#58;&#58;lMove &#58;= &#46;F&#46;\n\nreturn Super&#58;LButtonUp&#40; nRow, nCol, nKeyFlags &#41;\n\n//-----------------------------------------------------------------//\n\nMETHOD MouseMove&#40; nRow, nCol, nKeyFlags &#41; CLASS TPickDate\n\n local nMonth &#58;= Int&#40; &#40; nRow - &#58;&#58;nTopStart &#41; / &#40; &#40; &#58;&#58;nHeight - &#58;&#58;nTopStart &#41; / 13 &#41; &#41;\n local nDay &#58;= Int&#40; &#40; nCol - &#58;&#58;nLeftStart &#41; / &#40; &#40; &#58;&#58;nWidth - &#58;&#58;nLeftStart &#41; / 38 &#41; &#41; - ;\n DoW&#40; RegionDate&#40; nMonth, Str&#40; &#58;&#58;nYear, 4 &#41; &#41; &#41; + 1\n local dEnd\n\n if nDay > 0 &#46;and&#46; nMonth > 0 // to work with valid dates only\n dEnd = CToD&#40; AllTrim&#40; Str&#40; nDay &#41; &#41; + \"/\" + AllTrim&#40; Str&#40; nMonth &#41; &#41; + \"/\" + Str&#40; &#58;&#58;nYear, 4 &#41; &#41;\n\n if ! Empty&#40; dEnd &#41; &#46;and&#46; dEnd != &#58;&#58;dTemp // for reducing continuous refreshes\n &#58;&#58;dTemp &#58;= dEnd\n &#58;&#58;dEnd = dEnd\n &#58;&#58;Refresh&#40; &#46;F&#46; &#41;\n if ValType&#40; &#58;&#58;bChange &#41; == \"B\"\n Eval&#40; &#58;&#58;bChange, Min&#40; &#58;&#58;dStart, &#58;&#58;dEnd &#41;, Max&#40; &#58;&#58;dStart, &#58;&#58;dEnd &#41;, Self &#41;\n endif\n endif\n endif\n\nreturn Super&#58;MouseMove&#40; nRow, nCol, nKeyFlags &#41;\n\n//-----------------------------------------------------------------//\n\nfunction RegionDate&#40; nMonth, cYear &#41;\nreturn CToD&#40; \"01/\" + AllTrim&#40; Str&#40; nMonth &#41; &#41; + \"/\" + cYear &#41;\n\n//-----------------------------------------------------------------//\n\n// LightColor&#40;nDegrade,nColor&#41; para degradar o suavisar color\n\n#pragma BEGINDUMP\n\n#include <Windows&#46;h>\n\nHARBOUR HB_FUN_LIGHTCOLOR&#40; &#41;\n&#123;\n COLORREF lColor = hb_parnl&#40;2&#41;;\n LONG lScale = hb_parni&#40;1&#41;;\n\n long R = MulDiv&#40;255-GetRValue&#40;lColor&#41;,lScale,255&#41;+GetRValue&#40;lColor&#41;;\n long G = MulDiv&#40;255-GetGValue&#40;lColor&#41;,lScale,255&#41;+GetGValue&#40;lColor&#41;;\n long B = MulDiv&#40;255-GetBValue&#40;lColor&#41;,lScale,255&#41;+GetBValue&#40;lColor&#41;;\n\n hb_retnl&#40; RGB&#40;R, G, B&#41; &#41;;\n&#125;\n\n#pragma ENDDUMP\n\n[/code:bj51cscf]", "time": "17:32", "topic": "Calendario anual", "username": "Alfredo Arteaga" } ]
Calendario anual
[ { "date": "2008-08-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Alfredo,\r\n\r\nGracias por las mejoras a la Clase TPickDate que hemos desarrollado entre Otto y FiveTech <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "20:17", "topic": "Calendario anual", "username": "Antonio Linares" } ]
Calendario anual
[ { "date": "2008-08-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio:\r\n\r\n¿Por qué no creas un planning a partir de esa clase?. Sería una característica muy buena para la próxima build.", "time": "12:41", "topic": "Calendario anual", "username": "MOISES" } ]
Calendario anual
[ { "date": "2009-09-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos\n\nCómo se obtiene el valor del calendario desplegado?\n[img:w8tk0dk5]http&#58;//200&#46;58&#46;176&#46;148/paquetes/calendario&#46;jpg[/img:w8tk0dk5]\n\nque al seleccionar el día luego dar aceptar tome el valor.\n\n[code=fw:w8tk0dk5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />fDia:=Date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> DTPICKER oFec <span style=\"color: #0000ff;\">VAR</span> fDia <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> oFec:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">102</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span>fDia<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp;</div>[/code:w8tk0dk5]\nNo cambia el valor\n\nGracias por la ayuda\n\nSaludos\n\nAdhemar", "time": "22:27", "topic": "Calendario desplegado desde recurso", "username": "acuellar" } ]
Calendario desplegado desde recurso
[ { "date": "2009-05-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados\n\nExiste alguna funcion que en un Campor Get de Fecha tenga el icono de calendario ?\n\ngracias\n\nsalu2\n\ndavid\nargentina", "time": "22:23", "topic": "Calendario en un Get de Fecha", "username": "dobfivewin" } ]
Calendario en un Get de Fecha
[ { "date": "2009-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola David\n\nHay Varias funciones de fecha y de calculadoras para ser usadas en los Gets, pero son de terceros.\nPero hay una en que viene en el FWH\\SAMPLES\n\nSet include \"fivewin.ch\"\nset include \"dtpicker.ch\"\n\nLocal Xfein\n.\n.\n.\n@1,1 DTPICKER Xfein of oDlg\n\nlo utilizas como un get, espero que sea lo que buscas.\n\nDioni, Lima Peru", "time": "01:22", "topic": "Calendario en un Get de Fecha", "username": "Dioni" } ]
Calendario en un Get de Fecha
[ { "date": "2009-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias amigo...\n\nUna consulta, con esa clase, pierdo la capacidad de cargar la fecha como el Get normal de una fecha, ose a medida que escriba dicha fecha pase desde dia al mes sin correrme con la fecha ?\n\ngracias\n\ndavid\nargentina", "time": "10:52", "topic": "Calendario en un Get de Fecha", "username": "dobfivewin" } ]
Calendario en un Get de Fecha
[ { "date": "2009-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "David,\n\n[code=fw:gy2abg9a]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> dFecha <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@d\"</span> <span style=\"color: #0000ff;\">ACTION</span> fechas<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> BITMAP <span style=\"color: #ff0000;\">\"CALENDARIO\"</span></div>[/code:gy2abg9a]\n\nfechas es una función donde desplegaras el calendario o una que ya tengas elaborada.", "time": "14:05", "topic": "Calendario en un Get de Fecha", "username": "wmormar" } ]
Calendario en un Get de Fecha
[ { "date": "2009-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "William\nEn la Funcion Fecha() cómo mostraria el calendario que muestra el Datepicker?\n\nGracias por la ayuda\n\nSaludos\n\nAdhemar", "time": "17:21", "topic": "Calendario en un Get de Fecha", "username": "acuellar" } ]
Calendario en un Get de Fecha
[ { "date": "2009-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Adhemar,\n\nPropiamente no seria el DATEPICKER. Pero podría ser el calendario que hay varios de terceros o puedes hacer el propio.\n\nes cuestión de buscarle cual calendario queda.", "time": "19:49", "topic": "Calendario en un Get de Fecha", "username": "wmormar" } ]
Calendario en un Get de Fecha
[ { "date": "2009-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias, distinguido\n\nSaludos\n\nAdhemar", "time": "20:10", "topic": "Calendario en un Get de Fecha", "username": "acuellar" } ]
Calendario en un Get de Fecha
[ { "date": "2016-10-03", "forum": "FiveWin para Harbour/xHarbour", "text": "El ejemplo no es funcional. \n\nSaludos", "time": "13:53", "topic": "Calendario integrado a Google Calendar", "username": "horacio" } ]
Calendario integrado a Google Calendar
[ { "date": "2016-10-03", "forum": "FiveWin para Harbour/xHarbour", "text": "¡Hola\nRecientemente se han desarrollado un calendario integrado con el calendario de Google\nFue desarrollado utilizando el método de autenticación OAuth 2.0 Google que es la nueva forma de autenticación para utilizar Google simbólico.\n\nAlgunas de las imágenes:\n\n\nPermiso:\n[img:hkxsejs0]http&#58;//imagizer&#46;imageshack&#46;us/v2/640x480q90/922/IjvZTb&#46;jpg[/img:hkxsejs0]\n\nPantalla de inicio:\n[img:hkxsejs0]http&#58;//imagizer&#46;imageshack&#46;us/v2/640x480q90/921/81RT2K&#46;jpg[/img:hkxsejs0]\n\nDetalles:\n[img:hkxsejs0]http&#58;//imagizer&#46;imageshack&#46;us/v2/640x480q90/921/dswGwA&#46;jpg[/img:hkxsejs0]\n\n\nLa aplicación completa tiene el control con base de datos local.\n\nLa plena aplicación tiene control con la base de datos local.\nPara mysql está listo, pero es fácilmente adapdata a cualquier otro tipo de base de datos (DBF, Postgres, etc).\n\nEstoy vendiendo el código de la aplicación para poder incluir el orden del día en su aplicación\nEl método de autenticación OAuth 2.0 se puede utilizar para cualquier otra integración con Google.\n\nPara ejecutar el modo DEMO:\n* Debe crear un proyecto API de Google: [url:hkxsejs0]https&#58;//console&#46;developers&#46;google&#46;com/apis/[/url:hkxsejs0]\n* Habilitar la API de Google Calendar\n* Crear credenciales \"ID de cliente de OAuth 2.0.\" En tipo de aplicación, elegir la opción \"Otros\".\n* Ejecutar descargar el archivo JSON y cambie su nombre por \"client_id.json\".\n* Ponga junto con la solicitud\n\n** Para facilitar la aplicación del modo de demostración, me puse mi archivo \"CLIENT_ID.JSON\" para descargar. Pero es por un período limitado.\nDescargar: [url:hkxsejs0]https&#58;//bitbucket&#46;org/wmanesco/schedule/downloads/client_id&#46;json[/url:hkxsejs0]\n\nPara comprar el código de correo electrónico para <!-- e --><a href=\"mailto:manesco.william@gmail.com\">manesco.william@gmail.com</a><!-- e -->\n\nCualquier problema o duda, enviar correo electrónico o responder aquí\nGracias\n\nDescargar: [url:hkxsejs0]https&#58;//bitbucket&#46;org/wmanesco/schedule/downloads/Schedule&#46;rar[/url:hkxsejs0]", "time": "05:05", "topic": "Calendario integrado a Google Calendar", "username": "wmanesco" } ]
Calendario integrado a Google Calendar
[ { "date": "2016-10-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Ese error está pasando? Publica aquí para ver", "time": "17:00", "topic": "Calendario integrado a Google Calendar", "username": "wmanesco" } ]
Calendario integrado a Google Calendar
[ { "date": "2016-10-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Para facilitar la aplicación del modo de demostración, me puse mi archivo \"CLIENT_ID.JSON\" para descargar. Pero es por un período limitado.\n\n[url:3uvb11xv]https&#58;//bitbucket&#46;org/wmanesco/schedule/downloads/client_id&#46;json[/url:3uvb11xv]", "time": "17:34", "topic": "Calendario integrado a Google Calendar", "username": "wmanesco" } ]
Calendario integrado a Google Calendar
[ { "date": "2016-10-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Ahora si funciona.\n\nSaludos", "time": "17:42", "topic": "Calendario integrado a Google Calendar", "username": "horacio" } ]
Calendario integrado a Google Calendar
[ { "date": "2016-10-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Este archivo debe ser generado para cada aplicación.\nEs a través de él que es controlado para limitar la búsqueda por día, si no me equivoco es de 1.000.000 de consultas por día.\n\nTambién tiene la opción de no usar un archivo y obtener la información necesaria y mantenemos fijas en el código.", "time": "18:04", "topic": "Calendario integrado a Google Calendar", "username": "wmanesco" } ]
Calendario integrado a Google Calendar
[ { "date": "2013-04-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos:\n\nNecesito mostrar un calendario de 12 meses en donde el usuario pueda seleccionar\nlos días festivos del año.\n\nHe visto que en Pelles existe un control llamado CALENDAR, alguien lo ha usado?\ntendrá un ejemplo?\n\nTambién he visto la clase TCalex (me parece que es de Daniel García) pero creo\nque va más orientado a crear agendas, o me equivoco?, y no es precisamente lo\nque necesito.\n\nSaludos", "time": "20:56", "topic": "Calendario para dias festivos", "username": "Armando" } ]
Calendario para dias festivos
[ { "date": "2007-02-21", "forum": "FiveWin para Pocket PC", "text": "Hola a todos...\n\nMe gustaria saber si existe alguna clase para mostrar un pequeño calendario y como debo usarla....\n\n\nSaludos y gracias..\n\nElías Torres.", "time": "11:45", "topic": "Calendario...", "username": "Elias Torres" } ]
Calendario...
[ { "date": "2007-02-21", "forum": "FiveWin para Pocket PC", "text": "Puedes usar DatePicker, busca en la ayuda DTPicker y veras como usarlo. Utiliza el calendario del sistema y es lo mas rapido y elegante. \n\nYo hice una adaptación de MsgDate de FiveWin, es bastanten mas lento que DatePicker, aunque me permite un mayor control. La verdad es que no la suelo usar, pero por si te vale aqui tienes el fuente.\n\n[code:1a3ynyof]//---------------------------------------\nFUNCTION MsgDate&#40; dDate, cPrompt,oGet &#41;\n//----------------------------------------\n local oDlg, oFont, oCursor, dSelect\n local nRow, nCol, nMonth, aMonths&#58;=&#123;&#125;,nYear,cDay&#58;=' '\n local cOldMode &#58;= Set&#40; _SET_DATEFORMAT,;\n If&#40; __SetCentury&#40;&#41;, \"dd/mm/yyyy\", \"dd/mm/yy\" &#41; &#41;\n\n IF Empty&#40;dDate&#41;\n dDate&#58;=Date&#40;&#41;\n ENDIF\n FOR nMonth = 1 to 12\n AAdd&#40; aMonths, CMonth&#40; CToD&#40; \"01/\"+padl&#40; nMonth, 2 &#41; + \"/98\"&#41;&#41;&#41;\n NEXT nMonth\n nMonth &#58;= Month&#40; dDate &#41;\n nYear &#58;= Year&#40;dDate&#41;\n dSelect &#58;= dDate\n\n DEFINE FONT oFont NAME GetSysFont&#40;&#41; SIZE 0, -10\n\n DEFINE DIALOG oDlg SIZE 200, 190 TITLE cPrompt FONT oFont // -> 6 weeks\n oDlg&#58;SetText&#40;IF&#40;cPrompt==NIL,dDateToString&#40; dDate &#41;,cPromt&#41;&#41;\n @ 0&#46;32, &#46;70 COMBOBOX nMonth ITEMS aMonths SIZE 40,90 OF oDlg ;\n ON CHANGE MoveCalendar&#40;oDlg, 1, nMonth &#41;\n @ 6&#46;6, 60 BTNBMP PROMPT \"-\" SIZE 8,8&#46;3 ACTION &#40; MoveCalendar&#40;oDlg, 3 &#41;&#41;\n @ 6&#46;6, 86 BTNBMP PROMPT \"+\" SIZE 8,8&#46;3 ACTION &#40; MoveCalendar&#40;oDlg, 4 &#41;&#41;\n\n @ 0&#46;42, 8&#46;7 GET nYear PICTURE \"9999\" SIZE 14, 9 OF oDlg WHEN &#46;F&#46;\n ATail&#40; oDlg&#58;aControls &#41;&#58;Cargo = \"YEAR\"\n dDate-= Day&#40; dDate &#41; - 1\n while DoW&#40; dDate &#41; != 2 // Monday\n dDate --\n enddo\n FOR nCol&#58;=1 TO 7\n cDay+=SubStr&#40;CDoW&#40;dDate++&#41;,1,3&#41;+Space&#40;4&#41;\n NEXT\n dDate-=7\n @ 1&#46;3,0 SAY cDay COLOR CLR_WHITE, CLR_HBLUE SIZE 110,6\n for nRow = 3 to 8\n for nCol = 1 to 7\n @ nRow * 10, &#40; nCol * 14 &#41; - 12 BTNBMP ;\n PROMPT Str&#40; Day&#40; dDate &#41;, 2 &#41; SIZE 12, 10 NOBORDER ;\n ACTION &#40; dDate &#58;= &#58;&#58;Cargo, oDlg&#58;End&#40; IDOK &#41; &#41;\n ATail&#40; oDlg&#58;aControls &#41;&#58;Cargo = dDate\n ATail&#40; oDlg&#58;aControls &#41;&#58;nClrText = If&#40; dDate == Date&#40;&#41;, CLR_HRED,;\n If&#40; dDate == dSelect, CLR_HBLUE, If&#40; Month&#40; dDate &#41; == nMonth,;\n CLR_BLACK, CLR_GRAY &#41; &#41; &#41;\n IF ATail&#40; oDlg&#58;aControls &#41;&#58;Cargo == dSelect\n ATail&#40; oDlg&#58;aControls &#41;&#58;lPressed = &#46;t&#46;\n ENDIF\n dDate++\n next\n next\n dDate&#58;=dSelect\n oDlg&#58;Cargo&#58;=dDate\n ACTIVATE DIALOG oDlg CENTERED ;\n ON INIT &#40; oDlg&#58;aControls&#91; 3 &#93;&#58;SetFocus&#40;&#41; &#41;\n IF oGet != NIL\n oGet&#58;VarPut&#40; If&#40; oDlg&#58;nResult == IDOK, dDate, dSelect &#41; &#41;\n oGet&#58;Refresh&#40;&#41;\n ENDIF\n Set&#40; _SET_DATEFORMAT, cOldMode &#41;\nRETURN If&#40; oDlg&#58;nResult == IDOK, dDate, dSelect &#41;\n//----------------------------------------------\nSTATIC FUNCTION MoveCalendar&#40; oDlg, nMode, nVar&#41;\n//----------------------------------------------\n local dSelect &#58;= oDlg&#58;Cargo\n local n\n local nFirstButton &#58;= 0\n local nLastButton &#58;= 0\n local nDate &#58;= 0\n local nSkip &#58;= 0\n local nPYear &#58;= 0\n local nDay, nMonth, nYear\n local dWork\n local nDays &#58;= 0\n for n &#58;= 1 TO Len&#40; oDlg&#58;aControls &#41;\n if oDlg&#58;aControls&#91; n &#93;&#58;ClassName&#40;&#41; == \"TBTNBMP\"\n nFirstButton &#58;= If&#40; nFirstButton == 0, If&#40;nSkip<2, 0, n&#41;, nFirstButton &#41;\n nLastButton &#58;= n\n nSkip++\n oDlg&#58;aControls&#91; n &#93;&#58;lPressed &#58;= &#46;F&#46;\n endif\n if ValType&#40; oDlg&#58;aControls&#91; n &#93;&#58;Cargo &#41; == \"C\"\n if oDlg&#58;aControls&#91; n &#93;&#58;Cargo == \"YEAR\"\n nPYear &#58;= n\n endif\n endif\n next n\n\n nDay &#58;= Day&#40; dSelect &#41;\n nMonth &#58;= Month&#40; dSelect &#41;\n nYear &#58;= Year&#40; dSelect &#41;\n\n do case\n case nMode == 1 //Cambio de mes\n nMonth &#58;= nVar\n case nMode == 3\n nYear --\n case nMode == 4\n nYear ++\n ENDCASE\n dSelect &#58;= CToD&#40; padl&#40; nDay, 2&#41; + \"/\"+padl&#40; nMonth, 2 &#41; + \"/\"+right&#40;padl&#40; nYear, 4 &#41;, 2&#41;&#41;\n WHILE Empty&#40;dSelect&#41; //Retorcede hasta fecha vailida\n dSelect &#58;= CToD&#40; padl&#40; --nDay, 2&#41; + \"/\"+padl&#40; nMonth, 2 &#41; + \"/\" +right&#40;padl&#40; nYear, 4 &#41;, 2&#41;&#41;\n END\n cLongDate &#58;= dDateToString&#40; dSelect &#41;\n oDlg&#58;SetText&#40;cLongDate&#41;\n oDlg&#58;aControls&#91; nPYear &#93;&#58;VarPut&#40; nYear&#41;\n\n dWork &#58;= Ctod&#40; \"01/\" + padl&#40; nMonth, 2 &#41; + \"/\" + right&#40;padl&#40; nYear, 4 &#41;, 2&#41;&#41;\n while DoW&#40; dWork &#41; > 1\n dWork --\n enddo\n\n for n &#58;= nFirstButton TO nLastButton\n oDlg&#58;aControls&#91; n &#93;&#58;SetText&#40; Str&#40; Day&#40; dWork &#41;, 2 &#41; &#41;\n\n oDlg&#58;aControls&#91; n &#93;&#58;Cargo = dWork\n oDlg&#58;aControls&#91; n &#93;&#58;nClrText = If&#40; dWork == Date&#40;&#41;, CLR_HRED,;\n If&#40; dWork == dSelect, CLR_HBLUE, If&#40; Month&#40; dWork &#41; == nMonth,;\n CLR_BLACK, CLR_GRAY &#41; &#41; &#41;\n\n if dWork == dSelect\n oDlg&#58;aControls&#91; n &#93;&#58;lPressed = &#46;T&#46;\n endif\n dWork++\n next n\n\n for n &#58;= 1 TO Len&#40; oDlg&#58;aControls &#41;\n oDlg&#58;aControls&#91; n &#93;&#58;Refresh&#40;&#41;\n next n\n oDlg&#58;Cargo &#58;= dSelect\nreturn nil\n[/code:1a3ynyof]\nModo de uso , coloco un boton pequeño a la derecha del GET con el siguiente código.\n[code:1a3ynyof]REDEFINE BUTTON ID 4 OF oDlg ACTION &#40;MsgDate&#40; dFecha,,oGetFec&#41;&#41;[/code:1a3ynyof]", "time": "17:01", "topic": "Calendario...", "username": "Biel EA6DD" } ]
Calendario...
[ { "date": "2007-02-21", "forum": "FiveWin para Pocket PC", "text": "Gracias Biel, pero tengo un problema a la hora de usarlo.... Vamos a ver si utilizo el código que me has mandado me da un error al compilar algo asi como:\n\n \"unresolved external symbol HB_FUN_DDATETOSTRING...\"\n\nes decir que la funcion datetostring() no me la reconoce. Por otro lado no encuentro la ayuda sobre DTPicker....He visto que FW tiene una propia llamada msgdate() pero tampoco me la reconoce. Supongo que a lo mejor tengo que incluir algun \"include\" pero nose cual es...\n\n\nSaludos.\n\nElías Torres.", "time": "18:15", "topic": "Calendario...", "username": "Elias Torres" } ]
Calendario...
[ { "date": "2007-02-21", "forum": "FiveWin para Pocket PC", "text": "Hola Elias, \nparece que se me olvido de poner la funcion dDateToString. Aqui la tienes.\n[code:1isv45pv]//------------------------------------\nstatic function dDateToString&#40; dDate &#41;\n//------------------------------------\n local cSay &#58;= CDoW&#40; dDate &#41; + \", \" + ;\n Str&#40; Day&#40; dDate &#41;, 2 &#41; + \" \" + ;\n CMonth&#40; dDate &#41; + \" \" + ;\n Str&#40; Year&#40; dDate &#41;, 4 &#41;\nreturn cSay[/code:1isv45pv]\n\nReferente a DTPicker, en Fivewin comands guide, en la pestaña busqueda, dtpicker.\n\n[quote:1isv45pv]Include file: DTPICKER.CH \n\nCreating a DTPICKER from source code \n\n @ <nRow>, <nCol> DTPICKER [ <oDTPicker> VAR ] <uVar> ; \n \n \n [ OF | WINDOW | DIALOG <oWnd> ] ; \n \n [ COLOR | COLORS <nClrText> [,<nClrBack> ] ] ; \n \n [ SIZE <nWidth>, <nHeight> ]; \n \n [ FONT <oFont> ] ; \n \n [ DESIGN ] ; \n \n [ CURSOR <oCursor> ] ; \n \n [ PIXEL ] ; \n \n [ UPDATE ] ; \n \n [ MESSAGE <cMsg> ] ; \n \n [ WHEN <uWhen> ] ; \n \n [ VALID <uValid> ] ; \n \n [ ON CHANGE <uChange> ] ; \n \n [ HELPID | HELP ID <nHelpId> ] \n \n \n\nUsing a DTPicker from a resource Dialog Box \n\n REDEFINE DTPICKER [ <oDTPikcer> VAR ] <uVar> ; \n \n \n [ ID <nId> ] ; \n \n [ OF | WINDOW | DIALOG <oWnd> ] ; \n \n [ HELPID | HELP ID <nHelpId> ] ; \n \n [ COLOR | COLORS <nClrText> [,<nClrBack> ] ] ; \n \n [ VALID <ValidFunc> ] ; \n \n [ FONT <oFont> ] ; \n \n [ CURSOR <oCursor> ] ; \n \n [ MESSAGE <cMsg> ] ; \n \n [ UPDATE ] ; \n \n [ WHEN <WhenFunc> ] ; \n \n [ ON CHANGE <uChange> ] ;[/quote:1isv45pv]\nDesde código \n[code:1isv45pv]\nLOCAL dTmp&#58;=Date&#40;&#41;\n@ 1, 1 DTPICKER dTmp SIZE 50, 12 OF oDlg[/code:1isv45pv]", "time": "18:43", "topic": "Calendario...", "username": "Biel EA6DD" } ]
Calendario...
[ { "date": "2007-02-23", "forum": "FiveWin para Pocket PC", "text": "Biel, gracias por la ayuda. Te comento lo que me ocurre...\nAl utilizar msgdate(), me muestra el calendario, pero al avanzar de mes y luego retroceder, el año me lo cambia y en vez de poner 2007 me pone 1907... Y a parte me da un error en una variable, concretamente en IDOK cuando pulso sobre el dia que quiero, me dice que esa variable no existe.\n\nOtra duda que me ha surgido, se supone que ya está implementado la clase msgdate(), pero debo poner todo el codigo en mi programa para que me lo muestre. No me bastaría con llamar a esa funcion solamente?...\n\nAlguna sugerencia?\n\nSaludos y gracias.\n\nElías Torres.", "time": "17:44", "topic": "Calendario...", "username": "Elias Torres" } ]
Calendario...
[ { "date": "2007-02-23", "forum": "FiveWin para Pocket PC", "text": "Hola Elias, \nincluye las siguientes lineas en tu programa.\n Al inicio de la aplicacion \n[code:394n8rk4]Set EPOCH TO 1919[/code:394n8rk4]\ny en el prg donde hayas colocado los fuentes de msgdate\n[code:394n8rk4]#define IDOK 1[/code:394n8rk4]\n\nY creo que con esto ya te funcionara correctamente. \nDe todas formas prueba el DTPicker que esta muy bien, y es el calendario nativo del sistema operativo. \n\nReferente a lo que comentas de si hace falta incluir los fuentes, pues en la versión que tengo yo de FWPPC que no es la última, msgdate no estaba implementado, por tanto, si es necesario, en la tuya si ya esta implementado, no haria falta incluir los fuentes.", "time": "18:25", "topic": "Calendario...", "username": "Biel EA6DD" } ]
Calendario...
[ { "date": "2007-02-23", "forum": "FiveWin para Pocket PC", "text": "Gracias Biel, probaré lo que me comentas y tambien la otra opcion..\nYa te diré que tal..\n\nSaludos.\n\nElías Torres.", "time": "18:58", "topic": "Calendario...", "username": "Elias Torres" } ]
Calendario...
[ { "date": "2017-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos,\n\nEstaba pensando en usar la libreria REST para Google de Cristóbal Navarro (gracias Sr. Cristóbal por la conferencia y la librería)\n\nAsí pues, lo que pretendo es que en mi programa de escritorio se puedan editar las citas y luego se puedan ver y compartir a través de INet.\n\n¿ Como hacerlo ? ¿ Descargando el calendario y editandolo en el escritorio con fwh el calendario y luego subiendo las modificaciones ?\n\nAlguna idea, pls. Gracias.", "time": "09:24", "topic": "Calendarios Google - Uso", "username": "hmpaquito" } ]
Calendarios Google - Uso
[ { "date": "2017-11-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Exactamente como has dicho\nHas de realizar una interfaz ( UI ) para la introduccion de datos y a partir de ahi enviarlo al calendario\nAlgo asi\n\n[img:3p5vj585]https&#58;//s9&#46;postimg&#46;cc/e8ulg4pen/calend1&#46;png[/img:3p5vj585]\n\n[img:3p5vj585]https&#58;//s9&#46;postimg&#46;cc/5dtr5m8bz/calend2&#46;png[/img:3p5vj585]\n\nCuando tengas la introducción de datos lo vemos, si necesitas algo mas", "time": "12:36", "topic": "Calendarios Google - Uso", "username": "cnavarro" } ]
Calendarios Google - Uso
[ { "date": "2008-12-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos,\n\nCual creeis que es la mejor opcion para un calendario con agenda ?\n\nMicrosoft Outlook manejado con Ole\nGoogle-calendars con su Api\nCualquiera de las multiples clases que la gente generosamente ha cedido a este foro.\n\n\nViendo Microsoft-Outlook veo que tiene de todo, es la pera limonera... y me hace preguntarme que si es el mejor pq usar otro ? Pero quiza tambien sea demasiado complejo o tenga demasiadas cosas..\n\nLa TDatePicker que desarrollaron Otto y Antonio Linares tiene la ventaja que ves todo un año en la pantalla y eso me gusta...\n\nEn fin... que no se que hacer...\n\nSaludos", "time": "14:39", "topic": "Calendarios con agenda", "username": "hmpaquito" } ]
Calendarios con agenda
[ { "date": "2009-01-01", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"hmpaquito\":2xlv2qji]\n\nLa TDatePicker que desarrollaron Otto y Antonio Linares tiene la ventaja que ves todo un año en la pantalla y eso me gusta...\n\nEn fin... que no se que hacer...\n\nSaludos[/quote:2xlv2qji]\n\nPrimero que nada, has de buscar algo que cubra tus necesidades. Elegir herramientas tan completas como outlook, etc. suele traer la complicación que requiere para un usuario aprender esa herramienta y su funcionamiento. Yo soy de la política de \"hacer lo justo y necesario\" para las aplicaciones. Es el usuario quien debe decir qué necesita y quiere. Indudablemente con herramientas muy completas y complejas, una aplicación gana mucho valor, pero creo que siempre debemos tener en cuenta que eso trae complejidad de manejo para el usuario.\nPor otro lado, outlook, google calendar, etc. son herramientas de terceros, lo cual es algo que obliga a una dependencia de terceros, de lo que todos solemos huir como alma que lleva el diablo. Imaginas que mañana Microsoft o Google cambian cualquier tipo de tratamiento en sus herramientas? Mínimo te tocaría recompilar tu aplicación... sino reconstruir un módulo por completo.\nYo en este aspecto, el de un calendario con agenda, lo tendría bastante claro, la TDatePicker de Otto y Antonio. La puedes mejorar, modificar y no dependes de terceros, sino de tí mismo, pudiéndole dar la complejidad que quieras al usuario.\n\nNo te aporto nada más que una simple opinión...\n\nSuerte para este 2009!!!!!\n\n\nSaludos!", "time": "14:13", "topic": "Calendarios con agenda", "username": "triumvirato" } ]
Calendarios con agenda
[ { "date": "2009-01-02", "forum": "FiveWin para Harbour/xHarbour", "text": "triumvirato,\n\nGracias por responder....\n\nLa ventaja de usar herramientas tipo Office es que el usuario puede pensar... que programa mas listo tengo que se \"entiende\" con los programas de Microsoft. Las desventajas: las que tu comentas !\nLa desventaja del calendar de Otto y Antonio es que hay que hacer un estimable trabajo de programacion y nunca quedara tan \"fino\" (bonito) como lo de MsOutlook (requeriria mucho trabajo conseguirlo)\n\nSaludos\n\n\n\n[quote=\"triumvirato\":3orryhre][quote=\"hmpaquito\":3orryhre]\n\nLa TDatePicker que desarrollaron Otto y Antonio Linares tiene la ventaja que ves todo un año en la pantalla y eso me gusta...\n\nEn fin... que no se que hacer...\n\nSaludos[/quote:3orryhre]\n\nPrimero que nada, has de buscar algo que cubra tus necesidades. Elegir herramientas tan completas como outlook, etc. suele traer la complicación que requiere para un usuario aprender esa herramienta y su funcionamiento. Yo soy de la política de \"hacer lo justo y necesario\" para las aplicaciones. Es el usuario quien debe decir qué necesita y quiere. Indudablemente con herramientas muy completas y complejas, una aplicación gana mucho valor, pero creo que siempre debemos tener en cuenta que eso trae complejidad de manejo para el usuario.\nPor otro lado, outlook, google calendar, etc. son herramientas de terceros, lo cual es algo que obliga a una dependencia de terceros, de lo que todos solemos huir como alma que lleva el diablo. Imaginas que mañana Microsoft o Google cambian cualquier tipo de tratamiento en sus herramientas? Mínimo te tocaría recompilar tu aplicación... sino reconstruir un módulo por completo.\nYo en este aspecto, el de un calendario con agenda, lo tendría bastante claro, la TDatePicker de Otto y Antonio. La puedes mejorar, modificar y no dependes de terceros, sino de tí mismo, pudiéndole dar la complejidad que quieras al usuario.\n\nNo te aporto nada más que una simple opinión...\n\nSuerte para este 2009!!!!!\n\n\nSaludos![/quote:3orryhre]", "time": "12:59", "topic": "Calendarios con agenda", "username": "hmpaquito" } ]
Calendarios con agenda
[ { "date": "2007-03-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos é possível chamar o calendário da classe DTPicker de um BTNGET?\n\nEX?\n\n REDEFINE BTNGET oget[17] var DATA ID 102 OF oFld resource \"LUPA\" ACTION( DTPICKER ???? ) <---É POSSÍVEL ?\n\n\nAMIGOS SE FOR POSSÍVEL, COMO DEVO FAZER PARA FUNCIONAR ?\n\n\nAOKISANTOS", "time": "21:01", "topic": "Calendário DTPicker em BTNGET é possível ?", "username": "AOKISANTOS" } ]
Calendário DTPicker em BTNGET é possível ?
[ { "date": "2007-03-27", "forum": "FiveWin para Harbour/xHarbour", "text": "up !!!!", "time": "12:44", "topic": "Calendário DTPicker em BTNGET é possível ?", "username": "AOKISANTOS" } ]
Calendário DTPicker em BTNGET é possível ?
[ { "date": "2007-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "up!!!", "time": "13:45", "topic": "Calendário DTPicker em BTNGET é possível ?", "username": "AOKISANTOS" } ]
Calendário DTPicker em BTNGET é possível ?
[ { "date": "2007-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio não é possível ? <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "13:03", "topic": "Calendário DTPicker em BTNGET é possível ?", "username": "AOKISANTOS" } ]
Calendário DTPicker em BTNGET é possível ?
[ { "date": "2008-10-23", "forum": "FiveWin for Harbour/xHarbour", "text": "I have created a function in C that I want to call from a PRG clipper code.\r\n\r\nClipper Code:\r\n[code:2lwt9rwv]MsgInfo&#40; \"In Clipper Prog\" &#41;\n&#58;&#58;oRect &#58;= CRect&#40;&#41;&#58;New&#40; GetWorkRect&#40;&#41;, 'Options',,, &#46;t&#46; &#41; // SPI_GETWORKAREA\n[/code:2lwt9rwv]\n\n[b:2lwt9rwv]GetWorkRect() is the function that I have created in C:[/b:2lwt9rwv]\n[code:2lwt9rwv]#include <extend&#46;api>\n#include <ClipApi&#46;h>\n// #include <WinSock&#46;h>\n#include <fwmsgs&#46;h>\n\ntypedef struct _RECT &#123;\n LONG left;\n LONG top;\n LONG right;\n LONG bottom;\n&#125; RECT;\n\nBOOL\nSystemParametersInfoA&#40;\n UINT uiAction,\n UINT uiParam,\n PVOID pvParam,\n UINT fWinIni&#41;;\n\n\n/*\n * GetWorkRect&#40;&#41; \n *\n * Wrapper to SystemParametersInfo&#40;SPI_GETWORKAREA,&#46;&#46;&#46;\n * Retrieves the size of the work area on the primary display monitor&#46;\n * The work area is the portion of the screen not obscured by the system taskbar\n * or by application desktop toolbars&#46; The pvParam parameter must point to a RECT\n * structure that receives the coordinates of the work area, expressed in virtual\n * screen coordinates&#46;\n */\n\nCLIPPER GETWORKREC&#40;&#41; // --> &#123; nTop, nLeft, nBottom, nRight &#125;\n&#123;\n RECT rct;\n rct&#46;top = 0;\n rct&#46;left = 0;\n rct&#46;bottom = 0;\n rct&#46;right = 0;\n\n #define SPI_GETWORKAREA 48\n SystemParametersInfoA&#40;SPI_GETWORKAREA,0,&rct,0&#41;;\n\n hb_reta&#40; 4 &#41;;\n _storni&#40; rct&#46;top, &#40;WORD&#41;-1, 1 &#41;;\n _storni&#40; rct&#46;left, &#40;WORD&#41;-1, 2 &#41;;\n _storni&#40; rct&#46;bottom, &#40;WORD&#41;-1, 3 &#41;;\n _storni&#40; rct&#46;right, &#40;WORD&#41;-1, 4 &#41;;\n&#125;\n[/code:2lwt9rwv]\n\n[b:2lwt9rwv]When I link using vc98 results are:[/b:2lwt9rwv]\n[code:2lwt9rwv]c&#58;\\dev\\pcr5>link @KEYLESS\\build\\pcrHBH&#46;lnk /nologo /subsystem&#58;windows /force&#58;multiple /NODEFAULTLIB&#58;libcmt /LIBPATH&#58;C&#58;\\HarbourM\\lib /OUT&#58;C&#58;\\DEV\\PCR5\\KEYLESS\\EXE\\HB\\PCREGW&#46;EXE \nhbrtl&#46;lib&#40;tgetint&#46;obj&#41; &#58; warning LNK4006&#58; _HB_FUN_GETNEW already defined in FiveHM&#46;lib&#40;TCLIPGET&#46;obj&#41;; second definition ignored\nhbw32&#46;lib&#40;win_dll&#46;obj&#41; &#58; warning LNK4006&#58; _HB_FUN_CALLDLL already defined in FiveHCM&#46;lib&#40;CALLDLL&#46;obj&#41;; second definition ignored\nCPCREG&#46;OBJ &#58; error LNK2001&#58; unresolved external symbol _HB_FUN_GETWORKRECT\nCOPYDATA1&#46;obj &#58; error LNK2001&#58; unresolved external symbol \"int __cdecl SystemParametersInfoA&#40;unsigned int,unsigned int,void *,unsigned int&#41;\" &#40;?SystemParametersInfoA@@YAHIIPAXI@Z&#41;\nC&#58;\\DEV\\PCR5\\KEYLESS\\EXE\\HB\\PCREGW&#46;EXE &#58; fatal error LNK1120&#58; 2 unresolved externals\n[/code:2lwt9rwv]\r\n\r\n[b:2lwt9rwv]Question 1:[/b:2lwt9rwv]\r\nHow do I resolve the unresolved external? I do include the GetWorkRect OBJ file in the link.\r\n\r\n[b:2lwt9rwv]Question 2:[/b:2lwt9rwv]\r\nHow do I resolve the problem with SystemParametersInfoA?\r\n\r\nJust to be sure, I did remove the reference to SystemParametersInfoA and complied the OBJ again. When I link with that OBJ, I only have the first unresolved external _HB_FUN_GETWORKRECT.\r\n\r\n[b:2lwt9rwv]Question 3:[/b:2lwt9rwv]\r\nI'd like to get rid of the warnings, but for now, I'm still able to run the resulting EXE if I delete the code that creates the unresolved Externals up to the point where I call the MsgInfo() function.\r\n\r\nThanks,\r\n Paul", "time": "12:05", "topic": "Call C function from Clipper .PRG", "username": "paulrhanson" } ]
Call C function from Clipper .PRG
[ { "date": "2008-10-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"paulrhanson\":3rlc2gq3]Question 2: How do I resolve the problem with SystemParametersInfoA?\n[/quote:3rlc2gq3]Hi Paul:\r\n\r\nHere you are a working sample (compiled with xHarbour and borland):[code:3rlc2gq3]#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n\n local oDlg, ;\n aRect &#58;= GetWorkRect&#40;&#41;\n\n DEFINE DIALOG oDlg From 00,00 to 400,500 TITLE \"Work Rect\" PIXEL OF oDlg COLORS CLR_BLACK,CLR_WHITE\n\n @ 10, 10 SAY \"1=\" + cValToChar&#40; aRect&#91; 1 &#93; &#41; OF oDlg SIZE 50, 10 PIXEL\n @ 20, 10 SAY \"2=\" + cValToChar&#40; aRect&#91; 2 &#93; &#41; OF oDlg SIZE 50, 10 PIXEL\n @ 30, 10 SAY \"3=\" + cValToChar&#40; aRect&#91; 3 &#93; &#41; OF oDlg SIZE 50, 10 PIXEL\n @ 40, 10 SAY \"4=\" + cValToChar&#40; aRect&#91; 4 &#93; &#41; OF oDlg SIZE 50, 10 PIXEL\n\n ACTIVATE DIALOG oDlg CENTERED\n\nReturn nil\n\n#pragma BEGINDUMP\n#include <Windows&#46;h>\n#include <ClipApi&#46;h>\n#include <WinUser&#46;h>\n\nBOOL WINAPI SystemParametersInfoA&#40; UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni&#41; ;\n\n/*\n * GetWorkRect&#40;&#41;\n *\n * Wrapper to SystemParametersInfo&#40;SPI_GETWORKAREA,&#46;&#46;&#46;\n * Retrieves the size of the work area on the primary display monitor&#46;\n * The work area is the portion of the screen not obscured by the system taskbar\n * or by application desktop toolbars&#46; The pvParam parameter must point to a RECT\n * structure that receives the coordinates of the work area, expressed in virtual\n * screen coordinates&#46;\n */\n\nHB_FUNC&#40; GETWORKRECT &#41; // --> &#123; nTop, nLeft, nBottom, nRight &#125;\n&#123;\n RECT rct;\n rct&#46;top = 0;\n rct&#46;left = 0;\n rct&#46;bottom = 0;\n rct&#46;right = 0;\n\n SystemParametersInfoA&#40; SPI_GETWORKAREA, 0, &rct, 0 &#41; ;\n\n hb_reta&#40; 4 &#41;;\n _storni&#40; rct&#46;top, -1, 1 &#41;;\n _storni&#40; rct&#46;left, -1, 2 &#41;;\n _storni&#40; rct&#46;bottom, -1, 3 &#41;;\n _storni&#40; rct&#46;right, -1, 4 &#41;;\n&#125;\n#pragma ENDDUMP\n\n[/code:3rlc2gq3]\r\nRegards.\r\n\r\nManuel Mercado", "time": "16:03", "topic": "Call C function from Clipper .PRG", "username": "mmercado" } ]
Call C function from Clipper .PRG
[ { "date": "2008-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr Mercado,\r\n\r\nThanks! I'm rather new at this and have aquired a rather complex set of source code that I'm trying to convert from regular FW to FWH. So I'm learning all at once.\r\n\r\nCould you please provide for me the method of compile commands and link commands. Do you use the standard Fivetech buildh.bat to compile and link?\r\n\r\nThanks again,\r\n Paul", "time": "00:08", "topic": "Call C function from Clipper .PRG", "username": "paulrhanson" } ]
Call C function from Clipper .PRG
[ { "date": "2008-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"paulrhanson\":1xt31sbw]Could you please provide for me the method of compile commands and link commands. Do you use the standard Fivetech buildh.bat to compile and link?[/quote:1xt31sbw]Building the posted sample I used the standard BuildX.bat from \\fwh\\samples. I haven't tried with Harbour (BuildH.bat)\r\n\r\nRegards.\r\n\r\nManuel Mercado", "time": "01:05", "topic": "Call C function from Clipper .PRG", "username": "mmercado" } ]
Call C function from Clipper .PRG
[ { "date": "2014-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "[b:248muoxd]Slow Application Launch [/b:248muoxd]\n\nWhen I start my application for the first time after booting the computer (W7 and Linux-Wine) or just reboot the machine, the application needs about 1 to 2 minutes to show the first dialog (main application screen). \nAfter then, at each subsequent application start, the first dialog (main application screen) is shown in about 5-6 seconds. \n\nOn the main application dialog, there are several folders/tabs (about 12). Each folder/tab contains 10-15 buttons.\n\nI have an impression that working with many [b:248muoxd]folders/tabs[/b:248muoxd] is quite slow. \nMy machine contains i7 processor and a lot of memory so I would say it is not the processor/memory problem.\nThe same problem on pure W7 machine and on Linux/Wine combination\n\nAnyone have an experience with slow running applications which uses folders/tabs?\nAny suggestion appreciated \nThanks\n\n[url=http&#58;//www&#46;image-share&#46;com/ijpg-2597-232&#46;html:248muoxd][IMG=http://www.image-share.com/upload/2597/232m.jpg][/url:248muoxd]\n\nxHB 2011E , FWH_10.5", "time": "20:04", "topic": "Call Center - Slow Application Launch", "username": "metro" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Dubrabko,\n\nMaybe your app manages too much controls, but that should not affect that much.\n\nYou are using old xHB and FWH versions. I would suggest to upgrade and use the most recent code, and please consider to migrate to Harbour as that could make an important difference.\n\nHarbour has greatly improved along these years. All of you should realize that using an old version of xHarbour/Harbour does not help you at all. A lot of work has been done on Harbour (and on FWH) and the current version (3.2) works really fine.\n\nI can't say for sure that is the reason of the slowness that you comment, but for sure, you should notice a difference if you use the most recent Harbour and FWH.", "time": "20:48", "topic": "Call Center - Slow Application Launch", "username": "Antonio Linares" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Slowness is directly related to the memory management, and Harbour has improved so much on that area.\n\nMaybe there are other factors too that we may review. But lets first discard that the problem does not come from using those old versions. Thanks", "time": "20:50", "topic": "Call Center - Slow Application Launch", "username": "Antonio Linares" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Metro\n\nLooks like a nice app .. what back end database are you using .dbf or Ado?\n\nRick Lipkin", "time": "20:54", "topic": "Call Center - Slow Application Launch", "username": "Rick Lipkin" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, Rick\n\nThanks for the quick reply.\n\nApplication when starting, really works well and quickly\n\nYeah, I'm thinking about crossing the Harbour, but I'm not sure I have a [b:1r1e1bzk]good solution for working with MySQL database[/b:1r1e1bzk]!\n\nThe first version, works with a PgSQL - (Xbase language) which proved to be slow and unstable. (50 USER, 2 million records). The problem was to work with indexes. So I switched to natural SQL without Xbase language.\n\n\n\nThe second version works with MySQL database and xHarbour use for connection to the database and everything else is the SQL syntax (nErr = osql: exec (cSql, ...))", "time": "21:38", "topic": "Call Center - Slow Application Launch", "username": "metro" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Sharing my experiences:\n\nThis has nothing to do with FWH, xHb/xHarbour/Harbour. Whatever we use the result will not be much different.\n\nInitially sometime is taken to establish connection with the remote server, opening some tables and reading some data necessary to start the initial main window. It is here the delay occurs and we need to optimize this part. This time mostly depends on the connection speeds, the amount of data we read. We should be *extremely* cautious when dealing with huge tables. When opening very large tables, never to open without where clause so that only a small subset is read. \n\nWe need to measure the time it takes from \"function Main()\" till \"ACTIVATE WINDOW/DIALOG\". This is the time we need to optimize and this has nothing to do with fwh or (x)Harbour. This may depend on what library we are using to communicate with the Sql server and what are we doing initially (what tables we are opening and reading).\n\nEven after the best optimization, this process does take a few seconds, and even that delay is not acceptable for good user experience. In such cases we can adopt one the following strategies suitable to our application.\n\n1. Display a progress message while doing the initial setup. Or display a logo and in the background do the initial setup.\n\n2. Display the main window without data and display progress messase while doing the initial setup.", "time": "03:22", "topic": "Call Center - Slow Application Launch", "username": "nageswaragunupudi" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, I agree with Rao. What he explains makes perfect sense and I missed to consider it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "06:21", "topic": "Call Center - Slow Application Launch", "username": "Antonio Linares" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nThank you for your experience\n\nI will describe the flow of the program:\n[code=fw:247e56tu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />/ / ----------------------------<br /><span style=\"color: #00C800;\">Function</span> Main <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;InitSys <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DefTableName <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> TestConecction <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> SysLogin <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MainApp <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; / / Msg<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Return</span><br />&nbsp; &nbsp;/ / ----------------------------<br />&nbsp; &nbsp;MainApp <span style=\"color: #00C800;\">function</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndCRM<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWndCRM <span style=\"color: #0000ff;\">TO</span> cMesage &nbsp;<span style=\"color: #B900B9;\">//x ---------------> &nbsp;With this message I am presenting the message of progress</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> <span style=\"color: #0000ff;\">ON</span> oWndCRM DefDlg <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Return</span><br />&nbsp; &nbsp;/ / ----------------------------<br />&nbsp; &nbsp;DefDlg <span style=\"color: #00C800;\">function</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"PHONENEW_WIDE\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">FOLDER</span> oFld <span style=\"color: #0000ff;\">ID</span> xxx <span style=\"color: #0000ff;\">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// x ------------------------------> Here's delay</span><br />&nbsp; &nbsp; &nbsp; &nbsp;Def_Fold1 <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// x ------------------------------> or here</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;Def_Fold1 <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//x ------------------------------> or here</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//...</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;Def_Fold16 <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Return</span><br />&nbsp; &nbsp;/ / ----------------------------<br />&nbsp;</div>[/code:247e56tu]\n\n The delay is always at forming Folder!\n\nIn the first version (PgSQL) I used (xHarbour) and accessing the tables on Xbase way. As dbf-bases (So-open, seek, append, reclock, ....) And then that happened, just what you are suggesting. Very slow and unstable.\n\nIn the second version (MySQL) using xHarbour exclusively for connection to the server (localhost, network, remout-SSH). manipulation of data across functions [b:247e56tu]nErr = osql: exec (cSql, ...)[/b:247e56tu], where cSql pure SQL syntax. I work exclusively with the array. It works very fast and stable.\n\n\nI think it is well settled with the notification:\nSET MESSAGE OF oWndCRM TO cMesage\n\n\nBest regards", "time": "10:41", "topic": "Call Center - Slow Application Launch", "username": "metro" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Initial setap is completely finished, and the connection to the database until it comes to SysLogin() functions .\n\n[url=http&#58;//www&#46;image-share&#46;com/ijpg-2598-179&#46;html:1vp7a13g][IMG=http://www.image-share.com/upload/2598/179m.jpg][/url:1vp7a13g]\n\n[i:1vp7a13g]2-Display the main window without data and display progress messase while doing the initial setup.[/i:1vp7a13g]\n\nThe main window is formed without data. I just checked the log-in username / password.", "time": "10:48", "topic": "Call Center - Slow Application Launch", "username": "metro" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Dubrabko,\n\nA possible solution is not to redefine all the controls in all the folder pages at the same time:\n\n1. Just build the first page (the one that it is visible). \n\n2. When a different folder tab is clicked, then you could check if it has been defined such folder tab (use a static variable or so to control it, or check if oFld:aDialogs[ x ] length is zero) and then redefine it.\n\nThis way you don't build everything at once.\n\nI have not tested it myself, but it should work. Please try it and if you get troubles, then I will explain you an alternative way to redefine the controls in each tab (the idea would be to use Class TFolder METHOD LoadPages( aResNames, bRedefineControls ))", "time": "14:08", "topic": "Call Center - Slow Application Launch", "username": "Antonio Linares" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI created only one folder, but the problem is about the same.\nAfter reset the computer, the first time delay 4 min and every next start almost immediately.\n\n[url=http&#58;//www&#46;image-share&#46;com/ijpg-2600-42&#46;html:2weiuz57][IMG=http://www.image-share.com/upload/2600/42m.jpg][/url:2weiuz57]\n\nBest regards\nDubravko Basic", "time": "20:14", "topic": "Call Center - Slow Application Launch", "username": "metro" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"metro\":1gb9pbir]Antonio,\n\nI created only one folder, but the problem is about the same.\nAfter reset the computer, the first time delay 4 min and every next start almost immediately.\n\n[url=http&#58;//www&#46;image-share&#46;com/ijpg-2600-42&#46;html:1gb9pbir][IMG=http://www.image-share.com/upload/2600/42m.jpg][/url:1gb9pbir]\n\nBest regards\nDubravko Basic[/quote:1gb9pbir]\nYou are showing some data in the browse box on left.\nHow are you reading the data? From what table? What is your Sql?", "time": "20:46", "topic": "Call Center - Slow Application Launch", "username": "nageswaragunupudi" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nThe system works with a MySQL database.\n\nThere are several modes of operation.\n1 - Free Mode\nThe agent logs on to the system and gain FrontEnd \n[url=http&#58;//www&#46;image-share&#46;com/ijpg-2600-81&#46;html:184o2pxp][IMG=http://www.image-share.com/upload/2600/81m.jpg][/url:184o2pxp]\n\n\nFrom the admin gets the task (Combobox - contry, Conty, Town addres ... etc). Once selected, press the button Refresh. The program is only now reads data from a table and displays the brows.\n\n2 - Job Mode\nAgent when logging select job that will work.\n[url=http&#58;//www&#46;image-share&#46;com/ijpg-2600-80&#46;html:184o2pxp][IMG=http://www.image-share.com/upload/2600/80m.jpg][/url:184o2pxp]\n\nApplications, before forming folder prepare array data (arraj variable is public). By measuring I found that it takes a very short time.\nAfter logging gain FrontEnd:\n[url=http&#58;//www&#46;image-share&#46;com/ijpg-2600-42&#46;html:184o2pxp][IMG=http://www.image-share.com/upload/2600/42m.jpg][/url:184o2pxp]\n\n\nThe problem exists in both modes of operation.\n\nThis is the SQL query - Mode 1\n\ncComm: = \"SELECT salutation, first_name, last_name, title, \n account_name,email1,primary_address_street,primary_address_city,primary_address_postalcode,id,phone_home,phone_mobile,phone_work,phone_other \"+;\n \"FROM\" + cLeads + \"\" +;\n \"WHERE\" cWhereQ + + \"\" +;\n \"ASC\"\n\nBest regards\nDubravko Basic", "time": "23:23", "topic": "Call Center - Slow Application Launch", "username": "metro" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-23", "forum": "FiveWin for Harbour/xHarbour", "text": "I see that all the time taken is for reading data from the tables.\nYou need to optimize this area.\nKeep aside all windows and dialogs and folders.\nJust write small code to read the data and optimize on the speeds. After that you incorporate the windows/folders, etc.\n\nOne hint: There will never be any major delays with fwh/(x)Harbour. Any major delay is only due to time taken to read data.\n\nI guess you are dealing with very large files. You need to work on optimizing your queries. In particular it is a technique to optimize where clauses if we are dealing with large tables. Much depends on creating right indexes and usages of the indexed fields in our where clauses.\n\nFor example, if the where clause is \"WHERE DEPT = 10\", the query is damn slow if there is no index on DEPT. \n\nBy the way we do not know what are you using to connect to MySql server. Are you using ADO or TMySql or TDolphin?", "time": "00:31", "topic": "Call Center - Slow Application Launch", "username": "nageswaragunupudi" } ]
Call Center - Slow Application Launch
[ { "date": "2014-06-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao, \n\nThanks for your reply\n\n[i:8jg3s4dl]1) I see that all the time is taken for reading data from the tables.\nYou need to optimize this area.[/i:8jg3s4dl]\nThe data is read into an array and what you see in the picture is the brows array. Not all the time.\n\n[i:8jg3s4dl]2) Keep aside all windows and dialogs and folders.\nJust write small code to read the data and optimize on the speeds. After that you incorporate the windows / folders, etc..[/i:8jg3s4dl]\nExactly read data\n\n[i:8jg3s4dl]3) One hint: There will never be any major delays with FWH / (x) Harbour. Any major delay is only due to time taken to read the data.[/i:8jg3s4dl]\nNo. MySQL has a very good set Index. Speed ??data retrieval is measured and it is very good.\n\n[i:8jg3s4dl]4) I guess you are dealing with very large files. You need to work on optimizing your queries. In particular it is a technique to optimize where clauses if we are dealing with large tables. Much depends on creating right indexes and usages of the indexed fields in our where clauses.\nFor example, if the where clause is \"WHERE DEPT = 10\", the query is damn slow if there is no index on DEPT.[/i:8jg3s4dl]\n\nYes. The database is very large. I have optimized the MySQL server to work with large data.\n\n[i:8jg3s4dl]5) By the way we do not know what are you using to connect to MySQL server. Are you using ADO or TMySql or TDolphin?\n[/i:8jg3s4dl]\nI use xHarbour SQL RDD. Connection of the base can be seen:\n[url:8jg3s4dl]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=25346&p=139607&hilit=ssh%20#p138353[/url:8jg3s4dl]\n\nI mentioned, I'm on line at the base constantly, but the data read (or insert, update)\nwhen we need to. Browse array only, not the database (table).\n \nThe problem is that after a reset or when the computer is turned on, the formation of the app is about 4 minutes, and all other activation apps are fast!\n\nDoes the problem would be to cache or something?\n\n\nBest regards\nD. Basic", "time": "08:02", "topic": "Call Center - Slow Application Launch", "username": "metro" } ]
Call Center - Slow Application Launch
[ { "date": "2014-07-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, Rao\n\nAfter a more detailed analysis, I found the problem.\nActually, there are two things that affect the above problem.\n\n[b:1bem7tzw]After the formation of the folder[/b:1bem7tzw], perform all the functions listed in COMOBOX ... ON CHANGE funx()\nFunction funx() is actually a SQL query.\nI assume that this function is executed only when changing the ComboBox, not when defining folder. The solution is the variable that changed after the first start.\n\nAnother thing is the SQL query. When executed for the first time, takes on a large base for a long time. Another time, when he executed the same query is already cached and executed significantly shorter.\nBy optimizing queries and good indexing applications work very well with large databases.\n\n\nSummary, Mr. Rao, you're absolutely right.\n\nDubravko Basic", "time": "21:48", "topic": "Call Center - Slow Application Launch", "username": "metro" } ]
Call Center - Slow Application Launch
[ { "date": "2014-07-29", "forum": "FiveWin for Harbour/xHarbour", "text": "I didn't see this before, but from your original description, my first thought would be that the app is slow the first time because you have just started the computer. Is it still running background processes ? Leave it on all the time and see what happens when you enter the program for the first time the next day.\n\nWindows has a lot of background work today when first started. This includes updating, backups, and far more. I find it takes a lot of time from the CPU. Even though it has an i7, my understanding is that most work will still be done by one processor unless the tasks are specifically written to take advantage of the others ( info drawn from some Microsoft posts ).\n\nTim", "time": "23:12", "topic": "Call Center - Slow Application Launch", "username": "TimStone" } ]
Call Center - Slow Application Launch
[ { "date": "2014-07-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim\n\nI tried to explain the whole problem (now that I know what is causing the slowness of the app) starting from the MySQL database. When you turn on the computer I start the MySQL database (localhost). Cash in the database is empty. If I send a SQL query on a large table, the first time you are running, the response I get for example 50 sec. When I send the same query again, the response I get for example, 1.2 sec. The reason is cached internally in the MySQL database.\n\nWhen I start the program, in the folder there are several ComboBox and ... ON CHANGE FunX ();\nFunction FunX() real SQL query that acts as above. So, in that sense, and application had delay!\n\n[b:22v8ptit]I presumed,[/b:22v8ptit] to be executed FunX() when defining the ComboBox\n\nI solved the problem so it does not authorize the execution of the function while the application is not fully formed, and of course, optimizing SQL queries and good indexing.\n\nOf course, Windows is doing everything in the background, but that's not the problem here.\n\nDubravko Basic", "time": "02:40", "topic": "Call Center - Slow Application Launch", "username": "metro" } ]
Call Center - Slow Application Launch
[ { "date": "2021-05-21", "forum": "FiveWin for Harbour/xHarbour", "text": "I would like to display an HTML form from within a Win32 Desktop application ( NOT MOD_HARBOUR PLEASE )\n\nFrom a website the following is called:\n\n<form name=”PrePage” method = “post” action = “https://SourceServer.com/payment/Catalog.aspx”>\n<input type = “hidden” name = “LinkId” value =”jiehiu378208kijfiiuie” />\n<input type = “image” src =”//content.SourceServer.com/images/getit.gif” /></form>\n\nThough I use this on my server now, hackers are trying to access it. The last time they did it, they diverted payments to their PayPal account ( knowing PP lets them get away with the theft ). I want to remove the \"Store\" from my website completely and have the access only in my application which is NOT web based.", "time": "19:21", "topic": "Call HTML form in FWH application", "username": "TimStone" } ]
Call HTML form in FWH application
[ { "date": "2021-05-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nI don't think I completely understand the ask. What exactly do you want to be able to do from your application?", "time": "20:46", "topic": "Call HTML form in FWH application", "username": "rhlawek" } ]
Call HTML form in FWH application
[ { "date": "2021-05-21", "forum": "FiveWin for Harbour/xHarbour", "text": "On a website, I define a popup form with the code I provided. That links to a secured credit card gateway. It is an HTML form.\n\nI want to have a menu option in my program that will popup the same form. Yes, it would display it in the default web browser on that computer, and the individual would then process the form ( on that same browser ).\n\nI need to pass that entire script to the web browser from within the program. Right now it's easy to call websites, but I don't pass all the extra information. For Example:\n\nACTION ShellExecute( nil, \"open\", \"http://fivetech.com\" ) will open that website, but how can I pass the data above to open a form in the browser ?", "time": "21:22", "topic": "Call HTML form in FWH application", "username": "TimStone" } ]
Call HTML form in FWH application
[ { "date": "2021-05-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nI was also looking for showing html from FW and I found this function on the forum and was playing with it.\nI put your form insite the html file you have to put in the samples dir of you choise (change the path in the prg)\n\nIt seem to put the data into the form, but dos not send. It can however be a starting point from where to look.\n\n[code=fw:pnz8yl47]<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> OLECMDID_PRINT <span style=\"color: #000000;\">6</span><br /><span style=\"color: #00D7D7;\">#Define</span> OLECMDEXECOPT_PROMPTUSER <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00D7D7;\">#Define</span> OLECMDEXECOPT_DONTPROMPTUSER <span style=\"color: #000000;\">2</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> oWnd, oActiveX1, oActiveX2, cTemp<br /><br />   cTemp = <span style=\"color: #ff0000;\">'<head><link rel=\"stylesheet\" href=\"temp.css\"></head><table class=\"styled-table\"><thead><tr><th>36</th><th>38</th>'</span><br />   cTemp += <span style=\"color: #ff0000;\">'<th>40</th><th>42</th><th>44</th></tr></thead><tbody><tr><td></td><td>1</td><td>1</td><td>1</td><td>2</td></tr></tbody></table>'</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;\">\"FiveWin multiple ActiveX support\"</span><br /><br />   <span style=\"color: #B900B9;\">//@ 10, 10 ACTIVEX oActiveX1 PROGID \"Shell.Explorer\" OF oWnd SIZE 500, 150</span><br />   @ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"&OK\"</span>     <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">12</span>  <span style=\"color: #0000ff;\">ACTION</span> drukhtml<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #B900B9;\">//oActiveX1:Do( \"Navigate2\", \"c:\\fwharb\\samples\\temp.html\" )</span><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><br /><br /><span style=\"color: #00C800;\">function</span> drukhtml<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  cHtml:= <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wharb<span style=\"color: #000000;\">\\s</span>amples<span style=\"color: #000000;\">\\t</span>emp.html\"</span><br />  printhtml<span style=\"color: #000000;\">&#40;</span>cHtml,<span style=\"color: #000000;\">1</span>,.t.<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> PrintHtml<span style=\"color: #000000;\">&#40;</span>cHtmlOrUrl,nCopies,lShow<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">static</span> oWnd1:=<span style=\"color: #00C800;\">nil</span>, oBar, oIe<br /><span style=\"color: #00C800;\">local</span> i<br /><span style=\"color: #00C800;\">default</span> lShow:=.f.,nCopies:=<span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">if</span> oWnd1=<span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd1<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd1<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">'Print'</span><br /><span style=\"color: #00C800;\">endif</span><br />oIe = TActiveX<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWnd1, <span style=\"color: #ff0000;\">\"Shell.Explorer\"</span> <span style=\"color: #000000;\">&#41;</span><br />oIe:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Navigate2\"</span>, cHtmlOrUrl<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">if</span> lshow<br />oWnd1:<span style=\"color: #000000;\">oClient</span> = oIe<br />ShowWindow<span style=\"color: #000000;\">&#40;</span>oWnd1, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> && <span style=\"color: #000000;\">1</span>=Show,<span style=\"color: #000000;\">0</span>=hide<br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd1<br />oWnd1:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br />sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> PrintHtml2<span style=\"color: #000000;\">&#40;</span>cHtmlOrUrl,nCopies,lShow<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">static</span> oWnd:=<span style=\"color: #00C800;\">nil</span>, oBar, oIe<br /><span style=\"color: #00C800;\">local</span> i<br /><span style=\"color: #00C800;\">default</span> lShow:=.f.,nCopies:=<span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">if</span> oWnd=<span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">'Print'</span>;<br /><span style=\"color: #0000ff;\">ACTION</span> oIe:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ExecWB\"</span>, OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER <span style=\"color: #000000;\">&#41;</span><br />oIe = TActiveX<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWnd, <span style=\"color: #ff0000;\">\"Shell.Explorer\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br />oIe:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Navigate2\"</span>, cHtmlOrUrl<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> alltrim<span style=\"color: #000000;\">&#40;</span>oIe:<span style=\"color: #000000;\">document</span>:<span style=\"color: #000000;\">readyState</span><span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">'complete'</span><br />sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />waitseconds<span style=\"color: #000000;\">&#40;</span>.<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">enddo</span><br /><span style=\"color: #00C800;\">if</span> lshow<br />oWnd:<span style=\"color: #000000;\">oClient</span> = oIe<br />ShowWindow<span style=\"color: #000000;\">&#40;</span>oWnd, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> && <span style=\"color: #000000;\">1</span>=Show,<span style=\"color: #000000;\">0</span>=hide<br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />oWnd:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">else</span><br /><span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> nCopies<br />msgwait<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Printing large receipt ('</span> + alltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>i<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">' of '</span>+alltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>nCopies<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">' copies).'</span>,,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><br />oIe:<span style=\"color: #00C800;\">Do</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ExecWB\"</span>, OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">next</span> i<br /><span style=\"color: #00C800;\">endif</span><br />sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /> </div>[/code:pnz8yl47]\n\ntemp.html has folowing code inside :\n\n<form name=”PrePage” method = “post” action = “https://SourceServer.com/payment/Catalog.aspx”>\n<input type = “hidden” name = “LinkId” value =”jiehiu378208kijfiiuie” />\n<input type = “image” src =”//content.SourceServer.com/images/getit.gif” /></form>", "time": "21:54", "topic": "Call HTML form in FWH application", "username": "Marc Venken" } ]
Call HTML form in FWH application
[ { "date": "2021-05-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Perhaps write the .html to a local file then pass that file name into ShellExecute(), instead of a url, and depend on Windows default file handler to open in the browser based on file extension.", "time": "01:52", "topic": "Call HTML form in FWH application", "username": "rhlawek" } ]
Call HTML form in FWH application
[ { "date": "2021-05-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:3pz9i5ab]I was also looking for showing html from FW and I found this function on the forum and was playing with it.[/quote:3pz9i5ab]\n\nPlease consider using the built-in FWH function\n[code=fw:3pz9i5ab]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />HTMLVIEW<span style=\"color: #000000;\">&#40;</span> cHtmlFile <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// give full path of the file</span><br />&nbsp;</div>[/code:3pz9i5ab]", "time": "03:53", "topic": "Call HTML form in FWH application", "username": "nageswaragunupudi" } ]
Call HTML form in FWH application
[ { "date": "2021-05-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":ut0j47cw][quote:ut0j47cw]I was also looking for showing html from FW and I found this function on the forum and was playing with it.[/quote:ut0j47cw]\n\nPlease consider using the built-in FWH function\n[code=fw:ut0j47cw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />HTMLVIEW<span style=\"color: #000000;\">&#40;</span> cHtmlFile <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// give full path of the file</span><br /> </div>[/code:ut0j47cw][/quote:ut0j47cw]\n\nWorks also for me !\n\nBut is seems that just as the other option that HTMLVIEW also needs a file with a Path and HTML code inside it to work. Ok for viewing links, websites,...\n\nI my case I browse a Xbrowse that has a field inside a memo that has HTML code to build a table based on data. So, when moving the browse, I want the dialog where the html is showing to refresh with new data\nFor now I think I can move the browse, save the htmlcode to a file and then call the htmlview with the updated htmlcode. Should work, but maybe there can be updated function that will show plain html data from a\nvariable data.\n\nWhen cTemp = used, htmlview will also startup google and give a result of a google seek for the code (cTemp = used as a seeking parameter)\n\n\n[code=fw:ut0j47cw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">function</span> htmlzien<span style=\"color: #000000;\">&#40;</span>cFile,oWnd1<span style=\"color: #000000;\">&#41;</span><br />   cTemp = <span style=\"color: #ff0000;\">'<head><link rel=\"stylesheet\" href=\"temp.css\"></head><table class=\"styled-table\"><thead><tr><th>36</th><th>38</th>'</span><br />   cTemp += <span style=\"color: #ff0000;\">'<th>99</th><th>42</th><th>44</th></tr></thead><tbody><tr><td></td><td>1</td><td>1</td><td>1</td><td>2</td></tr></tbody></table>'</span><br /><br />  htmlview<span style=\"color: #000000;\">&#40;</span>cTemp<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//  htmlview(cTemp,\"Titel\",oWnd1,10,10,400,350)</span><br />  <span style=\"color: #B900B9;\">//htmlview(cFile,\"Titel\",oWnd1,10,10,400,350)</span><br /><br /><span style=\"color: #00C800;\">Return</span><br /><br /> </div>[/code:ut0j47cw]", "time": "10:21", "topic": "Call HTML form in FWH application", "username": "Marc Venken" } ]
Call HTML form in FWH application
[ { "date": "2021-05-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nACTION ShellExecute( nil, \"open\", \"http://www.fivetechsoft.com?param1=Tim&param2=Stone\" )\n\nThe above issues a \"GET\" request as the params go on the URL after the \"?\"\n\nIf you want those params not to be seen on the URL then you have to use \"MSXML2.XMLHTTP\" or CURL to do a \"POST\" request", "time": "17:54", "topic": "Call HTML form in FWH application", "username": "Antonio Linares" } ]
Call HTML form in FWH application
[ { "date": "2010-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI have help files called either from a menu or by pressing F1 but would like to use the ? on the system menu of a dialog (created in an .rc file) to also call the relevant help file. What command or code should I use?\n\nThanks in advance\n\nGary", "time": "12:50", "topic": "Call Help from ? on dialog", "username": "Gary Woodley" } ]
Call Help from ? on dialog
[ { "date": "2010-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Gary,\n\nhave a look at FWH - samples => [color=#FF0000:1jfep3on]Newhelp.prg[/color:1jfep3on]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "14:40", "topic": "Call Help from ? on dialog", "username": "ukoenig" } ]
Call Help from ? on dialog
[ { "date": "2008-07-03", "forum": "FiveWin for Harbour/xHarbour", "text": "I have setup a simple exe and dll. I am attempting to dynamicly call a dll from an exe. In my simple example I am calling the dll and execution is passing to the Dll no problem. However, when the dll returns, execution ends, and does NOT resume in the exe as I would suspect. \r\n\r\nI am using the fwh\\samples\\tutor01.prg as the dll example, and I am using the testdll.prg as the exe. \r\n\r\nMy environment is xharbour 0.99.51 - fwx v2.6 using borland compiler.\r\n\r\nCan anyone point me in the proper direction on this issue?\r\nAny help is greatly appreciated.", "time": "18:26", "topic": "Call a Dll from an Exe", "username": "don lowenstein" } ]
Call a Dll from an Exe
[ { "date": "2008-07-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Don,\r\n\r\nWhat build...bat are you using to build the DLL ?\r\n\r\nIs it a pcode only DLL or a self contained DLL ?", "time": "21:18", "topic": "Call a Dll from an Exe", "username": "Antonio Linares" } ]
Call a Dll from an Exe
[ { "date": "2008-07-03", "forum": "FiveWin for Harbour/xHarbour", "text": "What build...bat are you using to build the DLL ? \r\n\r\nI modified the buildhd.bat in the fivewin samples to adher to my environment - did not change any compile / link switches.\r\n\r\nI am attempting to create a self contained dll.", "time": "21:29", "topic": "Call a Dll from an Exe", "username": "don lowenstein" } ]
Call a Dll from an Exe
[ { "date": "2008-07-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Don,\r\n\r\nHere it is working fine using FWH 8.06 and current xHarbour provided with it. Here you have the EXE and the DLL, so you can test it yourself:\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://www.mediafire.com/?hwwlfmibi1u\">http://www.mediafire.com/?hwwlfmibi1u</a><!-- m -->", "time": "21:43", "topic": "Call a Dll from an Exe", "username": "Antonio Linares" } ]
Call a Dll from an Exe
[ { "date": "2008-07-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio - Thank you for the quick response and sample.\r\n\r\nThis example works great <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \r\n\r\nCan you send the source - and scripts used to make/link?\r\n\r\nThis is exactly what I am atempting, however - my exe never gets control back after the dll return.\r\n\r\nThank you for your help", "time": "22:22", "topic": "Call a Dll from an Exe", "username": "don lowenstein" } ]
Call a Dll from an Exe
[ { "date": "2008-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Don, \r\n\r\nI used the same sources as you: the ones from fwh\\samples without modifying them:\r\n[code:3cosdfvb]\n#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n\n HbDLLEntry&#40; \"MAIN\" &#41;\n MsgInfo&#40; \"ok from EXE\" &#41;\n\nreturn nil\n\nDLL FUNCTION HBDLLENTRY&#40; cProc AS LPSTR &#41; AS LONG PASCAL LIB \"Tutor01&#46;dll\"\n[/code:3cosdfvb]\r\nI guess the differences come from the different xHarbour build that we are using. I suggest you to upgrade to the most recent FWH and xHarbour.", "time": "00:38", "topic": "Call a Dll from an Exe", "username": "Antonio Linares" } ]
Call a Dll from an Exe
[ { "date": "2008-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio - Thank you for the assistance. \r\n\r\nThe most current xHarbour we have is v1.0 - with FWH v7\r\n\r\nWhat versions are you using?\r\n\r\nI also noticed in the scripts a reference to maindll.obj\r\nI do not have this module - what is it?\r\n\r\nThanks again for all your help", "time": "17:01", "topic": "Call a Dll from an Exe", "username": "don lowenstein" } ]
Call a Dll from an Exe
[ { "date": "2008-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Don,\r\n\r\nWe are using current FWH 8.06 with the xHarbour (June 2008) published on these forums in <!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=2486\">http://fivetechsoft.com/forums/viewtopic.php?t=2486</a><!-- m -->\r\n\r\nmaindll.obj is a Harbour/xHarbour module, that it is not included by default in the setup file. Here you have it:\r\n<!-- m --><a class=\"postlink\" href=\"http://rapidshare.com/files/123510556/maindll.obj.html\">http://rapidshare.com/files/123510556/maindll.obj.html</a><!-- m -->", "time": "18:59", "topic": "Call a Dll from an Exe", "username": "Antonio Linares" } ]
Call a Dll from an Exe
[ { "date": "2010-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Antonio i have the same problem with tutor01.prg and testdll.prg using the buildhd.bat.\n\nI DONT HAVE THE FILE NAMED MIANDLL.OBJ, SO I REM THE LINE BUT....\n\nIt runs the DLL but does not cam back in the EXE file.\n\nAny solution for me ?\n\nFWH 8.1 HARBOUR 1.01 (build. 9361)", "time": "19:16", "topic": "Call a Dll from an Exe", "username": "Romeo" } ]
Call a Dll from an Exe
[ { "date": "2010-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi to all,\ncan sameone very kkkiiiinnnnddddlllyyyy pass me the maindll.obj ?\n\nTks", "time": "19:06", "topic": "Call a Dll from an Exe", "username": "Romeo" } ]
Call a Dll from an Exe
[ { "date": "2010-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Romeo,\n\nFiles names have been changed in Harbour, here you have what it is available now:\n\n[url:2x54i4gd]http&#58;//www&#46;mediafire&#46;com/file/mijlz2nhol1/maindllh&#46;obj[/url:2x54i4gd]\n\n[url:2x54i4gd]http&#58;//harbour-project&#46;svn&#46;sourceforge&#46;net/viewvc/harbour-project/trunk/harbour/src/vm/[/url:2x54i4gd]", "time": "11:08", "topic": "Call a Dll from an Exe", "username": "Antonio Linares" } ]
Call a Dll from an Exe
[ { "date": "2010-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Romeo,\n\nI think it is going to be much more convenient and easier for you if you upgrade to the most recent Harbour version and also if you use HRB files instead of DLL files. There have been so many changes in Harbour.", "time": "11:14", "topic": "Call a Dll from an Exe", "username": "Antonio Linares" } ]
Call a Dll from an Exe
[ { "date": "2008-11-28", "forum": "FiveWin for Harbour/xHarbour", "text": "How can I call a FiveWin program from another and leave it open ? For example:\r\n 1. Program A calls program B\r\n 2. Program B opens and STAYS open but control returns to A\r\n 3. Program A closes but B is left open.\r\n\r\nThank you.\r\n\r\nRUN /B /I START program.exe\r\n\r\nStart is a Windows command.", "time": "08:21", "topic": "Call a FWH program from another and leave it open (SOLVED)", "username": "HunterEC" } ]
Call a FWH program from another and leave it open (SOLVED)
[ { "date": "2008-12-02", "forum": "FiveWin for Harbour/xHarbour", "text": "I think WinExec( 'program.exe' ) does the same thing.", "time": "23:20", "topic": "Call a FWH program from another and leave it open (SOLVED)", "username": "nageswaragunupudi" } ]
Call a FWH program from another and leave it open (SOLVED)
[ { "date": "2017-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nCan we open a VPN connection from FWH ?\n\nThere is a FWH program on laption's that needs to connect via VPN to a NAS,\nOnce connection is ok, connect to a database.\n\nWe can do it step by step, by clikking on the icons, but can we also do all this from insite the FWH program?", "time": "14:38", "topic": "Call a NAS over a VPN connection", "username": "Marc Venken" } ]
Call a NAS over a VPN connection
[ { "date": "2007-05-18", "forum": "FiveWin for CA-Clipper", "text": "Hi all,\n\nIs there a way to call a function periodically throughout the execution of an application. Thank you !\n\nRegards,", "time": "01:47", "topic": "Call a function periodically", "username": "xhbcoder" } ]
Call a function periodically
[ { "date": "2007-05-18", "forum": "FiveWin for CA-Clipper", "text": "Take a look at FW\\samples\\testtim4.prg", "time": "03:32", "topic": "Call a function periodically", "username": "James Bott" } ]
Call a function periodically
[ { "date": "2007-05-18", "forum": "FiveWin for CA-Clipper", "text": "Thank you james!", "time": "04:12", "topic": "Call a function periodically", "username": "xhbcoder" } ]
Call a function periodically
[ { "date": "2014-02-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola , buen dìa\n\nEn 32 bits se usan CallDLL() y GetProcAddress().\n\nY en 64 ?\n\nSaludos", "time": "21:28", "topic": "CallDLL() & GetProcAddress().", "username": "Vikthor.Thomas" } ]
CallDLL() & GetProcAddress().
[ { "date": "2006-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Antonio\n\nI have a Fwh and xHb aplication using latest Sept/Oct2006 Fw28/xHb\nThis app call the tMutex.prg class Create method below. The tMutex create method calls CallDLL32(.....). In my application when CallDLL32 is called, i get a pop up msgalert \"CallDll32\", with a title of \"calldll.c\". I have tracked this down to \\fwh\\source\\winapi\\calldll.c which contains\n#ifdef __BORLANDC__\n..........\n#else\n CLIPPER CALLDLL32( PARAMS )\n {\n #ifndef UNICODE\n MessageBox( 0, \"CallDll32\", \"CallDll.c\", 0 );\n #else \n MessageBox( 0, L\"CallDll32\", L\"CallDll.c\", 0 );\n #endif \n }\n\nIt seems the above CLIPPER CALLDLL32 is being called in error?\nIn addition, if I ignore the above msgalert, in the line of code below (::hMutex := CallDLL32(...) is set to an array (in stead of a numeric handle), the 2nd element of which is the correct hMutex handle\n\nIf I move tMutex.prg to earlier in my xbp link script, the problem is resolved, but that is an unsatisfactory solution \n\nCan you think what might be causing this?\nThanks\nPeter\n\n\n\n\n*********************\nMethod Create( sMutexAttr, lInitialOwner, cName ) Class TMutex\n\nLocal hDLL := LoadLib32( iKERNEL )\nLocal cFarProc, cFunc := \"CreateMutexA\", cBuffer := Nil\n\nDefault lInitialOwner := .F., cName := \"FiveWin App\"\n\nIf ValType( sMutexAttr ) == \"O\" .and. ;\n Upper( sMutexAttr:className() ) == \"TSTRUCT\"\n cBuffer := sMutexAttr:cBuffer\nEndif\n\n::cName := cName\n\nIf Abs( hDLL ) > 32 /*LPSTR*/ // LPSTR fails under 32bits!\n cFarProc := GetProc32( hDLL, cFunc, iASPASCAL, LONG, LONG, LONG, STRING )\n ::hMutex := CallDLL32( cFarProc, ;\n If( cBuffer # Nil, @cBuffer, cBuffer ), ; // lpMutexAttributes, security descriptor structure or nil\n Bool2Int( lInitialOwner ), ; // bInitialOwner, initial owner\n cName + Chr(0) ) // lpName, object name\n FreeLib32( hDLL )\n If cBuffer # Nil\n sMutexAttr:cBuffer := cBuffer\n Endif\n\nElse\n ::Failed( hDLL, cFunc )\nEndif\n\nReturn Self\n*********************", "time": "06:16", "topic": "CallDll32 funny", "username": "peterk" } ]
CallDll32 funny
[ { "date": "2006-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Peter,\n\nIn 32 bits you have to use CallDLL() and GetProcAddress(). \n\nThe functions you are using are just for 16 bits, to access 32 bits ones.", "time": "07:30", "topic": "CallDll32 funny", "username": "Antonio Linares" } ]
CallDll32 funny
[ { "date": "2006-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you \n\nI now see that tMutex.prg does have the following at the bottom of the tMutex.prg (see end of mail)\n\nSo that would mean the fwh calldll.c function 'CLIPPER CALLDLL32( PARAMS )' is being called instead of the 'Function CallDLL32' below (in tMutex). \n\nThis should only happen if calldll.c (in FiveHcm.lib) is linked in before tMutex.prg. I am using xBuildW.exe which links FiveHcm.lib in automatically - I will have to investigate further\n\n\n\n****************\n#ifdef __HARBOUR__\nFunction LoadLib32( cDll )\nReturn LoadLibrary( cDll )\n\nFunction FreeLib32( hDll )\nReturn FreeLibrary( hDll )\n\nFunction GetProc32( hDLL, cFunc, lType, nRetType, nPType1, nPType2, nPType3, nPType4, nPType5, nPType6, nPType7, nPType8, nPType9, nPType10 )\nReturn GetProcAddress( hDLL, cFunc, lType, nRetType, nPType1, nPType2, nPType3, nPType4, nPType5, nPType6, nPType7, nPType8, nPType9, nPType10 )\n\nFunction CallDLL32( cFarProc, uParam1, uParam2, uParam3, uParam4, uParam5, uParam6, uParam7, uParam8, uParam9, uParam10 )\nReturn CallDLL( cFarProc, uParam1, uParam2, uParam3, uParam4, uParam5, uParam6, uParam7, uParam8, uParam9, uParam10 )\n#endif", "time": "10:36", "topic": "CallDll32 funny", "username": "peterk" } ]
CallDll32 funny
[ { "date": "2006-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Peter,\n\nBetter do a search & replace for those functions names in TMutex source code instead of using those wrappers.", "time": "11:20", "topic": "CallDll32 funny", "username": "Antonio Linares" } ]
CallDll32 funny
[ { "date": "2006-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi friends,\n\nI need make one function with \"CallNamedPipe\", in C is:\n\n[code:3cbflxxw] TCHAR chReadBuf&#91;BUFSIZE&#93;;\n BOOL fSuccess;\n DWORD cbRead, cbWritten, dwMode;\n LPTSTR lpszPipename = TEXT&#40;\"\\\\\\\\&#46;\\\\pipe\\\\myPIPE\"&#41;;\n LPTSTR lpszWrite = TEXT&#40;\"no llego nada\"&#41;;\n\n fSuccess = CallNamedPipe&#40;\n lpszPipename,\n lpszWrite,\n &#40;lstrlen&#40;lpszWrite&#41;+1&#41;*sizeof&#40;TCHAR&#41;,\n chReadBuf,\n BUFSIZE*sizeof&#40;TCHAR&#41;,\n &cbRead,\n 20000&#41;;\n\n if &#40;fSuccess || GetLastError&#40;&#41; == ERROR_MORE_DATA&#41;[/code:3cbflxxw]\n\nWhat i need for make this function in xHarbour?\n\nTank´s", "time": "14:46", "topic": "CallNamedPipe", "username": "goosfancito" } ]
CallNamedPipe
[ { "date": "2006-09-23", "forum": "FiveWin para CA-Clipper", "text": "Amigos,\n\nMi código estaba hecho para FWH, pero ahora necesito pasarlo tambien para FW, comencé pero me tira un error al compilar, podrían ayudarme?\n\n[code:23s4gnqt]#include \"winten&#46;h\"\n#include \"windows&#46;h\"\n\n#ifndef __HARBOUR__\n #include \"clipapi&#46;h\"\n#else\n #include \"hbapi&#46;h\"\n#endif\n\n#define BUFSIZE 512\n\n#ifndef __HARBOUR__\n CLIPPER COMANDOCEM&#40; PARAMS &#41;\n#else\n HB_FUNC &#40; COMANDOCEM &#41;\n#endif\n&#123;\n #ifndef __HARBOUR__\n char chReadBuf&#91;BUFSIZE&#93;;\n #else\n TCHAR chReadBuf&#91;BUFSIZE&#93;;\n #endif\n\n BOOL fSuccess;\n DWORD cbRead, cbWritten, dwMode;\n\n #ifndef __HARBOUR__\n LPSTR lpszPipename = _parc&#40; 1 &#41; ;\n LPSTR lpszWrite = _parc&#40; 2 &#41; ;\n #else\n LPTSTR lpszPipename = hb_parc&#40; 1 &#41; ;\n LPTSTR lpszWrite = hb_parc&#40; 2 &#41; ;\n #endif\n\n OutputDebugString&#40; _parc&#40;1&#41; &#41;;\n\n #ifndef __HARBOUR__\n\n fSuccess = CallNamedPipe&#40;\n lpszPipename,\n lpszWrite,\n &#40;lstrlen&#40; lpszWrite&#41; + 1 &#41; * sizeof&#40; char &#41;,\n chReadBuf,\n BUFSIZE * sizeof&#40; char &#41;,\n &cbRead,\n 200000 &#41;;\n\n #else\n\n fSuccess = CallNamedPipe&#40;\n lpszPipename,\n lpszWrite,\n &#40; lstrlen&#40; lpszWrite &#41; + 1 &#41; * sizeof&#40; TCHAR &#41;,\n chReadBuf,\n BUFSIZE*sizeof&#40; TCHAR &#41;,\n &cbRead,\n 20000&#41;;\n\n #endif\n\n&#125;\n[/code:23s4gnqt]\n\nError:[quote:23s4gnqt]Warning source\\pipeclte.c 74: Call to function 'CallNamedPipe' with no prototype in function COMANDOCEM\nWarning source\\pipeclte.c 89: 'fSuccess' is assigned a value that is never used in function COMANDOCEM\n[/quote:23s4gnqt]", "time": "21:12", "topic": "CallNamedPipe en FW", "username": "goosfancito" } ]
CallNamedPipe en FW
[ { "date": "2006-08-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Olá\n\nEstou gerando um exe com xharbour 09961 + fwh 26, qdo executo gera\no erro abaixo:\n\nCalled from HBCLASS:NEW(0)\nCalled from TFont(0)\nCalled from Principal(83)\n\nCompilei a lib fivehx.lib novamente com o novo compilador, compilei\ntodos meus prgs novamente mas não está funcionando.", "time": "05:30", "topic": "Called from HBCLASS:NEW(0)", "username": "Joao Cezar" } ]
Called from HBCLASS:NEW(0)
[ { "date": "2006-08-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Joao,\n\nTienes un ejemplo pequeño que reproduzca el error ? gracias", "time": "08:54", "topic": "Called from HBCLASS:NEW(0)", "username": "Antonio Linares" } ]
Called from HBCLASS:NEW(0)
[ { "date": "2006-08-09", "forum": "FiveWin para Harbour/xHarbour", "text": "VERIFIQUE A LINHA 83 DE PRINCIPAL.PRG\n\nVOCE ESTA DEFININDO AS FONTES? SE SIM, FECHA-AS AO SAIR?\n\nPOSTE O CODIGO.\n\nOU SIMPLESMENTE, VÁ PARA O FORUM EM PORTUGUES, EM:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.fivewin.com.br\">http://www.fivewin.com.br</a><!-- m -->", "time": "13:01", "topic": "Called from HBCLASS:NEW(0)", "username": "karinha" } ]
Called from HBCLASS:NEW(0)
[ { "date": "2018-06-18", "forum": "FiveWin para Harbour/xHarbour", "text": "buenas tardes.\nintento hacer un listado (no factura) solo impresion de items.\ny al querer Ejecutar la rutina que me realizaria le impresion me salta esto:\n[code=fw:12rllni6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   Called <span style=\"color: #0000ff;\">from</span>:  => STARTPAGE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">PRINTER</span>.PRG => PAGEBEGIN<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">Source</span>\\imprime\\TIMPQuincenal.prg => TIMPQUINCENAL:<span style=\"color: #000000;\">HOJA1</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">73</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:12rllni6]\n\nque es?\n\ngracias", "time": "22:33", "topic": "Called from: => STARTPAGE( 0 )", "username": "goosfancito" } ]
Called from: => STARTPAGE( 0 )
[ { "date": "2018-06-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Muestre el código. Y vea PRINT.CH si tiene algo mal.\n\nSaludos.", "time": "14:05", "topic": "Called from: => STARTPAGE( 0 )", "username": "karinha" } ]
Called from: => STARTPAGE( 0 )