messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2016-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "it's very boring to have to enter my login and password all the times I access this forum. Is there any solution? The link I put int the previous post does not help anything?",
"time": "19:31",
"topic": "A Forum-error ( PHP ) ?",
"username": "Kleyber"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Kleyber,\n\nI have not found a solution for it yet.\n\nI was thinking to install the most recent phpbb in a different folder of the server and\nthen try to import the entire SQL backup file.\n\nBut I guess that all the addons that we have currently installed on our forums, should have\nto be ported to the new phpbb version and we may need new versions of them too.\n\nIn the meantime, if we could find the right flag to set from phpbb admin panel so we can restore the old and very usefull functionality,\nthat would be great <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "22:41",
"topic": "A Forum-error ( PHP ) ?",
"username": "Antonio Linares"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-01-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nThe link I put in the previous post does not show you anything about this problem?\n\nI hope you can find the solution.",
"time": "14:04",
"topic": "A Forum-error ( PHP ) ?",
"username": "Kleyber"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-01-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Kleyber,\n\nWe are not using the latest phpBB version as we use several mods (source code with syntax highlighting, etc) that we don't have for the latest phpBB.\n\nso unfortunately that url that you provided me is not of help <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->",
"time": "21:23",
"topic": "A Forum-error ( PHP ) ?",
"username": "Antonio Linares"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-01-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I just changed the cookie domain according to this:\n\n[url:2l4n8on7]https://www.phpbb.com/support/docs/en/3.1/kb/article/fixing-incorrect-cookie-settings/[/url:2l4n8on7]\n\nI changed the setting from the attached screenshot to forums.fivetechsupport.com\n\nlets see if that make a difference\n\nold:\n[img:2l4n8on7]https://bitbucket.org/fivetech/screenshots/downloads/phpbb_cookie_settings.JPG[/img:2l4n8on7]\n\nnew:\n[img:2l4n8on7]https://bitbucket.org/fivetech/screenshots/downloads/phpbb_cookie_settings_new.JPG[/img:2l4n8on7]",
"time": "18:57",
"topic": "A Forum-error ( PHP ) ?",
"username": "Antonio Linares"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-01-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "It is still requiring login each time for me, Antonio.\n\nMy sympathies for you having to deal with this.\n\nJames",
"time": "19:03",
"topic": "A Forum-error ( PHP ) ?",
"username": "James Bott"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-01-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nYes, I am testing it and noticed that the problem remains there.\n\nInspecting the cookie with chrome, I just realized a tapatalk error reported by Chrome, so I have emailed tapatalk tech support \nas they are very good phpbb experts and hopefully they may help us",
"time": "19:15",
"topic": "A Forum-error ( PHP ) ?",
"username": "Antonio Linares"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear friends,\n\nI think it is solved!!! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nCould you please check it and confirm it ?\n\nmany thanks!\n\nI had to copy a php.ini and change a value in php.ini in the forums root folder:\nrequest_order = \"GPC\"",
"time": "16:46",
"topic": "A Forum-error ( PHP ) ?",
"username": "Antonio Linares"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Looks fixed for me. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "19:17",
"topic": "A Forum-error ( PHP ) ?",
"username": "Enrico Maria Giordano"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "+1",
"time": "19:41",
"topic": "A Forum-error ( PHP ) ?",
"username": "Armando"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "at first it was even worse for me. It would act like it was logging me in and then go right back to previous not logged in status.\nI cleared my History/Cache/Cookies and now I am able to login again.\nThe world is ok again <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\nThanks",
"time": "21:20",
"topic": "A Forum-error ( PHP ) ?",
"username": "Gale FORd"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I noticed the same problem\n\nIMPORTANT <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \n[color=#0000FF:20u9yc4x][b:20u9yc4x]clear the History/Cache/Cookies and it is possible to login again.[/b:20u9yc4x][/color:20u9yc4x] <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \n\nit seems to work.\n\nbest regards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "23:20",
"topic": "A Forum-error ( PHP ) ?",
"username": "ukoenig"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Perfecto !!!",
"time": "00:30",
"topic": "A Forum-error ( PHP ) ?",
"username": "horacio"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sometimes I am still not logged in when I return to the site. It seems in the morning I always have to login.\n\nRunning windows 8.1 and IE.\n\nJames",
"time": "17:24",
"topic": "A Forum-error ( PHP ) ?",
"username": "James Bott"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I clear the History/Cache/Cookies on Chrome and Firefox \n\nBut each morning at office I must relogin allways\n\nuser : Silvio.Falconi\n\nthen my account not send the forums advice or the mail I insert not is right ( @eoeo.it)\n\nthe <!-- e --><a href=\"mailto:silvio.falconi@gmail.com\">silvio.falconi@gmail.com</a><!-- e --> mail return me the message \"The entered e-mail address is already in use\"\n\nhow I can make to modify the mail ?",
"time": "09:34",
"topic": "A Forum-error ( PHP ) ?",
"username": "Silvio.Falconi"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nWhat email do you want to use ?",
"time": "09:51",
"topic": "A Forum-error ( PHP ) ?",
"username": "Antonio Linares"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "On Safari with OS X 10.11.3 is perfect.\nThanks a lot.",
"time": "18:32",
"topic": "A Forum-error ( PHP ) ?",
"username": "Massimo Linossi"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "many thanks to all for your great feedback <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "21:23",
"topic": "A Forum-error ( PHP ) ?",
"username": "Antonio Linares"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "<!-- e --><a href=\"mailto:silvio.falconi@gmail.com\">silvio.falconi@gmail.com</a><!-- e -->",
"time": "08:47",
"topic": "A Forum-error ( PHP ) ?",
"username": "Silvio.Falconi"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nok, done",
"time": "10:22",
"topic": "A Forum-error ( PHP ) ?",
"username": "Antonio Linares"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2016-02-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "great.. all ok !!",
"time": "12:08",
"topic": "A Forum-error ( PHP ) ?",
"username": "Silvio.Falconi"
}
] |
A Forum-error ( PHP ) ?
|
[
{
"date": "2009-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nbecause including the new Circle-Gradient-Function in my Tools,\nhere is the [color=#FF0000:115hkmmu]exact Calculation [/color:115hkmmu]of the Circle-Position for any Dialog-Size.\nI'm working on a [color=#FF0000:115hkmmu]Update[/color:115hkmmu], to include this Calculation in the [color=#FF0000:115hkmmu]SkinTools[/color:115hkmmu].\n\nHow it works :\nI devided the Screen in 20 Horizontal- and 20 Vertical-parts ( 5 Parts are 1 Screen-Quarter ).\nUsing Values of 10, 10 centeres the Circle. \nDirection Left = minus ( Values 1-9 ), Right = plus ( Values 11-20 )\nUp = minus ( Values 1-9 ), Down = plus ( Values 11-20 ).\n\n[img:115hkmmu]http://www.pflegeplus.com/pictures/circlecalc.jpg[/img:115hkmmu]\n\nThe Function :\n\n[code=fw:115hkmmu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//------------- DLG CIRCLE -----------</span><br /><br /><span style=\"color: #B900B9;\">// How to use it :</span><br /><span style=\"color: #B900B9;\">// Step 1-9 for up and left, 11 - 20 for right and down. 10 = Centered</span><br /><span style=\"color: #B900B9;\">// ------------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// 1. Sample : Circle centered</span><br /><span style=\"color: #B900B9;\">// ------------------------------------</span><br /><span style=\"color: #B900B9;\">// ACTIVATE DIALOG oDlg CENTERED ;</span><br /><span style=\"color: #B900B9;\">// ON PAINT ( DLG_CIRCL( oDlg, COLOR1, COLOR2, 10, 10 ) </span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// 2. Sample : Circle on left / upper</span><br /><span style=\"color: #B900B9;\">// -------------------------------------------</span><br /><span style=\"color: #B900B9;\">// ACTIVATE DIALOG oDlg CENTERED ;</span><br /><span style=\"color: #B900B9;\">// ON PAINT ( DLG_CIRCL( oDlg, COLOR1, COLOR2, 5, 5 ) </span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// -------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// 3. Sample : Circle on right / bottom </span><br /><span style=\"color: #B900B9;\">// --------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// ACTIVATE DIALOG oDlg CENTERED ;</span><br /><span style=\"color: #B900B9;\">// ON PAINT ( DLG_CIRCL( oDlg, COLOR1, COLOR2, 20, 20 ) </span><br /><span style=\"color: #B900B9;\">// -------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// hDC</span><br /><span style=\"color: #B900B9;\">// { nTop, nLeft, nBottom, nRight },</span><br /><span style=\"color: #B900B9;\">// startColor, endColor</span><br /><span style=\"color: #B900B9;\">// nOffserX, nOffserY</span><br /><span style=\"color: #B900B9;\">// lBrush --> hBitmap / hBrush ( GDI OBJECT )</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> DLG_CIRCL<span style=\"color: #000000;\">(</span> oDlg, nVColor, nBColor, W_Hoffset, W_Voffset <span style=\"color: #000000;\">)</span> <br /><span style=\"color: #00C800;\">LOCAL</span> oBrushBmp := TBrush<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> hDC := oDlg:<span style=\"color: #000000;\">GETDC</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> aRect := GETCLIENTRECT<span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> nXa := aRect<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> / <span style=\"color: #000000;\">20</span>, nYa := aRect<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span> / <span style=\"color: #000000;\">20</span><br /><span style=\"color: #00C800;\">LOCAL</span> nX := <span style=\"color: #000000;\">0</span>, nY := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// Value 10</span><br /><br /><span style=\"color: #00C800;\">IF</span> W_HOFFSET > <span style=\"color: #000000;\">10</span><br /> <span style=\"color: #B900B9;\">// position : right from center dialog to middle Circle</span><br /> nX := W_HOFFSET * nXa<br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> W_HOFFSET < <span style=\"color: #000000;\">10</span><br /> <span style=\"color: #B900B9;\">// position : left from center dialog to middle Circle</span><br /> nX := - <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">10</span> - W_HOFFSET <span style=\"color: #000000;\">)</span> * nXa <span style=\"color: #000000;\">)</span> <br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> W_VOFFSET > <span style=\"color: #000000;\">10</span><br /> <span style=\"color: #B900B9;\">// position : down from center Dialog to middle Circle</span><br /> nY := <span style=\"color: #000000;\">(</span> W_VOFFSET - <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">)</span> * nYa <br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> W_VOFFSET < <span style=\"color: #000000;\">10</span><br /> <span style=\"color: #B900B9;\">// position : up from middle dialog to middle Circle</span><br /> nY := - <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">10</span> - W_VOFFSET <span style=\"color: #000000;\">)</span> * nYa <span style=\"color: #000000;\">)</span> <br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />DeleteObject<span style=\"color: #000000;\">(</span> oBrushBmp:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br />oBrushBmp:<span style=\"color: #000000;\">hBrush</span> = CircleGradient<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, aRect<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span>, aRect<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">}</span> , ;<br />nVColor, nBColor, nX, nY, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span> <br /><br />FillRect<span style=\"color: #000000;\">(</span> hDC, aRect, oBrushBMP:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /><br />oDlg:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrushBMP<br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:115hkmmu]\n\nThe new Function will be included in the next SkinTool-Update :\n\n[img:115hkmmu]http://www.pflegeplus.com/pictures/circlecalc1.jpg[/img:115hkmmu]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "11:05",
"topic": "A Func., to calc. the exact Screen-Pos. of a CircleGradient",
"username": "ukoenig"
}
] |
A Func., to calc. the exact Screen-Pos. of a CircleGradient
|
[
{
"date": "2012-04-30",
"forum": "Off Topic / Otros temas",
"text": "[url:u50yn5zn]https://discussions.apple.com/message/18267204?ac_cid=142432#18267204[/url:u50yn5zn]\n\n[img:u50yn5zn]http://img716.imageshack.us/img716/4500/lafotobn.jpg[/img:u50yn5zn]\n\n[img:u50yn5zn]http://img163.imageshack.us/img163/2961/picture1un.png[/img:u50yn5zn]",
"time": "23:26",
"topic": "A G5 brought back to life :-)",
"username": "Antonio Linares"
}
] |
A G5 brought back to life :-)
|
[
{
"date": "2012-05-01",
"forum": "Off Topic / Otros temas",
"text": "Buen aparato ,y baratillo <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> , tu reparación me recordó el método para reparar las placas de video metiendolas en el horno a 200ºC\n[url:3bx3y8p0]http://www.faq-mac.com/tutoriales/cocinar-para-revivir-literalmente-gf-8800-gt-mac-pro/47732[/url:3bx3y8p0]\nSaludos.",
"time": "10:59",
"topic": "A G5 brought back to life :-)",
"username": "mastintin"
}
] |
A G5 brought back to life :-)
|
[
{
"date": "2012-05-01",
"forum": "Off Topic / Otros temas",
"text": "Manuel,\n\nSi, esa es la idea que tenía en mente pero pensé que aplicarle un calor similar con la pistola de calor seria menos agresivo que meter toda la placa en el horno y uno se ahorra el desmontar todo el ordenador <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> \n\nDe momento sigue funcionando <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "11:04",
"topic": "A G5 brought back to life :-)",
"username": "Antonio Linares"
}
] |
A G5 brought back to life :-)
|
[
{
"date": "2007-04-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "<!-- m --><a class=\"postlink\" href=\"http://img244.imageshack.us/img244/4475/picture2yw8.png\">http://img244.imageshack.us/img244/4475/picture2yw8.png</a><!-- m -->\n\n<!-- m --><a class=\"postlink\" href=\"http://img225.imageshack.us/img225/7594/picture4rp2.png\">http://img225.imageshack.us/img225/7594/picture4rp2.png</a><!-- m -->",
"time": "06:35",
"topic": "A Harbour view :-)",
"username": "Antonio Linares"
}
] |
A Harbour view :-)
|
[
{
"date": "2007-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nxHarbour and FiveWin on Apple Mac : it looks very good.\n\nAnd of course it opens new markets for us, developers.\n\nMany congratulations.\n\nMichel",
"time": "00:06",
"topic": "A Harbour view :-)",
"username": "driessen"
}
] |
A Harbour view :-)
|
[
{
"date": "2019-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nfor windows without FREEIMAGE I use\n\n// window without FREEIMAGE\n[color=#0000FF:118aw3qo]aImage := oWnd:ReadImage( cImage, , .t. )\noWnd:DrawImage( aImage, aRect, nil, 1 )[/color:118aw3qo]\n\nit doesn't work for a METRO-image-background\n\n[color=#0000FF:118aw3qo]DEFINE METROPANEL oMetro OF oWnd TITLE \"Stammdaten\" ;\nCOLOR aVal[8], CLR_BLUE \naRect := GETCLIENTRECT( oMetro:hWnd )\naImage := oMetro:ReadImage( cImage, , .t. )\noMetro:DrawImage( aImage, aRect, nil, 1 )[/color:118aw3qo]\n\na working solution\n// metro image-background ( FREEIMAGE needed )\n\n[color=#0000FF:118aw3qo]DEFINE IMAGE oImage FILENAME cImage \noBrush := TBrush():new( ,,,, ResizeBmp( oImage:hBitmap, aRect[4], aRect[3], .T. ) ) // 1 = stretch, 2 : fitoutside, 3:fitinside\noImage:End()\t\t\noMetro:SetBrush( oBrush )\nRELEASE BRUSH oBrush [/color:118aw3qo]\n\nis it possible to define a metro-image-background without using FREEIMAGE ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "16:32",
"topic": "A METRO image-background without FREEIMAGE ?",
"username": "ukoenig"
}
] |
A METRO image-background without FREEIMAGE ?
|
[
{
"date": "2019-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe, try with this\n\n[code=fw:21as32yv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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;\">\"metropnl.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<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MetroPanel\"</span><br /><br /><br /> Metro<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 <span style=\"color: #0000ff;\">MAXIMIZED</span> <span style=\"color: #B900B9;\">//ON INIT Metro( oWnd )</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">Function</span> Metro<span style=\"color: #000000;\">(</span> oWnd <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oMetro<br /> <span style=\"color: #0000ff;\">DEFINE</span> METROPANEL oMetro <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Stammdaten\"</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE, CLR_BLUE<br /> oMetro:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">{</span> || oMetro:<span style=\"color: #000000;\">DrawImage</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"D:<span style=\"color: #000000;\">\\F</span>wh<span style=\"color: #000000;\">\\F</span>whTeam<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\h</span>ires<span style=\"color: #000000;\">\\e</span>arth.bmp\"</span>, , <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> oMetro:<span style=\"color: #000000;\">Show</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Return</span> oMetro<br /><br /> </div>[/code:21as32yv]",
"time": "19:56",
"topic": "A METRO image-background without FREEIMAGE ?",
"username": "cnavarro"
}
] |
A METRO image-background without FREEIMAGE ?
|
[
{
"date": "2019-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Christobal,\n\nthank You that works.\nI added the image-background-painting to the defined brushed title-text-section\n\n[color=#0000FF:28bn04ts]// on top\nDEFINE FONT oFontLarge NAME \"Arial\" SIZE 0, -60 BOLD ITALIC\naPalBmp := oWnd:ReadImage( c_Pfad1 + \"Marble.bmp\", nil, .t. )\npBrush := GDIP_IMAGEBRUSH( aPalBmp[ 1 ] )\n--\n--\noMetro:Show()\noMetro:bPainted := {|| oMetro:DrawImage( c_Pfad1 + \"Sea.jpg\", , nil, 1 ), ;\noMetro:SayText( \"Stammdaten\", { 30, 150, 120, 650 }, \"L\", oFontLarge, pBrush ) }[/color:28bn04ts]\n\n[img:28bn04ts]http://www.pflegeplus.com/IMAGES/Metro15.jpg[/img:28bn04ts]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "20:33",
"topic": "A METRO image-background without FREEIMAGE ?",
"username": "ukoenig"
}
] |
A METRO image-background without FREEIMAGE ?
|
[
{
"date": "2019-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "The following should be added to metropnel.ch:\n\n#xcommand ACTIVATE METROPANEL <oMtr> => <oMtr>:Show()\n\nor something similar",
"time": "21:42",
"topic": "A METRO image-background without FREEIMAGE ?",
"username": "cnavarro"
}
] |
A METRO image-background without FREEIMAGE ?
|
[
{
"date": "2019-09-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"ukoenig\":3jjgi06w]Hello,\n\nfor windows without FREEIMAGE I use\n\n// window without FREEIMAGE\n[color=#0000FF:3jjgi06w]aImage := oWnd:ReadImage( cImage, , .t. )\noWnd:DrawImage( aImage, aRect, nil, 1 )[/color:3jjgi06w]\n\nit doesn't work for a METRO-image-background\n\n[color=#0000FF:3jjgi06w]DEFINE METROPANEL oMetro OF oWnd TITLE \"Stammdaten\" ;\nCOLOR aVal[8], CLR_BLUE \naRect := GETCLIENTRECT( oMetro:hWnd )\naImage := oMetro:ReadImage( cImage, , .t. )\noMetro:DrawImage( aImage, aRect, nil, 1 )[/color:3jjgi06w]\n\na working solution\n// metro image-background ( FREEIMAGE needed )\n\n[color=#0000FF:3jjgi06w]DEFINE IMAGE oImage FILENAME cImage \noBrush := TBrush():new( ,,,, ResizeBmp( oImage:hBitmap, aRect[4], aRect[3], .T. ) ) // 1 = stretch, 2 : fitoutside, 3:fitinside\noImage:End()\t\t\noMetro:SetBrush( oBrush )\nRELEASE BRUSH oBrush [/color:3jjgi06w]\n\nis it possible to define a metro-image-background without using FREEIMAGE ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->[/quote:3jjgi06w]\n\nExcept the TImage() class, no other class requires freeimage.dll.\nYour approach to create the resizable brush is round about.\n\nYou will get the correct results if you keep you code simple.\n\nUse this one line code, which does everything for you\n[code=fw:3jjgi06w]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE <anyimagesource> RESIZE <br /> </div>[/code:3jjgi06w]\nUse RESIZE clause while creating the brush. This will automatically resize to fit the window (or panel). \nIt will keep resizing when the window is resized.\nAvoid doing resize yourself in your application program\n[code=fw:3jjgi06w]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oMetro:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">(</span> oBrush <span style=\"color: #000000;\">)</span><br /> </div>[/code:3jjgi06w]\nWhile creating brush, you can use any image source, viz bmp,jpg,png,tiff, etc file on the disk, or resource, or from memory or from the web\nFreeimage.dll is not required.",
"time": "05:19",
"topic": "A METRO image-background without FREEIMAGE ?",
"username": "nageswaragunupudi"
}
] |
A METRO image-background without FREEIMAGE ?
|
[
{
"date": "2019-09-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank You very much,\n\nit works fine with the changes.\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "18:04",
"topic": "A METRO image-background without FREEIMAGE ?",
"username": "ukoenig"
}
] |
A METRO image-background without FREEIMAGE ?
|
[
{
"date": "2013-03-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\na problem to open / write any posts ? \nLast year I noticed it as well.\nAfter a while it works again.\n\n[img:125ydqao]http://www.pflegeplus.com/pictures/ForumP1.jpg[/img:125ydqao]\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "14:31",
"topic": "A MYSQL4 Forum Problem ?",
"username": "ukoenig"
}
] |
A MYSQL4 Forum Problem ?
|
[
{
"date": "2013-03-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doe that mean so many users were accessing the fivetech site at that time.",
"time": "14:49",
"topic": "A MYSQL4 Forum Problem ?",
"username": "nageswaragunupudi"
}
] |
A MYSQL4 Forum Problem ?
|
[
{
"date": "2009-09-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nthis Week, a new Update of the Skintools is finished.\nThere You will find a new Folder-page for Circle-Gradient-Painting :\n\nThe new Page :\n\n[img:2m8k0h0h]http://www.pflegeplus.com/pictures/Skin1.jpg[/img:2m8k0h0h]\n\nThe Source for it :\n\n[img:2m8k0h0h]http://www.pflegeplus.com/pictures/Skin2.jpg[/img:2m8k0h0h]\n\nThe new Button-Preview :\n\n[img:2m8k0h0h]http://www.pflegeplus.com/pictures/Skin3.jpg[/img:2m8k0h0h]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "13:30",
"topic": "A Painter, using the new Circle-Gradient ( FWH 9.09 )",
"username": "ukoenig"
}
] |
A Painter, using the new Circle-Gradient ( FWH 9.09 )
|
[
{
"date": "2011-05-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\na useful Option would be, adding a [color=#FF0000:1l6xpsm2]ACTION[/color:1l6xpsm2] to the TSelex-headline.\nCould be a Help-info or a global Action ( like a extra Prompt ).\n\n[img:1l6xpsm2]http://www.pflegeplus.com/pictures/tselex5.jpg[/img:1l6xpsm2]\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "09:07",
"topic": "A Possible Action on Headline of Class TSelex ?",
"username": "ukoenig"
}
] |
A Possible Action on Headline of Class TSelex ?
|
[
{
"date": "2009-08-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\ntoday I started with FWH 9.07.\n\nI tested the Vtitle-Class. \nIs it possible, to add Radio and Checkbox as well like Say and Buttons ?\nIt works without problems, but I couldn't get it transparent.\nUsing oTitle:lTransparent := .T., the Title is transparent. \nRadio and Checkbox is transparent, but with the Dialog-Gradient.\nThe Radio and Checkbox belongs to the Dialog. I think, it doesn't work this way,\nto get the Gradient-Color from the Title.\n\n[img:1i1b408u]http://www.pflegeplus.com/pictures/Vtitle2.jpg[/img:1i1b408u]\n\n[code=fw:1i1b408u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"ttitle.ch\"</span><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, oTitle, oChk, oRadio<br /><br />lChk := .F.<br />nValue := <span style=\"color: #000000;\">1</span><br /><br />aDLG := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">0.60</span>, <span style=\"color: #000000;\">16752190</span>, <span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">}</span>, ; <br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">0.60</span>, <span style=\"color: #000000;\">16777215</span>, <span style=\"color: #000000;\">16752190</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span> <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"A Dialog Box\"</span><br /><br />@ <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">TITLE</span> oTitle <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">of</span> oDlg SHADOW BOTTOMLEFT SHADOWSIZE <span style=\"color: #000000;\">2</span><br />oTitle:<span style=\"color: #000000;\">aGrdBack</span> := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">8553215</span>, <span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #B900B9;\">// Transparent Title</span><br />* oTitle:<span style=\"color: #000000;\">lTransparent</span> := .T.<br /><br />@ <span style=\"color: #000000;\">4.2</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">CHECKBOX</span> oChk <span style=\"color: #0000ff;\">VAR</span> lChk <span style=\"color: #0000ff;\">OF</span> oDlg <br />oChk:<span style=\"color: #000000;\">lTransparent</span> := .T.<br /><br />@ <span style=\"color: #000000;\">3.5</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">RADIO</span> oRadio <span style=\"color: #0000ff;\">VAR</span> nValue <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /><span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #ff0000;\">\"&One\"</span>, <span style=\"color: #ff0000;\">\"&Two\"</span>, <span style=\"color: #ff0000;\">\"T&hree\"</span> _3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">16</span> ;<br />HELPID <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #000000;\">102</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 /><br />oTitle:<span style=\"color: #000000;\">nShadowIntensity</span> = <span style=\"color: #000000;\">70</span><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;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> DLG_GRAD<span style=\"color: #000000;\">(</span> oDlg, .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;\">// ------------- DIALOG-GRADIENT -------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> DLG_GRAD<span style=\"color: #000000;\">(</span> oDlg, lDir<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> hDC, hBmp, hBmpOld, nWidth, nHeight, oBrush<br /><br /><span style=\"color: #00C800;\">IF</span> Empty<span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span><br /> nHeight := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>lDir,oDlg:<span style=\"color: #000000;\">nHeight</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><br /> nWidth := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>lDir,<span style=\"color: #000000;\">1</span>,oDlg:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">)</span><br /> hDC = CreateCompatibleDC<span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> hBmp = CreateCompatibleBitMap<span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #000000;\">hDC</span>, nWidth, nHeight <span style=\"color: #000000;\">)</span><br /> hBmpOld = SelectObject<span style=\"color: #000000;\">(</span> hDC, hBmp <span style=\"color: #000000;\">)</span><br /> GradientFill<span style=\"color: #000000;\">(</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, nHeight, nWidth, aDLG, lDir <span style=\"color: #000000;\">)</span><br /> DeleteObject<span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br /> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> = CreatePatternBrush<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, hBmpOld <span style=\"color: #000000;\">)</span><br /> oDlg:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:1i1b408u]\n\nBest Regards\nUwe : <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "20:35",
"topic": "A Possible Extension in Class VTitle FWH 9.07 ?",
"username": "ukoenig"
}
] |
A Possible Extension in Class VTitle FWH 9.07 ?
|
[
{
"date": "2009-08-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe,\n\nYou have defined the controls with the \"OF oDlg\" clause thus they are inheriting from oDlg. I think you meant to use \"OF oTitle.\"\n\nJames",
"time": "01:57",
"topic": "A Possible Extension in Class VTitle FWH 9.07 ?",
"username": "James Bott"
}
] |
A Possible Extension in Class VTitle FWH 9.07 ?
|
[
{
"date": "2009-08-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nwith Title it doesn't work, because Radios and Checkboxes are unknown :\n\n@ 4.2, 10 CHECKBOX oChk VAR lChk OF [color=#FF0000:1dy350lw]oTitle[/color:1dy350lw] // oDlg\n\nError description: Warning BASE/1004 Message not found: TTITLE:DEFCONTROL\n Args:\n\nStack Calls\n===========\n Called from: source\\rtl\\tobject.prg => TTITLE:ERROR(172)\n Called from: source\\rtl\\tobject.prg => TTITLE:MSGNOTFOUND(205)\n Called from: source\\rtl\\tobject.prg => TTITLE:DEFCONTROL(0)\n Called from: .\\source\\classes\\CHECKBOX.PRG => TCHECKBOX:NEW(133)\n Called from: testtitl.prg => START_DLG(55)\n Called from: testtitl.prg => (b)MAIN(25)\n Called from: .\\source\\classes\\WINDOW.PRG => TWINDOW:ACTIVATE(945)\n Called from: testtitl.prg => MAIN(25)\n\nAnother way :\n----------------\nnMainStyle = nOR( WS_OVERLAPPED | WS_VISIBLE )\nDEFINE DIALOG oDlg FROM 15, 15 TO 250, 500 OF oWnd STYLE nMainStyle PIXEL TRANSPARENT\n\n@ 0, 0 TITLE oTitle size 242, 115 of oDlg SHADOW BOTTOMLEFT SHADOWSIZE 2\n[color=#FF0000:1dy350lw]oTitle:lTransparent := .T.[/color:1dy350lw]\n\n@ 4.2, 10 CHECKBOX oChk VAR lChk OF [color=#FF0000:1dy350lw]oDlg[/color:1dy350lw] \noChk:lTransparent := .T.\n\n-----------------------------\n\nA Title on Top of a Dialog with the Title-Size ( just a empty Dialog-Frame ).\nThe Gradient is defined for the Dialog, the Title is transparent.\nBut to do it this way, You will loose the round Corners of the Title. \n\n[img:1dy350lw]http://www.pflegeplus.com/pictures/vtitle4.jpg[/img:1dy350lw]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "02:20",
"topic": "A Possible Extension in Class VTitle FWH 9.07 ?",
"username": "ukoenig"
}
] |
A Possible Extension in Class VTitle FWH 9.07 ?
|
[
{
"date": "2009-08-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ewe,\n\n>Error description: Warning BASE/1004 Message not found: TTITLE:DEFCONTROL\n\nI have not looked at the TTitle class yet, but it seems it was not designed to contain controls.\n\nJames",
"time": "02:27",
"topic": "A Possible Extension in Class VTitle FWH 9.07 ?",
"username": "James Bott"
}
] |
A Possible Extension in Class VTitle FWH 9.07 ?
|
[
{
"date": "2009-05-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI finished the Basics on the new ButtonTools and is it a first Overview of the Results.\n\nWhat we can do :\n1. Select any Backgrounds : Color, Gradient, Style-Brush, Image-Brush and Image in Relation to the Buttons.\n2. Select a Button-Image and set 2 other Buttons in combination with Text TOP, BOTTOM, LEFT and RIGHT.\n3. One Click-Preview shows Buttons from Source or Resource with and without Border and 2007-Style.\n4. A Activate-Button for each Dialog-Preview. A Close-all-Button, to close all open Dialogs ( Previews ).\n5. Define the Button-Size for the Preview\n6. Write the Source for the Button-selections.\n7. A Gradient-Designer and Button-Resizer in the Setup-Section.\n8. Button-Sets can be stored to a Database and Reloaded.\n9. Display of Alpha-Blended-BMP's on Dialog-Bottom ( free Selection of the Image in the Setup-Section ).\n10. Transparent Text with defined Font, Color and Size ( is shown together with the Alpha-Blended BMP )\n+ some more functions.\n\nBecause it is possible now, to do a Preview with all possible Combinations, \na Test shows, that Buttons are not displayed with Borders, using Resources.\nWith Style 2007 and from Source, the Borders are shown.\nOn a Dialog Preview, the upper 3 Buttons are shown without Border.\nThe second Line ( 3 Buttons ) must have Borders.\n\n[img:29hxqcar]http://www.pflegeplus.com/pictures/btntools1.jpg[/img:29hxqcar]\n[img:29hxqcar]http://www.pflegeplus.com/pictures/btntools2.jpg[/img:29hxqcar]\nMissing Button-Border with Style-Brush and Resources\n[img:29hxqcar]http://www.pflegeplus.com/pictures/btntools5.jpg[/img:29hxqcar]\n\nProblem transparent Buttons on Images ?. Style 2007 works.\n[img:29hxqcar]http://www.pflegeplus.com/pictures/btntools3.jpg[/img:29hxqcar]\nThe same with Gradient-Background :\n[img:29hxqcar]http://www.pflegeplus.com/pictures/btntools4.jpg[/img:29hxqcar]\n-----------------------------------------------------------------------\nDEFINE DIALOG oDlg3 RESOURCE \"DIALOG1\" of oWnd ;\nTITLE \"Buttons from Resource Transparent\" TRANSPARENT\n\n// ----- Transparent Button NOBORDER ---------\n[color=#FF0000:29hxqcar]Not Transparent[/color:29hxqcar]\nREDEFINE BTNBMP oBtn1 ID 100 OF oDlg3 ;\nNOBORDER ;\nFILENAME cBUTTON1 ;\nACTION MsgAlert( \"Button-Click\", \"Button 1\" ) ;\nPROMPT \"But.1\" ;\nFONT oFont1 ;\nRIGHT\noBtn1:lTransparent = .t. \noBtn1:cTooltip := \"Button1\"\n[color=#FF0000:29hxqcar]Not Transparent on Images.[/color:29hxqcar]\nColors, Gradient, Styles and Image-Brush is OK.\n\nREDEFINE SAY oSay3 PROMPT \"Alpha-Blended BMP\" ID 230 OF oDlg3 FONT oFont2 \noSay3:lTransparent = .t. \n-----------------------------------------------------------\n\nThe Dialog-Resource :\n[code=fw:29hxqcar]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//------------------- RESOURCE - TEST 1 -----------------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> DLG_RES1<span style=\"color: #000000;\">(</span> oWnd,oFont1, oFont2 <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> oBtn1, oBtn2, oBtn3, oBtn4, oBtn5, oBtn6, oBtn7, oSay3<br /><br /><span style=\"color: #00C800;\">IF</span> lOPEN<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> = .T.<br /> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Test allready activated !\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br />lOPEN<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> := .T.<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg3 <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"DIALOG1\"</span> <span style=\"color: #0000ff;\">of</span> oWnd ;<br /><span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Buttons from Resource Transparent\"</span> TRANSPARENT<br /><br /><span style=\"color: #B900B9;\">// Color</span><br /><span style=\"color: #B900B9;\">// -------</span><br /><span style=\"color: #00C800;\">IF</span> nSTYLE = <span style=\"color: #000000;\">1</span><br /> D_COLOR<span style=\"color: #000000;\">(</span> oDlg3 <span style=\"color: #000000;\">)</span> <br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// Style-Brush</span><br /><span style=\"color: #B900B9;\">// ----------------</span><br /><span style=\"color: #00C800;\">IF</span> nSTYLE = <span style=\"color: #000000;\">3</span><br /> D_BRUSH<span style=\"color: #000000;\">(</span> oDlg3 <span style=\"color: #000000;\">)</span> <br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// ImageBrush</span><br /><span style=\"color: #B900B9;\">// ----------------</span><br /><span style=\"color: #00C800;\">IF</span> nSTYLE = <span style=\"color: #000000;\">4</span><br /> DB_IMAGE<span style=\"color: #000000;\">(</span> oDlg3 <span style=\"color: #000000;\">)</span> <br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// ----- Transparent Buttons with NOBORDER ---------</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">OF</span> oDlg3 ;<br />NOBORDER ;<br />FILENAME cBUTTON1 ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Button-Click\"</span>, <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"But.1\"</span> ;<br /><span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br /><span style=\"color: #0000ff;\">RIGHT</span><br />oBtn1:<span style=\"color: #000000;\">lTransparent</span> = .t. <br />oBtn1:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Button1\"</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">OF</span> oDlg3 ;<br />NOBORDER ;<br />FILENAME cBUTTON1 ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Button-Click\"</span>, <span style=\"color: #ff0000;\">\"Button 2\"</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"But.2\"</span> ;<br /><span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br /><span style=\"color: #0000ff;\">LEFT</span><br />oBtn2:<span style=\"color: #000000;\">lTransparent</span> = .t.<br />oBtn2:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Button2\"</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn3 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">120</span> <span style=\"color: #0000ff;\">OF</span> oDlg3 ;<br />NOBORDER ;<br />FILENAME cBUTTON1 ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Button-Click\"</span>, <span style=\"color: #ff0000;\">\"Button 3\"</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"But.3\"</span> ;<br /><span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br />TOP<br />oBtn3:<span style=\"color: #000000;\">lTransparent</span> = .t.<br />oBtn3:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Button3\"</span><br /><br /><span style=\"color: #B900B9;\">// ----- Transparent Buttons with BORDER ( doesn't work !!!! ) ---------</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg3 ;<br />FILENAME cBUTTON1 ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Button-Click\"</span>, <span style=\"color: #ff0000;\">\"Button 4\"</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"But.4\"</span> ;<br /><span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br />BOTTOM<br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t. <br />oBtn4:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Button4\"</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn5 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">OF</span> oDlg3 ;<br />FILENAME cBUTTON2 ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Button-Click\"</span>, <span style=\"color: #ff0000;\">\"Button 5\"</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" \"</span> <br />oBtn5:<span style=\"color: #000000;\">lTransparent</span> = .t. <br />oBtn5:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Button5\"</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn6 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">220</span> <span style=\"color: #0000ff;\">OF</span> oDlg3 ;<br />FILENAME cBUTTON3 ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Button-Click\"</span>, <span style=\"color: #ff0000;\">\"Button 6\"</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" \"</span> <br />oBtn6:<span style=\"color: #000000;\">lTransparent</span> = .t. <br />oBtn6:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Button6\"</span><br /><br /><span style=\"color: #B900B9;\">// --------------</span><br /> <br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn7 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">OF</span> oDlg3 <span style=\"color: #000000;\">2007</span> ;<br />FILENAME <span style=\"color: #ff0000;\">\"./system/stop.bmp\"</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Close\"</span> ;<br /><span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br /><span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> lOPEN<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> := .F., oDlg3:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br />oBtn7:<span style=\"color: #000000;\">lTransparent</span> = .t. <br />oBtn7:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Close\"</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay3 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Alpha-Blended BMP\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">230</span> <span style=\"color: #0000ff;\">OF</span> oDlg3 <span style=\"color: #0000ff;\">FONT</span> oFont2 <br />oSay3:<span style=\"color: #000000;\">lTransparent</span> = .t. <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg3 <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">NOWAIT</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span> oDlg3:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">470</span>, <span style=\"color: #000000;\">430</span>, <span style=\"color: #000000;\">290</span>, .f. <span style=\"color: #000000;\">)</span>, DisableX<span style=\"color: #000000;\">(</span>oDlg3, .T.<span style=\"color: #000000;\">)</span>, ;<br /> oBtn1:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">(</span> nButtonW, nButtonH, .T. <span style=\"color: #000000;\">)</span>, ;<br /> oBtn2:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">(</span> nButtonW, nButtonH, .T. <span style=\"color: #000000;\">)</span>, ;<br /> oBtn3:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">(</span> nButtonW, nButtonH, .T. <span style=\"color: #000000;\">)</span>, ;<br /> oBtn4:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">(</span> nButtonW, nButtonH, .T. <span style=\"color: #000000;\">)</span>, ;<br /> oBtn5:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">(</span> nButtonW, nButtonH, .T. <span style=\"color: #000000;\">)</span>, ;<br /> oBtn6:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">(</span> nButtonW, nButtonH, .T. <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> <span style=\"color: #000000;\">(</span> D_ALPHA<span style=\"color: #000000;\">(</span> hDC <span style=\"color: #000000;\">)</span>, ;<br /> IIF<span style=\"color: #000000;\">(</span> nSTYLE = <span style=\"color: #000000;\">2</span>, D_GRADIENT<span style=\"color: #000000;\">(</span> hDC, oDlg3 <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">)</span>, ;<br /> IIF<span style=\"color: #000000;\">(</span> nSTYLE = <span style=\"color: #000000;\">5</span>, DL_IMAGE<span style=\"color: #000000;\">(</span> oDlg3 <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">NIL</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 /> </div>[/code:29hxqcar]\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "21:40",
"topic": "A Preview and Question for the new ButtonTools",
"username": "ukoenig"
}
] |
A Preview and Question for the new ButtonTools
|
[
{
"date": "2008-03-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI finished the job on the xBrowse-Tool.\nI think, it will be helpfull for the FWH-users.\nThe Tool writes the source of the done design.\nThere are notes included, on Lines, where you have\nadd your own source.\nI' m still waiting for the new release FWH 8.04\nto add the new features.\nIt works together with the Infobar-designer.\nThe look of the tool will have the design you have done. \nWhen it is finished, i put it in the forum.\nWhen there is still something missing, just tell me.\n\n[img:3dw6zxn6]http://pflegeplus.com/pictures/designer4.jpg[/img:3dw6zxn6]\n\nRegards\n\nUwe[/img]",
"time": "17:26",
"topic": "A Preview on the xBROWSE - Tool",
"username": "ukoenig"
}
] |
A Preview on the xBROWSE - Tool
|
[
{
"date": "2008-04-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "DO you Know SETUP COL.prg ?\nit' an old application for wbrowse but you can modify easy for xbeowse",
"time": "07:31",
"topic": "A Preview on the xBROWSE - Tool",
"username": "Silvio"
}
] |
A Preview on the xBROWSE - Tool
|
[
{
"date": "2008-04-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello, Silvio\n\nMaybe the tool can be helpfull, but i don't know it.\n\nFor me, the program has to be a lern-effect\nfor the new functions and what is possible to do with FWH. \nSo i try, to find out by myself what to do.\nThere are also many helpfull informations from\nthe forum users.\n\nIn the end, it could be someting usefull for everybody. \n\nRegards\n\nUwe",
"time": "18:14",
"topic": "A Preview on the xBROWSE - Tool",
"username": "ukoenig"
}
] |
A Preview on the xBROWSE - Tool
|
[
{
"date": "2008-08-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\r\n\r\nI finished the job on the xBrowse-Tools.\r\nFolder-Pages 2,3 and 4 are added.\r\nYou can test all xBrowse-methods at runtime.\r\nThe source of each page-test is written to a field,\r\nto copy and past in your program.\r\n\r\nPage 1\r\n------\r\nTesting of Header and Footer :\r\nGradient and Color, Size, Text-Size and Color\r\nUsing sliders to adjust Header and Footer-height\r\nas well for gradient-adjustment.\r\n\r\nPage 2\r\n------\r\nTesting of Styles :\r\nLine-Style and Color,Pen-Size, Grid\r\n\r\nPage 3\r\n------\t\r\nTesting Browser Data-part :\r\nRow-Colors, Colors ( Row or Col defined ),\t\r\nFonts ( Color and Size ), Preview of Double lines in Cells,\r\nSwitching Color-Preview from Rows to Colums.\r\nSwitching colors A <-> B\r\n\r\nPage 4\r\n------\t\r\nBackground ( Pictures and Brushes )\r\nCell-Bitmaps, Row Focus ( Colors )\t\r\n\r\nPage 1 : Header and Footer\r\n\r\n[img:2d90vkuo]http://www.pflegeplus.com/pictures/BrowseT1.jpg[/img:2d90vkuo]\r\n\r\nPage 2 : Styles and Colors\r\n\r\n[img:2d90vkuo]http://www.pflegeplus.com/pictures/BrowseT2.jpg[/img:2d90vkuo]\r\n\r\nPage 3 : Data-colors and Fonts\r\n\r\n[img:2d90vkuo]http://www.pflegeplus.com/pictures/BrowseT3a.jpg[/img:2d90vkuo]\r\n\r\nPage 4 : Backgrounds and Cell-Bitmaps\r\n\r\n[img:2d90vkuo]http://www.pflegeplus.com/pictures/BrowseT6a.jpg[/img:2d90vkuo]\r\n\r\nUsing Gradient-Background in xBrowse-Data-area\r\n\r\n[img:2d90vkuo]http://www.pflegeplus.com/pictures/BrowseT5.jpg[/img:2d90vkuo]\r\n\r\nThere are still some special things, i want to do.\r\n( not included in xBrowse, like adjustment of background-images\r\nto data-size, because brushes are shown tiled )\r\nWill be in FWH-Version 8.09.\r\nAfter that, i can put the tools in the forum for download.\r\n\r\nBest Regards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "10:30",
"topic": "A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )",
"username": "ukoenig"
}
] |
A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )
|
[
{
"date": "2008-08-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": ">\r\n( not included in xBrowse, like adjustment of background-images \r\nto data-size, because brushes are shown tiled )\r\n>\r\nThis feature is already available in xbrowse for quite long time.\r\nif oCol:lBmpStretch is set to True, the back ground image of the column is stretched to fit the datawidth. Bmp is streched to fill the entire cell and data is painted over the bitmap",
"time": "14:53",
"topic": "A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )",
"username": "nageswaragunupudi"
}
] |
A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )
|
[
{
"date": "2008-08-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello from Germany,\r\n\r\nI don't need it for a col, that is no problem.\r\nI have to adjust a brush to the full aerea of the datas.\r\nIf i resize the browser, the brush ( picture )\r\nhas to be adjusted to the new browser-size.\r\n\r\n[img:1lgijrqw]http://www.pflegeplus.com/pictures/xbrowse11.jpg[/img:1lgijrqw]\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "15:00",
"topic": "A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )",
"username": "ukoenig"
}
] |
A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )
|
[
{
"date": "2008-08-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I understand. Still not provided.\r\nWish they provide DATA bPaintBackGround and leave the painting of background to us.",
"time": "15:02",
"topic": "A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )",
"username": "nageswaragunupudi"
}
] |
A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )
|
[
{
"date": "2008-08-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you very much for the reply,\r\n\r\nthat is exactly what i mean.\r\n\r\nThat is the trick i used, to show a gradient in the data-erea :\r\nI used the WTools, created a nice gradient and selected a part\r\nas brush for xbrowse-background.\r\nThat looks nice, as long you don't resize the browser.\r\n( see also toppic : browse-tools 2.0 preview )\r\n\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "15:06",
"topic": "A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )",
"username": "ukoenig"
}
] |
A Preview on xBrowse-Tools 2.0 ( new Pages 2,3 and 4 )
|
[
{
"date": "2011-07-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "To Daniel,\n\nI changed a normal Button to BtnBmp inside VTitles, because it looks much better.\n\nAll Background-styles are working fine, but not using Gradient and Base.\nIs it possible, to fix the Problem ? ( I would like, to keep the round Button ).\nOtherwise I have to change the Button-class using Gradient-background. \n\n[color=#FF0000:m8c40hnp]oBar1:aGrdBack := { { nGradPos, nColor1, nColor2 },{ nGradPos, nColor2, nColor1 } }[/color:m8c40hnp] \n\n[img:m8c40hnp]http://www.pflegeplus.com/pictures/about15.jpg[/img:m8c40hnp]\n\nAs soon I select a Gradient-background there is a Error ( the Button cannot detect the Gradient ) :\n\n[img:m8c40hnp]http://www.pflegeplus.com/pictures/about16.jpg[/img:m8c40hnp]\n\n[color=#0000FF:m8c40hnp]Application\n===========\n Path and name: E:\\T_MESSAGE\\Message.exe (32 bits)\n Size: 1,772,032 bytes\n Time from start: 0 hours 0 mins 6 secs \n Error occurred at: 07/07/11, 21:52:15\n Error description: Error BASE/1004 Class: 'NIL' has no exported method: HBITMAP\n Args:\n [ 1] = U \n\nStack Calls\n===========\n Called from: => HBITMAP(0)\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:PAINT(1267)\n Called from: .\\source\\classes\\BTNBMP.PRG => (b)TBTNBMP:TBTNBMP(112)\n Called from: => TBTNBMP:DISPLAY(0)\n Called from: .\\source\\classes\\CONTROL.PRG => TCONTROL:HANDLEEVENT(1459)\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1450)\n Called from: .\\source\\classes\\WINDOW.PRG => _FWH(3394)\n Called from: => WINRUN(0)\n Called from: .\\source\\classes\\WINDOW.PRG => TWINDOW:ACTIVATE(978)\n Called from: .\\Message.PRG => MAIN(539)[/color:m8c40hnp]\n\nI got it working, but no Solution of using BASE :\n\n[img:m8c40hnp]http://www.pflegeplus.com/pictures/about17.jpg[/img:m8c40hnp]\n\n[color=#008000:m8c40hnp]\taGrad := { { nGradPos, nColor1, nColor2 },{ nGradPos, nColor2, nColor1 } }\n\toBar1:aGrdBack := {}\n\thDC = CreateCompatibleDC( oBar1:GetDC() )\n\thBmp = CreateCompatibleBitMap( oBar1:hDC, oBar1:nWidth, oBar1:nHeight )\n\thBmpOld = SelectObject( hDC, hBmp )\n\tGradientFill( hDC, 0, 0, oBar1:nHeight, oBar1:nWidth, aGrad )\n\toBrush := TBrush():New( ,,,, hBmp )\n\toBrush:Cargo := aGrad\n\tSelectObject( hDC, hBmpOld )\n\toBar1:ReleaseDC()\n\toBar1:SetBrush( oBrush )\n\tRELEASE BRUSH oBrush[/color:m8c40hnp]\n\nThat doesn't work using BtnBmp :\n\n[color=#FF0000:m8c40hnp]oBar1:aGrdBack := { { nGradPos, nColor1, nColor2 },{ nGradPos, nColor2, nColor1 } } [/color:m8c40hnp]\n\n[color=#FF0000:m8c40hnp]oBar1:aGrdBase := { { nGradPos, nColor1, nColor2 } , ;\n{ nGradPos, nColor2, nColor1 } }[/color:m8c40hnp]\n\nTesting with BASE\ndoesn't crash, but not the expected Result :\n\n[img:m8c40hnp]http://www.pflegeplus.com/pictures/about18.jpg[/img:m8c40hnp]\n\n\t[color=#FF0000:m8c40hnp]oBar1:lBase := .T.[/color:m8c40hnp]\t\naGrad := { { nGradPos, nColor1, nColor2 },{ nGradPos, nColor2, nColor1 } }\n\toBar1:aGrdBack := {}\n\thDC = CreateCompatibleDC( oBar1:GetDC() )\n\thBmp = CreateCompatibleBitMap( oBar1:hDC, oBar1:nWidth, oBar1:nHeight )\n\thBmpOld = SelectObject( hDC, hBmp )\n\tGradientFill( hDC, 0, 0, oBar1:nHeight, oBar1:nWidth, aGrad )\n\toBrush := TBrush():New( ,,,, hBmp )\n\toBrush:Cargo := aGrad\n\tSelectObject( hDC, hBmpOld )\n\toBar1:ReleaseDC()\n\toBar1:SetBrush( oBrush )\n\tRELEASE BRUSH oBrush\n\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "20:47",
"topic": "A Problem using : VTitles, Gradient / Base and BtnBmp",
"username": "ukoenig"
}
] |
A Problem using : VTitles, Gradient / Base and BtnBmp
|
[
{
"date": "2011-07-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello\n\nPlease send me a sample, but the ttitle class has not designed like a parent control...",
"time": "01:08",
"topic": "A Problem using : VTitles, Gradient / Base and BtnBmp",
"username": "Daniel Garcia-Gil"
}
] |
A Problem using : VTitles, Gradient / Base and BtnBmp
|
[
{
"date": "2011-07-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Daniel,\n\nThank You for the Response,\nmaybe to much work to find and change something inside classes.\n\n[color=#0000FF:3mp5jtke]the ttitle class has not designed like a parent control[/color:3mp5jtke]\n\nI don't know why, but all the things I want to do, somehow I got working.\n\nI found a Solution to change Buttons at Runtime.\nUsing Base, a normal Button works.\n\n[img:3mp5jtke]http://www.pflegeplus.com/pictures/about19.jpg[/img:3mp5jtke]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "01:54",
"topic": "A Problem using : VTitles, Gradient / Base and BtnBmp",
"username": "ukoenig"
}
] |
A Problem using : VTitles, Gradient / Base and BtnBmp
|
[
{
"date": "2011-07-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Found a working Solution !\n\n[img:j546izbm]http://www.pflegeplus.com/pictures/about20.jpg[/img:j546izbm]\n\n[code=fw:j546izbm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">IF</span> nStyle <> <span style=\"color: #000000;\">8</span> <span style=\"color: #B900B9;\">// Button for all Styles NO Base</span><br /> @ nHeight - <span style=\"color: #000000;\">55</span>, nWidth - <span style=\"color: #000000;\">50</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn <span style=\"color: #0000ff;\">OF</span> oBar2 ;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">40</span> <span style=\"color: #0000ff;\">PIXEL</span>;<br /> NOBORDER ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&OK\"</span> ;<br /> FILENAME c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\\"</span> + cTButton ;<br /> ACTION MsgAlert( \"</span>Exit-<span style=\"color: #0000ff;\">action</span><span style=\"color: #ff0000;\">\", \"</span>Attention !<span style=\"color: #ff0000;\">\" ) ; <br /> FONT oSysFont1 ;<br /> CENTER<br /> oBtn:lTransparent := .t. <br /> oBtn:cToolTip = { \"</span>Close <span style=\"color: #ff0000;\">\" + CRLF + \"</span><span style=\"color: #0000ff;\">Message</span><span style=\"color: #ff0000;\">\",\"</span><span style=\"color: #0000ff;\">Message</span> End<span style=\"color: #ff0000;\">\", ;<br /> 1, CLR_BLACK, 14089979 }<br /> oBtn:SetColor( 0, )<br />ELSE // only BASE<br /> @ nHeight - 37, nWidth - 36 TITLETEXT OF oBar2 ;<br /> TEXT \"</span>OK<span style=\"color: #ff0000;\">\" FONT oSysFont1 COLOR 0<br /> @ nHeight - 52, nWidth - 52 TITLEIMG oBtn OF oBar2 ;<br /> BITMAP c_Path + \"</span>\\<span style=\"color: #0000ff;\">Bitmaps</span>\\<span style=\"color: #ff0000;\">\" + cTButton SIZE 48, 48 ANIMA LEVEL 255 ;<br /> ACTION MsgAlert( \"</span>Exit-<span style=\"color: #0000ff;\">action</span><span style=\"color: #ff0000;\">\", \"</span>Attention !<span style=\"color: #ff0000;\">\" )<br />ENDIF<br /></span></div>[/code:j546izbm]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "09:58",
"topic": "A Problem using : VTitles, Gradient / Base and BtnBmp",
"username": "ukoenig"
}
] |
A Problem using : VTitles, Gradient / Base and BtnBmp
|
[
{
"date": "2019-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I noticed a problem using xbrowse[color=#0000FF:aalm91z6] [b:aalm91z6]autofocus [/b:aalm91z6][/color:aalm91z6]in combination with MARQSTYLE_HIGHLCELL\n\nThe following happens :\n\nMARQSTYLE_HIGHLROW is working ( image 1 )\n\nMARQSTYLE_HIGHLCELL is painting the focus color of [color=#0000FF:aalm91z6]ONE[/color:aalm91z6] cell only, if moving [color=#0000FF:aalm91z6]VERTICAL[/color:aalm91z6] to another row. ( image 2 )\n\n[color=#0000FF:aalm91z6][b:aalm91z6]oBrw:nMarqueeStyle := MARQSTYLE_HIGHLCELL\noBrw:lHoverSelect := .T. // autofocus YES / NO[/b:aalm91z6][/color:aalm91z6]\n\nSelecting another cell inside [color=#0000FF:aalm91z6]the same row[/color:aalm91z6], the focus color of the old cell ( lost focus ) is not deleted and still visible( image 3 )\n\nI added control-fields on top of the browser to find a solution.\nA selected column 2 still shows column 4 ( only if changing the column inside [color=#0000FF:aalm91z6]the sane row [/color:aalm91z6]) <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\nTo get the col-pos I'm using :\n[color=#0000FF:aalm91z6]nColPos := oBrw:SelectedCol():nCreationOrder[/color:aalm91z6]\n\n[img:aalm91z6]http://www.pflegeplus.com/IMAGES/Autofocus3.jpg[/img:aalm91z6]\n\n[img:aalm91z6]http://www.pflegeplus.com/IMAGES/Autofocus1.jpg[/img:aalm91z6]\n\nI still noticed another problem using < oBrw:nMarqueeStyle := MARQSTYLE_HIGHLCELL >\n[color=#0000FF:aalm91z6]oBrw:lContrastClr := .F.[/color:aalm91z6] must be defined ( seems to be .T. by default )\notherwise changing the focus, the textcolor in some cells is shown in white on a brushed xbrowse background like the screenshot shows. It works changing oBrw:lContrastClr to .F. \n\n[img:aalm91z6]http://www.pflegeplus.com/IMAGES/Autofocus2.jpg[/img:aalm91z6]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->",
"time": "19:24",
"topic": "A Problem w. autofocus and marquestyle_highlight_cell ?",
"username": "ukoenig"
}
] |
A Problem w. autofocus and marquestyle_highlight_cell ?
|
[
{
"date": "2008-09-07",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Hi Antonio\r\n\r\nI am trying to Disable() / Enable() menuitems as they become valid depending upon what else has happened in a program.\r\n\r\nThe problem is that\r\n\r\nMENUITEM <oItem> PROMPT <cPrompt> ACTION <uAction> is setting <oItem> to nil rather than the new menu item. I have modified tutor04.prg to demonstrate the problem:\r\n\r\n[code:f0obzkcr]#include \"FiveLinux.ch\"\n\nstatic oWnd\n\nfunction Main()\n\n local lVal := .t., cName := \"Hello\", cItem, cLbx, nVal := 100, oBar\n\n DEFINE WINDOW oWnd TITLE \"Testing controls\" ;\n MENU BuildMenu()\n\n DEFINE BUTTONBAR oBar OF oWnd\n\n DEFINE BUTTON OF oBar RESOURCE \"gtk-new\" ACTION MsgInfo( \"New\" )\n\n DEFINE BUTTON OF oBar RESOURCE \"gtk-open\" ACTION MsgInfo( \"Open\" )\n\n DEFINE BUTTON OF oBar RESOURCE \"gtk-save\" ;\n ACTION MsgInfo( \"Save\" ) GROUP\n\n DEFINE BUTTON OF oBar RESOURCE \"gtk-quit\" ACTION oWnd:End()\n\n @ 9, 1 SAY \"A Say\" OF oWnd\n\n @ 12, 2 CHECKBOX lVal PROMPT \"Click me\" OF oWnd\n\n @ 15, 2 GET cName OF oWnd\n\n @ 18, 2 COMBOBOX cItem OF oWnd ITEMS { \"one\", \"two\", \"three\" }\n\n @ 9, 22 LISTBOX cLbx OF oWnd ITEMS { \"one\", \"two\", \"three\", \"four\", \"five\", \"six\", \"seven\", \"eight\", \"nine\", \"ten\", \"eleven\", \"twelve\" }\n\n @ 21, 2 METER nVal TOTAL 200 OF oWnd\n\n @ 24, 2 IMAGE FILENAME \"flh.gif\" OF oWnd\n\n @ 26, 30 BUTTON \"\" OF oWnd ACTION MsgInfo( cLbx ) RESOURCE \"gtk-ok\"\n\n @ 26, 39 BUTTON \"\" OF oWnd ACTION MsgInfo( cItem ) RESOURCE \"gtk-cancel\"\n\n SET MSGBAR OF oWnd TO \" FiveLinux - (c) FiveTech Software 2008\"\n\n ACTIVATE WINDOW oWnd ;\n VALID MsgYesNo( \"Are you sure ?\" ) ;\n ON RIGHT CLICK MsgInfo( \"right click\" )\n\nreturn nil\n\nfunction BuildMenu()\n\n local oMenu\n local m2 // I added this variable\n\n MENU oMenu\n MENUITEM \"One\"\n MENU\n MENUITEM \"First\" RESOURCE \"gtk-new\" ACTION MsgInfo( \"New\" )\n\t MENU\n\t MENUITEM \"One\"\n\t MENUITEM m2 PROMPT \"Two\" // and modified this line so that m2 should be this menu item\n\t SEPARATOR\n\t MENUITEM \"Three\"\n\t ENDMENU\n\t MENUITEM \"Second\" RESOURCE \"gtk-quit\" ACTION oWnd:End()\n ENDMENU\n\n MENUITEM \"Two\" ACTION MsgInfo( \"Two\" )\n MENUITEM \"Three\" ACTION MsgInfo( \"Three\" )\n ENDMENU\n MsgInfo( ValType( m2 ) ) // I added this MsgInfo which tells us that m2 is Undefined. Why?\n m2:Disable() // so this line produces an error.\n\nreturn oMenu[/code:f0obzkcr]\n\nWhen I look at FiveLinux.ch I see that the MENUITEM command is being preprocessed into a call to MenuAddItem()\n\n[code:f0obzkcr]#xcommand MENUITEM [ <oMenuItem> PROMPT ] [<cPrompt>] ;\n\t\t\t [ ACTION <uAction> ] ;\n\t\t\t [ <resource: RESOURCE, NAME, RESNAME> <cResName> ] ;\n\t\t\t => ;\n\t\t\t [ <oMenuItem> := ] MenuAddItem( <cPrompt>,;\n\t\t\t [ \\{|o| <uAction> \\} ], <cResName> )[/code:f0obzkcr]\r\n\r\nI can't find MenuAddItem() but my guess is it must be returning nil. As I can't find it I can't attempt to fix it.\r\n\r\nBut, as always, my diagnosis could be wrong.\r\n\r\nRegards\r\nDoug",
"time": "13:13",
"topic": "A Problem with MenuItems (or Me!)",
"username": "xProgrammer"
}
] |
A Problem with MenuItems (or Me!)
|
[
{
"date": "2008-09-07",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Doug,\r\n\r\nYou are right. There is a bug in FiveLinux\\source\\classes\\pdmenu.prg.\r\n\r\nfunction MenuAddItem() has to be modified this way:\r\n[code:18izk7sq]\nfunction MenuAddItem( cPrompt, bAction, cResName )\n\n local oItem \n\n ATail( aMenus ):Add( oItem := TMenuItem():New( cPrompt, bAction, cResName ) )\n\nreturn oItem\n[/code:18izk7sq]\r\nThanks for your feedback <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "17:51",
"topic": "A Problem with MenuItems (or Me!)",
"username": "Antonio Linares"
}
] |
A Problem with MenuItems (or Me!)
|
[
{
"date": "2008-09-07",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Hi Antonio\r\n\r\nThanks so much for the prompt response and bug fix. I still can't achieve what I want. I now realise that TMenu and TMenuItem aren't subclasses of TControl and hence of TWindow. As a result they don't support Disable() or Enable().\r\n\r\nIt would be nice to be able to enable or disable menu items. Failing that to add or delete them.I'm sure I did it in FiveWin. (Don't have the source handy). I did look at the FiveWin documentation and saw that MENUITEM has [ ENABLED | DISABLED ] support.\r\n\r\nRegards\r\nDoug",
"time": "22:32",
"topic": "A Problem with MenuItems (or Me!)",
"username": "xProgrammer"
}
] |
A Problem with MenuItems (or Me!)
|
[
{
"date": "2008-04-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi FiveWinnners\n\nI have some questions about DIALOGs that I probably should have asked some time ago, and maybe just shows that I don't quite understand, but here goes:\n\nOK I have DIALOGS (objects of class TDialog) which I create programmatically. In other words my code looks something like this:\n\n[code:1wuwhpi0]DEFINE DIALOG dlgPATIENT TITLE sTitle SIZE 950, 650\n@ 3, 1 SAY \"Key\" OF dlgPATIENT SIZE 90, 25 \n// rest of definition\n @ 60, 51 BUTTON btnQUIT PROMPT \"Quit\" ACTION ( ::cExitCode := \"Q\", dlgPATIENT:End() ) OF dlgPATIENT \nACTIVATE DIALOG dlgPATIENT CENTERED [/code:1wuwhpi0]\n\nSo dlgPATIENT points to an object of class TDialog. I want to use that TDialog object many times. But it seems that dlgPATIENT:End() partly destroys it, because if I try to reuse it later with:\n\n[code:1wuwhpi0]ACTIVATE DIALOG dlgPATIENT CENTERED [/code:1wuwhpi0]\n\nThe screen will often come up the second time but not properly and is completely skew wiff by the third time.\n\nI assume I have to call dlgPATIENT:End() to stop its message loop. Is that correct? Is there some other way?\n\nIs anyone out there reusing their DIALOGs in such a manner or do you go through your code that creates them (DEFINE DIALOG) each time you need to use them.\n\nThanks\nxProgrammer",
"time": "23:05",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": ">Is anyone out there reusing their DIALOGs in such a manner or do you go through your code that creates them (DEFINE DIALOG) each time you need to use them.\n\nYou need to call the code each time.\n\nIf you need to call it from multiple places, then just put it into a function or a method of a custom class.\n\nJames",
"time": "23:49",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nThanks for the quick reply. It's nice to know that it's not just me.\n\nI do build my DIALOGs in class methods so it's not difficult to rebuild them from scratch, just a call. \n\nHowever I wonder if this lack of re-usability need be the case? Maybe Antonio could comment on the possibility of being able to keep a defined DIALOG in memory ready to go as it were? It would seem to be a lot more efficient both in terms of re-defining the DIALOG and the resultant garbage collection. Most people doing data entry use just a few screens but use them many times over.\n\nThanks\nDoug\n(xProgrammer)",
"time": "00:02",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\nYou can hide it ( oDlg:Hide() ) and later on show it ( oDlg:Show() ) again instead of end it.\n\nYou may need to create it as non modal, and to simulate modal behavior, disable other windows and dialogs doing oWnd:Disable(). Later on enable them doing oWnd:Enable()",
"time": "00:15",
"topic": "A Question Abot DIALOGs",
"username": "Antonio Linares"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "As Antonio points out this may be a lot of work.\n\nAre you having a specific problem you are trying to solve, or are you looking for a solution for a problem that may not exist, or a least may not be significant?\n\nJames",
"time": "01:10",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nI guess I don't have any major problem in that I can and have written functional software as is.\n\nHowever something that I thought might have worked and would be more efficient didn't work and I wondered why. I like to understand my programming environment and its limitations.\n\nInterestingly Antonio's suggestions are pretty much in line with the general direction I might want to head in with my software. Whilst my modal dialogs are in place the user can't access the top window menu so any actions pretty much have to be buttons on the DIALOG.\n\nThinking forward it may well be that I should make my DIALOGs non-modal but where necessary enable only a single instance to be created or active at any time.\n\nOne type of functionality is to have a calendar dialog that controls other dialogs pertaining to what is happening on a given day at a given site. For each site and day you might want to display staffing, or bookings, or work done etc.\n\nThese different aspects would relate to their own classes and it would be nice to keep the UI aspects of them sitting there.\n\nIf you think of it the sort of behaviour I am looking for, it is really in keeping with the spirit of OO. Instantiate an object of class X and you can keep it there for repeated use until you destroy it - I am trying to make the UI component of my classes match that paradigm.\n\nI have programmed for a stateless environment but where I have the luxury of state let me use it.\n\nThanks for your input. I normally have a fairly pragmatic approach to programming, even if this query seems to be an example of the opposite. Indeed I wonder at the effort here consumed on (for example) the style of buttons, whereas I only need much more basic functionality. There's some very clever coding going on behind some of this, and I guess people are attracted by the latest style of button so programmers feel a need to respond, but in reality its all driven by mass marketing and doesn't really improve software usability at all IMHO.\n\nRegards\nDoug",
"time": "02:03",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>One type of functionality is to have a calendar dialog that controls other dialogs pertaining to what is happening on a given day at a given site. For each site and day you might want to display staffing, or bookings, or work done etc.\n\n>These different aspects would relate to their own classes and it would be nice to keep the UI aspects of them sitting there. \n\nOK, this sounds like a description of a Single Document Interface (SDI) similar to that of Outlook. I am a big fan of SDI.\n\nI generally don't think of this as a dialog issue, although some dialogs may be used inside a folder, window, etc. although generally they don't look or act like dialogs. \n\n>If you think of it the sort of behaviour I am looking for, it is really in keeping with the spirit of OO. Instantiate an object of class X and you can keep it there for repeated use until you destroy it - I am trying to make the UI component of my classes match that paradigm.\n\nWith a SDI I just show and hide the screens. \n\n>Thanks for your input. I normally have a fairly pragmatic approach to programming, even if this query seems to be an example of the opposite.\n\nNoted.\n\n>Indeed I wonder at the effort here consumed on (for example) the style of buttons, whereas I only need much more basic functionality. There's some very clever coding going on behind some of this, and I guess people are attracted by the latest style of button so programmers feel a need to respond, but in reality its all driven by mass marketing and doesn't really improve software usability at all IMHO.\n\nYou make valid points but you forget that without sales the usability of the software is of little importance. First you must have sales.\n\nUsers will buy a product based on the look of its interface. I even find myself leaning in this direction. If I see a screenshot of a program that has a 10 year old interface design, I am much less inclined to buy it that one with an up-to-date interface. One assumes that the functionality may be as old as the interface.\n\nYou may be interested in this article:\n\nMagic and Software Design\n<!-- m --><a class=\"postlink\" href=\"http://www.asktog.com/papers/magic.html\">http://www.asktog.com/papers/magic.html</a><!-- m -->\n\nAlso, remember that we programmers are of a different species, Homo Logicus. Users have a completely different view of the world than we do.\n\nRegards,\nJames",
"time": "02:24",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nThanks so much for your interest.\n\n> OK, this sounds like a description of a Single Document Interface (SDI) similar to that of Outlook. I am a big fan of SDI. \n\nWithout really being 100% sure what SDI is exactly I am certainly with you there. When I started with xHarbour/FiveWin (now FiveLinux) I was just concerned with getting some productive software out. I certainly didn't want a full MDI implementation because normally my user would be dealing with 1 patient, 1 booking, 1 report whatever. (When we get to bookings there may be a from slot and a to slot when moving a booking but that still doesn't need or even make great sense in MDI.) But they are likely to be dealing with multiple different objects at the same time (like a patient, a booking, a report, a referring physician etc). So I opted for modal dialogs which made coding pretty much straight forward but as you would know isn't the best fit for the real world that the users are facing and that I am modelling in my software. So SDI here we come!\n\nI have yet to embark down the SDI track so I don't rightly know what problems I will face but I would greatly appreciate your advice when I stumble.\n\n> First you must have sales. \n\nI am only too well aware, both from my own experience and watching what products succeed in the market place. But I have also spent some time working as development manager for a fair sized institution and I know the cost of doing some of these things - not just the money but the extended delivery schedules that often result. I am not criticizing programmers driven by market forces but do wish that we could educate people more. I certainly try to.\n\nThanks and regards\nDoug\n(xProgrammer)",
"time": "04:18",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Doug,\n\nMay I ask you for an example screen shot of “a booking“.\n\nAs I program hotel management software maybe we can\nexchange some ideas.\nRegards,\nOtto",
"time": "07:02",
"topic": "A Question Abot DIALOGs",
"username": "Otto"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Otto\n\nI haven't got that far with my software yet.\n\nBookings are complex in my situation because a single (nuclear medicine) test is in 2 parts (most of them) on the same day both of which require camera time (different amounts) and also doctor time (which is the other limiting resource in general). Plus different tests take different amounts of time so it is complicated to judge if I do 4 less of these can I do two more of some other test. But that is the sort of arrangement I will have to get down to - a kind of trading scheme.\n\nBooking for say a general practitioner (whatever you call your normal day to day doctor) is much simpler because they just allocate standard time slots and book known long consults into 2 or more contiguous slots.\n\nI plan to pre-schedule slots for the more common tests and implement a trading scheme. But ther are further compliactions in that some doctors don't do some tests and the number of patients they are able to see in a day varies. That is not so bad - have a standard schedule for Dr X at site A on a Monday for example. But then the doctors' roster gets changed for some reason - how do I change pre-scheduled slots with some bookings already allocated to these slots?\n\nI am happy to share any design or code I produce but at the moment there isn't anything to share. \n\nI started with the Patient and Patient-File classes as there was a desperate need for off-site archiving and I am working through classes progressively.\n\nI was involved in the early stages of reviewing a design for bookings in a large hospital but the design got far too complicated.\n\nHopefully I can be of more help shortly.\n\nRegards\nDoug\n(xProgrammer)",
"time": "07:37",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Otto\n\nBy the way their current (manual paper-based) system was chaotic and not working to anyone's satisfaction so we are improving that to prove up our ideas for improvement before attempting to implement in code.\n\nRegards\nDoug",
"time": "07:48",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>Bookings are complex in my situation because a single (nuclear medicine) test is in 2 parts (most of them) on the same day both of which require camera time (different amounts) and also doctor time (which is the other limiting resource in general). Plus different tests take different amounts of time so it is complicated to judge if I do 4 less of these can I do two more of some other test. But that is the sort of arrangement I will have to get down to - a kind of trading scheme.\n\nThis is a classic case for buisness objects that are able to schedule themselves. I highly recommend getting a copy of Buisness Engineering with Object Technology. You can find more about it on my website here:\n\n<!-- m --><a class=\"postlink\" href=\"http://ourworld.compuserve.com/homepages/jbott/program.htm\">http://ourworld.compuserve.com/homepage ... rogram.htm</a><!-- m -->\n\nAnd there is a link to Amazon where you can buy it used (it is out of print) for 1 cent (plus shipping). I would get a copy ASAP. It discusses the kinds of things you are trying to do. On page 122 there is a section called [i:2s5h6h6c]Techniques for Time Management [/i:2s5h6h6c]in which he discusses creating a scheduling class and a commitment class. He discusses schedules that require multiple resources, and the use of tenative and firm commitments. This sounds like just what you need.\n\nCoincidentally, I am also working on a medical application. Although my portion of it doesn't deal with scheduling, I have done a lot of work defining the domain (patient, provider, operation, etc.) and trying to understand the interaction between the business objects. So, perhaps the three of us (including Otto) can do some collaboration.\n\nJames",
"time": "12:32",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nThanks for the advice. I look forward to future discussions.\n\nMy code consists of a small module that instantiates the required objects, calls for user logon (via a USER_Class) launches a main window with a menu has a couple of utility functions but all the rest is done via objects that interact with each other.\n\nI read your articles before starting and gained a lot from them - part technical but perhaps more so confidence to just \"do it\". xBase was fine - I had spent quite atime with dBase then Clipper, albeit a long time ago. And I had done some OO work more recently. But OO and xBase was new and strange but actually easy and fun once I got started. I did deviate a little from your methodology in that I have a DATAFILE_Class but that doesn't do automated \"gather and scatter\" - I think thats what you called it? It does however control the allocation of keys and the standard fields included in all my tables which are:\n\nwho last updated the record (user-key)\nwhat action they took [update|inset|delete]\nwhen this occurred (date and time)\n\n I also have, for example, a PATIENT_LIST_Class and a PATIENT_Class even though both are basically dealing with the same data table.\n\nIn Australia the government assigns provider numbers per physical location so I have a DOCTOR_LIST_Class, a DOCTOR_Class, a PROVIDER_LIST_Class and a PROVIDER_Class.\n\nBookings not only involves the complications of scheduling but also the data that you have is imperfect - so that you can't be certain that the patient's name is spelled correctly and we don't have date of birth and what they are booked in for might be incorrect and they might be referred by a doctor who either isn't in your system or whose name they don't know or are uncertain of. Much of this is resolved when they present, but some details (eg the particular test) can't be resolved they are seen by the doctor or in some cases even later depending upon initial test outcomes.\n\nAlso in terms of scheduling some tests involve multiple appointments with required timelines between them so you can't just reschedule one part of such a series.\n\nRegards\nDoug",
"time": "22:09",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>I read your articles before starting and gained a lot from them - part technical but perhaps more so confidence to just \"do it\". xBase was fine - I had spent quite a time with dBase then Clipper, albeit a long time ago. And I had done some OO work more recently. But OO and xBase was new and strange but actually easy and fun once I got started. \n\nGlad to hear all that. I have convinced very few people to start using OOP. It is all very strange at first, but the benefits are tremendous.\n\n>I did deviate a little from your methodology in that I have a DATAFILE_Class but that doesn't do automated \"gather and scatter\" - I think that's what you called it? It does however control the allocation of keys and the standard fields included in all my tables which are: \n\n>who last updated the record (user-key) \n>what action they took [update|inset|delete] \n>when this occurred (date and time)\n\nAfter reading the above I am somewhat concerned that you are missing some OOP understanding.\n\nThere is no reason that you couldn't add the above functionality to the existing database class and also get the built in scatter-gather (and all the other good features). You can just subclass TDatabase or my TData class and add your features. May I see your DATAFILE_Class class? Perhaps I can save you some, or lots, of work. BTY, I would not add \"_Class\" to the class name--it seems redundant.\n\n>I also have, for example, a PATIENT_LIST_Class and a PATIENT_Class even though both are basically dealing with the same data table.\n\nIs you PATIENT_LIST_Class a table and PATIENT_Class a record? Why not call them a Patients class and a Patient class? You really should be using a database class as the basis for a table class. I fear you a making it more difficult than it could be. Is the PATIENT_LIST_Class a subclass of your DATAFILE_Class?\n\nIn Australia the government assigns provider numbers per physical location so I have a DOCTOR_LIST_Class, a DOCTOR_Class, a PROVIDER_LIST_Class and a PROVIDER_Class.\n\nIsn't a doctor also a provider? Are you listing them in both files? Or, are you only considering an organization a provider?\n\nThe definition we use here is:\n\n[i:2klp45nv][b:2klp45nv]Provider[/b:2klp45nv]- An individual or institution who provides medical care, including a physician, hospital, skilled nursing facility, or intensive care facility.[/i:2klp45nv]\n\n>Bookings not only involves the complications of scheduling but also the data that you have is imperfect - so that you can't be certain that the patient's name is spelled correctly and we don't have date of birth and what they are booked in for might be incorrect and they might be referred by a doctor who either isn't in your system or whose name they don't know or are uncertain of. Much of this is resolved when they present, but some details (eg the particular test) can't be resolved they are seen by the doctor or in some cases even later depending upon initial test outcomes.\n\nHow to handle imperfect data is discussed at length in \"About Face The Essentials of User Interface Design,\" also listed on my website. I'm sure this would also be valuable to you.\n\nSome of the techniques I use with \"imperfect\" or questionable data is to color the fields yellow and perhaps also popup a tooltip explaining what is commonly placed in the field. Also critical fields are colored pink until the data is entered. And you can flag all records with missing critical data and/or questionable data with a flag so they can later be found and resolved.\n\n>Also in terms of scheduling some tests involve multiple appointments with required timelines between them so you can't just reschedule one part of such a series.\n\nYes, I realize your scheduling is quite complex--this is all the more reason to use objects to do it. Can you write up just a description of the rules that you need to follow to schedule one of these procedures? I always start with a description of the domain before starting coding. Next is usually an entity-relationship diagram. Then I usually code the very simplest model I can just so I can do test senarios to work out the logic. Making them simple makes them much easier to work with. In your case you could come up with a dozen different test procedures and store them in a file so you can use them to test your scheduler class as you are working on it. \n\nJames",
"time": "03:08",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nHave to go trail an old car (1928 vintage) 720 kilometres for a friend's wedding so can only make quick reply at this stage.\n\n>Isn't a doctor also a provider? Are you listing them in both files? Or, are you only considering an organization a provider? \n\nA doctor is in effect a different provider for each physical address from which he works, so each provider record points to a doctor record. A doctor record may have zero to many provider records pointing to it. If there are zero records pointing to it then the doctor can't function as a provider.\n\n> Is you PATIENT_LIST_Class a table and PATIENT_Class a record?\n\nYes\n\n> Why not call them a Patients class and a Patient class?\n\nI like PATIENTLIST because it is unequivocal. I have seen the plural name misused too often.\n\n> I fear you a making it more difficult than it could be. Is the PATIENT_LIST_Class a subclass of your DATAFILE_Class? \n\nNo. But PATIENTLIST has the object of type DATAFILE that opened the PT_PATIENT datafile as a property so whilst it isn't a subclass it has many of the benefits. This was a deliberate choice partly to ease data back end migration.\n\nxDATAFILE Class follows. You probably need to see some of the other objects to see how it fits together.\n\n[code:1v1xbp7c]/******************************************************************************\n * *\n * xDATAFILE Class *\n * *\n * This class encapsulates the functionality of xBase data files *\n * *\n ******************************************************************************/\n\nCLASS xDATAFILE\n\n\n\nDATA WorkArea\n\nDATA KeyRecord\n\nDATA Alias\n\nDATA FileName\n\nDATA MsgName\n\nDATA Index1\n\nDATA Index2\n\nDATA Index3\n\nDATA iNumIndx\n\nDATA bSuccess\n\nDATA sMessage\n\nDATA iKey\n\nDATA sKey\n\nDATA iNumIndx\nDATA lConsole\nDATA lQuit\nDATA lShared\n\n\n\nMETHOD New( WorkArea, KeyRecord, Alias, FileName, MsgName, Index1, Index2, Index3 ) CONSTRUCTOR\n\nMETHOD OpenRaw()\n\nMETHOD OpenIndexed()\n\nMETHOD OpenFile()\n\nMETHOD SetIndices()\n\nMETHOD Select()\n\nMETHOD LockFile()\n\nMETHOD LockRecord()\n\nMETHOD Unlock()\n\nMETHOD Close()\n\nMETHOD GoTo( RecNum )\n\nMETHOD GoTop()\n\nMETHOD GoBottom()\n\nMETHOD AppendBlank()\n\nMETHOD BOF()\n\nMETHOD EOF()\n\nMETHOD GetKey()\n\nMETHOD RptKey()\n\nMETHOD SetKey( xValue )\n\nMETHOD KeyValue()\n\nMETHOD Seek( Value )\n\nMETHOD SetOrder( Index )\n\nMETHOD RecCount()\n\nMETHOD Save( CallObj )\n\nMETHOD FileInfo()\n\nMETHOD Skip( SkipCount )\n\nMETHOD LastUpdated()\n\n\n\nENDCLASS\n\n\n\nMETHOD New( iWorkArea, iKeyRecord, sAlias, sFileName, sMsgName, lConsole, lQuit, Index1, Index2, Index3 ) CLASS xDATAFILE\n\n\n::lConsole := lConsole\n::lQuit := lQuit\n\n::WorkArea := iWorkArea\n\n::KeyRecord := iKeyRecord\n\n::Alias := sAlias\n\n::FileName := sFileName\n\n::MsgName := sMsgName\n::lShared := .T.\n\n::iNumIndx := PCOUNT() - 7\n\nIF ::iNumIndx < 0\n\n ::iNumIndx := 0\n\nENDIF\n\nIF ::iNumIndx > 0\n\n ::Index1 := Index1\n\n IF ::iNumIndx > 1\n\n ::Index2 := Index2\n\n IF ::iNumIndx > 2\n\n ::Index3 := Index3\n\n ENDIF\n\n ENDIF\n\nENDIF\n\n\n\nRETURN self\n\n\n\nMETHOD OpenRaw() CLASS xDATAFILE\n\n LOCAL lbRet\n\n SELECT ( ::WorkArea )\n\n lbRet := ::OpenFile()\n\n\n\nRETURN lbRet\n\n\n\n\n\nMETHOD OpenIndexed() CLASS xDATAFILE\n\n\n\nSELECT ( ::WorkArea )\n\nIF ::OpenFile()\n IF ::lConsole\n ? ::MsgName + \" opened in work area \" +ALLTRIM( STR( ::WorkArea ) )\n ENDIF\n\n ::SetIndices()\n\n RETURN .T.\n\nENDIF\n\nIF ::lConsole\n ? \"Error Opening \" + ::sMsgName\nENDIF\nIF ::lQuit\n QUIT\nENDIF\n\nRETURN .F.\n\n\n\n\n\n\n\nMETHOD OpenFile() CLASS xDATAFILE\n\n\nIF ::lShared\n\n USE ( ::FileName ) ALIAS ( ::Alias ) SHARED\n ELSE\n USE ( ::FileName ) ALIAS ( ::Alias ) SHARED\nENDIF\n\n/* LOCAL lsFName\n\nlsFName := ::FileName\n\nOPEN lsFName */\n\nIF NETERR()\n\n ? \"Error opening \" + ::FileName\n\n RETURN .F.\n\nENDIF\n\n\n\nRETURN .T.\n\n\n\n\n\nMETHOD SetIndices() CLASS xDATAFILE\n\n\n\nDO CASE\n\n CASE ::iNumIndx = 1\n\n SET INDEX TO ( ::Index1 )\n ?? \" Index set to \" + ALLTRIM( ::Index1 )\n\n CASE ::iNumIndx = 2\n\n SET INDEX TO ( ::Index1 ), ( ::Index2 )\n ?? \" Indexes set to \" + ALLTRIM( ::Index1 ) + \", \" + ALLTRIM( ::Index2 )\n\n CASE ::iNumIndx = 3\n\n SET INDEX TO ( ::Index1 ), ( ::Index2 ), ( ::Index3 )\n ?? \" Indexes set to \" + ALLTRIM( ::Index1 ) + \", \" + ALLTRIM( ::Index2 ) + \", \" + ALLTRIM( ::Index3 )\n\nENDCASE\n\n\n\nRETURN .T.\n\n\n\nMETHOD Select\n\n \n\n SELECT ( ::WorkArea )\n\n\n\nRETURN\n\n\n\n\n\n\n\nMETHOD Unlock() CLASS xDATAFILE\n\n\n\n SELECT ( ::WorkArea )\n\n UNLOCK\n\n\n\nRETURN\n\n\n\n\n\n/*\n\nMETHOD LockRecord() CLASS xDATAFILE\n\n\n\n SELECT ( ::WorkArea )\n\n\n\nRETURN RLOCK()\n\n*/\n\n\nMETHOD LockRecord() CLASS xDATAFILE\n\n LOCAL iNumTries\n LOCAL lIsLocked\n SELECT ( ::WorkArea )\n iNumTries := 1\n DO WHILE iNumTries < 6\n lIsLocked := RLOCK()\n IF lIsLocked\n RETURN .T.\n ENDIF\n INKEY(0.5)\n iNumTries += 1\n ENDDO\n MsgInfo( \"Unable to lock \" + ::FileName )\nRETURN .F.\n\n\n\n\n\n\nMETHOD LockFile() CLASS xDATAFILE\n\n\n\n SELECT ( ::WorkArea )\n\n\n\nRETURN FLOCK()\n\n\n\n\n\n\n\nMETHOD Close() CLASS xDATAFILE\n\n \n\n SELECT ( ::WorkArea )\n\n CLOSE\n\n\n\nRETURN\n\n\n\n\n\nMETHOD AppendBlank() CLASS xDATAFILE\n\n\n\n SELECT ( ::WorkArea )\n\n APPEND BLANK\n\n\n\nRETURN ( !NETERR() )\n\n\n\n\n\n\n\nMETHOD BOF() CLASS xDATAFILE\n\n\n\n SELECT ( ::WorkArea )\n\n\n\nRETURN BOF()\n\n\n\n\n\nMETHOD EOF() CLASS xDATAFILE\n\n\n\n SELECT ( ::WorkArea )\n\n\n\nRETURN EOF()\n\n\n\n\n\nMETHOD GetKey() CLASS xDATAFILE\n\n \n\n SELECT ( defWA_KEY )\n\n IF ::KeyRecord < 1\n\n RETURN .F.\n\n ENDIF\n\n IF ::KeyRecord > RECCOUNT()\n\n RETURN .F.\n\n ENDIF\n\n GOTO ( ::KeyRecord )\n\n ::iKey := KY_LASTKEY\n\n ::iKey += 1\n\n IF RLOCK()\n\n REPLACE KY_LASTKEY WITH ::iKey\n\n UNLOCK\n\n ::sKey := PADL( ALLTRIM( STR( ::iKey)), 16, \"0\" ) \n\n RETURN .T.\n\n ENDIF\n\n \n\nRETURN .F.\n\n\n\nMETHOD RptKey() CLASS xDATAFILE\n\n \n\n LOCAL liKey\n\n SELECT ( defWA_KEY )\n\n IF ::KeyRecord < 1\n\n RETURN 0\n\n ENDIF\n\n IF ::KeyRecord > RECCOUNT()\n\n RETURN 0\n\n ENDIF\n\n GOTO ( ::KeyRecord )\n\n liKey := KY_LASTKEY\n\n SELECT ( ::WorkArea )\n\nRETURN ( liKey )\n\n\n\nMETHOD SetKey( xValue ) CLASS xDATAFILE\n\n ALERT( \"SetKey\" )\n\n SELECT ( defWA_KEY )\n\n IF ::KeyRecord < 1\n\n RETURN .F.\n\n ENDIF\n\n IF ::KeyRecord > RECCOUNT()\n\n RETURN .F.\n\n ENDIF\n\n // ALERT( TYPE( xValue ) )\n\n GOTO ( ::KeyRecord )\n\n IF RLOCK()\n\n REPLACE KY_LASTKEY WITH xValue\n\n UNLOCK\n\n ::iKey := xValue\n\n ::sKey := PADL( ALLTRIM( STR( ::iKey)), 16, \"0\" ) \n\n RETURN .T.\n\n ENDIF\n\n \n\nRETURN .F.\n\n\n\n\n\nMETHOD KeyValue() CLASS xDATAFILE\n\n\n\nRETURN ::sKey\n\n\n\n\n\nMETHOD Seek( Value ) CLASS xDATAFILE\n\n LOCAL llFound\n\n\n\n SELECT ( ::WorkArea )\n\n\n\n SEEK Value \n\n llFound := FOUND()\n\n IF llFound\n\n // ALERT( \"Found\" )\n\n ELSE\n\n // ALERT( \"Not Found\" )\n\n ENDIF \n\n\n\n\n\nRETURN llFound\n\n\n\n\n\nMETHOD SetOrder( Index ) CLASS xDATAFILE\n\n\n\n SELECT ( ::WorkArea )\n\n SET ORDER TO ( Index )\n\n\n\nRETURN\n\n\n\n\n\nMETHOD RecCount() CLASS xDATAFILE\n\n \n\n SELECT ( ::WorkArea )\n\n \n\nRETURN RECCOUNT()\n\n\n\nMETHOD Save( CallObj ) CLASS xDATAFILE\n\n \n\n LOCAL llSuccess\n\n\n\n SELECT ( ::WorkArea )\n\n CallObj:sLUBy := oUSER:sKey\n\n CallObj:sLUWhen := oDATETIME:Now()\n\n\n\n IF CallObj:lInsert \n\n IF ::GetKey()\n\n CallObj:sKey := ::sKey \n\n CallObj:cLUActn := \"I\"\n\n llSuccess := ::AppendBlank()\n ELSE\n ALERT(\"Failed to retrieve key\")\n ENDIF\n\n ELSE\n\n CallObj:cLUActn := \"U\"\n\n llSuccess := ::LockRecord()\n\n ENDIF\n\n IF llSuccess\n\n CallObj:Write()\n dbCOMMIT()\n\n UNLOCK\n\n ENDIF\n\n \n\nRETURN llSuccess\n\n\n\n\n\nMETHOD FileInfo() CLASS xDATAFILE\n\n \n\nLOCAL lcRet\n\nLOCAL lcLKey\n\n SELECT ( ::WorkArea )\n lcRet := PADR( ::FileName, 16 ) + \" WA= \" + LTRIM( STR( ::WorkArea ) ) + \" has \" + ;\n LTRIM( STR( RECCOUNT() ) ) + \" records - updated \" + DTOS( LUPDATE() ) + \" last key \" + STR( ::RptKey() )\n/*\n\n lcRet := PADR( ::FileName, 16 ) + \" WA= \" + LTRIM( STR( ::WorkArea ) ) + \" has \" + ;\n\n LTRIM( STR( RECCOUNT() ) ) + \" recs - updated \" + DTOS( LUPDATE() ) + \"last key \" \n\n IF EMPTY( ::RptKey() )\n\n lcLKey := \"0\"\n\n ELSE\n\n lcLKey := STR( ::RptKey() )\n\n ENDIF \n\n lcRet += lcLKey\n\n*/\n\nRETURN lcRet \n\n\n\n\n\nMETHOD Skip( SkipCount ) CLASS xDATAFILE\n\n \n\n LOCAL lnCount\n\n \n\n IF PCOUNT() < 1\n\n lnCount := 1\n\n ELSE\n\n lnCount := SkipCount\n\n ENDIF\n\n SELECT ( ::WorkArea )\n\n SKIP ( lnCount )\n\n \n\nRETURN\n\n\n\n\n\nMETHOD GoTo( RecNum ) CLASS xDATAFILE\n\n \n\n SELECT ( ::WorkArea )\n\n GOTO RecNum\n\n \n\nRETURN\n\n\n\nMETHOD GoTop() CLASS xDATAFILE\n\n \n\n SELECT ( ::WorkArea )\n\n GOTO TOP\n\n \n\nRETURN\n\n\n\n\n\nMETHOD GoBottom() CLASS xDATAFILE\n\n \n\n SELECT ( ::WorkArea )\n\n GOTO BOTTOM\n\n \n\nRETURN\n\n\n\nMETHOD LastUpdated() CLASS xDATAFILE\n\n \n\n SELECT ( ::WorkArea )\n\n RETURN DTOS( LUPDATE() )\n\n \n\nRETURN nil[/code:1v1xbp7c]",
"time": "05:31",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>No. But PATIENTLIST has the object of type DATAFILE that opened the PT_PATIENT datafile as a property so whilst it isn't a subclass it has many of the benefits. This was a deliberate choice partly to ease data back end migration. \n\n>xDATAFILE Class follows. You probably need to see some of the other objects to see how it fits together. \n\nWhile I applaud your efforts in creating your own class, I think you are making it more difficult than it needs to be.\n\nProbably 98% of the cabability of your class already exists in FW's TDatabase class. You are also dealing with lots of SELECTs and in so doing you are changing the selected workarea and not returning it to where you found it. This is a problem waiting to happen.\n\nIf you use alias referencing, e.g. (::cAlias)->(dbgobottom()) in your class, then you don't need to change the selected workarea. \n\nYou have:\n\nMETHOD GoBottom() CLASS xDATAFILE \n SELECT ( ::WorkArea ) \n GOTO BOTTOM \nRETURN\n\nThis could be simplified to:\n\nmethod GoBottom() class xDatafile\nreturn (::cAlias)->(dbgobottom())\n\nAnd the workarea never gets changed.\n\nBut you already get this in TDatabase AND you get the very useful buffering and all the fieldnames are defined automatically. So where is the advantage to your class? How do you handle creating temporary variables to hold data that is being edited (so the user can either cancel or save)? Hand coding?\n\nYou could have subclassed TDatabase to add your lastUpdated() method and any other new ones you wanted. This would have only taken you 10 minutes.\n\nOnce you start using TDatabase or TData, you never have to deal with workareas again.\n\noPatient:= TPatient():new()\n\nmsgInfo( oPatient:name )\n\noDoctor:= TDoctor():new()\n\nmsgInfo( oDoctor:name )\n\nNo more workareas!\n\nAs far a backend migration, a subclass is the way to go. If you subclass TDatabase to make your patient class, and later want to use recordset objects, you can create and use a TRecordset class the has all the same methods as TDatabase, and then you can switch to using recordsets by just changing the class definition of TPatientList--you just change one word.\n\nclass TPatientList from TDatabase // to use DBFs\n\nclass TPatientList from TRecordset // to use recordsets\n\nIt doesn't get much easier than that!\n\nJames",
"time": "08:37",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here is my 2 cents:\n\nI see you are creating pretty much a dbfclass. While you are at it; might as well add logic to the ::open, ::save... methods to manage some kind of triggers.\n\nFor example: ONpreOPEN, ONpostOPEN, ONpreINSERT, ONpostINSERT, ONpreDELETE, ONpostDELETE, ONpreUPDATE, ONpostUPDATE, to be stored on DATA elements such as: ::bOnPreSave, ::bOnPostSave, ...\n\nThis can be very powerful. I keep the \"triggers\" for each table stored as code blocks on a array on triggers.prg that gets compiled with all apps. On the ::open() method you ascan for any trigger defined for the specific table and assign accordingly. On_preOPEN o postOPEN you can even set the indexes for the each table and the default order, the rdd to use (I still use NTX, CDX, and ADTs), if shared, etc... . Again all coded on the codeblock. Since \"triggers.prg\" is linked to all you apps, they all exhibit the very same behavior. Even some business logic can be transfered to these triggers.\n\nOne thing I do with triggers is to \"log\" to an audit file any inserts, updates, deletes, done on some crucial tables to an \"audit_log.dbf\" table. All I have to do to add \"logging\" on a table is to add that code block to the triggers for that table.\n\nOn the other hand, if you are using ADS, then triggers can be stored on the data dictionary as well, which will make the data even more standard because the trigger will execute even when the table is modified via some other external app over which you have no control.\n\nI specially want to point out that this is the beauty of this computer language (harbour & xharbour). Namely; code blocks and macros. I can't think of any other computer language, Delphi, or even C++, where you can do this. AFAIK, this gives us an \"unfair\" advantage over all other developers and is one of the reasons we can actually compete with much larger organizations. Just don't tell any one :-)\n\nI hope I made some sense.\n\n\nReinaldo.",
"time": "17:39",
"topic": "A Question Abot DIALOGs",
"username": "reinaldocrespo"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Reinaldo\n\nGlad to see others are taking an interest in our \"conversation\". Also the points you make are quite enlightening and rather in accordance with my approach. Indeed the standard fields I add were originally developed in pre ready access to internet/VPNs days and allowed audit trails to be exchanged overnight by modem and two servers in different geographical locations re synchronised. For each data table you had an audit table where no matter what the operation on the data table (insert, update or delete) you always do an insert into the audit trail.\n\nRegards\nDoug",
"time": "19:42",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nHave to go in less than an hour so this will of necessity be brief.\n\nWe have slightly differing philosophical approaches to OO which is healthy. And in no way do I want to imply that I'm right / you're wrong. I will explain my reasons for having chosen the architecture I have and at the same time listen to yours in the belief that if we both explain our ideas both of us and potentially others listening in will be the wiser for it.\n\nI take your point about \"scatter / gather\" but please note that scatter/gather could be implemented in my architecture (not subclassing xDATAFILE class but merely pointing to it) equally as in your architecture. Part of my reason for not implementing (ceratainly the TData way - if that's the one Antonio provides) is the restriction on field names - I find the current 10 character limit already a nuisance. And auto generating from table is a no-brainer. Plus often you are in situations where you only need to read a couple of fields from a table not the lot.\n\nTo me having PATIENT (for example) inherit from xDATAFILE is using OO as a mechanism but is distorting it slightly. A Patient isn't a Table or even a record. Pragmatically this may not matter if the more natural inheritance that may exist is not required and all the natural objects map easily to single tables but I believe this approach can break down.\n\nThat's theory. Let's consider it in practice. OK take PATIENT. One object architecture I have considered in the past is to have a class PERSON and have both PATIENT and DOCTOR inherit from it. \n\nThere's code in PATIENT and DOCTOR and PATIENTFILE etc that is the same or similar and the same applies for the list variants of each so I may end up having xSINGLE and xLIST as base classes.\n\nSome of my entities will relate to more than one table, others to none so to me deriving directly from TData or an equivalent by subclassing is potentially a problem in the long run. Also some entities are persisted partly as a table entry partly in other ways (eg a MEDICALREPORT which is a word processing document).\n\nI understand that changing the data backend with your approach only requires a single line in each class to be changed - in practice we would use conditional compilation or some such trick to avoid this. In my approach (if you did gather/scatter) you wouldn't have to change anything at all in your classes.\n\nI'm not suggesting you change your architecture, but hoping to explain why I have chosen mine. And hoping we both gain a deeper insight in the process.\n\nI love discussing our craft - although we all have code to get out. Unfortunately I have to go do something else for a few days.\n\nRegards\nDoug\n\n(We all agree on the best, most natural programming language, but our styles still differ. That makes it all the more interesting.)",
"time": "20:12",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": ">Part of my reason for not implementing (ceratainly the TData way - if that's the one Antonio provides) is the >restriction on field names - I find the current 10 character limit already a nuisance.\n\nIt is good that we can use longer names but be aware. Code becomes so unreadable.\n\nFrom my experience I do some VB6 + NET coding, too.\n\nFrom the spirits that I called. Sir, deliver me!\n\n\nRegards,\nOtto\n\n[code:228a9jdb]Using driveSearcher As New ManagementObjectSearcher(wmiQuery) \n Using driveCollection As ManagementObjectCollection = driveSearcher.[Get]() \n For Each moItem As ManagementObject In driveCollection \n driveSerialnumber = Convert.ToString(moItem(\"VolumeSerialNumber\")) \n Next \n End Using \n End Using [/code:228a9jdb]",
"time": "21:10",
"topic": "A Question Abot DIALOGs",
"username": "Otto"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\nFWH Class TDataBase is no longer limited to 10 chars",
"time": "21:28",
"topic": "A Question Abot DIALOGs",
"username": "Antonio Linares"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>We have slightly differing philosophical approaches to OO which is healthy. And in no way do I want to imply that I'm right / you're wrong. I will explain my reasons for having chosen the architecture I have and at the same time listen to yours in the belief that if we both explain our ideas both of us and potentially others listening in will be the wiser for it.\n\nI am not trying to convince you to do things my way, I just think you are making it more difficult than it should be. One of the greatest advantages of OOP is using inheritance to make things simpler, and I think that you are not fully understanding it.\n\n>I take your point about \"scatter / gather\" but please note that scatter/gather could be implemented in my architecture (not subclassing xDATAFILE class but merely pointing to it) equally as in your architecture.\n\nI'm sure it could be, but it requires lots of coding--and it seems that you would need to hand code it for each class. If you use TDatabase or TData, there is no coding required.\n\n>Part of my reason for not implementing (certainly the TData way - if that's the one Antonio provides) is the restriction on field names - I find the current 10 character limit already a nuisance. And auto generating from table is a no-brainer.\n\nAgain this requires you to hand code each class. Lots more work. I have never found the fieldname length to be an issue. If you really wanted to, you could still add a longer name for any field or fields, by adding them as DATA and adding modified load and save methods. So, you would only have to do a very small amount of hand coding.\n\n[code:1oj0z4g4]class TPatient from TData\n DATA veryLongFieldName\n method save\n method load\nendclass\n\nmethod load() class TPatient\n super:load()\n ::veryLongFieldName:= ::shortName\nreturn nil\n\nmethod save() class TPatient\n ::shortName:= ::veryLongFieldName\nreturn nil[/code:1oj0z4g4]\n\nThats all you need. This is much less work than hand coding a load and save method for every class. This could be hundreds or thousands of lines of code.\n\n>Plus often you are in situations where you only need to read a couple of fields from a table not the lot.\n\nI have never found that reading and writing all the fields caused a noticeable slowdown. We were used to only reading and writing the fields we were using in the old days, but having it all done automatically without any programming far outweighs any tiny speed gain if it actually exists. Remember that disk reads and writes are buffered so there may not be any speed gain.\n\nAdditionally, reading and writing only certain fields means that you have to have different load and save methods for each situation. This violates the polymorphism rule of OOP. You can't just call oObject:load() you have to use oObject:load1(), oObject:load2(), etc. depending on the situation. So you can't do generic things like pass any object to a function:\n\n[code:1oj0z4g4]function whatever( oObject )\n oObject:load()\nreturn nil[/code:1oj0z4g4]\n\n>To me having PATIENT (for example) inherit from xDATAFILE is using OO as a mechanism but is distorting it slightly. A Patient isn't a Table or even a record. Pragmatically this may not matter if the more natural inheritance that may exist is not required and all the natural objects map easily to single tables but I believe this approach can break down.\n\nI'm sorry, I don't understand what you are saying.\n\n>That's theory. Let's consider it in practice. OK take PATIENT. One object architecture I have considered in the past is to have a class PERSON and have both PATIENT and DOCTOR inherit from it.\n\n>There's code in PATIENT and DOCTOR and PATIENTFILE etc that is the same or similar and the same applies for the list variants of each so I may end up having xSINGLE and xLIST as base classes. \n\nYou can do this with TDatabase and TData.\n\n[code:1oj0z4g4]class TPerson from TData\n method age()\nendclass\n\nmethod age() class TPerson\n...\nreturn nAge\n\nclass TDoctor from TPerson\nendclass\n\nclass TPatient from TPerson\nendclass\n\nmsgInfo( oDoctor:age() )\n\nmsgInfo( oPatient:age() )[/code:1oj0z4g4]\n\nNot a problem.\n\n>Some of my entities will relate to more than one table, others to none so to me deriving directly from TData or an equivalent by subclassing is potentially a problem in the long run. Also some entities are persisted partly as a table entry partly in other ways (eg a MEDICALREPORT which is a word processing document).\n\nI am not clear on what you are saying above, but I am pretty sure you can do this using TDatabase or TData. An object can contain other objects, so for instance an invoice object can contain a line item object and a customer object. Additionally, a class could load and save data to more than one table by just creating new load and save methods.\n\n>I understand that changing the data backend with your approach only requires a single line in each class to be changed - in practice we would use conditional compilation or some such trick to avoid this. In my approach (if you did gather/scatter) you wouldn't have to change anything at all in your classes.\n\nBy subclassing TDatabase or TData to an intermediate class (which I always recommend) you can reduce the coding change to one line (total).\n\nclass TXData from TData\nendclass\n\nThen you build all your other classes by inheriting from TXData. Then if you want to change all of them to using recordsets, you just change the one word, TData, to TRecordset and recompile. \n\n>I'm not suggesting you change your architecture, but hoping to explain why I have chosen mine. >And hoping we both gain a deeper insight in the process.\n\nMy concern is still that you don't fully understand OOP and as a consequence you are making much more work for yourself. So far I haven't heard anything that you are doing that couldn't be done with MUCH less work using an existing database class as the base class. Many people, including myself, when first learning OOP still keep falling back into the old procedural style of programming because they don't grasp the power of inheritance.\n\nUsing inheritance, you could have created your XDatafile class like this:\n\n[code:1oj0z4g4]class XDatafile from TDatabase\n method LastUpdated()\nendclass\n\nMETHOD LastUpdated() CLASS xDATAFILE \nRETURN DTOS( ::lupdated )[/code:1oj0z4g4]\n\nIsn't that a LOT less work? It has all the capability of your class and much more (including automatic gather and scatter).\n\n>Unfortunately I have to go do something else for a few days.\n\nWe will await your return and response.\n\nRegards,\nJames",
"time": "21:48",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Antonio\n\n> FWH Class TDataBase is no longer limited to 10 chars\n\nThat's good. From memory I think it was initially a 9 character limit as documented and I use all 10 allowed in the \"standard\" because of my naming scheme.\n\nFor example my data file might be PT_PATIENT with fields such as PT_KEY, PT_FAMLYNM, PT_GIVENNM etc.\n\nI know xBase supports alias->fieldname but not SQL (you end up using AS) and I like ease of portability and guaranteeing all fieldnames unique is a highly desirable feature IMHO.\n\nMy variable names reflect type and so field PT_KEY would be sKey as a memory variable. It's association with the Patient object being obvious from either the :: within the PATIENT class itself or from being oPatient:sKey from outside. (Note that I distinguish between a string (s) and a character (c) - again not necessary for xBase alone. I also distinguish an integer (i) for example)\n\nRegards\nDoug",
"time": "08:44",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\n>> I take your point about \"scatter / gather\" but please note that scatter/gather could be implemented in my architecture (not subclassing xDATAFILE class but merely pointing to it) equally as in your architecture.\n\n> I'm sure it could be, but it requires lots of coding--and it seems that you would need to hand code it for each class. If you use TDatabase or TData, there is no coding required. \n\nNo - only once - in xDATAFILE\n\n> Additionally, reading and writing only certain fields means that you have to have different load and save methods for each situation. This violates the polymorphism rule of OOP. You can't just call oObject:load() you have to use oObject:load1(), oObject:load2(), etc. depending on the situation. So you can't do generic things like pass any object to a function\n\nIt doesn't stop you from having a generic oObject:load(). But if you truly followed that mantra you couldn't possibly write any system with any level of complexity using SQL if you wanted any reasonable level of performance. \n\n>>Some of my entities will relate to more than one table, others to none so to me deriving directly from TData or an equivalent by subclassing is potentially a problem in the long run. Also some entities are persisted partly as a table entry partly in other ways (eg a MEDICALREPORT which is a word processing document).\n\n> I am not clear on what you are saying above, but I am pretty sure you can do this using TDatabase or TData. An object can contain other objects, so for instance an invoice object can contain a line item object and a customer object. Additionally, a class could load and save data to more than one table by just creating new load and save methods. \n\nPrecisely! An object can contain other objects. Thats what mine do. So the PATIENT Class contains\n\nDATA oDbf\n\nwhich is an object of type xDATAFILE\n\nA PATIENT_REPORT class might (if I were coding in Windows) contain:\n\nDATA oDbf\nDATA oWordDoc\n\nIn effect we are doing the same thing only you are using subclassing as a mechanism, I am using pointers to other objects as my preferred mechansim. I think mine is cleaner, more flexible, more transportable and more reflective of the real world. You may well think otherwise, but in reality the difference either way is small. But I don't like to encourage people to think in terms of data files rather than objects which I think subclassing most objects from a data file class may do in the case of people less experienced than yourself.\n\n> My concern is still that you don't fully understand OOP and as a consequence you are making much more work for yourself.\n\nI think you may have misjudged me based on my decision not to do automated scatter/gather and to write my own xDATAFILE Class. Both were conscious decisions and neither really justify your conclusion. Quite some years ago now I wrote a dynamic web application development/delivery architecture that led me to a structure that followed OO mechanisms in a stateless environment and reinforced the value of this approach in my thinking. (That may not make a lot of sense but to explain it fully would take too long). \n\nClearly xDATAFILE or any equivalent is pretty fundamental to any application and I was happier using one I wrote, and so understood. It did also, interestingly enough, require a slight modification when I moved to linux, otherwise backups were incomplete if a user was still logged in to the software (even in its single user guise). It also only took a few hours maximum to write and test.\n\nI would like to repeat that a patient (represented by an object of class PATIENT) is not an example / subclass / whatever of a data table record (represented by part of an object of type xDATAFILE) although there is clearly a corellation between them. Furthermore a list of patients is a different object from a single patient and I believe should be different classes. If they are in the one and the same class you would, it seems to me, be in flagrant contradiction of your own polymorphism mantra - what does oObject:load() do - load one or load a list?\n\nUsing classes and inheritance gives a range of advantages. True they can cut coding and solve problems of variable \"life\" (sorry - can't remember technical term) largely removing the need for public variables. And you have obviously fervently used them for these purposes. But there is also another aspect as to how they relate to their counterparts in the real world and maybe you aren't seeing their full potential in that regard.\n\nRegards\nDoug",
"time": "09:42",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Otto\n\n> It is good that we can use longer names but be aware. Code becomes so unreadable. \n\nI couldn't agree more! I hate ThoseFunctionsWithImpossiblyLongNames()\n\nPersonally I would be happier with a 12 or perhaps 16 character limit as witha 10 limit I effectively restrict myself to 7 characters due to my naming scheme (which started out with corporate work with SQL where there is no such limit).\n\nI also like to keep comments relatively short and minimalist. Years ago I read a study that showed that professional programmers could debug other people's code more rapidly if given code with all the comments stripped out!. The authors surmised that the human brain is limited as to the size of the structure it can understand and lots of comments make it too hard to \"see\" how the code is actually structured.\n\nBut when I had to suffer a university course in programming (as part of a commerce degree) they taught the exact opposite. The first assignment was to generate a Fibonacci series ( 1 1 2 3 5 8 13 21 etc). Soon overflows. So I wrote a set of routines to handle 120 digit integers and produced a listing of all Fibonacci numbers up until the 120 digit limit was exceeded and then exited gracefully with a message. I got less marks than a person whose program didn't work at all - it couldn't even generate the first 5 Fibonacci numbers. But according to our lecturer it was well documented! So I knew the rules and got full marks thereafter. But I also began to realise why the graduates turned out by our universities have to be re-trained if they are going to be much use at all.\n\nRegards\nDoug",
"time": "09:59",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>>> I take your point about \"scatter / gather\" but please note that scatter/gather could be implemented in my architecture (not subclassing xDATAFILE class but merely pointing to it) equally as in your architecture.\n\n>> I'm sure it could be, but it requires lots of coding--and it seems that you would need to hand code it for each class. If you use TDatabase or TData, there is no coding required. \n\n>No - only once - in xDATAFILE \n\nHmm, can you show us a small example? I am having a hard time seeing how you could write a generic gather/scatter routine. I would think that you would have to create data elements for each fieldname and assign them in both the gather and scatter methods and this would have to be done for each class. And you would have to define all the data elements in the table class also.\n\n[code:u3q00l3f]method load() Class TPatientList\n ::name:= ::cAlias->PT_NAME\n ::city:= ::cAlias->PT_CITY\nreturn nil\n\nmethod load() Class TPatient\n ::name:= ::oPatientList:name\n ::city:= ::oPatientList:city\nreturn nil[/code:u3q00l3f]\n\nWith TDatabase and TData fieldname are automatically generated as DATA so you can do:\n\noPatientList:= TData():new(,\"patients\")\noPatientList:use()\n\nmsgInfo( oPatientList:name ) // returns James\n\nAnd then you can change the data in the name var:\n\noPatientList:name:= \"Doug\"\n\nmsgInfo( oPatientList:name ) // returns Doug\n\nThis buffered data, the disk record still contains \"James\" until you do a save(). So you can use these in controls and if the user selects OK you do a oPatientList:save() otherwise you do nothing and the disk record remains as it was.\n\nNote that there were only two lines of code needed to get this object by using the generic TData class. We can use the same code and only change the filename to get a different object and it knows all the fieldnames of that database.\n\noOrderList:= TData():new(,\"orders\")\noOrderList:use()\n\nmsgInfo( oOrderList:orderID )\n\nA subclass for a patientlist class could be as simple as:\n\n[code:u3q00l3f]class TPatientList from TData\n method new()\nendclass\n\nmethod new() class TPatientlist\n super():new(,\"patients\")\n if ::use()\n ::setOrder(1)\n ::gotop()\n endif\nreturn self[/code:u3q00l3f]\n\nThen you can do:\n\noPatientList:= TPatientlist():new()\n\nmsgInfo( oPatientlist:name )\n\n>> Additionally, reading and writing only certain fields means that you have to have different load and save methods for each situation. This violates the polymorphism rule of OOP. You can't just call oObject:load() you have to use oObject:load1(), oObject:load2(), etc. depending on the situation. So you can't do generic things like pass any object to a function. \n\n>It doesn't stop you from having a generic oObject:load(). But if you truly followed that mantra you couldn't possibly write any system with any level of complexity using SQL if you wanted any reasonable level of performance.\n\nIf you use a TRecordset class then you can select whatever fields you wish:\n\noPatientList := TRecordset():new( \"SELECT name, city FROM Patientlist , \"Provider=Microsoft.Jet.OleDB.4.0;Data Source=Northwind.mdb\" )\n\noPatientList:city:=\"San Francisco\"\noPatientList:save() \n\nThe recordset contains only the fields you specify and the save() method only updates those fields. Again here we have used nothing but a generic TRecordset class.\n\n...\n\n>In effect we are doing the same thing only you are using subclassing as a mechanism, I am using pointers to other objects as my preferred mechanism. I think mine is cleaner, more flexible, more transportable and more reflective of the real world. You may well think otherwise, but in reality the difference either way is small. \n\nOK. However, I am still having a hard time grasping your design.\n\n>But I don't like to encourage people to think in terms of data files rather than objects which I think subclassing most objects from a data file class may do in the case of people less experienced than yourself.\n\nI agree with you and I did discuss this in one of the articles on my website. There is a difference between a patient object and a patient table. I have not discussed this much on the forum because I have a hard enough time getting others interested in using OOP without confusing them too much. \n\n>> My concern is still that you don't fully understand OOP and as a consequence you are making much more work for yourself. \n\n>I think you may have misjudged me based on my decision not to do automated scatter/gather and to write my own xDATAFILE Class. Both were conscious decisions and neither really justify your conclusion. \n\nOK, are you saying that you are having to write more code but you think it is worth it, or are you saying the you don't have to write more code with your design?\n\n>I would like to repeat that a patient (represented by an object of class PATIENT) is not an example / subclass / whatever of a data table record (represented by part of an object of type xDATAFILE) although there is clearly a correlation between them. Furthermore a list of patients is a different object from a single patient and I believe should be different classes. If they are in the one and the same class you would, it seems to me, be in flagrant contradiction of your own polymorphism mantra - what does oObject:load() do - load one or load a list?\n\nAs with other code there are tradeoffs. I also have a TRecord class which I use as the base of a TPatient class.\n\noPatientList:= TData():new(,\"patients\")\noPatientList:use()\n\nmsgInfo( oPatientList:name )\n\nOr you can do (in addition to the above):\n\noPatient:= TRecord():new( oPatientList )\n\nmsgInfo( oPatient:name )\n\nFor some routines it is just faster to use the table class only.\n\nThe generic TRecord class only has new(), load(), save(), and end() methods. It also automatically adds all the fieldnames as DATA. Normally, I would subclass this and add any methods specific to a patient, like age() for instance.\n\nLike yours, my patient class would contain in instance of the patient table. The patient object reads and writes its data to the table object. The big difference is that mine automatically generates fieldnames as DATA and they are buffered. This is inherited.\n\nYou could have an instance of a record class in the table class but I fear it would slow it down when you are doing browses and reports. Is this how you are doing them?\n \n>Using classes and inheritance gives a range of advantages. True they can cut coding and solve problems of variable \"life\" (sorry - can't remember technical term) largely removing the need for public variables. And you have obviously fervently used them for these purposes. But there is also another aspect as to how they relate to their counterparts in the real world and maybe you aren't seeing their full potential in that regard.\n\nYes, I don't use any publics. And I do design my objects based real-world objects--I am a big advocate of doing this. Glad to hear that you are also.\n\nAre you saying you never use inheritance?\n\nRegards,\nJames",
"time": "13:01",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nOur techniques vary, but we are actually more similar than someone casually reading these posts might imagine.\n\nYes I do use inheritance, but somewhat less than you in that I use xDATAFILE via class properties rather than direct inheritance.\n\nI don't currently use any form of generic scatter / gather but I do buffer all data and updates are only written after the user confirms that they want to update / write. (Actually I mostly make user select record in read only mode and hit an edit button in order to go into edit mode - slows things down a bit but is safer.)\n\nThe only public variables I use relate to my objects themselves, and maybe they should be in an application class? Currently, however, I have:\n\n[code:xhirnx1e]PUBLIC oPatient\ndbfPATIENT := xDATAFILE():New( 1, 1, \"PT\", \"PT_PATIENT\", \"Patient Master\", .T., .T., \"PT_KEY\", \"PT_NAME\" )\ndbfPATIENT:OpenIndexed()\noPATIENT := PATIENT():Create( dbfPATIENT )[/code:xhirnx1e]\n\nThis means that any class can access the currently selected patient, for example, without having to pass the patient object to it. Maybe you have a suggestion?\n\nRegards\nDoug",
"time": "13:50",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>I do use inheritance, but somewhat less than you in that I use xDATAFILE via class properties rather than direct inheritance.\n\nI'm still confused. You said you had a patientList class but below you are just using an instance of the xDATAFILE class as the list object. Can we see your patientList class? When is it used instead of an instance of xDATAFILE?\n\nOne advantage of using inheritance for your patientList class is that this line:\n\ndbfPATIENT := xDATAFILE():New( 1, 1, \"PT\", \"PT_PATIENT\", \"Patient Master\", .T., .T., \"PT_KEY\", \"PT_NAME\" ) \n\nCan become this:\n\noPatientList:= TPatient():new()\n\nYour patientList class is simply:\n\n[code:266fqsor]class TPatientList from xDATAFILE\n method new()\nendclass\n\nmethod new() class TPatientList\n super():new( 1, 1, \"PT\", \"PT_PATIENT\", \"Patient Master\", .T., .T., \"PT_KEY\", \"PT_NAME\" ) \nreturn self[/code:266fqsor]\n\nThe calling code is shorter, easier to read, and if you later want to change any of the parameters that you use to create the patientList object, you can change them in one place rather than everyplace that you create a patient list as you have to do now.\n\nAlso, you can use inheritance to override a method for one class. Say you want to record the last date and time the record was saved, but only for the patient records. You can inherit from xDATAFILE and add a new method save() which records the date and time. Yes, you could manually assign these values when you save the data, but you have to remember to do it whenever you save a record. If it is built into the save method it only has to be coded once.\n\n[code:266fqsor]method save() class TPatient\n ::lastDate:= date()\n ::lastTime:= time()\nreturn super():save()[/code:266fqsor]\n\n>I don't currently use any form of generic scatter / gather but I do buffer all data and updates are only written after the user confirms that they want to update / write. (Actually I mostly make user select record in read only mode and hit an edit button in order to go into edit mode - slows things down a bit but is safer.)\n\nOK, so you do have to hand code every scatter and gather routine. \n\nMaking the user select Edit is definitely not a Windows standard and does create more work for the user. It is one of our jobs as programmers to make less work for the user. I don't see why it is safer; unless the user presses the OK button, any changes they made (intentionally or accidentally) will not be saved. \n\n>The only public variables I use relate to my objects themselves, and maybe they should be in an application class? Currently, however, I have: \n\n>Code: \n>PUBLIC oPatient \n>dbfPATIENT := xDATAFILE():New( 1, 1, \"PT\", \"PT_PATIENT\", \"Patient Master\", .T., .T., \"PT_KEY\", \"PT_NAME\" ) \n>dbfPATIENT:OpenIndexed() \n>oPATIENT := PATIENT():Create( dbfPATIENT )\n\nIs there a reason you used Create() as your constructor method rather than the standard New()? This is a violation of the polymorphism principle. \n\n>This means that any class can access the currently selected patient, for example, without having to pass the patient object to it. Maybe you have a suggestion? \n\nOne way is to create a set/get function that contains a static object var.\n\nThen you can do:\n\ngetPatient( Patient():Create( dbfPatient ) )\n\nNow you can do:\n\nlocal oPatient := getPatient()\n\nmsgInfo( oPatient:name )\n\nBut since the getPatient function returns an object you can use this shorter syntax and you don't have to create a local.\n\nmsgInfo( getPatient():name )\n \nOK, that is one solution but it is very limited. Assuming you either now have, or will have, other values that you need global access to, it would be better to create a global class, TSystem, and include oPatient as one of the DATA elements. You still store the oSystem object in a set/get function and then you have access to all the system data anywhere in the program without any PUBLICS.\n\nHowever, I don't see why you want to avoid having to pass a patient object to another object. OOP is supposed to work by passing objects. There is not much coding difference between:\n\npatientReport():new()\n\nand,\n\npatientReport():new( oPatient )\n\nAnd there are cases where it is more code:\n\n[code:266fqsor]do while ! oPatientList:eof()\n oPatient:= := PATIENT():Create( oPatientList )\n patientReport():new( )\nenddo[/code:266fqsor]\n\nOr,\n\n[code:266fqsor]do while ! oPatientList:eof()\n patientReport():new( Patient():Create( oPatientList ) )\nenddo[/code:266fqsor]\n\nAlso, it can get confusing if you have both a public oPatient and a local oPatient.\n\nAnother issue that it is a violation of the encapsulation principle of OOP. Any given method should not have to rely on the public var oPatient to contain the patient object that it may need. Suppose that you have the public oPatient set and then you call another object to execute a routine that requires it to lookup another patient record. Does the other routine assume the that the public oPatient contains the record it needs, or does it change oPatient to the one it needs? With encapsulation the routine assumes nothing and the calling routine doesn't need to do anything before calling the other routine.\n\nIt still seems to me that you are falling back into procedural programming principles when OOP can serve you better.\n\nRegards,\nJames",
"time": "21:19",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nI really need some time to digest all your comments!\n\nHowever I was lying in bed this morning musing over why two programmers with, I think, fairly similar fundamental beliefs, have xBase OOP styles that are fairly different. (just woken up!)\n\nTwo of the influences on me that have had an impact on my style are:\n\n1. Three tier clent/server programming (that Microsoft was pushing) which amongst other things called for the separation of UI, business rules, and persistence. The UI and business rule layers had to be independant of how and where the data was stored.\n\n2. The shift to xml for data transport with style separated out as CSS or XSTL. \n\nWhen I wrote my web application delivery technology there was a translation capability so that the calling object could use different tag names from the object that it called. (Data was passed as xml.)\n\nWhilst my code isn't exactlly three tier, it does pretty much conform to the general idea. If you use automated scatter/gather as I understand its current form, then your UI layer has to be aware of the field names that data is stored under. That becomes a problem when you try and hook into existing data or existing objects. If the software you are writing will ever only be a standalone application then it isn't an issue.\n\nAlso, unlike you, whilst I am not new to xBase, a windows GUI or OOP but to xBase with either OOP or a windows GUI let alone both. So I am coding my objects pretty much by hand from scratch. Then as patterns occur the degree to which I harness the power of inheritance will increase.\n\nRegards\nDoug",
"time": "23:33",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>The UI and business rule layers had to be independant of how and where the data was stored.\n\nThis is a good point and I was trying to show how that was accomplished. I have a TData class for DBF access, a TRecordset class for SQL recordset access, and a TArray class for array access. These all were written using polymorphism, so they all have the same methods and data. Any class can be substituted for the other so you can access data in all those formats. I haven't attempted to write a TXML class yet, but I am sure it could be done.\n\nRoutines that use tables, like browses and reports, are not affected by switching the datasource class.\n\nThe business rules would exist either in the table subclass of any of the above data source classes, and in the real-world objects such as Patient.\n\nSo the data source is independent of the business rules.\n\nUsing inheritance, the table subclasses can be very small. Anther OOP principle is to move as much code as possible as far up the inheritance ladder as possible. This means you have to write less code in all the subclasses.\n\nJames",
"time": "00:54",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nI am 100% with you on that.\n\nMy only point would be that automatic scatter gather means that the UI layer has to be aware of the fieldnames used by the data layer.\n\nClearly the Read(), Write() and Blank() methods of my classes can be automatically generated from the datafile so hand coding isn't really required. Thereafter you can change fieldnames in just Read() and Write() without any upstream effects. This is just an interim. Ideally your design tool generates both the data table and the above methods for you. And can do more because it knows, for example, which field is a primary key, which are secondary keys, which character fields are codes, which are dates in string format etc. This isn't very hard to do - I have done it in other environments. But I am waiting until I have coded more by hand to better understand what I need to generate and what information I need to do that. I will also be reviewing all your comments as part of that process.\n\nAnd when I move (regretfully) to SQL (I would really prefer an OO database) I will have to write a Recordset class.\n\nAnd I will no doubt be doing an XML class - or using xHarbour's inbuilt ones (have just done a bit with them so not too clear there).\n\nAnd a WPDocument class - which as I will be using OpenOffice and its xml based format will probably be a subclass of my XML class.\n\nAnd a MedicalReport class - which will be a subclass of a WPDocument.\n\nRegards\nDoug",
"time": "02:42",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>My only point would be that automatic scatter gather means that the UI layer has to be aware of the fieldnames used by the data layer. \n\nThey are.\n\n>Clearly the Read(), Write() and Blank() methods of my classes can be automatically generated from the datafile so hand coding isn't really required... \n\nI see you plan to use a code generator. \n\nAnd a WPDocument class - which as I will be using OpenOffice and its xml based format will probably be a subclass of my XML class. \n\n>And a MedicalReport class - which will be a subclass of a WPDocument.\n\nI suggest thinking about making reports in XML in the sense that it stores the data for retrieval and uses a separate format file to generate the onscreen or printed report. This is what I am doing with the Operative Report I am currently working on. There are already semi-standards for many medical reports.\n\nJames",
"time": "02:55",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\n>> My only point would be that automatic scatter gather means that the UI layer has to be aware of the fieldnames used by the data layer.\n\n> They are.\n\nBut it would be preferable if they didn't need to be.\n\n> I suggest thinking about making reports in XML in the sense that it stores the data for retrieval and uses a separate format file to generate the onscreen or printed report. This is what I am doing with the Operative Report I am currently working on. There are already semi-standards for many medical reports. \n\nI would love to. My problem is that a lot of the report is not generatable from my software or any other automated system, but rather is dictated by the physician and typed by the secretary. Final editing may be done by either, depending upon the physician's choice. I don't know if I can move them away from this dependance on a word processor - although I would love to. Generating an xml file which is then edited using a word processor (in this case OpenOffice) is a half way solution. \n\nI would be most interested to hear how you might handle such a situation. Also how best to follow up on any proposed xml coding \"standards\" for such documents.\n\nI do greatly appreciate the comments you are making, and the time and effort you are putting into them. I do have my own perspective on things and have come to this point via different experiences and may come across as a \"difficult bastard\" (to use a bit of Australian vernacular) at times. But I've always believed in robust discussion of software architecture. Sometimes people in on a design discussion I am having with a good friend of mine (we have both worked for each other at times) think we must be bitter enemies, but in fact we are good friends and at the end of the day have explored the possibilities and really understand why we have chosen the architecture we have and what to expect from it.\n\nRegards\nDoug",
"time": "05:10",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nWould your recommendation be to follow the HL7 XML initiatives?\n\nRegards\nDoug",
"time": "02:25",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>>> My only point would be that automatic scatter gather means that the UI layer has to be aware of the fieldnames used by the data layer. \n\n>> They are. \n\n>But it would be preferable if they didn't need to be. \n\nWhy? I take the opposite position. If they are aware of the fields, then there is MUCH less coding required-in fact for the gather/scatter there is no coding required. Even if you don't wish to use this feature, why would it be a negative?\n\n>> I suggest thinking about making reports in XML in the sense that it stores the data for retrieval and uses a separate format file to generate the onscreen or printed report. This is what I am doing with the Operative Report I am currently working on. There are already semi-standards for many medical reports. \n\n>I would love to. My problem is that a lot of the report is not generatable from my software or any other automated system, but rather is dictated by the physician and typed by the secretary. Final editing may be done by either, depending upon the physician's choice. I don't know if I can move them away from this dependance on a word processor - although I would love to. Generating an xml file which is then edited using a word processor (in this case OpenOffice) is a half way solution.\n\nThey/you can input the data however you wish, but you output the report as an XML file (which can contain freeform text).\n\nAs a side note, I do remember reading an article about an semi-automated note system that was tested. Instead of freeform text being entered by the provider, they were presented with a list of items (sentences) that they could select from. They could select as many as desired and then all were included in the report. The study found that the resulting reports were more detailed than the dictated ones for two reasons. One it was faster to select items, so more items were often selected, and second, the providers were less likely to forget things since they had a list to remind them. Unfortunately, I don't have this reference in my notes.\n\n>I would be most interested to hear how you might handle such a situation. Also how best to follow up on any proposed xml coding \"standards\" for such documents.\n\nUnfortunately, there is no easy answer. I have spent hundreds of hours studying this and I still feel like I know very little. \n\n>I do greatly appreciate the comments you are making, and the time and effort you are putting into them. I do have my own perspective on things and have come to this point via different experiences and may come across as a \"difficult bastard\" (to use a bit of Australian vernacular) at times. But I've always believed in robust discussion of software architecture. Sometimes people in on a design discussion I am having with a good friend of mine (we have both worked for each other at times) think we must be bitter enemies, but in fact we are good friends and at the end of the day have explored the possibilities and really understand why we have chosen the architecture we have and what to expect from it. \n\nSo far I am getting the impression that you believe in OOP, but not in inheritance, encapsulation, or polymorphism. So, I am still left with my original impression that you don't really understand OOP.\n\nRegards,\nJames",
"time": "19:47",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>Would your recommendation be to follow the HL7 XML initiatives? \n\nProbably. When I started my project more than a year ago, the only information about Operative Reports in XML that I could find was here: <!-- w --><a class=\"postlink\" href=\"http://www.openhealth.org\">www.openhealth.org</a><!-- w -->. They are an open source health record organization. HL7 would probably be a better standard to follow, because I am sure all the larger health organizations are going to use that one.\n\nI don't know which report, or reports, you are working on, but here is a link to the samples that Open Health has:\n\n<!-- w --><a class=\"postlink\" href=\"http://www.openhealth.org/ASTM\">www.openhealth.org/ASTM</a><!-- w -->\n\nFor the HL7 specification for a clinical document go here:\n\n<!-- m --><a class=\"postlink\" href=\"http://healthinfo.med.dal.ca/hl7intro/CDA_R2_normativewebedition/infrastructure/cda/cda.htm#CDA_Overview\">http://healthinfo.med.dal.ca/hl7intro/C ... A_Overview</a><!-- m -->\n\nThis will probably put you to sleep, so start reading it just before bedtime.\n\nRegards,\nJames",
"time": "19:57",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\nI found the link to the list-based operative report.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.annalssurgicaloncology.org/cgi/content/full/11/10/941\">http://www.annalssurgicaloncology.org/c ... /11/10/941</a><!-- m -->\n\nI'm not suggesting that you try this, but it is an interesting read and good information for future consideration.\n\nJames",
"time": "20:21",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi James\n\nThanks for the links - very useful\n\n>Why? I take the opposite position. If they are aware of the fields, then there is MUCH less coding required-in fact for the gather/scatter there is no coding required. Even if you don't wish to use this feature, why would it be a negative? \n\nBecause when you want your software to link with someone else's data object you have a real issue. For a standalone application that shall forever remain standalone and where fieldnames are essentially immutable and pretty much all data is in the one persistence model it doesn't really matter but beyond that it is a major time waster and source of errors.\n\nYou may care to look at:\n\n<!-- m --><a class=\"postlink\" href=\"http://en.wikipedia.org/wiki/Three-tier_(computing\">http://en.wikipedia.org/wiki/Three-tier_(computing</a><!-- m -->)\n\n<!-- m --><a class=\"postlink\" href=\"http://www.sei.cmu.edu/str/descriptions/threetier_body.html\">http://www.sei.cmu.edu/str/descriptions ... _body.html</a><!-- m -->\n\n<!-- m --><a class=\"postlink\" href=\"http://msdn2.microsoft.com/en-us/library/ms685068(VS.85\">http://msdn2.microsoft.com/en-us/library/ms685068(VS.85</a><!-- m -->).aspx\n\n<!-- m --><a class=\"postlink\" href=\"http://www.linuxjournal.com/article/3508\">http://www.linuxjournal.com/article/3508</a><!-- m -->\n\n<!-- m --><a class=\"postlink\" href=\"http://www.oracle.com/technology/products/ias/toplink/doc/1013/MAIN/_html/undtldev010.htm\">http://www.oracle.com/technology/produc ... dev010.htm</a><!-- m -->\n\nNote: Years ago I developed a web application design / development / deployment system using three tier architecture stateless (naturally across the www) with transaction control etc. I suspect if you came with the same set of experiences your attitude to some of the issues we have been discussing might be rather different.\n\nThat's not a claim of I'm right you're wrong, but rather its a matter of having the right architecture for the future you perceive for your software and the environment(s) in which it must run and the external system(s) it must connect to. And maybe a question of a little more work now to save a lot more work later on.\n\nRegards\nDoug",
"time": "00:00",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\n\n>>Why? I take the opposite position. If they are aware of the fields, then there is MUCH less coding required-in fact for the gather/scatter there is no coding required. Even if you don't wish to use this feature, why would it be a negative? \n\n>Because when you want your software to link with someone else's data object you have a real issue.\n\nWhat is the issue?\n\n>For a standalone application that shall forever remain standalone and where fieldnames are essentially immutable and pretty much all data is in the one persistence model it doesn't really matter but beyond that it is a major time waster and source of errors.\n\nI don't understand why you think not having to code anything is a major time waster and source of errors? \n\nWith this system, if you later needed to map an object to different fieldnames then you could still do it. You just add different load and save methods. So I don't see any downside. \n\nThe upside is no scatter/gather coding.\n\nNo work up front, some work possible later.\n\nI do understand three-tier systems. I did describe how you can switch to using different database sources such as ADS, XML, SQL, array, etc. as long as those tables have the same structure and fieldnames. There is still no extra programming required.\n\nI'm not sure how any application can be completely independent of the data source. I mean you can't easily adapt to another database from another system. I you have a patient table with certain fieldnames, types and lengths, you can't easily switch to using a patient table from a different system with different fieldnames, types, and lengths. This would not be trivial task if it could even be done.\n\nMaybe I still do not understand what you are saying.\n\nRegards,\nJames",
"time": "04:02",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "> I'm not sure how any application can be completely independent of the data source. I mean you can't easily adapt to another database from another system. I you have a patient table with certain fieldnames, types and lengths, you can't easily switch to using a patient table from a different system with different fieldnames, types, and lengths. This would not be trivial task if it could even be done. \r\n\r\nYo can - that's the essential message. It can be isolated to the data layer. Translation there can be made easy but you have to be careful about using inbuilt and potentially non-portable data types. That's a nice part of the xml revolution - everything as (readable) text. xBase is almost but not quite the same. Data is actually stored in readable text although we do have a small number of data types (C, D, L, N, M). I store my dates as CCYYMMDD in a character field and my own date time (CCYYMMDDhhmmsshh) - I know xHarbour has introduced its own. I do use logical memory variables but store as single character codes. Amazing how often something that is first thought to be yes / no ends up with a third possibility. It makes sense to add your own data types (stored as text) but that pretty much blows scatter/gather out of the water. But if there is an existing data object that returns data as xml then its easy to use your existing UI and BL layers with it even though data names are different.\r\n\r\nRegards\r\nDoug\r\n(xProgrammer)",
"time": "10:09",
"topic": "A Question Abot DIALOGs",
"username": "xProgrammer"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Doug,\r\n\r\nI too use text fields in my dbf files to save the values of some checkboxes:\r\n\r\ndbf-field is then something like: 0110001 \r\n\r\nJames showed me how to use OOP and a database object to overcome this.\r\n\r\nI will share it with you.\r\n\r\n \r\nI hope this is as usefull for you as it is for me. \r\nAnd thanks again to James. \r\nRegards,\r\nOtto[code:172icv5q]Add seven new instance variables to your class. \nI am going to make up just two for this explaination. \nYou will also need to override the load(), save(), and blank() methods of the parent TData class.\n \nclass TCustomer\n DATA active \n DATA approved\n method load()\n method save()\n method blank()\n ...\nendclass\n \nYou may want to initialize them in the new method:\n \nmethod new() class TCustomer\n ::active:=.t.\n ::approved:=.f.\n ...\nreturn self\n \nAnd also in your blank() method.\n \nmethod blank() class TCustomer\n super:blank()\n ::active:=.t.\n ::approved:=.f.\nreturn self\n\nThen in your load method\n \nmethod load() class TCustomer\n super():load()\n if substr(::ehrungjahr,1,1)=\"1\"\n ::active:=.t.\n else\n ::active:=.f.\n endif\n if substr(::ehrungjahr,2,1)=\"1\"\n ::approved:=.t.\n else\n ::approved:=.f.\n endif\nendif\nreturn self\n \nAnd in the edit () method you treat them just the same as fieldnames:\n \n REDEFINE CHECKBOX oEhre1 VAR ::active ID 401 OF oFld:aDialogs [ 5 ]\n REDEFINE CHECKBOX oEhre2 VAR ::approved ID 402 OF oFld:aDialogs [ 5 ]\n \n Then in your save() method you convert them back to the legacy database:\nmethod save() class TCustomer()\n \n ::ehrungjahr = stuff( ::ehrungjahr,1,1, if( ::active, \"1\", \"0\" ) )\n ::ehrungjahr = stuff( ::ehrungjahr,2,1, if( ::approved, \"1\", \"0\" ) )\n ::super():save()\nreturn self \n\nNow, converting from 1/0 to logical and back is all transparent. \nYou can use the new logical instance variables just as you would regular fields.\n \noCustomer:= TCustomer():new()\n \nmsgInfo( oCustomer:active )\n \noCustomer:active:=.f.\noCustomer:save()\n[/code:172icv5q]",
"time": "17:28",
"topic": "A Question Abot DIALOGs",
"username": "Otto"
}
] |
A Question Abot DIALOGs
|
[
{
"date": "2008-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Doug,\r\n\r\n>>> I'm not sure how any application can be completely independent of the data source.\r\n\r\nWhat I meant by this is not the file type source but a different application with its own data tables. Another application could have a totally different set of fields and even different tables. They may not be storing all the same data that your system is. In this situation it is next to impossible to adapt to another system without major changes to either their data structure or your application.\r\n\r\n>It makes sense to add your own data types (stored as text) but that pretty much blows scatter/gather out of the water.\r\n\r\nAs Otto showed, it does not.\r\n\r\nJames",
"time": "16:23",
"topic": "A Question Abot DIALOGs",
"username": "James Bott"
}
] |
A Question Abot DIALOGs
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.