messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2008-05-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Basic code is up and running. Doesn't yet cover all possibilities but I'm happy so far.\r\n\r\nMethod AddDatas performs following functions:\r\n\r\nadds DATAs (not to it's class but to the class passed in)\r\n\r\nwrites field positions into the aPROPERTIES array (so that only has to be done once)\r\n\r\nwrites variable names into the aVALUES array (again so that only has to be done once)\r\n\r\nIt looks like this:\r\n\r\n[code:2814ou2k]METHOD AddDatas( oCalling ) CLASS VIEW\n\nLOCAL aTHIS\n\noCalling:oDBF:Select()\noCalling:oDBF:GoTo( 100 )\n::aVALUES := ARRAY( 0 )\nFOR ii := 1 TO ::iProperties\n __ObjAddData( oCalling, ::aPROPERTIES[ii][1] )\n ::aPROPERTIES[ii][3] := FieldPos( ::aPROPERTIES[ii][2] )\n aTHIS := ARRAY( 2 )\n aTHIS[1] := ::aPROPERTIES[ii][1]\n AADD( ::aVALUES, aTHIS )\nNEXT[/code:2814ou2k]\n\nMethod ReadValues reads values from the data base table, translates the names, converts type as appropriate and sends the values to the object passed in. It looks like:\n\n[code:2814ou2k]METHOD ReadValues( oCalling ) CLASS VIEW\n\nLOCAL cDataType\n\nFOR ii = 1 TO ::iProperties\n cDataType := ::aPROPERTIES[ii][4]\n DO CASE\n CASE cDataType = \"D\"\n ::aVALUES[ii][2] := STOD( FieldGet( ::aPROPERTIES[ii][3] ) )\n OTHERWISE\n ::aVALUES[ii][2] := FieldGet( ::aPROPERTIES[ii][3] )\n ENDCASE\nNEXT\n__ObjSetValueList( oCalling, ::aVALUES )[/code:2814ou2k]\n\nMethod BlankValues sets values in the passed in object to blanks or defaults as appropriate. It looks like:\n\n[code:2814ou2k]METHOD BlankValues( oCalling ) CLASS VIEW\n\nLOCAL cDataType\n\nFOR ii = 1 TO ::iProperties\n cDataType := ::aPROPERTIES[ii][4]\n DO CASE\n CASE cDataType = \"C\"\n ::aVALUES[ii][2] := \" \"\n CASE cDataType = \"D\"\n ::aVALUES[ii][2] := CTOD(\" / / \")\n CASE cDataType = \"P\"\n ::aVALUES[ii][2] := \"[NOT_YET_SET]\"\n CASE cDataType = \"Q\"\n ::aVALUES[ii][2] := SPACE( 16 )\n CASE cDataType = \"S\"\n IF ::aPROPERTIES[ii][7] != nil\n ::aVALUES[ii][2] := ::aPROPERTIES[ii][7]\n ELSE\n ::aVALUES[ii][2] := SPACE( ::aPROPERTIES[ii][5] )\n ENDIF\n CASE cDataType = \"T\"\n ::aVALUES[ii][2] := SPACE( 16 )\n ENDCASE\nNEXT\n__ObjSetValueList( oCalling, ::aVALUES )[/code:2814ou2k]\n\nThat just leaves method WriteValues which effectively does the reverse of ReadValues. It looks like:\n\n[code:2814ou2k]METHOD WriteValues( oCalling ) CLASS VIEW\n\nFOR ii = 1 TO ::iProperties\n cDataType := ::aPROPERTIES[ii][4]\n DO CASE\n CASE cDataType = \"D\"\n FieldPut( ::aPROPERTIES[ii][3], DTOS( oSend( oCalling, ::aPROPERTIES[ii][1] ) ) )\n OTHERWISE\n FieldPut( ::aPROPERTIES[ii][3], oSend( oCalling, ::aPROPERTIES[ii][1] ) )\n ENDCASE\nNEXT[/code:2814ou2k]\r\n\r\nThis is basically operational code so I am convinced this approach will work. I think it may offer some advantages over other approaches.\r\n\r\nxProgrammer",
"time": "14:17",
"topic": "Can Properties (DATA) be added dynamically to an Object (CLA",
"username": "xProgrammer"
}
] |
Can Properties (DATA) be added dynamically to an Object (CLA
|
[
{
"date": "2010-06-26",
"forum": "FiveWin for Pocket PC",
"text": "Dear Antonio,\n\nI try to use BITMAP and BTNBMP and both has an weak and good point ( I've only few knowledge ).\n- BITMAP\n - Nice but No Motion when Click\n- BTNBMP\n - Nice and Motion but cannot TRANSPARENT.\n1.) Can I make Motion on BITMAP ON CLICK as iPhone. Change Bitmap back when click as iPhone\n2.) Can I Transparent BTNBMP background.\n\n[url=http://img710.imageshack.us/i/btnbmp.png/:1bg6dpjn][img:1bg6dpjn]http://img710.imageshack.us/img710/8131/btnbmp.png[/img:1bg6dpjn][/url:1bg6dpjn]",
"time": "21:20",
"topic": "Can TBtnbmp has TRANSPARENT?",
"username": "dutch"
}
] |
Can TBtnbmp has TRANSPARENT?
|
[
{
"date": "2010-07-04",
"forum": "FiveWin for Pocket PC",
"text": "Dutch,\n\nPlease email me the button image that it is inside the red circle and also the image that you want to show when it is clicked, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "16:52",
"topic": "Can TBtnbmp has TRANSPARENT?",
"username": "Antonio Linares"
}
] |
Can TBtnbmp has TRANSPARENT?
|
[
{
"date": "2010-07-05",
"forum": "FiveWin for Pocket PC",
"text": "Dutch,\n\nPlease try this example:\n[code=fw:3m9hifb1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FWCE.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oWnd, oBmp<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /> @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> BITMAP oBmp FILE CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\f</span>ind.bmp\"</span> NOBORDER <br /> <br /> oBmp:<span style=\"color: #000000;\">bLClicked</span> = <span style=\"color: #000000;\">{</span> || DeleteObject<span style=\"color: #000000;\">(</span> oBmp:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span>, oBmp:<span style=\"color: #000000;\">hBitmap</span> := PalBmpRead<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\f</span>ind3.bmp\"</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, oBmp:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> oBmp:<span style=\"color: #000000;\">bLButtonUp</span> = <span style=\"color: #000000;\">{</span> || DeleteObject<span style=\"color: #000000;\">(</span> oBmp:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span>, oBmp:<span style=\"color: #000000;\">hBitmap</span> := PalBmpRead<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\f</span>ind.bmp\"</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, oBmp:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</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 /> </div>[/code:3m9hifb1]",
"time": "11:53",
"topic": "Can TBtnbmp has TRANSPARENT?",
"username": "Antonio Linares"
}
] |
Can TBtnbmp has TRANSPARENT?
|
[
{
"date": "2015-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "As subject.\n\nThanks in advance.",
"time": "13:27",
"topic": "Can TCOMBOBOX with 2 dimension array?",
"username": "dutch"
}
] |
Can TCOMBOBOX with 2 dimension array?
|
[
{
"date": "2015-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dutch\n\nI do not think a two dimensional array is possible.. I have worked around this by concantonating two values together into a single text and loaded it to an array ..\n[code=fw:1tz06x6s]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aEmp := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #0000ff;\">Select</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// employee</span><br />Go Top<br /><br /><span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">While</span> .not. eof<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> cText := str<span style=\"color: #000000;\">(</span>a->EmpNumber,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span>+<span style=\"color: #ff0000;\">\"---\"</span>+a->EmpName<br /> AAdd<span style=\"color: #000000;\">(</span> aEmp, cText <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #0000ff;\">select</span> <span style=\"color: #000000;\">1</span><br /> skip<br /><span style=\"color: #00C800;\">Enddo</span><br /> </div>[/code:1tz06x6s]\n\nThen if I want to extract ONLY the Employee number I substr it out from the value of cEmp\n[code=fw:1tz06x6s]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oEmp <span style=\"color: #0000ff;\">var</span> cEmp <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">127</span> <span style=\"color: #0000ff;\">of</span> oDlg ;<br /> <span style=\"color: #0000ff;\">ITEMS</span> aEmp <span style=\"color: #0000ff;\">UPDATE</span><br /><br />...<br />...<br /><br />b->EmpNumber := val<span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">(</span> cEmp,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /> </div>[/code:1tz06x6s]\n\nRick Lipkin",
"time": "14:27",
"topic": "Can TCOMBOBOX with 2 dimension array?",
"username": "Rick Lipkin"
}
] |
Can TCOMBOBOX with 2 dimension array?
|
[
{
"date": "2015-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I'm not sure exactly what you are needing this for, but with DBCombo you can list one value and return another. For instance you can list a description and return an ID number.\n\nJames",
"time": "15:37",
"topic": "Can TCOMBOBOX with 2 dimension array?",
"username": "James Bott"
}
] |
Can TCOMBOBOX with 2 dimension array?
|
[
{
"date": "2015-07-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Rick,\n\nThanks, it is a good idea for solve the problem.\n\nDear James,\n\nYes, exactly I need. Show 1 column (array) return another column as your said. How can I do that?\n\nThank you so much.",
"time": "23:47",
"topic": "Can TCOMBOBOX with 2 dimension array?",
"username": "dutch"
}
] |
Can TCOMBOBOX with 2 dimension array?
|
[
{
"date": "2015-07-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dutch,\n\nBelow is an example. You will also need the fwh\\samples\\states.dbf data file.\n\nJames\n\n[code=fw:3ny3c4ll]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/*<br />Program : DBC1.PRG<br />Purpose : Test DBCombo<br />Notes :<br />*/</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"dbcombo.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oDlg, oDBC1, oDBC2, cVar, oCust, cStateID:=<span style=\"color: #ff0000;\">\" \"</span>, oBtn, cState:=<span style=\"color: #ff0000;\">\"\"</span><br /> <span style=\"color: #00C800;\">local</span> cDept:= space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">)</span>, oStates, aItems, aList<br /> field <span style=\"color: #0000ff;\">NAME</span><br /><br /> <span style=\"color: #00C800;\">if</span> file<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"states.dbf\"</span><span style=\"color: #000000;\">)</span><br /> use states<br /> <span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">on</span> upper<span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">NAME</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">to</span> temp<br /> database oStates<br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"File states.dbf not found.\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #0000ff;\">define</span> <span style=\"color: #0000ff;\">dialog</span> oDlg<br /><br /> @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">30</span> dbcombo oDBC1 <span style=\"color: #0000ff;\">var</span> cStateID <span style=\"color: #0000ff;\">of</span> oDlg;<br /> <span style=\"color: #0000ff;\">alias</span> oStates:<span style=\"color: #000000;\">cAlias</span>;<br /> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">pixel</span>;<br /> itemfield <span style=\"color: #ff0000;\">\"CODE\"</span> ;<br /> listfield <span style=\"color: #ff0000;\">\"NAME\"</span>;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> msgbeep<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">update</span>;<br /><br /> aList:= <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"Accounting\"</span>,<span style=\"color: #ff0000;\">\"HR\"</span>,<span style=\"color: #ff0000;\">\"Marketing\"</span>,<span style=\"color: #ff0000;\">\"Production\"</span>,<span style=\"color: #ff0000;\">\"Research\"</span>,<span style=\"color: #ff0000;\">\"Shipping\"</span>,<span style=\"color: #ff0000;\">\"Sales\"</span><span style=\"color: #000000;\">}</span><br /> aItems:= <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"100\"</span>,<span style=\"color: #ff0000;\">\"200\"</span>,<span style=\"color: #ff0000;\">\"400\"</span>,<span style=\"color: #ff0000;\">\"300\"</span>,<span style=\"color: #ff0000;\">\"600\"</span>,<span style=\"color: #ff0000;\">\"500\"</span>,<span style=\"color: #ff0000;\">\"700\"</span><span style=\"color: #000000;\">}</span><br /><br /> @ <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">30</span> DBCOMBO oDBC2 <span style=\"color: #0000ff;\">VAR</span> cDept;<br /> <span style=\"color: #0000ff;\">items</span> aItems;<br /> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">pixel</span>;<br /> list aList;<br /> <span style=\"color: #0000ff;\">of</span> oDlg;<br /> <span style=\"color: #0000ff;\">update</span><br /><br /><br /> @ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">50</span> <span style=\"color: #0000ff;\">button</span> oBtn <span style=\"color: #0000ff;\">prompt</span> <span style=\"color: #ff0000;\">\"Selected\"</span>;<br /> <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">pixel</span> <span style=\"color: #0000ff;\">action</span> <span style=\"color: #000000;\">(</span>odbc1:<span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span>, eval<span style=\"color: #000000;\">(</span> oDBC1:<span style=\"color: #000000;\">bChange</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">default</span><br /><span style=\"color: #B900B9;\">// action msgInfo( \"cStateId: \" +cStateID +CRLF+\"DeptNo: \"+cDept,\"Selected\" );</span><br /><span style=\"color: #B900B9;\">// default</span><br /><br /> @ <span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">button</span> oBtn2 <span style=\"color: #0000ff;\">prompt</span> <span style=\"color: #ff0000;\">\"sdfs\"</span> <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">action</span> <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">(</span> cStateID <span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">pixel</span><br /><br /> <span style=\"color: #0000ff;\">activate</span> <span style=\"color: #0000ff;\">dialog</span> oDlg <span style=\"color: #0000ff;\">center</span>;<br /><br /> ferase<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"temp.ntx\"</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">// EOF </span></div>[/code:3ny3c4ll]",
"time": "00:45",
"topic": "Can TCOMBOBOX with 2 dimension array?",
"username": "James Bott"
}
] |
Can TCOMBOBOX with 2 dimension array?
|
[
{
"date": "2015-07-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dutch,\n\nI just noticed you wanted to use a 2-dimensional array. You will need to copy the two columns to single dimensional arrays. Or, you could copy the entire 2-dimensional array into a temp dbf and specify the column names. See another recent thread here about temp DBFs that are all in memory.\n\nJames",
"time": "00:51",
"topic": "Can TCOMBOBOX with 2 dimension array?",
"username": "James Bott"
}
] |
Can TCOMBOBOX with 2 dimension array?
|
[
{
"date": "2015-07-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear James,\n\nThank you, I got it now.",
"time": "08:30",
"topic": "Can TCOMBOBOX with 2 dimension array?",
"username": "dutch"
}
] |
Can TCOMBOBOX with 2 dimension array?
|
[
{
"date": "2015-10-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I am in need of creating a X,Y plot chart.\n\nIt seems that TGraph can only make time-series point and/or line charts, i.e. plot the value of Y and increment the X value by 1 unit for each data point of Y. Since there is no documentation for TGraph it is hard to tell if it is capable of X,Y charts. \n\nDoes anyone know? If so, do you have an example?\n\nJames",
"time": "20:37",
"topic": "Can TGraph do X,Y plots?",
"username": "James Bott"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2015-10-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nIn tgraph.prg we find:\n\n#Define GRAPH_TYPE_BAR 1\n#Define GRAPH_TYPE_LINE 2\n#Define GRAPH_TYPE_POINT 3\n#Define GRAPH_TYPE_PIE 4\n\nso it seems as a point type is supported.\n\nIn order to select a type we have to do:\n\noGraph:nType := GRAPH_TYPE_POINT\noGraph:Refresh()\n\nI have not tested it yet",
"time": "23:30",
"topic": "Can TGraph do X,Y plots?",
"username": "Antonio Linares"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2015-10-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This is the right way to use it. Using samples\\graph.prg example:\n\n[code=fw:d07ude0j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> GRAPH oGraph; <br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">200</span>; <br /> TYPE <span style=\"color: #000000;\">3</span>; <span style=\"color: #B900B9;\">// GRAPH_TYPE_...</span><br /> YVALUES 3D XGRID YGRID XVALUES LEGENDS <br /> </div>[/code:d07ude0j]\n\n[img:d07ude0j]https://bitbucket.org/fivetech/screenshots/downloads/graph_points.JPG[/img:d07ude0j]",
"time": "23:33",
"topic": "Can TGraph do X,Y plots?",
"username": "Antonio Linares"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2015-10-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nYes, I have done that for years. But that is a Time-Series chart. You cannot specify the X value, only the Y value. So, X is always 1,2,3,4...and they are at equally spaced intervals. These are basically bar charts, using points and lines instead of bars.\n\nI need to be able to plot user specified x and y points. E.G.:\n\nX, Y\n3.21,152\n5.13, 133\n7.67, 121\n etc.\n\nDoes that clarify it?\n\nThere is another issue I forgot to mention. It seems that the Y-axis always starts at zero--there seems to be no way to specify the y-axis starting value. Thus, for instance, if you have a bunch of points all around 80 they are all going to appear very close together (almost in a straight line) since the Y-axis will be from 0 to 100. I need to be able to make the Y-axis start at around 70 and go to 100. I can't see a way to do this. I see what appears to be a hard-coded zero in the TGraph code for the start of the Y-axis. \n\nJames",
"time": "23:57",
"topic": "Can TGraph do X,Y plots?",
"username": "James Bott"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2015-10-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nI am afraid that you need to review Class TGraph Method Paint() and implement your own painting method for a new type.\n\nI am not familiar with Class TGraph source code, so you may need to review it and modify it to your needs.",
"time": "00:04",
"topic": "Can TGraph do X,Y plots?",
"username": "Antonio Linares"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2015-10-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nYes, that was my plan and I have done it before. But, before I start, I just wanted to check to make sure that x,y plots were not possible, and/or to see if anyone had already made any such modifications.\n\nI was just looking at the code, and I forgot about another issue. It seems that the user defined X-axis label is printed on the Y-axis and visa versa. This makes it confusing when looking at the code since you don't know if it is just the label on the chart that is wrong, or are all the code vars containing a Y actually referring to the X-axis. This will be fun...\n\nJames",
"time": "00:24",
"topic": "Can TGraph do X,Y plots?",
"username": "James Bott"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James,\n\nI know it is an old post, but did you implement X,Y plots in TGraph?\n\nThank you\n\nAlvaro",
"time": "14:04",
"topic": "Can TGraph do X,Y plots?",
"username": "alvaro533"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Alvaro,\n\nSorry, no I never did. Most of my graphs are time series and TGraph works great for that. I can't remember what I did for the x,y plots that I needed back then, but I can find no evidence that I ever tried it. The TGraph code is quit complex and I expect it will take quite some time to modify it.\n\nRegards,\nJames",
"time": "06:27",
"topic": "Can TGraph do X,Y plots?",
"username": "James Bott"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"James Bott\":3eouymsl]Alvaro,\n\nSorry, no I never did. Most of my graphs are time series and TGraph works great for that. I can't remember what I did for the x,y plots that I needed back then, but I can find no evidence that I ever tried it. The TGraph code is quit complex and I expect it will take quite some time to modify it.\n\nRegards,\nJames[/quote:3eouymsl]\n\n\nThank you James, \n\nI modified the class yesterday to plot XY Charts. \n\nNew data:\n\n[code=fw:3eouymsl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br /><span style=\"color: #00D7D7;\">#Define</span> GRAPH_TYPE_XY_AQ <span style=\"color: #000000;\">6</span><br /><br /> <span style=\"color: #00C800;\">data</span> chart_top<br /> <span style=\"color: #00C800;\">data</span> chart_bottom<br /> <span style=\"color: #00C800;\">data</span> chart_left<br /> <span style=\"color: #00C800;\">data</span> chart_right<br /> <span style=\"color: #00C800;\">DATA</span> nXMaxVal <span style=\"color: #B900B9;\">// Max Value</span><br /> <span style=\"color: #00C800;\">DATA</span> nXMinVal <span style=\"color: #B900B9;\">// Min Value</span><br /> <span style=\"color: #00C800;\">data</span> XY_Values</div>[/code:3eouymsl]\n \nnew methods\n\n[code=fw:3eouymsl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #00C800;\">METHOD</span> aq_DrawLine<span style=\"color: #000000;\">(</span> nY, nX, nHigh, nWidth, nColor, lDotted , nPenwidth <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">METHOD</span> aq_DrawPoint<span style=\"color: #000000;\">(</span> nY, nX, nColor, lDotted , nPixels , nPenwidth <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">// --------------------------------------------------------------------------- //</span><br /><span style=\"color: #00C800;\">METHOD</span> aq_DrawLine<span style=\"color: #000000;\">(</span> nY1, nX1, nY2, nX2, nColor, lDotted , nPenwidth<span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGraph<br /><span style=\"color: #00C800;\">local</span> x1,x2,y1,y2<br /><span style=\"color: #00C800;\">local</span> era_nPenwidth<br /><br /><span style=\"color: #00C800;\">default</span> nPenwidth := <span style=\"color: #000000;\">3</span><br /><br />era_nPenwidth := ::<span style=\"color: #000000;\">nPenwidth</span><br />::<span style=\"color: #000000;\">nPenWidth</span> := nPenwidth<br /><br /><br />x1 := ::<span style=\"color: #000000;\">chart_left</span> + <span style=\"color: #000000;\">(</span>nX1-::<span style=\"color: #000000;\">nXMinVal</span> <span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">nXMaxval</span>-::<span style=\"color: #000000;\">nXMinVal</span><span style=\"color: #000000;\">)</span> * <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">chart_right</span> - ::<span style=\"color: #000000;\">chart_left</span> <span style=\"color: #000000;\">)</span><br />y1 := ::<span style=\"color: #000000;\">chart_bottom</span> - <span style=\"color: #000000;\">(</span>nY1-::<span style=\"color: #000000;\">nMinVal</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">nMaxval</span>-::<span style=\"color: #000000;\">nMinVal</span><span style=\"color: #000000;\">)</span> * <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">chart_bottom</span> - ::<span style=\"color: #000000;\">chart_top</span> <span style=\"color: #000000;\">)</span><br />x2 := ::<span style=\"color: #000000;\">chart_left</span> + <span style=\"color: #000000;\">(</span>nX2-::<span style=\"color: #000000;\">nXMinVal</span> <span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">nXMaxval</span>-::<span style=\"color: #000000;\">nXMinVal</span><span style=\"color: #000000;\">)</span> * <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">chart_right</span> - ::<span style=\"color: #000000;\">chart_left</span> <span style=\"color: #000000;\">)</span><br />y2 := ::<span style=\"color: #000000;\">chart_bottom</span> - <span style=\"color: #000000;\">(</span>nY2-::<span style=\"color: #000000;\">nMinVal</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">nMaxval</span>-::<span style=\"color: #000000;\">nMinVal</span><span style=\"color: #000000;\">)</span> * <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">chart_bottom</span> - ::<span style=\"color: #000000;\">chart_top</span> <span style=\"color: #000000;\">)</span><br /><br />::<span style=\"color: #000000;\">DrawLine</span><span style=\"color: #000000;\">(</span> y1, x1, y2, x2, nColor, lDotted <span style=\"color: #000000;\">)</span><br /><br />::<span style=\"color: #000000;\">nPenWidth</span> := era_nPenwidth<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">// --------------------------------------------------------------------------- //</span><br /><span style=\"color: #00C800;\">METHOD</span> aq_DrawPoint<span style=\"color: #000000;\">(</span> nY1, nX1, nColor, lDotted , npixels , nPenwidth <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGraph<br /><span style=\"color: #00C800;\">local</span> x1,y1<br /><span style=\"color: #00C800;\">local</span> era_nPenwidth<br /><br /><br /><span style=\"color: #00C800;\">default</span> nPenwidth := nPenwidth<br /><span style=\"color: #00C800;\">default</span> nPixels := <span style=\"color: #000000;\">7</span><br /><br />era_nPenwidth := ::<span style=\"color: #000000;\">nPenwidth</span><br />::<span style=\"color: #000000;\">nPenWidth</span> := <span style=\"color: #000000;\">4</span><br /><br /><br />nPixels := nPixels /<span style=\"color: #000000;\">2</span><br /><br />x1 := ::<span style=\"color: #000000;\">chart_left</span> + <span style=\"color: #000000;\">(</span>nX1-::<span style=\"color: #000000;\">nXMinVal</span> <span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">nXMaxval</span>-::<span style=\"color: #000000;\">nXMinVal</span><span style=\"color: #000000;\">)</span> * <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">chart_right</span> - ::<span style=\"color: #000000;\">chart_left</span> <span style=\"color: #000000;\">)</span><br />y1 := ::<span style=\"color: #000000;\">chart_bottom</span> - <span style=\"color: #000000;\">(</span>nY1-::<span style=\"color: #000000;\">nMinVal</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">nMaxval</span>-::<span style=\"color: #000000;\">nMinVal</span><span style=\"color: #000000;\">)</span> * <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">chart_bottom</span> - ::<span style=\"color: #000000;\">chart_top</span> <span style=\"color: #000000;\">)</span><br /><br />::<span style=\"color: #000000;\">DrawLine</span><span style=\"color: #000000;\">(</span> y1 , x1-nPixels , y1+nPixels, x1, nColor, lDotted <span style=\"color: #000000;\">)</span><br />::<span style=\"color: #000000;\">DrawLine</span><span style=\"color: #000000;\">(</span> y1+nPixels , x1 , y1, x1+nPixels, nColor, lDotted <span style=\"color: #000000;\">)</span><br />::<span style=\"color: #000000;\">DrawLine</span><span style=\"color: #000000;\">(</span> y1 , x1+nPixels , y1-nPixels, x1, nColor, lDotted <span style=\"color: #000000;\">)</span><br />::<span style=\"color: #000000;\">DrawLine</span><span style=\"color: #000000;\">(</span> y1-nPixels , x1 , y1 , x1-nPixels , nColor, lDotted <span style=\"color: #000000;\">)</span><br /><br />::<span style=\"color: #000000;\">nPenWidth</span> := era_nPenwidth<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /> </div>[/code:3eouymsl]\n\nThis line at the begining of method new and method redefine\n\n[code=fw:3eouymsl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> ::<span style=\"color: #000000;\">XY_Values</span> :=<span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /> </div>[/code:3eouymsl]\n\nThis lines in the Paint method after the tag // Graph borders\n\n[code=fw:3eouymsl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />::<span style=\"color: #000000;\">chart_top</span> := nTop<br />::<span style=\"color: #000000;\">chart_bottom</span> := nBottom<br />::<span style=\"color: #000000;\">chart_left</span> := nLeft<br />::<span style=\"color: #000000;\">chart_right</span> := nRight<br /> </div>[/code:3eouymsl]\n\n\nAnd finally this lines in the Paint method before the tag // legends or // Max, Min values\n\n[code=fw:3eouymsl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">nType</span> == GRAPH_TYPE_XY_AQ<br /> <span style=\"color: #00C800;\">FOR</span> nJ := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aSeries</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">for</span> nI := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">XY_Values</span><span style=\"color: #000000;\">[</span>nJ<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">-1</span><br /> ::<span style=\"color: #000000;\">aq_Drawline</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">XY_Values</span><span style=\"color: #000000;\">[</span>nJ, nI,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> , ::<span style=\"color: #000000;\">XY_Values</span><span style=\"color: #000000;\">[</span>nJ,nI,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> , ;<br /> ::<span style=\"color: #000000;\">XY_Values</span><span style=\"color: #000000;\">[</span>nJ, nI<span style=\"color: #000000;\">+1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> , ::<span style=\"color: #000000;\">XY_Values</span><span style=\"color: #000000;\">[</span>nJ, nI<span style=\"color: #000000;\">+1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>, ::<span style=\"color: #000000;\">aSeries</span><span style=\"color: #000000;\">[</span>nj,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span> nI<br /><br /> <span style=\"color: #00C800;\">if</span> len<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">XY_Values</span><span style=\"color: #000000;\">[</span>nJ<span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> == <span style=\"color: #000000;\">1</span><br /> ::<span style=\"color: #000000;\">aq_DrawPoint</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">XY_Values</span><span style=\"color: #000000;\">[</span>nJ, <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> , ::<span style=\"color: #000000;\">XY_Values</span><span style=\"color: #000000;\">[</span>nJ,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> , ::<span style=\"color: #000000;\">aSeries</span><span style=\"color: #000000;\">[</span>nj,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> ,, <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">next</span> nJ<br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lYVal</span><br /> ::<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">325</span> , <span style=\"color: #000000;\">80</span> , <span style=\"color: #ff0000;\">\"Hola\"</span> , ::<span style=\"color: #000000;\">aFont</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span>, rgb<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> , ::<span style=\"color: #000000;\">nTLeft</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /> </div>[/code:3eouymsl]\n\n\nThen in your prg code you have to put\n\n[code=fw:3eouymsl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> oChart:<span style=\"color: #000000;\">nType</span> := GRAPH_TYPE_XY_AQ<br /><br /> oChart:<span style=\"color: #000000;\">nMaxVal</span> := max_value <span style=\"color: #B900B9;\">// your calculated max value for Y axis</span><br /> oChart:<span style=\"color: #000000;\">nMinVal</span> := min_value <span style=\"color: #B900B9;\">// your calculated min value for Y axis</span><br /> oChart:<span style=\"color: #000000;\">nXMaxVal</span> := max_Xvalue <span style=\"color: #B900B9;\">// your calculated max value for X axis</span><br /> oChart:<span style=\"color: #000000;\">nXMinVal</span> := min_Xvalue <span style=\"color: #B900B9;\">// your calculated min value for X axis</span><br /><br /> oChart:<span style=\"color: #000000;\">AddSerie</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span> , <span style=\"color: #ff0000;\">\"name_or_the_serie1\"</span> , RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// empty array</span><br /> aadd<span style=\"color: #000000;\">(</span> oChart:<span style=\"color: #000000;\">XY_Values</span> , aArray1 <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// aArray1 is an array with the XY points i.e. { { 1.25 , 9.25} , { 1.5 , 9.452 } , ......}</span><br /><br /> oChart:<span style=\"color: #000000;\">AddSerie</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span> , <span style=\"color: #ff0000;\">\"name_or_the_serie2\"</span> , RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// empty array</span><br /> aadd<span style=\"color: #000000;\">(</span> oChart:<span style=\"color: #000000;\">XY_Values</span> , aArray2 <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// aArray2 is an array with the XY points i.e. { { 3.25 , 7.25} , { 2.5 , 8.452 } , ......}</span><br /><br />you may add more series<br /><br /> </div>[/code:3eouymsl]\n\n[code=fw:3eouymsl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> </div>[/code:3eouymsl]\n\n\nRegards",
"time": "09:53",
"topic": "Can TGraph do X,Y plots?",
"username": "alvaro533"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Alvaro,\n\nWow, very impressive. May I get a copy of your new tgraph.prg?\n\nYou can find my email address on my website [url:3o82zgb4]http://gointellitech.com[/url:3o82zgb4].",
"time": "17:54",
"topic": "Can TGraph do X,Y plots?",
"username": "James Bott"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"James Bott\":uc9ajr2k]Alvaro,\n\nWow, very impressive. May I get a copy of your new tgraph.prg?\n\nYou can find my email address on my website [url:uc9ajr2k]http://gointellitech.com[/url:uc9ajr2k].[/quote:uc9ajr2k]\n\nSent, regards\nAlvaro",
"time": "18:08",
"topic": "Can TGraph do X,Y plots?",
"username": "alvaro533"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Alvaro,\n\nWould you mind to post it here or send it to me by email, so we can include it in next FWH 18.02 ?\n\nmany thanks",
"time": "18:10",
"topic": "Can TGraph do X,Y plots?",
"username": "Antonio Linares"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Alvaro,\n\nIt is not clear to me if you are automatically finding the min and max for each axis in the class, or if you must do the calculation outside the class and pass those values.\n\nOne of the first programs I wrote (way back in the BASIC era, circa 1980), I wrote code to find those values. I discovered that it was a challenge to find those values since they needed to be rounded up (or down) to a reasonable number that made the chart look right. E.G. rounding 10.3 to 11 or 15 or whatever.\n\nOf course, being able to specify the ranges by overriding the internal calculations would also be useful.\n\n------------------------------\n\nMay I suggest changing this line:\n\n oChart:nType := GRAPH_TYPE_XY_AQ\n\nTo something like this:\n\n oChart:nType := GRAPH_TYPE_XY //AQ\n\nI am assuming AQ are your initials? The above change just keeps the naming consistent with the existing ones. \n\nIf you care to share this modified class with everyone, then I would also first make sure you have the latest copy of TGraph, and make your changes to that version. Also I would suggest adding comments at the top explaining your work and adding your name and contact info.\n\nI am looking forward to seeing your modified TGraph class.\n\nRegards,\nJames",
"time": "18:26",
"topic": "Can TGraph do X,Y plots?",
"username": "James Bott"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"James Bott\":3ofa5cfm]Alvaro,\n\nIt is not clear to me if you are automatically finding the min and max for each axis in the class, or if you must do the calculation outside the class and pass those values.\n\nOne of the first programs I wrote (way back in the BASIC era, circa 1980), I wrote code to find those values. I discovered that it was a challenge to find those values since they needed to be rounded up (or down) to a reasonable number that made the chart look right. E.G. rounding 10.3 to 11 or 15 or whatever.\n\nOf course, being able to specify the ranges by overriding the internal calculations would also be useful.\n\n------------------------------\n\nMay I suggest changing this line:\n\n oChart:nType := GRAPH_TYPE_XY_AQ\n\nTo something like this:\n\n oChart:nType := GRAPH_TYPE_XY //AQ\n\nI am assuming AQ are your initials? The above change just keeps the naming consistent with the existing ones. \n\nIf you care to share this modified class with everyone, then I would also first make sure you have the latest copy of TGraph, and make your changes to that version. Also I would suggest adding comments at the top explaining your work and adding your name and contact info.\n\nI am looking forward to seeing your modified TGraph class.\n\nRegards,\nJames[/quote:3ofa5cfm]\n\nI use this to calculate the min/max values, I will add to the class. Please send me the last one. I will also work on displaying the XTitles\n\n[code=fw:3ofa5cfm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> oChart:<span style=\"color: #000000;\">nXMaxVal</span> := max_Xvalue + <span style=\"color: #000000;\">(</span> max_Xvalue - min_Xvalue <span style=\"color: #000000;\">)</span> *.<span style=\"color: #000000;\">1</span><br /> oChart:<span style=\"color: #000000;\">nXMinVal</span> := min_Xvalue - <span style=\"color: #000000;\">(</span> max_Xvalue - min_Xvalue <span style=\"color: #000000;\">)</span> *.<span style=\"color: #000000;\">1</span><br /> </div>[/code:3ofa5cfm]\n\nRegards",
"time": "19:48",
"topic": "Can TGraph do X,Y plots?",
"username": "alvaro533"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I should clarify, in the beginning of this thread I was talking about making an x,y chart with just data points. This is also commonly called a scatter chart. For this type of chart the data points can be in any order. You can see a sample scatter chart here:\n\n[url:2xrnf1kl]https://www.highcharts.com/docs/chart-and-series-types/scatter-chart[/url:2xrnf1kl]\n\nThe line chart that TGraph has already, is a series chart where the X-axis data is in increasing order starting from the smallest point. An example might be temperature vs month-of-the-year. Here is a sample line chart:\n\n[url:2xrnf1kl]https://www.highcharts.com/docs/chart-and-series-types/line-chart[/url:2xrnf1kl]\n\nAlvaro, which type of chart are you looking for? What type of data are you working with?",
"time": "02:05",
"topic": "Can TGraph do X,Y plots?",
"username": "James Bott"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"James Bott\":2k9cmpsi]I should clarify, in the beginning of this thread I was talking about making an x,y chart with just data points. This is also commonly called a scatter chart. For this type of chart the data points can be in any order. You can see a sample scatter chart here:\n\n[url:2k9cmpsi]https://www.highcharts.com/docs/chart-and-series-types/scatter-chart[/url:2k9cmpsi]\n\nThe line chart that TGraph has already, is a series chart where the X-axis data is in increasing order starting from the smallest point. An example might be temperature vs month-of-the-year. Here is a sample line chart:\n\n[url:2k9cmpsi]https://www.highcharts.com/docs/chart-and-series-types/line-chart[/url:2k9cmpsi]\n\nAlvaro, which type of chart are you looking for? What type of data are you working with?[/quote:2k9cmpsi]\n\nI did the first one, the \"Scatter Chart\". It's is already working. I have to finish minor changes. I will send it to you when finished. In my modified class you can choose between drawing individual points or drawing a line between points, in this case in the same order that the points have in the array, although the distance between x values may not be constant and may increase and decrease.\n\nI forgot in my previous posts to credit the author of the excellent class, Alfredo Arteaga. \n\nRegards,\n\nAlvaro\n\nA working example of the modified class\n\n[img:2k9cmpsi]https://farm5.staticflickr.com/4653/40668023431_850c992d30_b.jpg[/img:2k9cmpsi]",
"time": "09:04",
"topic": "Can TGraph do X,Y plots?",
"username": "alvaro533"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":1x5e00ix]Alvaro,\n\nWould you mind to post it here or send it to me by email, so we can include it in next FWH 18.02 ?\n\nmany thanks[/quote:1x5e00ix]\n\nHi Antonio, sorry I skipped your message yesterday. If the class is going to be included in the next release of FWH I will polish it a little and I will add some comments. Give me a few days.\n\nAlvaro",
"time": "20:45",
"topic": "Can TGraph do X,Y plots?",
"username": "alvaro533"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Many thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "09:31",
"topic": "Can TGraph do X,Y plots?",
"username": "Antonio Linares"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2018-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":1rt50fs0]Many thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:1rt50fs0]\n\n\nAntonio, I just sent you an email with the class\nRegards",
"time": "16:51",
"topic": "Can TGraph do X,Y plots?",
"username": "alvaro533"
}
] |
Can TGraph do X,Y plots?
|
[
{
"date": "2011-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I would like to use TSButton (Drag and Drop) between SBUTTON but bDropOver is not working. Can it works with Drag and Drop features?",
"time": "12:23",
"topic": "Can TSButton use ::bDropOver?",
"username": "dutch"
}
] |
Can TSButton use ::bDropOver?
|
[
{
"date": "2009-05-17",
"forum": "FiveWin for Pocket PC",
"text": "[quote:f2xonx8q]Microsoft tells developers: do not count on us - just imitate iPhone by hand !\nMay 16, 2009 [Pocket PC phone] | By Edward J. R.\n\nThrough the voice of their MVPs, Microsoft suggests that with some tricks, i.e. workarounds, developers can get looks like in the iPhone. \n\nWhat is this? Why Microsoft simply couldn't provide proper APIs and class libraries to make implementation of finger-friendly UI easy and straightforward? Because Microsoft is belated with Windows Mobile 7 (that will have such classes), and Windows Mobile 6.5 simply doesn't have such stuff as finger-friendly libraries/APIs for programmers at all... \n\n... the standard controls in the Visual Studio Toolbox look a bit 'Windows 95-ish', but armed with some fairly simple programming techniques, a little knowledge of how controls get painted on the screen and the skills of a decent graphic artist, Windows Mobile developers can create applications that look great--[color=#FF0000:f2xonx8q][i:f2xonx8q][b:f2xonx8q]and enjoy the far superior productivity that developing with the .NET Compact Framework gives you[/b:f2xonx8q][/i:f2xonx8q][/color:f2xonx8q]. \n\n\n\n[url:f2xonx8q]http://forums.fivetechsupport.com/posting.php?mode=post&f=4[/url:f2xonx8q]\n\n[/quote:f2xonx8q]",
"time": "09:51",
"topic": "Can Windows Mobile UIs Look as Good as the iPhone",
"username": "Otto"
}
] |
Can Windows Mobile UIs Look as Good as the iPhone
|
[
{
"date": "2009-05-17",
"forum": "FiveWin for Pocket PC",
"text": "I saw on sdk there is a sample for the phone.lib but I not Know How we can create it:\n<!-- m --><a class=\"postlink\" href=\"http://www.microsoft.com/downloads/details.aspx?FamilyID=9996b314-0364-4623-9ede-0b5fbb133652&displaylang=en&Hash=puAFYIedi3ftTAUAtvTJC7mLKar0FoUaLE%2bEhU1XibYfpL310m31Y07yRLYuuYoBibtPTVIKxX9b6ag0runXZg%3d%3d\">http://www.microsoft.com/downloads/deta ... nXZg%3d%3d</a><!-- m -->",
"time": "15:43",
"topic": "Can Windows Mobile UIs Look as Good as the iPhone",
"username": "Silvio"
}
] |
Can Windows Mobile UIs Look as Good as the iPhone
|
[
{
"date": "2009-05-18",
"forum": "FiveWin for Pocket PC",
"text": "I inserted the wrong link. This is the right one:\n\n\n<!-- m --><a class=\"postlink\" href=\"http://www.msteched.com/online/view.aspx?tid=a6641301-add9-4a03-b767-53197c3baf74\">http://www.msteched.com/online/view.asp ... 197c3baf74</a><!-- m -->\n\nRegards,\nOtto",
"time": "06:03",
"topic": "Can Windows Mobile UIs Look as Good as the iPhone",
"username": "Otto"
}
] |
Can Windows Mobile UIs Look as Good as the iPhone
|
[
{
"date": "2009-05-18",
"forum": "FiveWin for Pocket PC",
"text": "Otto,\n\nHave a look a Microsoft next Windows Mobile version:\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=19&t=14758\">viewtopic.php?f=19&t=14758</a><!-- l -->",
"time": "06:29",
"topic": "Can Windows Mobile UIs Look as Good as the iPhone",
"username": "Antonio Linares"
}
] |
Can Windows Mobile UIs Look as Good as the iPhone
|
[
{
"date": "2020-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "As a inspector, we can use : xbrowser(oWnd)\n\nCan we also use it to show all memory variables that are in use ?\n\nNow I put a msginfo(cData) to see what is de value if i'm not sure..\n\nMaybe it can be done with the power of Xbrowse(r)",
"time": "14:35",
"topic": "Can Xbrowse show ALL used Mem variables ?",
"username": "Marc Venken"
}
] |
Can Xbrowse show ALL used Mem variables ?
|
[
{
"date": "2020-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please try this program\n[code=fw:2dflv4ch]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">(</span> cParam <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> nn := <span style=\"color: #ff0000;\">\"kk\"</span><br /><br /> func2<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> func2<span style=\"color: #000000;\">(</span> a, b, c <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> x := <span style=\"color: #000000;\">20</span>, y := <span style=\"color: #000000;\">30</span><br /><br /> func3<span style=\"color: #000000;\">(</span> a+b, b+c, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> func3<span style=\"color: #000000;\">(</span> x, y, z <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> p := <span style=\"color: #000000;\">100</span>, q, r := date<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> StackVars<span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> StackVars<span style=\"color: #000000;\">(</span> lBrw <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> n := <span style=\"color: #000000;\">1</span>, aInfo := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>, nParam, nLocal<br /><br /> <span style=\"color: #00C800;\">while</span> ! Empty<span style=\"color: #000000;\">(</span> ProcName<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br />#ifdef __XHARBOUR__<br /><br /> AAdd<span style=\"color: #000000;\">(</span> aInfo, <span style=\"color: #000000;\">{</span> ProcName<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span>, cFileNoPath<span style=\"color: #000000;\">(</span> ProcFile<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, ProcLine<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /><br />#endif<br /><br /> <span style=\"color: #00C800;\">if</span> !Empty<span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">for</span> nParam = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> ParamCount<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span><br /> AAdd<span style=\"color: #000000;\">(</span> ATail<span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">]</span>, GetParam<span style=\"color: #000000;\">(</span> n, nParam <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #00C800;\">for</span> nLocal = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> LocalCount<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span><br /> AAdd<span style=\"color: #000000;\">(</span> ATail<span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span>, GetLocal<span style=\"color: #000000;\">(</span> n, nLocal <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #00C800;\">endif</span><br /><br />#ifndef __XHARBOUR__<br /><br /> AAdd<span style=\"color: #000000;\">(</span> aInfo, <span style=\"color: #000000;\">{</span> ProcName<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span>, cFileNoPath<span style=\"color: #000000;\">(</span> ProcFile<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, ProcLine<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>, <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /><br />#endif<br /><br /> n++<br /> end<br /><br />#ifndef __XHARBOUR__<br /><br /> <span style=\"color: #00C800;\">if</span> !Empty<span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">for</span> nParam = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> ParamCount<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span><br /> AAdd<span style=\"color: #000000;\">(</span> ATail<span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">]</span>, GetParam<span style=\"color: #000000;\">(</span> n, nParam <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #00C800;\">for</span> nLocal = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> LocalCount<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span><br /> AAdd<span style=\"color: #000000;\">(</span> ATail<span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span>, GetLocal<span style=\"color: #000000;\">(</span> n, nLocal <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #00C800;\">endif</span><br /><br />#endif<br /><br /> <span style=\"color: #00C800;\">if</span> lBrw == .t.<br /> BrowseStack<span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> aInfo<br /><br /><span style=\"color: #00C800;\">function</span> BrowseStack<span style=\"color: #000000;\">(</span> aStack <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oFont, oBrw1, oBrw2, oBrw3, nCol<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">710</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont ;<br /> <span style=\"color: #0000ff;\">TITLE</span> cFileNoPath<span style=\"color: #000000;\">(</span> ExeName<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\" : STACK\"</span> RESIZABLE<br /><br /> nCol := <span style=\"color: #000000;\">10</span><br /><br /> @ <span style=\"color: #000000;\">10</span>, nCol <span style=\"color: #0000ff;\">XBROWSE</span> oBrw1 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> DATASOURCE aStack COLUMNS <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">3</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"PROCEDURE\"</span>, <span style=\"color: #ff0000;\">\"MODULE\"</span>, <span style=\"color: #ff0000;\">\"LINE\"</span> ;<br /> COLSIZES <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #000000;\">-12</span>, <span style=\"color: #ff0000;\">\"999999\"</span> ;<br /> CELL LINES NOBORDER FOOTERS<br /><br /> WITH OBJECT oBrw1<br /> :<span style=\"color: #000000;\">nStretchCol</span> := <span style=\"color: #000000;\">1</span><br /> :<span style=\"color: #000000;\">lHScroll</span> := .f.<br /> :<span style=\"color: #000000;\">lVScroll</span> := .f.<br /> :<span style=\"color: #000000;\">bRecSelData</span> := <span style=\"color: #000000;\">{</span> |o| o:<span style=\"color: #000000;\">BookMark</span> <span style=\"color: #000000;\">}</span><br /> :<span style=\"color: #000000;\">bRecSelFooter</span> := <span style=\"color: #000000;\">{</span> |o| o:<span style=\"color: #000000;\">nLen</span> <span style=\"color: #000000;\">}</span><br /> :<span style=\"color: #000000;\">nRecSelWidth</span> := <span style=\"color: #ff0000;\">\"99\"</span><br /><br /> :<span style=\"color: #000000;\">bChange</span> := < ||<br /> oBrw2:<span style=\"color: #000000;\">aArrayData</span> := oBrw1:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">]</span><br /> oBrw2:<span style=\"color: #000000;\">GoTop</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oBrw2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oBrw3:<span style=\"color: #000000;\">aArrayData</span> := oBrw1:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span><br /> oBrw3:<span style=\"color: #000000;\">GoTop</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oBrw3:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> ><br /><br /> :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END<br /><br /> nCol += oBrw1:<span style=\"color: #000000;\">nWidth</span><br /><br /> @ <span style=\"color: #000000;\">10</span>, nCol <span style=\"color: #0000ff;\">XBROWSE</span> oBrw2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> DATASOURCE aStack<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span> ;<br /> COLUMNS <span style=\"color: #000000;\">{</span> || ValType<span style=\"color: #000000;\">(</span> oBrw2:<span style=\"color: #000000;\">aRow</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span>, <span style=\"color: #000000;\">1</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"TYP\"</span>, <span style=\"color: #ff0000;\">\"PARAM\"</span> ;<br /> CELL LINES NOBORDER FOOTERS<br /><br /> WITH OBJECT oBrw2<br /> :<span style=\"color: #000000;\">nStretchCol</span> := <span style=\"color: #000000;\">2</span><br /> :<span style=\"color: #000000;\">lHScroll</span> := .f.<br /> :<span style=\"color: #000000;\">lVScroll</span> := .f.<br /> :<span style=\"color: #000000;\">bRecSelData</span> := <span style=\"color: #000000;\">{</span> |o| o:<span style=\"color: #000000;\">BookMark</span> <span style=\"color: #000000;\">}</span><br /> :<span style=\"color: #000000;\">bRecSelFooter</span> := <span style=\"color: #000000;\">{</span> |o| o:<span style=\"color: #000000;\">nLen</span> <span style=\"color: #000000;\">}</span><br /> :<span style=\"color: #000000;\">nRecSelWidth</span> := <span style=\"color: #ff0000;\">\"99\"</span><br /><br /> :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END<br /><br /> nCol += oBrw2:<span style=\"color: #000000;\">nWidth</span><br /><br /> @ <span style=\"color: #000000;\">10</span>, nCol <span style=\"color: #0000ff;\">XBROWSE</span> oBrw3 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> DATASOURCE aStack<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span> ;<br /> COLUMNS <span style=\"color: #000000;\">{</span> || ValType<span style=\"color: #000000;\">(</span> oBrw3:<span style=\"color: #000000;\">aRow</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span>, <span style=\"color: #000000;\">1</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"TYP\"</span>, <span style=\"color: #ff0000;\">\"LOCAL\"</span> ;<br /> CELL LINES NOBORDER FOOTERS<br /><br /> WITH OBJECT oBrw3<br /> :<span style=\"color: #000000;\">nStretchCol</span> := <span style=\"color: #000000;\">2</span><br /> :<span style=\"color: #000000;\">lHScroll</span> := .f.<br /> :<span style=\"color: #000000;\">lVScroll</span> := .f.<br /> :<span style=\"color: #000000;\">bRecSelData</span> := <span style=\"color: #000000;\">{</span> |o| o:<span style=\"color: #000000;\">BookMark</span> <span style=\"color: #000000;\">}</span><br /> :<span style=\"color: #000000;\">bRecSelFooter</span> := <span style=\"color: #000000;\">{</span> |o| o:<span style=\"color: #000000;\">nLen</span> <span style=\"color: #000000;\">}</span><br /> :<span style=\"color: #000000;\">nRecSelWidth</span> := <span style=\"color: #ff0000;\">\"99\"</span><br /><br /> :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2dflv4ch]",
"time": "03:46",
"topic": "Can Xbrowse show ALL used Mem variables ?",
"username": "nageswaragunupudi"
}
] |
Can Xbrowse show ALL used Mem variables ?
|
[
{
"date": "2020-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Is it possible to show the var names also ?\n\ncData:= \"Test\"\n\nTest is in the browse\n\nCan the varname cData also be there ?",
"time": "09:32",
"topic": "Can Xbrowse show ALL used Mem variables ?",
"username": "Marc Venken"
}
] |
Can Xbrowse show ALL used Mem variables ?
|
[
{
"date": "2020-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Marc,\n\n[url:3ef7mo6y]https://harbour.github.io/doc/harbour.html#__mvdbginfo[/url:3ef7mo6y]\n\n[code=fw:3ef7mo6y]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"hbmemvar.ch\"</span><br /><br />MEMVAR cPublic<br />MEMVAR cPrivate<br />MEMVAR ccPublic<br />MEMVAR ccPrivate<br /><br />PROCEDURE Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> nCount, tmp, xValue, cName<br /><br /> nCount := __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">FOR</span> tmp := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nCount<br /> xValue := __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC, tmp, @cName <span style=\"color: #000000;\">)</span><br /> ? tmp, cName, xValue<br /> <span style=\"color: #00C800;\">NEXT</span><br /><br /> ? <span style=\"color: #ff0000;\">\"PUBLIC=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC <span style=\"color: #000000;\">)</span><br /> ? <span style=\"color: #ff0000;\">\"PRIVATE=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PRIVATE <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">PUBLIC</span> cPublic := <span style=\"color: #ff0000;\">\"cPublic in MAIN\"</span><br /><br /> ? <span style=\"color: #ff0000;\">\"PUBLIC=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC <span style=\"color: #000000;\">)</span><br /> ? <span style=\"color: #ff0000;\">\"PRIVATE=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PRIVATE <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">PRIVATE</span> cPrivate := <span style=\"color: #ff0000;\">\"cPrivate in MAIN\"</span><br /><br /> ? <span style=\"color: #ff0000;\">\"PUBLIC=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC <span style=\"color: #000000;\">)</span><br /> ? <span style=\"color: #ff0000;\">\"PRIVATE=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PRIVATE <span style=\"color: #000000;\">)</span><br /><br /> CountMemvars<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> ? <span style=\"color: #ff0000;\">\"Back in Main\"</span><br /> ? <span style=\"color: #ff0000;\">\"PUBLIC=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC <span style=\"color: #000000;\">)</span><br /> ? <span style=\"color: #ff0000;\">\"PRIVATE=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PRIVATE <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> PROCEDURE CountMemvars<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> nCount, tmp, xValue, cName<br /><br /> <span style=\"color: #00C800;\">PUBLIC</span> ccPublic := <span style=\"color: #ff0000;\">\"ccPublic\"</span><br /> <span style=\"color: #00C800;\">PRIVATE</span> ccPrivate := <span style=\"color: #ff0000;\">\"ccPrivate\"</span><br /><br /> ? <span style=\"color: #ff0000;\">\"In CountMemvars\"</span><br /> ? <span style=\"color: #ff0000;\">\"PUBLIC=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC <span style=\"color: #000000;\">)</span><br /> ? <span style=\"color: #ff0000;\">\"PRIVATE=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PRIVATE <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">PRIVATE</span> cPublic := <span style=\"color: #ff0000;\">\"cPublic\"</span><br /><br /> ? <span style=\"color: #ff0000;\">\"PUBLIC=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC <span style=\"color: #000000;\">)</span><br /> ? <span style=\"color: #ff0000;\">\"PRIVATE=\"</span>, __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PRIVATE <span style=\"color: #000000;\">)</span><br /><br /> nCount := __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PRIVATE <span style=\"color: #000000;\">)</span> + <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #00C800;\">FOR</span> tmp := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nCount<br /> xValue := __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PRIVATE, tmp, @cName <span style=\"color: #000000;\">)</span><br /> ? tmp, <span style=\"color: #ff0000;\">\"=\"</span>, cName, xValue<br /> <span style=\"color: #00C800;\">NEXT</span><br /><br /> nCount := __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC <span style=\"color: #000000;\">)</span> + <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #00C800;\">FOR</span> tmp := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nCount<br /> xValue := __mvDbgInfo<span style=\"color: #000000;\">(</span> HB_MV_PUBLIC, tmp, @cName <span style=\"color: #000000;\">)</span><br /> ? tmp, <span style=\"color: #ff0000;\">\"=\"</span>, cName, xValue<br /> <span style=\"color: #00C800;\">NEXT</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span></div>[/code:3ef7mo6y]",
"time": "21:17",
"topic": "Can Xbrowse show ALL used Mem variables ?",
"username": "Antonio Linares"
}
] |
Can Xbrowse show ALL used Mem variables ?
|
[
{
"date": "2017-11-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hey,\n\nCan Xbrowse show's a array/dbf with colorcodes in hex. Format like #4286f4\n\nI need to show colors codes in Hex",
"time": "00:57",
"topic": "Can Xbrowse show Hex. Color codes",
"username": "Marc Venken"
}
] |
Can Xbrowse show Hex. Color codes
|
[
{
"date": "2017-11-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Colors with notation like \"#rrggbb\" can be converted to normal RGB values with this function:\n[code=fw:jq89ls1t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> X2RGB<span style=\"color: #000000;\">(</span> cClr <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> r := HEXTONUM<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">(</span> cClr, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> g := HEXTONUM<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">(</span> cClr, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> b := HEXTONUM<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">(</span> cClr, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> nRGB<span style=\"color: #000000;\">(</span> r, g, b <span style=\"color: #000000;\">)</span><br /> </div>[/code:jq89ls1t]\n\nFor example, X2RGB( \"#4286f4\" ) --> 16025154",
"time": "01:31",
"topic": "Can Xbrowse show Hex. Color codes",
"username": "nageswaragunupudi"
}
] |
Can Xbrowse show Hex. Color codes
|
[
{
"date": "2018-06-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nWe have a Die-Hard fan for Mac in our soccer group. We use a FWH with Maria DB online program, but I think that will not run on Mac.\n\nAre there Win emulators or so on Mac to get it going ?",
"time": "16:12",
"topic": "Can a FWH-32 Bit win program run on a Mac",
"username": "Marc Venken"
}
] |
Can a FWH-32 Bit win program run on a Mac
|
[
{
"date": "2018-06-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In 2015 there was a solution, but anno 2018 there is a new way.\n\n\nFrom Antonio\n\nPuedes ejecutar tu aplicación FWH para Windows directamente en Mac usando: \n\n<!-- m --><a class=\"postlink\" href=\"http://winebottler.kronenberg.org/\">http://winebottler.kronenberg.org/</a><!-- m -->\n\nFiveMac te permite que sea una aplicación nativa propia de OSX ( Mac ).",
"time": "16:17",
"topic": "Can a FWH-32 Bit win program run on a Mac",
"username": "Marc Venken"
}
] |
Can a FWH-32 Bit win program run on a Mac
|
[
{
"date": "2018-06-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Marc,\n\nTry WinBottler",
"time": "16:34",
"topic": "Can a FWH-32 Bit win program run on a Mac",
"username": "Antonio Linares"
}
] |
Can a FWH-32 Bit win program run on a Mac
|
[
{
"date": "2018-06-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi\nYou can install Vmware Fusion and run Windows on the Mac.\nI've been using it for over 10 years and it's great. No problem at all.",
"time": "16:34",
"topic": "Can a FWH-32 Bit win program run on a Mac",
"username": "Massimo Linossi"
}
] |
Can a FWH-32 Bit win program run on a Mac
|
[
{
"date": "2018-06-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I use Parallels on an iMac 27\" and a MacBook Pro ( newest model ). I do all my programming on it now. \n\nParallels has a Cohesion mode so you do not have to see the Windows desktop. Just open the application and then Save on Dock. The icon to start the program will show like on the Windows task bar. Click it to run side by side with the Mac applications. It opens it like it normally would, and it runs perfectly. I have my Windows editor ( UE Studio ), Visual Studio 2017, my applications, and a few others all running on the same desktop as all of the Mac versions. It is seamless.",
"time": "17:09",
"topic": "Can a FWH-32 Bit win program run on a Mac",
"username": "TimStone"
}
] |
Can a FWH-32 Bit win program run on a Mac
|
[
{
"date": "2018-06-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I will try this approach.\n\nThanks all.",
"time": "08:43",
"topic": "Can a FWH-32 Bit win program run on a Mac",
"username": "Marc Venken"
}
] |
Can a FWH-32 Bit win program run on a Mac
|
[
{
"date": "2018-06-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You can try a copy of Parallels at no cost. If your customer loves the Mac, they will love this option because it simply allows the program to run just like all their Mac programs, does not require a reboot into a different OS, and the support is excellent.",
"time": "17:45",
"topic": "Can a FWH-32 Bit win program run on a Mac",
"username": "TimStone"
}
] |
Can a FWH-32 Bit win program run on a Mac
|
[
{
"date": "2008-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I need to resize a dialog that is displaying an image. If the user selects to stretch the current image or display another one with different size, then the dialog changes it size to the new one. Can this be done ? Thank you.",
"time": "09:04",
"topic": "Can a dialog be resized ?",
"username": "HunterEC"
}
] |
Can a dialog be resized ?
|
[
{
"date": "2008-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gustavo,\r\n\r\noDlg:SetSize( nNewWidth, nNewHeight )\r\n\r\nor simply:\r\n\r\noDlg:nWidth := ...\r\noDlg:nHeight := ...\r\n\r\nWith oDlg:SetSize() you do it in one single step.",
"time": "11:08",
"topic": "Can a dialog be resized ?",
"username": "Antonio Linares"
}
] |
Can a dialog be resized ?
|
[
{
"date": "2008-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello HunterEC, \r\nYour question is : the dialog resized to the Image-size.\r\nShows this Screenshot, what you want to do ?\r\nThe Preview of the real Alpha-Channel-BMP,\r\nis shown in a adjusted Dialog in relation to the Image-size.\r\n\r\n[img:cpf44mlu]http://www.pflegeplus.com/pictures/dialogadjust.jpg[/img:cpf44mlu]\r\n\r\n[code:cpf44mlu]\n\n// The Dialog-Button to Show a adjusted-Dialog\n// -----------------------------------------------------------\n\nREDEFINE BUTTONBMP oBtn12 ID 75 OF oDlg3 ;\nACTION ( ALPHA_IMG(oDlg3, cImage) ) ; \nBITMAP \"preview\" PROMPT \" &Alpha-Channel\" TEXTRIGHT\noBtn12:cTooltip = { \"Preview\" + CRLF + ;\n \"Alpha-Channel\",\"Preview\", 1, CLR_BLACK, 14089979 } \n\n\n// ------------ Image-Resource in Folder for normal Preview \n// ------------on Record-change in xBrowse => oBMP10:Refresh() -----\n\n\nREDEFINE BITMAP oBMP10 ID 210 ADJUST RESOURCE \"Blanc\" OF oFolder:aDialogs[1] UPDATE\noBMP10:bPainted := {|hDC| DRAW_IMG1( oBMP10, cIMAGE ) }\n\n\n// ------------ IMAGE - Preview in Folder -----------------------------------\n\nFUNCTION DRAW_IMG1( oBitmap, cBitmap)\n\nDEFINE IMAGE oImage FILENAME \"&c_Path\\\" + ALLTRIM(cSUBDIR) + cBitmap \n\n// Image-Size adjusted to BMP-resource in Folder \n// If the Image is bigger, it is reduced to the < TBitmap-Resource > size\n// --------------------------------------------------------------------------------\naRect := GETCLIENTRECT( oBitmap:hWnd )\nhDC := oBitmap:GETDC()\n\nIF nWIDTH < aRect[4] .and. nHEIGHT < aRect[3] \n\tPalBmpDraw( hDC, 0, 0, oImage:hBitmap, , nWIDTH, nHEIGHT ) \nENDIF\n\nIF nWIDTH > aRect[4] .and. nHEIGHT <= aRect[3] \n nNewproz := ( aRect[4] / nWIDTH ) * 100\n\tnNewHeight := ( nHEIGHT / 100 ) * nNewproz\n\tPalBmpDraw( hDC, 0, 0, oImage:hBitmap, , aRect[4], nNewHeight ) \nENDIF\n\nIF nWIDTH <= aRect[4] .and. nHEIGHT > aRect[3] \n\tnNewproz := ( aRect[4] / nHEIGHT ) * 100\n\tnNewWidth := ( nWIDTH / 100 ) * nNewproz\n\tPalBmpDraw( hDC, 0, 0, oImage:hBitmap, , nNewWidth, aRect[3] ) \nENDIF\n\nIF nWIDTH > aRect[4] .and. nHEIGHT > aRect[3] \n\tnNewprozW := ( aRect[4] / nWIDTH ) * 100\n\tnNewprozH := ( aRect[4] / nHEIGHT ) * 100\n\tnNewWidth := ( nWIDTH / 100 ) * nNewprozW\n\tnNewHeight := ( nHEIGHT / 100 ) * nNewprozW\n\tPalBmpDraw( hDC, 0, 0, oImage:hBitmap, , nNewWidth, nNewHeight ) \nENDIF\n\nlRESIZE := .F.\n\nReleaseDC(hDC)\n\nRETURN( NIL )\n\n// ------------ ALPHA- IMAGE ( Dialog adjusted to Image ) ------------\n//------------- give a little bit space around the Image ----------\n// nHEIGHT + 50, nWIDTH + 40 \n// take care of the Dialog-border : ABPaint( hDC, 10, 10 ......\n\nFUNCTION ALPHA_IMG(oDlg3, cBitmap)\nLocal oDlg, oBmp, oBrush, oBtn\n\n// nHeight = Image-Height\n// nWidth := Image-Width\n\nDEFINE BRUSH oBrush STYLE \"BORLAND\"\nDEFINE BITMAP oBmp FILENAME \"&c_Path\\\" + ALLTRIM(cSUBDIR) + cBITMAP \n\nDEFINE DIALOG oDlg FROM 35, 20 TO nHEIGHT + 50, nWIDTH + 40 ;\n OF oDlg3 COLOR 0, \"N/W\" BRUSH oBrush ;\n TITLE \"BMP with Alpha-Channel\" PIXEL \n\nACTIVATE DIALOG oDlg ;\nON PAINT ABPaint( hDC, 10, 10, oBmp:hBitmap, 220 ) \n\noBrush:End()\noBmp:End()\n\nRETURN( NIL )\n\n[/code:cpf44mlu]\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "12:02",
"topic": "Can a dialog be resized ?",
"username": "ukoenig"
}
] |
Can a dialog be resized ?
|
[
{
"date": "2008-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, Ukoenig:\r\n\r\nThank you very much for your help. Seems that both of your answers are what I'm looking for. I'll give it a try.",
"time": "17:06",
"topic": "Can a dialog be resized ?",
"username": "HunterEC"
}
] |
Can a dialog be resized ?
|
[
{
"date": "2008-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello HunterEC,\r\n\r\nto define the dialog-size, You have to use the Image-size\r\nwith a bit space around, like shown in the sample.\r\nThe array < aRect > will give You the size you need :\r\nnWIDTH = aRect[4], nHEIGHT = aRect[3] \r\n\r\n// Image-Size in Dialog-resource\r\n// ---------------------------------------\r\naRect := GETCLIENTRECT( oBitmap:hWnd )\r\nhDC := oBitmap:GETDC()\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "17:16",
"topic": "Can a dialog be resized ?",
"username": "ukoenig"
}
] |
Can a dialog be resized ?
|
[
{
"date": "2022-05-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I normally create a toolbar using the command DEFINE BUTTONBAR oBar OF oWnd SIZE 30,33 \nIs it possible to have one button that is actually longer than that?\nTIA",
"time": "07:03",
"topic": "Can a toolbar button be of different size?",
"username": "hua"
}
] |
Can a toolbar button be of different size?
|
[
{
"date": "2022-05-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Any button created by \"DEFINE BUTTON OF oBar\" will be of the same size only.\nBut after defining all buttons, we can create any control on the bar in the space not occupied by the buttons. Same way we can create a button of different width by\n[code=fw:uhdf5pgf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />@ r, c <span style=\"color: #0000ff;\">BTNBMP</span> oBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"prompt\"</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">SIZE</span> w,h <span style=\"color: #0000ff;\">PIXEL</span><br /> </div>[/code:uhdf5pgf]",
"time": "20:30",
"topic": "Can a toolbar button be of different size?",
"username": "nageswaragunupudi"
}
] |
Can a toolbar button be of different size?
|
[
{
"date": "2022-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you for the reply Rao.\nI'll experiment with it a bit",
"time": "03:21",
"topic": "Can a toolbar button be of different size?",
"username": "hua"
}
] |
Can a toolbar button be of different size?
|
[
{
"date": "2022-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "For some reason, I nothing happens when I click on the button. \nBut was able triggering it programmatically using oBtn:click(). Strange",
"time": "04:27",
"topic": "Can a toolbar button be of different size?",
"username": "hua"
}
] |
Can a toolbar button be of different size?
|
[
{
"date": "2022-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"hua\":2ayd9eb9]For some reason, I nothing happens when I click on the button. \nBut was able triggering it programmatically using oBtn:click(). Strange[/quote:2ayd9eb9]\n\nDiscoevered the reason. I can't place @ r, c BTNBMP oBtn PROMPT \"prompt\" OF oBar SIZE w,h PIXEL at oDlg:bInit",
"time": "09:36",
"topic": "Can a toolbar button be of different size?",
"username": "hua"
}
] |
Can a toolbar button be of different size?
|
[
{
"date": "2022-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"hua\":33i4sip6]For some reason, I nothing happens when I click on the button. \nBut was able triggering it programmatically using oBtn:click(). Strange[/quote:33i4sip6]\n\nDiscovered the reason. I can't place @ r, c BTNBMP oBtn PROMPT \"prompt\" OF oBar SIZE w,h PIXEL at oDlg:bInit",
"time": "09:36",
"topic": "Can a toolbar button be of different size?",
"username": "hua"
}
] |
Can a toolbar button be of different size?
|
[
{
"date": "2006-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Everybody,\n\nI am told the following file is a \"digitized binary image\".\n\nCan someone let me know if there is any way to read it with Fivewin.\n\n\n[url]\n<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/02efc19d51/00000001.ECG.html\">http://hyperupload.com/download/02efc19 ... 1.ECG.html</a><!-- m --> \n[/url]\n\nThanks,\n\nJeff",
"time": "00:13",
"topic": "Can anyone read this file in FiveWin",
"username": "Jeff Barnes"
}
] |
Can anyone read this file in FiveWin
|
[
{
"date": "2006-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Jeff,\n\nYou might look at <!-- w --><a class=\"postlink\" href=\"http://www.leadtools.com\">www.leadtools.com</a><!-- w -->. They have a medical imaging api and C++ class libraries. I don't know if they support your format.\n\nJames",
"time": "02:39",
"topic": "Can anyone read this file in FiveWin",
"username": "James Bott"
}
] |
Can anyone read this file in FiveWin
|
[
{
"date": "2006-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks James ... I sent them an e-mail.\n\nI hope they can help.\n\n\nJeff",
"time": "06:07",
"topic": "Can anyone read this file in FiveWin",
"username": "Jeff Barnes"
}
] |
Can anyone read this file in FiveWin
|
[
{
"date": "2006-12-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Jeff,\n\nECG is a Electro Cardio Graph. You must review the next articles in Code Project:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.codeproject.com/tools/ecg_dsp.asp\">http://www.codeproject.com/tools/ecg_dsp.asp</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://www.codeproject.com/tools/ECG_1_to_TXT.asp\">http://www.codeproject.com/tools/ECG_1_to_TXT.asp</a><!-- m -->\n\nBest regards,\n\nFelix",
"time": "10:06",
"topic": "Can anyone read this file in FiveWin",
"username": "Baxajaun"
}
] |
Can anyone read this file in FiveWin
|
[
{
"date": "2006-12-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "you cam modify tgraph class\nthere is an sample Timer test as your egc graph\n[code:1r6fsed1]// Program : Timer test (Compilar con B.Bat : B TstTimer)\n// Author : Arteaga\n\n#Include \"Fivewin.Ch\"\n\n#Define GRAPH_TYPE_BAR 1\n#Define GRAPH_TYPE_LINE 2\n\nStatic oWnd, oGraph, oTimer, aVals, nP\n\nFUNCTION FWGraphics()\n LOCAL oReg, oIcon\n nP:=19\n aVals:=Array(20)\n Afill(aVals,0)\n\n DEFINE WINDOW oWnd TITLE \"TGraph, timer test\" FROM 0, 0 TO 7,40\n oGraph:=TGraph():New(0,0,oWnd,oWnd:nWidth()-8,oWnd:nHeight()-30)\n oGraph:cPicture := \"999\"\n oGraph:l3D := .F.\n oGraph:aYVals := {}\n oGraph:lDotted := .F.\n oGraph:lLegends := .F.\n oGraph:lTitle := .F.\n oGraph:lPopUp := .T.\n oGraph:nPenWidth:= 1\n oGraph:nClrBack := CLR_BLACK\n oGraph:nClrGrid := CLR_GREEN\n oGraph:nType := GRAPH_TYPE_LINE\n\n aVals[19] := 15\n aVals[20] := 150\n\n oGraph:AddSerie(aVals, \"\", RGB(255, 255, 0))\n\n Define Timer oTimer Interval 900 Action Update() OF oWnd\n Activate Timer oTimer\n\n WndCenter(oWnd:hWnd)\n\n ACTIVATE WINDOW oWnd ;\n ON PAINT (oGraph:nWidth:=oWnd:nWidth()- 8, ;\n oGraph:nHeight:=oWnd:nHeight-30, ;\n oGraph:Refresh(.f.))\n\n oTimer:End()\n\nRETURN (NIL)\n\nFunction Update(oReg)\n LOCAL aTmp :={150, 15,135, 30,120, 45,105, 60, 90, 75,;\n 75, 90, 60,105, 45,120, 30,135, 15,150 }\n LOCAL aTemp[20]\n nP--\n nP:=IF(nP=0,20,nP)\n ACopy(aVals,aTemp,2)\n aTemp[20]:=aTmp[nP]\n aVals:=AClone(aTemp)\n SysRefresh()\n oGraph:aData[1]:=aVals\n oGraph:Refresh()\nRETURN (NIL)[/code:1r6fsed1]",
"time": "00:03",
"topic": "Can anyone read this file in FiveWin",
"username": "Silvio"
}
] |
Can anyone read this file in FiveWin
|
[
{
"date": "2006-08-09",
"forum": "FiveWin for CA-Clipper",
"text": "Dear all,\n\nI'm use FiveWin 2.1c, It's possible to change FONT in tooltip of TSButton ?\n\nBest Regrad,\n\nPeter",
"time": "04:54",
"topic": "Can change FONT in Tooltip ?",
"username": "Peter"
}
] |
Can change FONT in Tooltip ?
|
[
{
"date": "2006-08-09",
"forum": "FiveWin for CA-Clipper",
"text": "Peter,\n\nin fw\\source\\classes\\window.prg search for \"DEFINE WINDOW oToolTip...\", some lines below you find \"DEFINE FONT oFont NAME GetSysFont() SIZE 0, -8\". \n\nChange that font definition and use that window.prg recompiled.",
"time": "07:30",
"topic": "Can change FONT in Tooltip ?",
"username": "Antonio Linares"
}
] |
Can change FONT in Tooltip ?
|
[
{
"date": "2006-08-11",
"forum": "FiveWin for CA-Clipper",
"text": "[quote=\"Antonio Linares\":bozmvfw6]Peter,\n\nin fw\\source\\classes\\window.prg search for \"DEFINE WINDOW oToolTip...\", some lines below you find \"DEFINE FONT oFont NAME GetSysFont() SIZE 0, -8\". \n\nChange that font definition and use that window.prg recompiled.[/quote:bozmvfw6]\n\nSo, Can I get more detail of recompiled window.prg ?",
"time": "05:37",
"topic": "Can change FONT in Tooltip ?",
"username": "Peter"
}
] |
Can change FONT in Tooltip ?
|
[
{
"date": "2006-08-11",
"forum": "FiveWin for CA-Clipper",
"text": "Hello Peter,\n\nYou modify Window.prg and just recompile it within your link script file.\nThat's all.\n\nRegards,\n\nRichard",
"time": "07:45",
"topic": "Can change FONT in Tooltip ?",
"username": "Taiwan"
}
] |
Can change FONT in Tooltip ?
|
[
{
"date": "2006-08-22",
"forum": "FiveWin for CA-Clipper",
"text": "Deai Taiwan,\n\nThank you for your suggestion, I'm got it.\n\n\nBest ReGrad <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "14:36",
"topic": "Can change FONT in Tooltip ?",
"username": "Peter"
}
] |
Can change FONT in Tooltip ?
|
[
{
"date": "2007-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Can the caption of a Button be changed at runtime?. This example just does not do anything:\n[code:1egkle3l]\n#include \"Ficewin.ch\"\nFunction Main()\nDefine Window ownd from 0,0 to 200,200 pixel\n@ 10,10 Button oBtn Prompt \"Hello\" size 60,20 pixel of ownd action Change(oBtn)\nActivate window oWnd\nReturn Nil\n\nFunction Change(oBtn)\noBtn:cCaption := \"Bye\"\noBtn:Refresh()\nReturn nil[/code:1egkle3l]\nThanks\nRafael",
"time": "22:35",
"topic": "Can change the caption of TButton \"on the fly\"?",
"username": "Rafael Clemente"
}
] |
Can change the caption of TButton "on the fly"?
|
[
{
"date": "2007-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code:jup0muoo]#include \"Fivewin.ch\"\n\n\nFUNCTION MAIN()\n\n LOCAL oDlg\n\n LOCAL oBtn\n\n DEFINE DIALOG oDlg\n\n @ 3, 1 BUTTON oBtn;\n PROMPT \"&Original\";\n ACTION oBtn:SetText( \"Changed\" )\n\n ACTIVATE DIALOG oDlg;\n CENTER\n\n RETURN NIL[/code:jup0muoo]\n\nEMG",
"time": "22:43",
"topic": "Can change the caption of TButton \"on the fly\"?",
"username": "Enrico Maria Giordano"
}
] |
Can change the caption of TButton "on the fly"?
|
[
{
"date": "2007-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico:\nThank you once more!!!\nRafael",
"time": "08:24",
"topic": "Can change the caption of TButton \"on the fly\"?",
"username": "Rafael Clemente"
}
] |
Can change the caption of TButton "on the fly"?
|
[
{
"date": "2009-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Manuel Valdenebro\":1u0cjiwx]\nI have now, in Vista, second time that I try to print, the message \"There are not printer inst...\"\n[/quote:1u0cjiwx]\n\nManuel,\n\nas I said, vista does not allow to initialize the printer twice, if this error only occures on the second try to print the first printer object doesn´t seem to be finished. Did you correctly end your printer object ?\n\nBTW, to get all installed printers you can use the function GetPrinters() from xharbour.\n[code=fw:1u0cjiwx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">aPrinter := GetPrinters<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">IF</span> lPreview<br /> <span style=\"color: #00C800;\">PRINT</span> oPrint <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Formular\"</span> PREVIEW <span style=\"color: #0000ff;\">TO</span> aPrinter<span style=\"color: #000000;\">[</span>xx<span style=\"color: #000000;\">]</span><br /><span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #00C800;\">PRINT</span> oPrint <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Formular\"</span> <span style=\"color: #0000ff;\">TO</span> aPrinter<span style=\"color: #000000;\">[</span>xx<span style=\"color: #000000;\">]</span><br /><span style=\"color: #00C800;\">ENDIF</span> </div>[/code:1u0cjiwx]\n\nThis is working fine for me.",
"time": "08:49",
"topic": "Can not Print in Vista SP1.",
"username": "StefanHaupt"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\r\n\r\nIn Windows Vista with Service Pack 1, I always get this message:\r\n[img:3tswl1ic]http://www.winfakt.be/downloads/pr_error.gif[/img:3tswl1ic]\r\n\r\nLooking in printer.prg, I see it's because of this code:\r\n[code:3tswl1ic]\nelseif ComDlgXErr() != 0\n MsgStop( \"There are no printers installed!\" + CRLF + ;\n \"Please exit this application and install a printer.\" )\n[/code:3tswl1ic]\r\n\r\nIs anyone else experience this problem. And if so, how can we solve it?\r\n\r\nThanks!\r\n\r\nPatrick[/img]",
"time": "15:46",
"topic": "Can not Print in Vista SP1.",
"username": "Patrick Mast"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Patrick,\r\nis your printer a local or a network printer ?\r\n\r\nWindows Vista is not very fast to active the network connections at startup so you have to give the time to make this before start your app if only network printers are availables on your workstation.",
"time": "16:02",
"topic": "Can not Print in Vista SP1.",
"username": "Marco Turco"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Marco Turco\":x7zepij3]is your printer a local or a network printer ?[/quote:x7zepij3]\r\nLocal printer.\r\n\r\nPatrick",
"time": "17:40",
"topic": "Can not Print in Vista SP1.",
"username": "Patrick Mast"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Patrick Mast\":3l5o7qhg][quote=\"Marco Turco\":3l5o7qhg]is your printer a local or a network printer ?[/quote:3l5o7qhg]\nLocal printer.\n\nPatrick[/quote:3l5o7qhg]\r\n\r\nHi, Patrick,\r\n\r\n I had this problem specially after updating to SP2. At the first time, it prints ok, but on the second time, it gives me this error. If you come back to SP1 there is no problem. So, it seems to be a Vista problem (and a serious problem!). Because of this I had to come back to XP.\r\n\r\nRegards,",
"time": "19:37",
"topic": "Can not Print in Vista SP1.",
"username": "Kleyber"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote:11yy9keo]I had this problem specially after updating to SP2. At the first time, it prints ok, but on the second time, it gives me this error. If you come back to SP1 there is no problem. So, it seems to be a Vista problem (and a serious problem!). Because of this I had to come back to XP.[/quote:11yy9keo]But we have too many clients who are upgrading to Vista and I can not tell my customres to downgrade their OS.\r\n\r\nAntonio? Can you help us?\r\n\r\nThanks!\r\n\r\nPatrick",
"time": "19:40",
"topic": "Can not Print in Vista SP1.",
"username": "Patrick Mast"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\r\n\r\nI have been through this one last week\r\n\r\nThe problem comes from identifying the printer\r\n\r\nif you are printing to a specifief printer and just passing the printer's name before (as i was doing), you will get the message.\r\n\r\nYou have to pass now the port also, and it will work ok.\r\n\r\nIt works also as backward's compatibility (vista without sp1 and xp)\r\n\r\nBelow is my printer selection function\r\n\r\nFUNCTION GETIMPRI(ADEVICES)\r\n*----------------------------------------\r\nLOCAl cAllEntries, cEntry, I, cName, cPrn, cPort, J\r\n\r\ncAllEntries := STRTRAN( GetProfString( \"Devices\" ), Chr( 0 ), CRLF )\r\nFOR I:= 1 TO MlCount( cAllEntries )\r\n cName := MemoLine( cAllEntries,,I)\r\n cEntry := GetProfString( \"Devices\",cName,\"\")\r\n J := 2\r\n WHILE ! EMPTY(cPort := StrToken(cEntry,J++,\",\"))\r\n // AADD(aDevices,TRIM(cName))\r\n AADD(aDevices,TRIM(cName) + \",\" + CENTRY) // CHIDIAK\r\n ENDDO\r\nNEXT\r\nRETURN aDevices\r\n\r\n\r\nHTH\r\n\r\nRichard[code][/code]",
"time": "19:45",
"topic": "Can not Print in Vista SP1.",
"username": "Richard Chidiak"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\r\n\r\nThis error occurs, for example, when printing from PREVIEW?.\r\n\r\nBest regards,",
"time": "20:19",
"topic": "Can not Print in Vista SP1.",
"username": "MOISES"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This error occurs on vista sp1 when you print [u:bgwe60a3][b:bgwe60a3]without prompting the user [/b:bgwe60a3][/u:bgwe60a3]for the printer, to an identified printer by it's name\r\n\r\nit occurs before preview\r\n\r\nRichard",
"time": "20:23",
"topic": "Can not Print in Vista SP1.",
"username": "Richard Chidiak"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Richard Chidiak\":330ccxlg]I have been through this one last week\nThe problem comes from identifying the printer\nif you are printing to a specifief printer and just passing the printer's name before (as i was doing), you will get the message.\nYou have to pass now the port also, and it will work ok.[/quote:330ccxlg]\r\nYou mean, instead of doing this:\r\n[code:330ccxlg]oPrn:=TPrinter():New(\"Testpage\",.f.,.f.,\"HP xyz\")[/code:330ccxlg]We now have to do:[code:330ccxlg]oPrn:=TPrinter():New(\"Testpage\",.f.,.f.,\"HP xyz,winspool,LPT1:\")[/code:330ccxlg]Is this correct?\r\n\r\nThanks!\r\n\r\nPatrick",
"time": "11:40",
"topic": "Can not Print in Vista SP1.",
"username": "Patrick Mast"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Patrick,\r\n\r\nYes , this is the way to go if you print without prompting the user to select a printer, if you prompt for printer selection, the old syntax works ok\r\n\r\ngotta love vista !\r\n\r\nRichard",
"time": "07:23",
"topic": "Can not Print in Vista SP1.",
"username": "Richard Chidiak"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2008-06-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Richard Chidiak\":2lufzb5x]Yes , this is the way to go if you print without prompting the user to select a printer, if you prompt for printer selection, the old syntax works ok\n\ngotta love vista ![/quote:2lufzb5x]Thank you Richard!\r\n\r\nPatrick",
"time": "07:45",
"topic": "Can not Print in Vista SP1.",
"username": "Patrick Mast"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2009-05-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"StefanHaupt\":1trftdti]\nVista does not allow, to initialize the same printer twice, then the error occurs.[/quote:1trftdti]\n\nStefan,\n\nBut if I use standard rpreview it is correct. \n\nRegards",
"time": "23:18",
"topic": "Can not Print in Vista SP1.",
"username": "Manuel Valdenebro"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2009-05-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Richard Chidiak\":2atolie8]\nYou have to pass now the port also, and it will work ok.\nBelow is my printer selection function\n\nFUNCTION GETIMPRI(ADEVICES)\n*----------------------------------------\nLOCAl cAllEntries, cEntry, I, cName, cPrn, cPort, J\n\ncAllEntries := STRTRAN( GetProfString( \"Devices\" ), Chr( 0 ), CRLF )\nFOR I:= 1 TO MlCount( cAllEntries )\n cName := MemoLine( cAllEntries,,I)\n cEntry := GetProfString( \"Devices\",cName,\"\")\n J := 2\n WHILE ! EMPTY(cPort := StrToken(cEntry,J++,\",\"))\n // AADD(aDevices,TRIM(cName))\n AADD(aDevices,TRIM(cName) + \",\" + CENTRY) // CHIDIAK\n ENDDO\nNEXT\nRETURN aDevices\n\nHTH\n\nRichard[code][/code][/quote:2atolie8]\n\nRichard,\n\nI have a function, including in the previeus, to change on line the printer. This is the code:\n\nfunc f_CamImpre (oDevice, cCbx )\nlocal cPrinter\n\n // impresora predeterminada\n cPrinter := GetProfString( \"windows\", \"device\" , \"\" )\n // instalamos la impresora elegida\n WriteProfString( \"windows\", \"device\", cCbx )\n // refrescamos el sistema\n SysRefresh()\n //iniciamos impresora\n PrinterInit()\n\n DeleteDC( oDevice:hDC ) // Sugestion by Enrico M. Giordano\n\n // temporal printer\n oDevice:hDC := GetPrintDefault( GetActiveWindow() )\n\n SysRefresh()\n // default printer again\n WriteProfString( \"windows\", \"device\", cPrinter )\n\nRETURN nil\n\nI have now, in Vista, second time that I try to print, the message \"There are not printer inst...\"\n\nCan you help me to change that function to adding the port number?\n\nThanks and regards",
"time": "20:48",
"topic": "Can not Print in Vista SP1.",
"username": "Manuel Valdenebro"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2009-05-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Manuel,\n\nI had a similar situation printing in Vista, did you read my post in this topic ? \n[url:2yybjyxb]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=15485[/url:2yybjyxb]\n\nVista does not allow, to initialize the same printer twice, then the error occurs.",
"time": "08:30",
"topic": "Can not Print in Vista SP1.",
"username": "StefanHaupt"
}
] |
Can not Print in Vista SP1.
|
[
{
"date": "2007-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nLast week we have made a upgrade to fwh7.11\n\nFrom that moment we have many error's , 'can not create dialog', at random . Today , with 5 customers , +/- 10\n\nThis error occurs only after some time ( 30 min) , so i suppose it has something to do with memory management.\n\nHow can i test memory and controle were it go's down ?\n\nFrank",
"time": "15:12",
"topic": "Can not create dialog 7.11",
"username": "demont frank"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Do you have this fix?\n\nThis is a necesary fix for FWH 7.11 in Class TMsgBar: \nCode: \n\nMETHOD SetMsg( cText ) CLASS TMsgBar \n\n DEFAULT ::cMsg := \"\" \n \n if ::l2007 \n ::cMsg = cText \n ::Refresh() \n return nil \n endif \n \n ::GetDC() // must be placed here!!! \n ... \n \n\n_________________\nregards, saludos \n\nAntonio Linares \n<!-- w --><a class=\"postlink\" href=\"http://www.fivetechsoft.com\">www.fivetechsoft.com</a><!-- w -->",
"time": "16:00",
"topic": "Can not create dialog 7.11",
"username": "Otto"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto ,\n\nYes , it is applyed. It seems to be very bad , since the previous thread , 3 other errors are reported , all 'cannot create dialog' , at random.\n\nMost off them occurs after +/- 1 hour\n\nFrank",
"time": "16:08",
"topic": "Can not create dialog 7.11",
"username": "demont frank"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Frank,\n\nI don’t have FWH versions at my clients. In-house we use the program 7*24 hours with no problem on Vista PC's.\nI use Harbour what do you use?\n\nSure you are a harbor expert but I mention what problems I faced:\n\nI had fieldnames and function names in clipper where sometimes from the 10 position on the names were not identically.\nClipper does not care about but in harbor you get an error.\n\n\nRegards,\nOtto",
"time": "16:51",
"topic": "Can not create dialog 7.11",
"username": "Otto"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto,\n\nFrom the moment we changed to fwh7.11 , we have at least 10 errors a day , all 'cannot create dialog' , at random\n\n2 hours ago i went back to 7.7 , from then no errors.\n\nSo i am convinced it is a memory problem from 7.11\n\nAntonio ???\n\nFrank",
"time": "17:51",
"topic": "Can not create dialog 7.11",
"username": "demont frank"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Do you use harbour or xHarbour?\nRegards,\nOtto",
"time": "18:20",
"topic": "Can not create dialog 7.11",
"username": "Otto"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frank,\n\nWe haven't modified anything in 7.11 that could cause those \"can't create dialog\" errors.\n\nIt has to be something else that you have recently changed in your application, or something related to Harbour/xharbour\n\nDo you use Borland controls in your dialog boxes ?",
"time": "19:20",
"topic": "Can not create dialog 7.11",
"username": "Antonio Linares"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "What controls do you use in those dialogboxes ?",
"time": "19:46",
"topic": "Can not create dialog 7.11",
"username": "Antonio Linares"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "HI, i use fwh 7.10 and 7.11, with fix, in 7*24, 15 workstations, 1000000 records without problems.\n\nxharbour cvs 1.00 30/10/2007 (compile myself)\nfwh 7.11 (compile myself)\nbcc 551 sp2\nads server (local to tests)\nwindows server network with nt4 workstation and xp workstations\n\nare you using borland controls??",
"time": "21:03",
"topic": "Can not create dialog 7.11",
"username": "norberto"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI am working in a MDI environnement with dialog's.\nEach dialog is executed from xbrowse. The dialog's have in some cases a tsbrowse or xbrowse object , together with the common control's from fw (no borland controls).\n\n\nI am using xhb 1.01\n\nHow can i follow the memory ammount during execution ?\nCan i place some tracelog's to see which value it has ?\n\nFrank",
"time": "09:01",
"topic": "Can not create dialog 7.11",
"username": "demont frank"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frank,\n\n> I am using xhb 1.01 \n\nDo you mean xHarbour commercial ?\n\n> How can i follow the memory ammount during execution ? \n\nThe cannot create dialog box is a not a memory related issue. Anyhow you can open Windows's tasks manager and locate your application and check what memory amount is using",
"time": "10:02",
"topic": "Can not create dialog 7.11",
"username": "Antonio Linares"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nComercial version\n\nCompiling with fwh7.11 , i can reproduce the error :\n\n xbrowse is used to select a record (dialog)\n\n Opening the dialog , closing it and repeat this ( +/- 20 or more , unpredictable) , result in a error\n\n Error description: Error FiveWin/3 Cannot create Dialog Box: \n Title: Bijsluiters : 930920 /1 Aantal : 4800 BWB /MW \n\nStack Calls\n===========\n Called from: DIALOG.PRG => CREATEDLGERROR(0)\n Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)\n Called from: INVBEST.PRG => SHOWAOFB(3826)\n Called from: INVBEST.PRG => (b)INPDLGDOSA(1279)\n Called from: XBrowse.prg => TXBROWSE:LBUTTONDOWN(2408)\n Called from: => TWINDOW:HANDLEEVENT(0)\n Called from: CONTROL.PRG => TXBROWSE:HANDLEEVENT(0)\n Called from: window.prg => _FWH(3233)\n Called from: => WINRUN(0)\n Called from: window.prg => TMDIFRAME:ACTIVATE(900)\n Called from: HENMAIN.PRG => MAIN(149)\n\nDuring this test memory increases from 744 to 790 (maybe 50 cycles)\n\nThe same test , after compiling with 7.7 , has not given an error\n\nAfter memory was 800 , and maybe 100 x openening and closing , i give it up\n\nIs it normal that memory increases during this test ?\n\nFrank",
"time": "12:43",
"topic": "Can not create dialog 7.11",
"username": "demont frank"
}
] |
Can not create dialog 7.11
|
[
{
"date": "2007-11-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frank,\n\nThats a very little memory increase. Its not a problem, as Harbour calls the garbage collector from time to time\n\nAre you using Borland controls in that dialogbox ? How do you End() the dialog ? Please show us a portion of the source code, thanks",
"time": "16:33",
"topic": "Can not create dialog 7.11",
"username": "Antonio Linares"
}
] |
Can not create dialog 7.11
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.