messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2016-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal\n\nHow can you compile into .res with Borland ... the highest resolution is 24 bit .. Borland will not compile 32 bit image ?\n\nRick Lipkin", "time": "16:56", "topic": "Button Bar JPG or PNG", "username": "Rick Lipkin" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Rick,\nWich Borland? I think the latest versions should allow 32 bits bmps.\nI've been using porc.exe, the Resource Compiler included in Pelles C, for years to include 32 bit bmp into resources. It works great.\n\nBest regards,\nCarlos", "time": "18:24", "topic": "Button Bar JPG or PNG", "username": "Carlos Mora" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Carlos\n\nI am using Bcc72 .. I have been using Bcc70 for a long time .. Brc32 just will not compile any .bmp greater than 24 bit .. You can import a 32 bit bmp into an .rc, but when you compile your .rc into .res .. the compiler blows up. To be honest, I just installed Bcc72 and I haven't tried to compile a 32 bit .bmp in a resource.\n\nRick Lipkin", "time": "20:37", "topic": "Button Bar JPG or PNG", "username": "Rick Lipkin" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rick Lipkin\":3ffuksp1]Cristobal\n\nHow can you compile into .res with Borland ... the highest resolution is 24 bit .. Borland will not compile 32 bit image ?\n\nRick Lipkin[/quote:3ffuksp1]\n\nRick, if you define you image of 32 bits:\n\n[quote:3ffuksp1]\nfiles BITMAP \"../bitmaps/alphabmp/files.bmp\"\n[/quote:3ffuksp1]\n\nBorland fails to compile the resource, but, if you define your image 32 bits so:\n\n[quote:3ffuksp1]\nfiles 10 \"../bitmaps/alphabmp/files.bmp\"\n[/quote:3ffuksp1]\n\nThe resource is compiled perfectly\n\n[img:3ffuksp1]https://s13.postimg.org/8nvxzipzr/32bppp.png[/img:3ffuksp1]\n\n[img:3ffuksp1]https://s21.postimg.org/f0ga598on/files.png[/img:3ffuksp1]\n\n[img:3ffuksp1]https://s22.postimg.org/lxc8tfwo1/alphabmp.png[/img:3ffuksp1]", "time": "02:16", "topic": "Button Bar JPG or PNG", "username": "cnavarro" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "As an additional comment, I use the resource compiler brc32.exe also included in Borland 7\nMy previous post also works with the resource compiler rc.exe\n\n[quote:3tnb8ey9]\n%bcdir%\\bin\\brc32\n[/quote:3tnb8ey9]\n\nRick, happy, happy birthday\nHave a good day in the company of family and friends", "time": "02:24", "topic": "Button Bar JPG or PNG", "username": "cnavarro" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal .. thanks for your kind words .. planning lunch with my wife this afternoon .. my son will be coming home for the weekend to spend time some time with his Mom and me and a hamburger and hot dog cook-out Sunday evening.\n\nI have all my .bmp's in one .rc ( icons.rc ) .. and I do not see where I can define 10 in Resedit. See screen shot below... Again, thanks !\n\nRick Lipkin\n\n[img:17nudfmt]http://i66.tinypic.com/34973fb.jpg[/img:17nudfmt]", "time": "14:02", "topic": "Button Bar JPG or PNG", "username": "Rick Lipkin" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick, I add these resources with a code editor ( text )\n\n[img:1zuwgst0]https://s15.postimg.org/di6m98faj/resedit1.png[/img:1zuwgst0]\n\n[quote:1zuwgst0]\n\n#define ALPHABMP 10\n\nolga1 ALPHABMP \"../bitmaps/olga1.jpg\"\nfiles ALPHABMP \"../bitmaps/alphabmp/files.bmp\"\n\n[/quote:1zuwgst0]\n\nTo enjoy family and cookout", "time": "14:18", "topic": "Button Bar JPG or PNG", "username": "cnavarro" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Happy birthday Rick !!!", "time": "17:17", "topic": "Button Bar JPG or PNG", "username": "Massimo Linossi" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal\n\nI understand .. I will just create a new ( manual ) group '10' and load my icons there .. I will let you know .. Thanks for the explanation !\n\nRick Lipkin \n\n\nMassimo .. thanks for your thoughts !", "time": "18:09", "topic": "Button Bar JPG or PNG", "username": "Rick Lipkin" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick... Happy Birthday! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "16:31", "topic": "Button Bar JPG or PNG", "username": "Enrico Maria Giordano" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico\n\nThank you very much .. you have been an inspiration for me over the ( many ) years!\n\nRick Lipkin", "time": "18:06", "topic": "Button Bar JPG or PNG", "username": "Rick Lipkin" } ]
Button Bar JPG or PNG
[ { "date": "2016-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rick\n\nHappy Birthday", "time": "08:29", "topic": "Button Bar JPG or PNG", "username": "nageswaragunupudi" } ]
Button Bar JPG or PNG
[ { "date": "2011-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "I am having a problem with the button bar after upgrading. \nIf I have a button with a menu it does not widen the button so the little down arrow may overlap bmp (2nd image below.\nIf I add the 2007 clause to the button bar it does draw the button correctly but then an @ say on the bar does not show background properly (3rd image below).\n\nSee 3 images below.\n\n[img:3j8m1y7f]http&#58;//www&#46;wwrowland&#46;com/images/fwhbeforeupgrade&#46;jpg[/img:3j8m1y7f]\n[img:3j8m1y7f]http&#58;//www&#46;wwrowland&#46;com/images/fwhafterupgrade&#46;jpg[/img:3j8m1y7f]\n[img:3j8m1y7f]http&#58;//www&#46;wwrowland&#46;com/images/fwhafterupgrade2007&#46;jpg[/img:3j8m1y7f]", "time": "15:13", "topic": "Button Bar Problem with 11.06", "username": "Gale FORd" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "We shall test the problems reported.\nIn the meantime can you please let us know with what previous version are you comparing?", "time": "16:29", "topic": "Button Bar Problem with 11.06", "username": "nageswaragunupudi" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "FWH 10.9 September 2010", "time": "17:02", "topic": "Button Bar Problem with 11.06", "username": "Gale FORd" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "If I add 1 24 \"WindowsXP.Manifest\" to rc it works as expected.\nI had a problem with checkboxes and other issues before so I did not use it. Also on the test????.prg in samples I was not using it.\n\nSo you can narrow the problem with buttons down to:\n1. No WindowsXP.Manifest\n2. Define buttonbar without 2007\n3. Define button with a menu and noborder\n\nThe problem with the @ say on buttonbar with 2007 clause still exists.", "time": "18:07", "topic": "Button Bar Problem with 11.06", "username": "Gale FORd" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok, the same program with the same WindowsXP.Manifest works on a workstation (Windows 7) but does not work on Citrix/Remote Desktop (Windows 2003 Server).\nOn Citrix and Remote Desktop the buttons look like the original problem noted before.\n\nI also want to show you a problem with the title when running on Citrix/Remote Desktop. That problem has been around for a very long time, I have just not commented on it before.\nThe main window (parent) shows garbage in title.\n\nThe 2 images below are running the same small test program, 1 running locally (Windows 7) and 1 running through Citrix/Remote Desktop (windows 2003 server).\n\n[img:2fdvkoar]http&#58;//www&#46;wwrowland&#46;com/images/fwhlocal&#46;jpg[/img:2fdvkoar]\n[img:2fdvkoar]http&#58;//www&#46;wwrowland&#46;com/images/fwhcitrixyes&#46;jpg[/img:2fdvkoar]\n\nHere is the testmdi.prg code.\n[code=fw:2fdvkoar]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// Working with MDI enviroments</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00C800;\">static</span> oWnd<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oWndEdit, oBar, oIcon, oImage<br />   <span style=\"color: #00C800;\">local</span> cName := <span style=\"color: #ff0000;\">\"FiveWin power\"</span><br />   <span style=\"color: #00C800;\">local</span> oFont<br />   <span style=\"color: #00C800;\">local</span> oPopup<br /><br />   SetResDebug<span style=\"color: #000000;\">&#40;</span>.t.<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">16</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br />   <span style=\"color: #0000ff;\">MENU</span> oPopup <span style=\"color: #0000ff;\">POPUP</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Test\"</span> <span style=\"color: #0000ff;\">WHEN</span> .f.<br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Test\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Any action\"</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">MENU</span><br />         <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Another\"</span> <span style=\"color: #0000ff;\">WHEN</span> .f.<br />         <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"More...\"</span><br />      <span style=\"color: #0000ff;\">ENDMENU</span><br />   <span style=\"color: #0000ff;\">ENDMENU</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">70</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"I am the MDI Frame\"</span> ;<br />      <span style=\"color: #0000ff;\">MDI</span> ;<br />      <span style=\"color: #0000ff;\">MENU</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />   SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Main Window\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndEdit <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">50</span> ;<br />      <span style=\"color: #0000ff;\">FONT</span> oFont ;<br />      <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"I am a MDI Child\"</span> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"W+/R\"</span><br /><br />   @ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">GET</span> cName <span style=\"color: #0000ff;\">OF</span> oWndEdit <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">170</span>, <span style=\"color: #000000;\">25</span> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"BG+/B\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWndEdit<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"Open.bmp\"</span> GROUP ;<br />      <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> FWVERSION <span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Any BMP File here...\"</span> ;<br />      <span style=\"color: #0000ff;\">MENU</span> oPopup noborder<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar  noborder<br /><br />   SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWndEdit <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Child Window\"</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndEdit<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br />      <span style=\"color: #0000ff;\">VALID</span> MsgYesNo<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Want to End ?\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #B900B9;\">// oFont := nil</span><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />   CHECKRES<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oMenu<br /><br />   <span style=\"color: #0000ff;\">MENU</span> oMenu<br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Information\"</span><br />      <span style=\"color: #0000ff;\">MENU</span><br />         <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&About...\"</span> <span style=\"color: #0000ff;\">ACTION</span> MsgAbout<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FiveWin\"</span>, <span style=\"color: #ff0000;\">\"FiveTech\"</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #0000ff;\">SEPARATOR</span><br />         <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&End...\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">ENDMENU</span><br /><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Child Windows\"</span><br />      <span style=\"color: #0000ff;\">MENU</span><br />         <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Tiled\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">Tile</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Cascade\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">Cascade</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">ENDMENU</span><br />   <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #00C800;\">return</span> oMenu<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:2fdvkoar]\n\nHere is the testmdi.rc\n[code=fw:2fdvkoar]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">24</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\w</span>inxp<span style=\"color: #000000;\">\\W</span>indowsXP.Manifest\"</span><br />test <span style=\"color: #0000ff;\">ICON</span> <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\i</span>cons<span style=\"color: #000000;\">\\f</span>ivewin.ico\"</span><br /> </div>[/code:2fdvkoar]", "time": "18:51", "topic": "Button Bar Problem with 11.06", "username": "Gale FORd" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you for your narrowing down the problems to specific platforms. This is of a great help.\n\nWe shall try to find the right fixes.", "time": "06:22", "topic": "Button Bar Problem with 11.06", "username": "nageswaragunupudi" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Another buttonbar problem. Without 2007 clause and with prompt on button, the bmp and text overlap. It does not move the bmp up and the text down.\nI tried adding TOP to the button command but no help.\nIs there something we can do about these button/buttonbar problems. I am going to put the old version back if this is not resolved pretty soon.\n\n[img:n22lfyti]http&#58;//www&#46;wwrowland&#46;com/images/FWH_No2007ButtonPrompt&#46;jpg[/img:n22lfyti]\n\n[code=fw:n22lfyti]<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: #00C800;\">static</span> oWnd<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWndEdit, oBar, oIcon, oImage<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cName := <span style=\"color: #ff0000;\">\"FiveWin power\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oFont<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oPopup<br /><br />&nbsp; &nbsp;SetResDebug<span style=\"color: #000000;\">&#40;</span>.t.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">16</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">MENU</span> oPopup <span style=\"color: #0000ff;\">POPUP</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Test\"</span> <span style=\"color: #0000ff;\">WHEN</span> .f.<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Test\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Any action\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Another\"</span> <span style=\"color: #0000ff;\">WHEN</span> .f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"More...\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ENDMENU</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ENDMENU</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">70</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"I am the MDI Frame\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MDI</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENU</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Main Window\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndEdit <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">50</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"I am a MDI Child\"</span> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"W+/R\"</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">GET</span> cName <span style=\"color: #0000ff;\">OF</span> oWndEdit <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">170</span>, <span style=\"color: #000000;\">25</span> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"BG+/B\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">36</span>,<span style=\"color: #000000;\">38</span> <span style=\"color: #0000ff;\">OF</span> oWndEdit<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"Open.bmp\"</span> GROUP ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Open\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> FWVERSION <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Any BMP File here...\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENU</span> oPopup noborder<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"Open.bmp\"</span> GROUP ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Open\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> FWVERSION <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Any BMP File here...\"</span> ;<br />&nbsp; &nbsp; &nbsp; TOP ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENU</span> oPopup noborder<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"Open.bmp\"</span> GROUP ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Open\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> FWVERSION <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Any BMP File here...\"</span> ;<br />&nbsp; &nbsp; &nbsp; BOTTOM ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENU</span> oPopup noborder<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar &nbsp;noborder<br /><br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWndEdit <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Child Window\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndEdit<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> MsgYesNo<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Want to End ?\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// oFont := nil</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />&nbsp; &nbsp;CHECKRES<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oMenu<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">MENU</span> oMenu<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Information\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&About...\"</span> <span style=\"color: #0000ff;\">ACTION</span> MsgAbout<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FiveWin\"</span>, <span style=\"color: #ff0000;\">\"FiveTech\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&End...\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ENDMENU</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Child Windows\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Tiled\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">Tile</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Cascade\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">Cascade</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ENDMENU</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #00C800;\">return</span> oMenu<br />&nbsp;</div>[/code:n22lfyti]", "time": "23:12", "topic": "Button Bar Problem with 11.06", "username": "Gale FORd" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "I think it is a matter of providing enough space.\nWith buttonbar size 40,48 both the bitmaps and prompts are accommodated well.\n[url=http&#58;//img37&#46;imageshack&#46;us/i/btnbar&#46;jpg/:12cftj9o][img:12cftj9o]http&#58;//img37&#46;imageshack&#46;us/img37/8899/btnbar&#46;jpg[/img:12cftj9o][/url:12cftj9o]", "time": "01:30", "topic": "Button Bar Problem with 11.06", "username": "nageswaragunupudi" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "I don't think so. \n\nI think the problem is running it on Citrix and/or Remote Desktop. If you run it from the console it works ok. I have tried using larger size but it did not help.\nIf you read what I have written in this thread you will see there are several problems when running on Citrix or Remote Desktop that does not show up on console.", "time": "04:58", "topic": "Button Bar Problem with 11.06", "username": "Gale FORd" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Gale FORd\":l8r4tiit]I think the problem is running it on Citrix and/or Remote Desktop.[/quote:l8r4tiit]\n\nMaybe the reason on Citrix and/or Remote Desktop is that there is no theme support, so we have the same problems like without WindowsXP.Manifest running on Windows locally.", "time": "08:03", "topic": "Button Bar Problem with 11.06", "username": "IBTC" } ]
Button Bar Problem with 11.06
[ { "date": "2011-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "After retesting the different options today, it does appear that the prompt/bitmap placement is working correctly. \n\nIt does act like there is no theme support. When I remove WindowsXP.manifest it acts the same on my console as it does through Citrix and Remote Desktop. With WindowsXP.manifest it works correctly on my console but does not work correctly in Citrix or Remote Desktop.\n\nThe problem with buttonbar as I have tested it is with Citrix / Remote Desktop, no 2007 clause = mouse over not correct and the down arrow part of button does not expand the right side with addition if menu.", "time": "15:27", "topic": "Button Bar Problem with 11.06", "username": "Gale FORd" } ]
Button Bar Problem with 11.06
[ { "date": "2017-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nJust installed FWH 1612 and noticed the transparency's of my button bar is not working as it did with FWH 1504. Any Ideas ?\n\nRick Lipkin\n\nHere is the code :\n[code=fw:2fosdi66]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWind <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">58</span> <span style=\"color: #000000;\">2010</span>    <span style=\"color: #B900B9;\">// 80,58   80,64</span><br />       oBar:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />                            <br />       oBar:<span style=\"color: #000000;\">bClrGrad</span> = <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.10</span>,<span style=\"color: #000000;\">15724527</span>,<span style=\"color: #000000;\">7303023</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                       <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.10</span>,<span style=\"color: #000000;\">7303023</span>,<span style=\"color: #000000;\">15724527</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt1 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _VehBrow<span style=\"color: #000000;\">&#40;</span> oWind <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Car\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"Car\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"Car\"</span>;<br />              <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Veh<span style=\"color: #000000;\">\\E</span>q<span style=\"color: #000000;\">\\B</span>oat\"</span> ;<br />              TOOLTIP <span style=\"color: #ff0000;\">\"Vehicles and Equipment Information\"</span><br />       oButt1:<span style=\"color: #000000;\">lTransparent</span> = .T.<br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt2 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _Tripmenu<span style=\"color: #000000;\">&#40;</span> oWIND,dExe,oMenu <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Trips\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"Trips\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"Trips\"</span>;<br />              <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Trip<span style=\"color: #000000;\">\\R</span>esrv<span style=\"color: #000000;\">\\D</span>isp\"</span> ;<br />              TOOLTIP <span style=\"color: #ff0000;\">\"Trips, Reservations and Dispatch Information\"</span><br />       oButt2:<span style=\"color: #000000;\">lTransparent</span> = .T.<br /><br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt3 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _Gasmenu<span style=\"color: #000000;\">&#40;</span> oWIND,dExe,oMenu <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Gaspump\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"Gaspump\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"Gaspump\"</span>;<br />              <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Gas<span style=\"color: #000000;\">\\C</span>vrp\"</span> ;<br />              TOOLTIP <span style=\"color: #ff0000;\">\"Gas - Gas Import and CVRP Information\"</span><br />       oButt3:<span style=\"color: #000000;\">lTransparent</span> = .T.<br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt4 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _Mantmenu<span style=\"color: #000000;\">&#40;</span> oWIND,oMenu,dExe <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"tools\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"tools\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"tools\"</span>;<br />              <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"WorkOrd<span style=\"color: #000000;\">\\M</span>aint\"</span> ;<br />              TOOLTIP <span style=\"color: #ff0000;\">\"Work Orders and Maintenance Tables\"</span><br /><br />       oButt3:<span style=\"color: #000000;\">lTransparent</span> = .T.<br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt5 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>_RPTmenu<span style=\"color: #000000;\">&#40;</span> oWIND, dEXE,oMenu <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"report\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"report\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"report\"</span>;<br />              <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Reports\"</span> ;<br />              TOOLTIP <span style=\"color: #ff0000;\">\"Reports Menu\"</span><br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt6 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _UTILmenu<span style=\"color: #000000;\">&#40;</span> oWIND <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"controlpanel\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"controlpanel\"</span>,;<br />                       <span style=\"color: #ff0000;\">\"controlpanel\"</span>;<br />              <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Control Panel\"</span> ;<br />              TOOLTIP <span style=\"color: #ff0000;\">\"System Information and User Defined Tables\"</span><br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt7 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>_WebHelp<span style=\"color: #000000;\">&#40;</span> dExe <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"palmetto\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Created in SC\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Help and About\"</span><br />       oButt7:<span style=\"color: #000000;\">lTransparent</span> = .T.<br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt8 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>SHELLEXECUTE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">nil</span>,<span style=\"color: #ff0000;\">\"open\"</span>, <span style=\"color: #ff0000;\">\"calc.exe\"</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"calculator\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Calculator\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Calculator\"</span><br />       oButt8:<span style=\"color: #000000;\">lTransparent</span> = .T.<br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt9 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> oWind:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"exit\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Quit\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Quit\"</span><br />       oButt8:<span style=\"color: #000000;\">lTransparent</span> = .T.<br /> </div>[/code:2fosdi66]\nOld FWH1504\n[img:2fosdi66]http&#58;//i64&#46;tinypic&#46;com/169okzq&#46;jpg[/img:2fosdi66]\nNew FWH1612\n[img:2fosdi66]http&#58;//i68&#46;tinypic&#46;com/qxjgiv&#46;jpg[/img:2fosdi66]", "time": "15:31", "topic": "Button Bar Transparency with FWH 1612", "username": "Rick Lipkin" } ]
Button Bar Transparency with FWH 1612
[ { "date": "2017-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "It appears from the images that:\n\nIn the first image, buttons with ltransparent set to .T. or .F., both are painted the same way. In other words the lTransparent setting did not have any effect and was not necessary.\n\nIn the second image, buttons with lTransparent set to .t. are painted transparently showing the background of the parent, i.e, the buttonbar.\n\nIs that the point?", "time": "16:05", "topic": "Button Bar Transparency with FWH 1612", "username": "nageswaragunupudi" } ]
Button Bar Transparency with FWH 1612
[ { "date": "2017-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao\n\nThanks for pointing out that I had the the :lTransparent = .T. flag set for some but not all buttons. The buttons that rendered properly did not have the transparent flag .. I removed ALL the Button transparent lines and the entire button bar now works properly.\n\nThanks\nRick Lipkin", "time": "16:59", "topic": "Button Bar Transparency with FWH 1612", "username": "Rick Lipkin" } ]
Button Bar Transparency with FWH 1612
[ { "date": "2017-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rick Lipkin\":38yc14qu]Rao\n\nThanks for pointing out that I had the the :lTransparent = .T. flag set for some but not all buttons. The buttons that rendered properly did not have the transparent flag .. I removed ALL the Button transparent lines and the entire button bar now works properly.\n\nThanks\nRick Lipkin[/quote:38yc14qu]\n\nSolucion..?...gracias, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "17:14", "topic": "Button Bar Transparency with FWH 1612", "username": "joseluisysturiz" } ]
Button Bar Transparency with FWH 1612
[ { "date": "2017-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Jose\n\nYES .. removing oBtn:lTransparent = .T. fixed the button bar in FWH 1612 ..\n\nRick Lipkin", "time": "17:34", "topic": "Button Bar Transparency with FWH 1612", "username": "Rick Lipkin" } ]
Button Bar Transparency with FWH 1612
[ { "date": "2017-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Using google translator\n\nIt would be better if you used something like oBtnBar: Transparent: = .t., So you would apply transparency to all buttons that are in the ButtonBar, greetings, thanks ...", "time": "17:55", "topic": "Button Bar Transparency with FWH 1612", "username": "joseluisysturiz" } ]
Button Bar Transparency with FWH 1612
[ { "date": "2017-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "This is how it looks like when we set oBar:lTransparent := .T.\n\n[url=https&#58;//imageshack&#46;com/i/pn3qgznBp:3fam81ci][img:3fam81ci]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/923/3qgznB&#46;png[/img:3fam81ci][/url:3fam81ci]\n\nCode to create Transparent Buttonbar with Transparent Buttons\n[code=fw:3fam81ci]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oBar, oBtn, oFont, oBrush<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\s</span>ea.bmp\"</span> RESIZE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"TRANSPARENT BUTTONBAR\"</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br />&nbsp; &nbsp;oWnd:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span> oFont <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">72</span>,<span style=\"color: #000000;\">96</span><br />&nbsp; &nbsp;oBar:<span style=\"color: #000000;\">lTransparent</span> := .t.<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\c</span>opy.bmp\"</span> &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"copy\"</span> &nbsp; + CRLF + <span style=\"color: #ff0000;\">\"bmp\"</span> &nbsp; FLAT TRANSPARENT<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\p</span>aste.bmp\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"paste\"</span> &nbsp;+ CRLF + <span style=\"color: #ff0000;\">\"bmp\"</span> &nbsp; FLAT TRANSPARENT<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\p</span>ngs<span style=\"color: #000000;\">\\i</span>mage3.png\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"image3\"</span> + CRLF + <span style=\"color: #ff0000;\">\"png\"</span> &nbsp; FLAT TRANSPARENT<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\A</span>lphaBmp<span style=\"color: #000000;\">\\v</span>isa.bmp\"</span> &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Visa\"</span> &nbsp; + CRLF + <span style=\"color: #ff0000;\">\"Alpha\"</span> FLAT TRANSPARENT<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\A</span>lphaBmp<span style=\"color: #000000;\">\\i</span>chat.bmp\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"IChat\"</span> &nbsp;+ CRLF + <span style=\"color: #ff0000;\">\"Alpha\"</span> FLAT TRANSPARENT<br />&nbsp; &nbsp;atail<span style=\"color: #000000;\">&#40;</span>obar:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">nalphalevel</span> := <span style=\"color: #000000;\">100</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\m</span>etro<span style=\"color: #000000;\">\\u</span>sers.bmp\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"users\"</span> &nbsp;+ CRLF + <span style=\"color: #ff0000;\">\"metro\"</span> FLAT TRANSPARENT<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\m</span>etro<span style=\"color: #000000;\">\\e</span>xit.bmp\"</span> &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"exit\"</span> &nbsp; + CRLF + <span style=\"color: #ff0000;\">\"metro\"</span> FLAT TRANSPARENT<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> each oBtn in oBar:<span style=\"color: #000000;\">aControls</span><br />&nbsp; &nbsp; &nbsp; oBtn:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> CLR_WHITE, CLR_BLACK <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">CENTERED</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:3fam81ci]", "time": "21:10", "topic": "Button Bar Transparency with FWH 1612", "username": "nageswaragunupudi" } ]
Button Bar Transparency with FWH 1612
[ { "date": "2017-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":2ak3qoqa]This is how it looks like when we set oBar:lTransparent := .T.\n\n[url=https&#58;//imageshack&#46;com/i/pn3qgznBp:2ak3qoqa][img:2ak3qoqa]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/923/3qgznB&#46;png[/img:2ak3qoqa][/url:2ak3qoqa]\n\nCode to create Transparent Buttonbar with Transparent Buttons\n[code=fw:2ak3qoqa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd, oBar, oBtn, oFont, oBrush<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\s</span>ea.bmp\"</span> RESIZE<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"TRANSPARENT BUTTONBAR\"</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br />   oWnd:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span> oFont <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">72</span>,<span style=\"color: #000000;\">96</span><br />   oBar:<span style=\"color: #000000;\">lTransparent</span> := .t.<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\c</span>opy.bmp\"</span>     <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"copy\"</span>   + CRLF + <span style=\"color: #ff0000;\">\"bmp\"</span>   FLAT TRANSPARENT<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\p</span>aste.bmp\"</span>    <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"paste\"</span>  + CRLF + <span style=\"color: #ff0000;\">\"bmp\"</span>   FLAT TRANSPARENT<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\p</span>ngs<span style=\"color: #000000;\">\\i</span>mage3.png\"</span>    <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"image3\"</span> + CRLF + <span style=\"color: #ff0000;\">\"png\"</span>   FLAT TRANSPARENT<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\A</span>lphaBmp<span style=\"color: #000000;\">\\v</span>isa.bmp\"</span>  <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Visa\"</span>   + CRLF + <span style=\"color: #ff0000;\">\"Alpha\"</span> FLAT TRANSPARENT<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\A</span>lphaBmp<span style=\"color: #000000;\">\\i</span>chat.bmp\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"IChat\"</span>  + CRLF + <span style=\"color: #ff0000;\">\"Alpha\"</span> FLAT TRANSPARENT<br />   atail<span style=\"color: #000000;\">&#40;</span>obar:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">nalphalevel</span> := <span style=\"color: #000000;\">100</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\m</span>etro<span style=\"color: #000000;\">\\u</span>sers.bmp\"</span>    <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"users\"</span>  + CRLF + <span style=\"color: #ff0000;\">\"metro\"</span> FLAT TRANSPARENT<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\m</span>etro<span style=\"color: #000000;\">\\e</span>xit.bmp\"</span>     <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"exit\"</span>   + CRLF + <span style=\"color: #ff0000;\">\"metro\"</span> FLAT TRANSPARENT<br /><br />   <span style=\"color: #00C800;\">for</span> each oBtn in oBar:<span style=\"color: #000000;\">aControls</span><br />      oBtn:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> CLR_WHITE, CLR_BLACK <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">next</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">CENTERED</span><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:2ak3qoqa][/quote:2ak3qoqa]\n\nMis disculpas Mr. RAO, yo dando idea, y ya existe, gracias por el excelente trabajo, saludos, gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "21:25", "topic": "Button Bar Transparency with FWH 1612", "username": "joseluisysturiz" } ]
Button Bar Transparency with FWH 1612
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "When my program does some functions like envoke an email message, when I return to my program, one of my toolbars has dissappeared.\n\nIf I minimise and maximise the program it reappears. Where is my problem?", "time": "10:25", "topic": "Button Bar dissapears", "username": "Ollie" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Ollie,\n\nAre you using a MDI window ? is it a toolbar or a buttonbar ?", "time": "13:22", "topic": "Button Bar dissapears", "username": "Antonio Linares" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "MDICHILD\nButtonbar", "time": "13:42", "topic": "Button Bar dissapears", "username": "Ollie" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Ollie,\n\nCould you take a screenshot and upload it to <!-- w --><a class=\"postlink\" href=\"http://www.imageshack.us\">www.imageshack.us</a><!-- w --> and copy here the URL to review it ? thanks,", "time": "13:45", "topic": "Button Bar dissapears", "username": "Antonio Linares" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "done.\n\nI send a mail using TMAIL\n\nThen when the program returns, buttonbar is gone.\n\n<!-- m --><a class=\"postlink\" href=\"http://img474.imageshack.us/my.php?image=screenshotrg8.jpg\">http://img474.imageshack.us/my.php?imag ... hotrg8.jpg</a><!-- m -->", "time": "14:23", "topic": "Button Bar dissapears", "username": "Ollie" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Ollie,\n\nHow are you placing the controls on the MdiChild ? Are you using a dialog on top of it ?", "time": "17:06", "topic": "Button Bar dissapears", "username": "Antonio Linares" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes I am.", "time": "17:11", "topic": "Button Bar dissapears", "username": "Ollie" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Ollie,\n\nWhen you create the buttonbar, does it belong to the mdichild or to the dialog ? ( CLAUSE \"OF ...\" )", "time": "17:21", "topic": "Button Bar dissapears", "username": "Antonio Linares" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "[code:1wgedl5m]//Main application window&#58;\nDEFINE WINDOW Win_Main FROM 0, 0 TO 600, 800 PIXEL TITLE 'SubsPro' MDI ICON oIcon MENU mainmenu&#40;&#41; //ICON FILENAME \"&#46;&#46;\\RESOURCE\\SUBSPRO&#46;BMP\" //BACKCOLOR aBackcolor ON RELEASE quitprog&#40;&#41;\n\n//Button Bar at top&#58; \nDEFINE BUTTONBAR oMain_Toolbar OF Win_Main SIZE 70, 50 3D // Microsoft Standard&#58; 24,26 3D bitmaps to be 18pix high by 19pix wide\n DEFINE BUTTON of oMain_Toolbar PROMPT \"Subscribers\" TOP ACTION DBMAIN&#40;&#41; TOOLTIP \"Current / Active Subscribers\" RESOURCE \"LED_GREEN\"\n DEFINE BUTTON of oMain_Toolbar PROMPT \"Prospective\" TOP ACTION DBPROS&#40;&#41; TOOLTIP \"Prospective Subscribers\" RESOURCE \"LED_YELLOW\"\n DEFINE BUTTON of oMain_Toolbar PROMPT \"Free\" TOP ACTION DBFREE&#40;&#41; TOOLTIP \"Voucher/Free Copies\" RESOURCE \"LED_RED\"\n // DEFINE BUTTON of oMain_Toolbar PROMPT \"Report\" TOP ACTION makertf&#40;&#41; RESOURCE \"LETTER\" //report2&#40;&#41; GROUP //puts a little space before this button\n // DEFINE BUTTON of oMain_Toolbar PROMPT \"Open DBFs\" TOP ACTION opendbfs&#40;&#41; RESOURCE \"tools\"\n DEFINE BUTTON of oMain_Toolbar PROMPT \"Exit\" TOP ACTION quitprog&#40;&#41; TOOLTIP \"Exit\" RESOURCE \"exit\"\n \n//MDICHILD\nDEFINE WINDOW Win_Dbmain TITLE \"Subscribers Database\" MDICHILD ICON oIcon //NOMINIMIZE NOMAXIMIZE //VSCROLL HSCROLL\n\n//Button bar of MDICHILD\nDEFINE BUTTONBAR oButton_Bar OF Win_Dbmain SIZE 40, 40 3D\n[/code:1wgedl5m]\n\nIs this what you need to know?", "time": "18:15", "topic": "Button Bar dissapears", "username": "Ollie" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Ollie,\n\nThe buttonbar should belong to the dialog:\n\n//MDICHILD\nDEFINE WINDOW Win_Dbmain TITLE \"Subscribers Database\" MDICHILD ICON oIcon //NOMINIMIZE NOMAXIMIZE //VSCROLL HSCROLL\n\n... create the dialog oDlg ...\n\n//Button bar\nDEFINE BUTTONBAR oButton_Bar [color=red:2i2j3e1s]OF oDlg[/color:2i2j3e1s] SIZE 40, 40 3D", "time": "18:18", "topic": "Button Bar dissapears", "username": "Antonio Linares" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "I get : System Error: Cannot create a top-level child window.\n\nLets recap:\n//Application's main window - Win_main\nDEFINE WINDOW Win_Main FROM 0, 0 TO 600, 800 PIXEL TITLE 'SubsPro' MDI ICON oIcon MENU mainmenu() ON RELEASE quitprog()\n\n//Buttonbar of Win_main\nDEFINE BUTTONBAR oMain_Toolbar OF Win_Main SIZE 70, 50 3D \n\n//One of the buttons creates a MDI Child window: Win_Dbmain\nDEFINE WINDOW Win_Dbmain TITLE \"Subscribers Database\" MDICHILD ICON oIcon\n\n//I define its button bar\nDEFINE BUTTONBAR oButton_Bar OF Win_Dbmain SIZE 40, 40 3D\n\n//I then define the Dlg - Dlg_Dbmain (it has folders/Tabs)\nDEFINE DIALOG Dlg_Dbmain RESOURCE \"DBMAIN\" OF Win_Dbmain ICON oIcon\n*****\n//These dlgs and windows are activated as follows (so that they behave \"as one\"\n\nACTIVATE DIALOG Dlg_Dbmain NOWAIT ; // It has to be NonModal \n ON INIT ( Dlg_Dbmain:Move( 0, 0 ) ) ;\n VALID ( Win_Dbmain:End(), .T. )\n\n ACTIVATE WINDOW Win_Dbmain MAXIMIZED ;\n ON RESIZE ( WNDSETSIZE( Dlg_Dbmain, WNDHEIGHT( Win_Dbmain ), WNDWIDTH( Win_Dbmain ) ) ) ;\n VALID ( IF( save_MAIN_data(), ( close_tables(), Win_Dbmain := NIL, .T. ), .F. ) )\n\n\nIf I remove the line:\nDEFINE BUTTONBAR oButton_Bar OF Win_Dbmain SIZE 40, 40 3D\nand move it to the line ***** above \nDEFINE BUTTONBAR oButton_Bar OF Dlg_Dbmain SIZE 40, 40 3D\nI get : System Error: Cannot create a top-level child window.\n\nI have a better screen shot with annotations that explains it nicely:\n\n<!-- m --><a class=\"postlink\" href=\"http://img120.imageshack.us/my.php?image=screenshotsr5.jpg\">http://img120.imageshack.us/my.php?imag ... hotsr5.jpg</a><!-- m -->", "time": "18:54", "topic": "Button Bar dissapears", "username": "Ollie" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Ollie,\n\nDo it this way:\n[code:3lggr7ga]\nACTIVATE DIALOG Dlg_Dbmain NOWAIT ; // It has to be NonModal\nON INIT &#40; Dlg_Dbmain&#58;Move&#40; 0, 0 &#41;, BuildButtonBar&#40; Dlg_Dbmain &#41; &#41; ;\nVALID &#40; Win_Dbmain&#58;End&#40;&#41;, &#46;T&#46; &#41;\n\nACTIVATE WINDOW Win_Dbmain MAXIMIZED ;\nON RESIZE &#40; WNDSETSIZE&#40; Dlg_Dbmain, WNDHEIGHT&#40; Win_Dbmain &#41;, WNDWIDTH&#40; Win_Dbmain &#41; &#41; &#41; ;\nVALID &#40; IF&#40; save_MAIN_data&#40;&#41;, &#40; close_tables&#40;&#41;, Win_Dbmain &#58;= NIL, &#46;T&#46; &#41;, &#46;F&#46; &#41; &#41;\n\n&#46;&#46;&#46;\n\nfunction BuildButtonBar&#40; oDlg &#41;\n\n local oButton_Bar\n\n DEFINE BUTTONBAR oButton_Bar OF oDlg SIZE 40, 40 3D\n\n &#46;&#46;&#46; add the buttons here\n\nreturn nil\n[/code:3lggr7ga]", "time": "21:19", "topic": "Button Bar dissapears", "username": "Antonio Linares" } ]
Button Bar dissapears
[ { "date": "2007-05-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Excellent !!\n\nThank you.", "time": "22:10", "topic": "Button Bar dissapears", "username": "Ollie" } ]
Button Bar dissapears
[ { "date": "2007-06-26", "forum": "FiveWin for Harbour/xHarbour", "text": "I have noticed a new glitch in the code above. (repeated here for convenience)\n[code:2aa3rmf9]ACTIVATE DIALOG Dlg_Dbmain NOWAIT ; // It has to be NonModal \nON INIT &#40; Dlg_Dbmain&#58;Move&#40; 0, 0 &#41;, BuildButtonBar&#40; Dlg_Dbmain &#41; &#41; ; \nVALID &#40; Win_Dbmain&#58;End&#40;&#41;, &#46;T&#46; &#41; \n\nACTIVATE WINDOW Win_Dbmain MAXIMIZED ; \nON RESIZE &#40; WNDSETSIZE&#40; Dlg_Dbmain, WNDHEIGHT&#40; Win_Dbmain &#41;, WNDWIDTH&#40; Win_Dbmain &#41; &#41; &#41; ; \nVALID &#40; IF&#40; save_MAIN_data&#40;&#41;, &#40; close_tables&#40;&#41;, Win_Dbmain &#58;= NIL, &#46;T&#46; &#41;, &#46;F&#46; &#41; &#41; \n[/code:2aa3rmf9]\n\nWhen the Window (a child) is closed (with the 'X' or with win_dbmain:END() ) there are no problems.\n\nWhen the user presses ESC - it seems to close the Dlg_DBMAIN first, which then ENDs the Win_DBMAIN. This works as long as no data is changed, otherwise an error occurs. Something like : Error description: Error BASE/1004 Class: 'NIL' has no exported method: END\n\nPlease tell me what needs to be ENDed or made :=NIL for this to be resolved. (or is that not the problem)", "time": "14:11", "topic": "Button Bar dissapears", "username": "Ollie" } ]
Button Bar dissapears
[ { "date": "2009-09-16", "forum": "FiveWin for Harbour/xHarbour", "text": "I was doing a search to see if there are any discussions or samples for using button bars on folders but I couldn't find any.\n\nI have an idea for what I need to do, but I thought I'd ask first to be sure I head down the right path !", "time": "19:11", "topic": "Button Bars on Folders", "username": "TimStone" } ]
Button Bars on Folders
[ { "date": "2009-09-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Tim,\n\nThe Solution, to include a different Buttonbar on each Folderpage with all Functions You need.\nMuch better, using the new VTitle-Class with more possible Graphic-Designs ( animated Buttons and more..)\n\nI hope, Daniel will include the [color=#FF0000:2lhtxvsb]Button-Tooltips [/color:2lhtxvsb]and the missing [color=#FF0000:2lhtxvsb]Gradient-Parameter .T./.F.[/color:2lhtxvsb] for Horiz. and Vert.\n\nI don't use Buttonbars inside the Application, It is only included for a Test :\n\n[img:2lhtxvsb]http&#58;//www&#46;pflegeplus&#46;com/pictures/Folderbar1&#46;jpg[/img:2lhtxvsb]\n\nThe Way I do it :\nThe Buttons are placed animated with Reflex, inside a VTitle on the Main-Dialog.\n( I could place it inside a Folderpage as well )\n\n[img:2lhtxvsb]http&#58;//www&#46;pflegeplus&#46;com/pictures/Folderbar2&#46;jpg[/img:2lhtxvsb]\n\n[code=fw:2lhtxvsb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />....<br />....<br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">FOLDER</span> oFld <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">OF</span> oDlg TRANSPARENT ; <br /><span style=\"color: #0000ff;\">PROMPTS</span> <span style=\"color: #ff0000;\">\" Page 1 \"</span>, <span style=\"color: #ff0000;\">\" Page 2 \"</span>, <span style=\"color: #ff0000;\">\" Page 3 \"</span>, <span style=\"color: #ff0000;\">\" Page 4 \"</span>, <span style=\"color: #ff0000;\">\" Page 5 &nbsp;\"</span> ;<br /><span style=\"color: #0000ff;\">DIALOGS</span> <span style=\"color: #ff0000;\">\"Page1\"</span>, <span style=\"color: #ff0000;\">\"Page2\"</span>, <span style=\"color: #ff0000;\">\"Page3\"</span>, <span style=\"color: #ff0000;\">\"Page4\"</span>, <span style=\"color: #ff0000;\">\"Page5\"</span> &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFoldFont <br /><br /><span style=\"color: #B900B9;\">// Dialog- and FolderGradient</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> <span style=\"color: #000000;\">&#40;</span> SetImages<span style=\"color: #000000;\">&#40;</span>oDlg,oFld<span style=\"color: #000000;\">&#41;</span>, ;<br />   GradBrush<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, <span style=\"color: #000000;\">14853684</span>, <span style=\"color: #000000;\">16314573</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />          <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, <span style=\"color: #000000;\">16314573</span>, <span style=\"color: #000000;\">14853684</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, .T. <span style=\"color: #000000;\">&#41;</span>, MAKEBAR<span style=\"color: #000000;\">&#40;</span>oFld<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ; <br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> SetFoldGrad<span style=\"color: #000000;\">&#40;</span> oFld <span style=\"color: #000000;\">&#41;</span>  <br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span>   <br /><br /><span style=\"color: #B900B9;\">// ----------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAKEBAR<span style=\"color: #000000;\">&#40;</span>ofld<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oBar1, oBar2, oTitle1<br /><span style=\"color: #00C800;\">LOCAL</span> oBtn1, oBtn2, oBtn3, oBtn4<br /><span style=\"color: #00C800;\">LOCAL</span> oBtn11, oBtn12, oBtn13, oBtn14<br /><br /><span style=\"color: #B900B9;\">// using VTitles ( much better ) :</span><br />@  <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TITLE</span> oTitle1 <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">820</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">OF</span>  oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> SHADOW BOTTOMLEFT SHADOWSIZE <span style=\"color: #000000;\">1</span> TOPRIGHT <br />@  <span style=\"color: #000000;\">20</span>,  <span style=\"color: #000000;\">20</span>  TITLETEXT <span style=\"color: #0000ff;\">OF</span> oTitle1 <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Using VTitles inside Folder-Pages\"</span>  ;<br /><span style=\"color: #0000ff;\">FONT</span> oTextFont <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK   <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar1 <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">67</span> <span style=\"color: #000000;\">2007</span> <span style=\"color: #0000ff;\">RIGHT</span> <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn1 <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> ;<br />FILENAME aPICTURES<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Windows\"</span>  TOOLTIP <span style=\"color: #ff0000;\">\"Windows and Dialog\"</span> <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn2 <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> ;<br />FILENAME aPICTURES<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"xBrowse\"</span>  TOOLTIP <span style=\"color: #ff0000;\">\"xBrowse\"</span> <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn3 <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> ;<br />FILENAME aPICTURES<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"BTN-Bars\"</span>  TOOLTIP <span style=\"color: #ff0000;\">\"Folder\"</span> <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn4 <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> ;<br />FILENAME aPICTURES<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Folder\"</span>  TOOLTIP <span style=\"color: #ff0000;\">\"Button-Bar\"</span> <br /><br /><span style=\"color: #B900B9;\">// ------ Next Page -----</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar2 <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">67</span> <span style=\"color: #000000;\">2007</span> <span style=\"color: #0000ff;\">RIGHT</span> <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn11 <span style=\"color: #0000ff;\">OF</span> oBar2 <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> ;<br />FILENAME aPICTURES<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Windows\"</span>  TOOLTIP <span style=\"color: #ff0000;\">\"Windows and Dialog\"</span> <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn12 <span style=\"color: #0000ff;\">OF</span> oBar2 <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> ;<br />FILENAME aPICTURES<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"xBrowse\"</span>  TOOLTIP <span style=\"color: #ff0000;\">\"xBrowse\"</span> <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn13 <span style=\"color: #0000ff;\">OF</span> oBar2 <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> ;<br />FILENAME aPICTURES<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"BTN-Bars\"</span>  TOOLTIP <span style=\"color: #ff0000;\">\"Folder\"</span> <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn14 <span style=\"color: #0000ff;\">OF</span> oBar2 <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> ;<br />FILENAME aPICTURES<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Folder\"</span>  TOOLTIP <span style=\"color: #ff0000;\">\"Button-Bar\"</span> <br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// --------- VTitle - Solution ( with 2 Vtitles Vertical ) ----------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAKEBAR1<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oBar1, oBar2, oBtn1, oBtn2, oBtn3<br /><br />nSCR0 := oDlg:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Screen-Width</span><br />nSCR17 := oDlg:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Screen-Hight - Title-Height</span><br />nSCR4 := GetSysMetrics<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Title-Hight ???</span><br /><br /><span style=\"color: #B900B9;\">//Title 4 Vertical ( Right )</span><br /><span style=\"color: #B900B9;\">// Top, Left - Width / Height </span><br />@  <span style=\"color: #000000;\">0</span>, nSCR0 - <span style=\"color: #000000;\">90</span> <span style=\"color: #0000ff;\">TITLE</span> oBar1 <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">90</span>, nSCR17 <span style=\"color: #0000ff;\">of</span> oDlg SHADOW BOTTOMLEFT SHADOWSIZE <span style=\"color: #000000;\">1</span> TOPRIGHT <br />@  <span style=\"color: #000000;\">0</span>, nSCR0 - <span style=\"color: #000000;\">105</span> <span style=\"color: #0000ff;\">TITLE</span> oBar2 <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">15</span>, nSCR17 <span style=\"color: #0000ff;\">of</span> oDlg SHADOW BOTTOMLEFT SHADOWSIZE <span style=\"color: #000000;\">1</span> TOPRIGHT <br /><br />@   <span style=\"color: #000000;\">50</span>,  <span style=\"color: #000000;\">15</span> TITLEIMG <span style=\"color: #0000ff;\">OF</span> oBar1 BITMAP c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\I</span>mages<span style=\"color: #000000;\">\\p</span>review.bmp\"</span>  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">45</span> REFLEX ANIMA LEVEL <span style=\"color: #000000;\">255</span> ;<br />       <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> NEW_SKIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, DLG_BTN1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />@  <span style=\"color: #000000;\">130</span>,  <span style=\"color: #000000;\">20</span>  TITLETEXT <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Preview\"</span>  <span style=\"color: #0000ff;\">FONT</span> oProgFont <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK   <br /><br />@  <span style=\"color: #000000;\">160</span>,  <span style=\"color: #000000;\">15</span> TITLEIMG <span style=\"color: #0000ff;\">OF</span> oBar1 BITMAP c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\I</span>mages<span style=\"color: #000000;\">\\p</span>review.bmp\"</span>  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">45</span> REFLEX ANIMA LEVEL <span style=\"color: #000000;\">255</span> ;<br />       <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> NEW_SKIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, DLG_BTN2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />@  <span style=\"color: #000000;\">240</span>,  <span style=\"color: #000000;\">20</span>  TITLETEXT <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Preview\"</span>  <span style=\"color: #0000ff;\">FONT</span> oProgFont <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK   <br /><br />@   <span style=\"color: #000000;\">460</span>,  <span style=\"color: #000000;\">18</span> TITLEIMG <span style=\"color: #0000ff;\">OF</span> oBar1 BITMAP c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\I</span>mages<span style=\"color: #000000;\">\\e</span>xit.bmp\"</span>  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">45</span> REFLEX ANIMA LEVEL <span style=\"color: #000000;\">255</span> ;<br />       <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />@   <span style=\"color: #000000;\">540</span>,  <span style=\"color: #000000;\">30</span>  TITLETEXT <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Exit\"</span>  <span style=\"color: #0000ff;\">FONT</span> oProgFont <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK   <br /><br />oBar1:<span style=\"color: #000000;\">lRound</span> := .F.<br />oBar1:<span style=\"color: #000000;\">aGrdBack</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.9</span>, <span style=\"color: #000000;\">14853684</span>, <span style=\"color: #000000;\">16314573</span> <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.9</span>, <span style=\"color: #000000;\">16314573</span>, <span style=\"color: #000000;\">14853684</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />oBar2:<span style=\"color: #000000;\">lRound</span> := .F.<br />oBar2:<span style=\"color: #000000;\">aGrdBack</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.1</span>, <span style=\"color: #000000;\">16314573</span>, <span style=\"color: #000000;\">128</span> <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.1</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">14853684</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// -----------------------------------------</span><br /><br /><span style=\"color: #00C800;\">function</span> SetImages<span style=\"color: #000000;\">&#40;</span>oDlg, oFld<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oImageList<br />   <br /><span style=\"color: #0000ff;\">DEFINE</span> IMAGELIST oImageList <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">16</span><br />   <br />oImageList:<span style=\"color: #000000;\">AddMasked</span><span style=\"color: #000000;\">&#40;</span> TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"colors\"</span>,,   oDlg <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>    <br />oImageList:<span style=\"color: #000000;\">AddMasked</span><span style=\"color: #000000;\">&#40;</span> TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"write\"</span>,,     oDlg <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />oImageList:<span style=\"color: #000000;\">AddMasked</span><span style=\"color: #000000;\">&#40;</span> TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"write\"</span>,,   oDlg <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>    <br />oImageList:<span style=\"color: #000000;\">AddMasked</span><span style=\"color: #000000;\">&#40;</span> TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"favorite\"</span>,,     oDlg <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>    <br />oImageList:<span style=\"color: #000000;\">AddMasked</span><span style=\"color: #000000;\">&#40;</span> TBitmap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Define</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"favorite\"</span>,,     oDlg <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>    <br /><br />oFld:<span style=\"color: #000000;\">SetImageList</span><span style=\"color: #000000;\">&#40;</span> oImageList <span style=\"color: #000000;\">&#41;</span><br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span>   <br /><br /><span style=\"color: #B900B9;\">// ------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GradBrush<span style=\"color: #000000;\">&#40;</span> oDlg, aColors, lPos <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> hDC, hBmp, hBmpOld, oBrush<br /><br /><span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />      hDC = CreateCompatibleDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      hBmp = CreateCompatibleBitMap<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />      hBmpOld = SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br />      GradientFill<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors, lPos <span style=\"color: #000000;\">&#41;</span><br />      DeleteObject<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</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;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span> <br />      SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br />      oDlg:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span>   <br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">// --------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> SetFoldGrad<span style=\"color: #000000;\">&#40;</span> oFld <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">LOCAL</span> n, oDlg <br />    <br /><span style=\"color: #00C800;\">FOR</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> oFld:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">&#41;</span> <br />   oDlg = oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span>     <br />   oDlg:<span style=\"color: #000000;\">bPainted</span> = <span style=\"color: #000000;\">&#123;</span> | hDC | GradientFill<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, ;<br />   oDlg:<span style=\"color: #000000;\">nWidth</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, <span style=\"color: #000000;\">14853684</span>, <span style=\"color: #000000;\">16314573</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, <span style=\"color: #000000;\">16314573</span>, <span style=\"color: #000000;\">14853684</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br /><span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span>    <br /> </div>[/code:2lhtxvsb]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "21:13", "topic": "Button Bars on Folders", "username": "ukoenig" } ]
Button Bars on Folders
[ { "date": "2009-09-18", "forum": "FiveWin for Harbour/xHarbour", "text": "I have a dialog with 7 folders. I decided to use button bars on the dialog and on each folder.\n\nI created one function, with 8 bars, and about 60 buttons, which runs when the dialog is activated.\n\nThe result is perfect button bars on the dialog and all folders. It worked without any problems.\n\nI'm doing this because my clients have asked for consistency. Instead of label buttons on the side of a folder, or mixed within, they will now see all of the button controls at the top of the dialog ( folder ) in which they are working, and the buttons will be consistant throughout a rather massive program.\n\nTim", "time": "16:15", "topic": "Button Bars on Folders", "username": "TimStone" } ]
Button Bars on Folders
[ { "date": "2009-09-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nVery good <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "18:12", "topic": "Button Bars on Folders", "username": "Antonio Linares" } ]
Button Bars on Folders
[ { "date": "2014-06-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Anybody remember many years ago we had the capability to create a button bar with buttons which had an image kind of in the middle of the button, and a caption at the bottom of the button. Is this available anymore. We have a customer which would like to do this for an app we are converting for them. \n\nThanks \n\nByron ...", "time": "19:29", "topic": "Button Bitmap with Caption at bottom.", "username": "byron.hopp" } ]
Button Bitmap with Caption at bottom.
[ { "date": "2014-06-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Maybe this way?\n[code=fw:1zadseiu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">64</span> <span style=\"color: #000000;\">2007</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBoto1 <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"FOLDER40\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Hola\"</span> &nbsp; <span style=\"color: #0000ff;\">OF</span> oBar TOOLTIP <span style=\"color: #ff0000;\">\"Hi all of you\"</span> &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Hi\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1zadseiu]", "time": "02:18", "topic": "Button Bitmap with Caption at bottom.", "username": "FranciscoA" } ]
Button Bitmap with Caption at bottom.
[ { "date": "2014-06-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Byron,\n\nMaybe the buttonbar-style You are looking for ?\n\n[img:2gvtf6vn]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Btnbar1&#46;jpg[/img:2gvtf6vn]\n\nbest regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "11:40", "topic": "Button Bitmap with Caption at bottom.", "username": "ukoenig" } ]
Button Bitmap with Caption at bottom.
[ { "date": "2014-06-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes this is exactly what I am looking for. Has this been in Fivewin a while, we cant get the prompt to show at the bottom of the button. It shows right in the middle of the button. My version is \"Fivewin for Harbour\", \"FWH 7.01\".\nWasn't planning on color but looks good, I might add that as well.\n\nByron ...", "time": "19:35", "topic": "Button Bitmap with Caption at bottom.", "username": "byron.hopp" } ]
Button Bitmap with Caption at bottom.
[ { "date": "2014-06-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Please make sure you specified enough height to accommodate the bitmap and prompt one below the other while defining the BUTTONBAR.\n[code=fw:tvqoyge4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <nWidth>, <nHeight></div>[/code:tvqoyge4]\nIf the height is less, prompt will overlap the bitmap.\n\nBy default the bitmap is painted on top and prompt at the bottom. If this not working by default in older version please try adding clause \"TOP\" while defining the button. This indicates that the bitmap should be painted on Top.\n[code=fw:tvqoyge4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">RESOURCE</span> <resname> TOP <span style=\"color: #0000ff;\">PROMPT</span> <prompt> <span style=\"color: #0000ff;\">ACTION</span> <action></div>[/code:tvqoyge4]", "time": "01:24", "topic": "Button Bitmap with Caption at bottom.", "username": "nageswaragunupudi" } ]
Button Bitmap with Caption at bottom.
[ { "date": "2014-06-08", "forum": "FiveWin for Harbour/xHarbour", "text": "The same but designed as a vertical buttonbar.\nNow it is possible, to use a horizontal gradient-direction ( class-change needed ).\n\nDownload ( PRG [color=#0000FF:2y8m2ymi]without[/color:2y8m2ymi] the changed BTNBMP-class, included ) :\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Bartest1.zip\">http://www.pflegeplus.com/DOWNLOADS/Bartest1.zip</a><!-- m -->\n\n[img:2y8m2ymi]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Btnbar2&#46;jpg[/img:2y8m2ymi]\n\n[size=150:2y8m2ymi]I used BtnBMP !!![/size:2y8m2ymi]\n\n[color=#0000FF:2y8m2ymi]@ 0, 0 BTNBMP oSBtn[1] [size=150:2y8m2ymi]OF oBar [/size:2y8m2ymi];\nSIZE 90, 60 PIXEL 2007 ; // B / H\nNOBORDER ;\nPROMPT \"Button &1\" ;\nFILENAME c_path1 + \"Select.Bmp\" ;\nACTION MsgAlert( \"Button 1\", \"Attention\" ) ; \t\t\t \nFONT oFont1 ;\nTOP\noSBtn[1]:bClrGrad = { | lMouseOver | If( ! lMouseOver,;\n{ { 0.20, 16763283, 16777215 }, ;\n{ 0.20, 16777215, 16763283 } }, ;\n{ { 0.20, 9934847, 16777215 }, ;\n{ 0.20, 16777215, 9934847 } } ) }\noSBtn[1]:lRound := .f.\n[size=150:2y8m2ymi]oSBtn[1]:lGraddirect := .F.[/size:2y8m2ymi] // class-change needed for HORIZONTAL-gradient !!!\noSBtn[1]:lTransparent := .t. \noSBtn[1]:cToolTip = { \"Select a Image \",\"Load Image\", 1, CLR_BLACK, 14089979 }\noSBtn[1]:SetColor( 0, )[/color:2y8m2ymi]\n\nchanges in class BTNBMP\n\nnew\n[color=#0000FF:2y8m2ymi]DATA lGraddirect AS LOGICAL INIT .T.[/color:2y8m2ymi]\n\nin METHOD New( and METHOD ReDefine(\nI added < [color=#0000FF:2y8m2ymi]lGraddirect[/color:2y8m2ymi] >\nand a new line\n[color=#0000FF:2y8m2ymi]::lGraddirect = lGraddirect[/color:2y8m2ymi]\n\nIn METHOD Paint I changed 3 times :\n\n1.)\n[color=#0000FF:2y8m2ymi]if ! Empty( ::aGrad )\nGradientFill( ::hDC, 0,0, ::nHeight, ::nWidth, ::aGrad, ::lGraddirect )\nendif[/color:2y8m2ymi]\n\n2.)\n[color=#0000FF:2y8m2ymi]...\notherwise\nRectangle( ::hDC, 0, 0, ::nHeight, ::nWidth )\nif ::aGrad != nil\nGradientFill( ::hDC, 1, 1, ::nHeight - 2, ::nWidth - 1, ::aGrad, ::lGraddirect )\nendif \nendcase[/color:2y8m2ymi]\n\n3.)\n[color=#0000FF:2y8m2ymi]else\nif ::aGrad != nil\nGradientFill( ::hDC, 0, 0, ::nHeight, ::nWidth, ::aGrad, ::lGraddirect )\nendif\nendif[/color:2y8m2ymi]\n\nbest regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "08:22", "topic": "Button Bitmap with Caption at bottom.", "username": "ukoenig" } ]
Button Bitmap with Caption at bottom.
[ { "date": "2010-02-28", "forum": "FiveWin for Harbour/xHarbour", "text": "How make to use PNG file in a button ?\n\nAlready is possible ?\n\nthanks", "time": "02:54", "topic": "Button IMAGEM", "username": "lailton.webmaster" } ]
Button IMAGEM
[ { "date": "2009-09-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nIs it possible to use a .jpg for a button image rather than a bmp on a buttonbar?\n\nRegards\n\nGary", "time": "10:30", "topic": "Button Images", "username": "Gary Woodley" } ]
Button Images
[ { "date": "2009-09-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Gary,\n\nThe BMP-Format supports [color=#FF0000:1tf4lb6p]Alpha-Channels[/color:1tf4lb6p], mostly used for Buttons.\nYou can define a Image in JPG-Format as Button, but with this Solution, the complete\nImage will be the button.\n\nBest regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "11:25", "topic": "Button Images", "username": "ukoenig" } ]
Button Images
[ { "date": "2009-09-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Gary,\n\nCurrently we only support BMPs and Alpha-Chanel BMPs (as Uwe has explained) for ButtonBar buttons.\n\nAnyhow the Class TBtnBmp could be easily modify to support other graphic formats as we do in Class TImage.", "time": "13:17", "topic": "Button Images", "username": "Antonio Linares" } ]
Button Images
[ { "date": "2018-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos,\nUsualmente, luego de definir una barra de botones (BUTTONBAR) en la ventana principal, luego defino los botones (BUTTON), y éstos empiezan por la izquierda hacia la derecha.\nAhora, como haría para tener un BUTTON al lado derecho la barra de botónes ?\nGracias\n[url=https&#58;//ibb&#46;co/dOscK6:2gp320ei][img:2gp320ei]https&#58;//preview&#46;ibb&#46;co/fvSBe6/como&#46;png[/img:2gp320ei][/url:2gp320ei]", "time": "06:52", "topic": "Button a la derecha", "username": "Willi Quintana" } ]
Button a la derecha
[ { "date": "2018-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Mira se és esto:\n\n[url:16iez8a1]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=17975&p=93922&hilit=Button+a+la+derecha#p93922[/url:16iez8a1]\n\nSaludos.", "time": "12:33", "topic": "Button a la derecha", "username": "karinha" } ]
Button a la derecha
[ { "date": "2018-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:3w18zd8c]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// C:\\FWH..\\SAMPLES\\TESTBTNL.PRG</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br />PROCEDURE MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">Local</span> oFont, oWnd, oBar, b1, b2, b3, b4, b5<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-10</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">474</span>,<span style=\"color: #000000;\">639</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test\"</span><br /><br />   oWnd:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span>oFont<span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar TOP _3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TOP\"</span>     TOP    <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Top\"</span>    NOBORDER <span style=\"color: #0000ff;\">OF</span> oBar<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"LEFT\"</span>    <span style=\"color: #0000ff;\">LEFT</span>   <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Left\"</span>   NOBORDER <span style=\"color: #0000ff;\">OF</span> oBar<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BOTTOM\"</span>  BOTTOM <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Bottom\"</span> NOBORDER <span style=\"color: #0000ff;\">OF</span> oBar<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RIGHT\"</span>   <span style=\"color: #0000ff;\">RIGHT</span>  <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Right\"</span>  NOBORDER <span style=\"color: #0000ff;\">OF</span> oBar<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CENTER\"</span>  <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Center\"</span> NOBORDER <span style=\"color: #0000ff;\">OF</span> oBar<br /><br />   @<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TOP\"</span>    TOP    <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"DERECHA\"</span>    <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>,<span style=\"color: #000000;\">70</span> <span style=\"color: #0000ff;\">OF</span> oBar<br /><br />   <span style=\"color: #B900B9;\">// @100,100 BTNBMP RESOURCE \"TOP\"    TOP    PROMPT \"Top\"    SIZE 80,80 OF oWnd</span><br /><br />   <span style=\"color: #B900B9;\">/*<br />   @180, 20 BTNBMP RESOURCE \"LEFT\"   LEFT   PROMPT \"Left\"   SIZE 80,80 OF oWnd<br />   @260,100 BTNBMP RESOURCE \"BOTTOM\" BOTTOM PROMPT \"Bottom\" SIZE 80,80 OF oWnd<br />   @180,180 BTNBMP RESOURCE \"RIGHT\"  RIGHT  PROMPT \"Right\"  SIZE 80,80 OF oWnd<br />   @180,100 BTNBMP RESOURCE \"CENTER\" CENTER PROMPT \"Center\" SIZE 80,80 OF oWnd<br /><br />   @100,400 BTNBMP b1 RESOURCE \"TOP\",\"\",\"TOP0\"       TOP    PROMPT \"Top\"    SIZE 80,80 OF oWnd<br />   @180,320 BTNBMP b2 RESOURCE \"LEFT\",\"\",\"LEFT0\"     LEFT   PROMPT \"Left\"   SIZE 80,80 OF oWnd<br />   @260,400 BTNBMP b3 RESOURCE \"BOTTOM\",\"\",\"BOTTOM0\" BOTTOM PROMPT \"Bottom\" SIZE 80,80 OF oWnd<br />   @180,480 BTNBMP b4 RESOURCE \"RIGHT\",\"\",\"RIGHT0\"   RIGHT  PROMPT \"Right\"  SIZE 80,80 OF oWnd<br />   @180,400 BTNBMP b5 RESOURCE \"CENTER\",\"\",\"CENTER0\" CENTER PROMPT \"Center\" SIZE 80,80 OF oWnd<br /><br />   b1:Disable()<br />   b2:Disable()<br />   b3:Disable()<br />   b4:Disable()<br />   b5:Disable()<br />   */</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> MSGBAR <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Testing bitmaped buttons with captions\"</span> ;<br />      TIME DATE NOINSET<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">RETURN</span><br /><br />procedure AppSys  <span style=\"color: #B900B9;\">// Xbase++ requirement</span><br /><br /><span style=\"color: #00C800;\">return</span><br /> </div>[/code:3w18zd8c]\n\n[img:3w18zd8c]https&#58;//i&#46;imgur&#46;com/uiJqLeI&#46;png[/img:3w18zd8c]\n\nSaludos.", "time": "13:10", "topic": "Button a la derecha", "username": "karinha" } ]
Button a la derecha
[ { "date": "2018-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos ;\nAñadir la clausula BTNRIGHT y el botón se te pone como en la imagen.\n\nEjemplo.:\n[code=fw:l9tqm01h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtns6 <span style=\"color: #0000ff;\">OF</span> oBarMain <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Salir\"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\i</span>magenes<span style=\"color: #000000;\">\\p</span>ng<span style=\"color: #000000;\">\\b</span>oton.png\"</span> BTNRIGHT FLAT <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtns6:<span style=\"color: #000000;\">bAction</span> := <span style=\"color: #000000;\">&#123;</span> || oWndMain:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtns6:<span style=\"color: #000000;\">oCursor</span> := oCursorHand<br />&nbsp;</div>[/code:l9tqm01h]", "time": "15:40", "topic": "Button a la derecha", "username": "mag071" } ]
Button a la derecha
[ { "date": "2018-01-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Willi\n\nI just create 'blank' buttons to add fill to my button bar .. Consider this code..\n\nRick Lipkin\n\n[code=fw:26y7174r]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWind <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">64</span> <span style=\"color: #000000;\">2010</span><br />       oBar:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>                   <span style=\"color: #B900B9;\">// 45,40</span><br /><br />   oBar:<span style=\"color: #000000;\">bClrGrad</span> = <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.10</span>,<span style=\"color: #000000;\">15724527</span>,<span style=\"color: #000000;\">7303023</span> <span style=\"color: #000000;\">&#125;</span>, ;       <span style=\"color: #B900B9;\">// grey</span><br />       <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.10</span>,<span style=\"color: #000000;\">7303023</span>,<span style=\"color: #000000;\">15724527</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt1 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _CustOpen<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"A\"</span>,oWind <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>  ;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"customer\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Clients-Billing\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Clients and Billing\"</span><br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt2 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>_Arview<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"A\"</span>,oWind <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"payment\"</span>     <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Receivables\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Review Receivables\"</span>+CRLF+<span style=\"color: #ff0000;\">\"Customer Statements\"</span><br />                        <span style=\"color: #B900B9;\">// review //</span><br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt3 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _PayView<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"A\"</span>,oWind <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />              <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"cash\"</span>        <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Payments\"</span>    TOOLTIP <span style=\"color: #ff0000;\">\"Payments and Adjustments\"</span><br /><br />       *   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt4 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">nil</span><br />       *   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt5 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">nil</span><br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt7  <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// hide this ;</span><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt8  <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// hide this</span><br /><br />       <span style=\"color: #B900B9;\">//--------  group --</span><br />       <span style=\"color: #0000ff;\">MENU</span> oPopRpt <span style=\"color: #0000ff;\">POPUP</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Customer Reports\"</span>  <span style=\"color: #B900B9;\">//RESOURCE \"billing\" ;</span><br />               <span style=\"color: #0000ff;\">MENU</span><br />               <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Customer Listing Report\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _CustList<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Customer History Report\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _CustHist<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Customer Advertising and Publishing Report\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _PubRpt<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #0000ff;\">ENDMENU</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Accounts Receivable Reports\"</span>  <span style=\"color: #B900B9;\">//FileName (cDefa+\"\\Icons\\FOLDERCLOSED.bmp\");</span><br />               <span style=\"color: #0000ff;\">MENU</span><br />               <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Customer Balance and Ageing Report\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _ArAgeing<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #0000ff;\">ENDMENU</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Payment Reports\"</span>  <span style=\"color: #B900B9;\">// FileName (cDefa+\"\\Icons\\FOLDERDETAIL.bmp\");</span><br />               <span style=\"color: #0000ff;\">MENU</span><br />               <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Payments and Adjustments Report\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _PaymtRpt<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Customer Pre-Payment Balances  \"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> _PrePay<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />               <span style=\"color: #0000ff;\">ENDMENU</span><br />       <span style=\"color: #0000ff;\">ENDMENU</span><br /><br />       <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oButt9 <span style=\"color: #0000ff;\">of</span> oBar <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"report\"</span> ;<br />       <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Reports\"</span> ;<br />       <span style=\"color: #0000ff;\">ACTION</span> oButt9:<span style=\"color: #000000;\">ShowPopup</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>;<br />       <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Reports\"</span> GROUP ;<br />       <span style=\"color: #0000ff;\">MENU</span> oPopRpt<br />       oButt9:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" \"</span> + CRLF + <span style=\"color: #ff0000;\">\"Reports\"</span>, <span style=\"color: #ff0000;\">\"Customer, Acct Rec and Payment Reports\"</span>, <span style=\"color: #000000;\">1</span>, CLR_BLACK, <span style=\"color: #000000;\">14089979</span>  <span style=\"color: #000000;\">&#125;</span><br /><br />     ............<br />     ............<br /> </div>[/code:26y7174r]\n\n[img:26y7174r]http&#58;//i68&#46;tinypic&#46;com/29q1ix3&#46;jpg[/img:26y7174r]", "time": "16:31", "topic": "Button a la derecha", "username": "Rick Lipkin" } ]
Button a la derecha
[ { "date": "2018-01-18", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"mag071\":1t7knqdb]Saludos ;\nAñadir la clausula BTNRIGHT y el botón se te pone como en la imagen.\n\nEjemplo.:\n[code=fw:1t7knqdb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />         <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtns6 <span style=\"color: #0000ff;\">OF</span> oBarMain <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Salir\"</span> ;<br />         FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\i</span>magenes<span style=\"color: #000000;\">\\p</span>ng<span style=\"color: #000000;\">\\b</span>oton.png\"</span> BTNRIGHT FLAT <br />         oBtns6:<span style=\"color: #000000;\">bAction</span> := <span style=\"color: #000000;\">&#123;</span> || oWndMain:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />         oBtns6:<span style=\"color: #000000;\">oCursor</span> := oCursorHand<br /> </div>[/code:1t7knqdb][/quote:1t7knqdb]\nBTNRIGHT clause is provided to display the button on the rightside of the bar.\nFWH recommends use of BTNRIGHT clause.", "time": "02:53", "topic": "Button a la derecha", "username": "nageswaragunupudi" } ]
Button a la derecha
[ { "date": "2018-01-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias nageswaragunupudi, la cláusula BTNRIGHT FLAT funcionó perfectamente\n <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "17:59", "topic": "Button a la derecha", "username": "Willi Quintana" } ]
Button a la derecha
[ { "date": "2018-01-19", "forum": "FiveWin para Harbour/xHarbour", "text": "aca va otra.\n DEFINE BUTTON oBtns[12] OF oBar RESOURCE \"BAR_AYU\" ;\n\t\t\t\t TOOLTIP \"Ayuda,\" + CRLF + \"Indice y Contenido\";\n \t\t NOBORDER\n\n\n oVentPrinc:bResized:={|| oBtns[12]:Move(2,oVentPrinc:nWidth()-35)}\n\n\nSaludos", "time": "20:06", "topic": "Button a la derecha", "username": "jbrita" } ]
Button a la derecha
[ { "date": "2006-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "If i want associate a action to many buttons with matricial array How i can I make it ? and to return the number of the button ?\n\nexample :\n\ntot1:=20\nto2:=8\n\nbAction := {|oBtn| prenotamenu( oBtn ) ,oBtn:cCaption := \"\",oBtn:Disable( VK_RBUTTON ), oBtn:Refresh() }\n\n aBtn:= { Array( tot1 ), Array( tot2 ) }\n totarray := tot1*tot2\n aAct := Array( totarray )\n AFill( aAct, bAction )\n\n\n\nnDisponibili:=0\nnOccupati:=0\nn := 1\nfila := 60\nFOR i := 1 TO tot2\nnPassLarg := 0\ncol := 10\n\n\nFOR k := 1 TO tot1\n\n aCapt:=Str( camere->camera,3,0)\nIF ! Empty(Pre_cam->Nome)\n cbitmap=\"SEAT1\" //rosso\n nOccupati++\n ELSE\n nDisponibili++\n cbitmap=\"SEAT2\" // verde\n Endif\nIF ! Empty(Pre_cam->Nome)\n\n @ Fila,(Col+nPassLarg) SBUTTON aBtn[n] RESOURCE cbitmap PIXEL;\n OF oWnd ;\n FONT oFont2 ;\n CAPTION aCapt ;\n COLOR GetSysColor(13), GetSysColor(1) ;\n TEXT ON_CENTER ;\n NOBOX ;\n MESSAGE \"Pulsante sinistro: Inserire la prenotazione. \" + ;\n \"Pulsante destro: Cancellare la prenotazione.\" ;\n TOOLTIP oemtoansi(aCapt ) ;\n ACTION aAct\n\n\n\n ELSE\n\n @ Fila,(Col+nPassLarg) SBUTTON aBtn[n] RESOURCE cbitmap PIXEL;\n OF oWnd ;\n FONT oFont2 ;\n CAPTION aCapt ;\n COLOR GetSysColor(13), GetSysColor(1) ;\n TEXT ON_CENTER ;\n NOBOX ;\n MESSAGE \"Pulsante sinistro: Inserire la prenotazione. \" + ;\n \"Pulsante destro: Cancellare la prenotazione.\" ;\n TOOLTIP oemtoansi(aCapt ) ;\n ACTION aAct\n\n\n ENDIF\n\n\n\n\n\n\n\n\n\n //ciclo\n col += 65\n n++\n CAMERE->(dbskip())\n cPosNome :=\"\"\n NEXT\n fila +=65\n NEXT\n\nnAct := 1\n For nEle := 1 To Len( aBtn )\n For nSub := 1 To Len( aBtn[ nEle ] )\n aBtn[ nEle, nSub ]:Cargo := aCapt[ nAct++ ]\n aBtn[ nEle, nSub ]:bRClicked := {| oBtn| fCancel( oBtn ) }\n Next\n Next\n\nthanks", "time": "11:15", "topic": "Button and array", "username": "Silvio" } ]
Button and array
[ { "date": "2006-07-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nYou may have to use \"detached locals\" for your counters.\n\nBecause the counter has already been completely through the loop before the dialog gets initialized, the counter is at the maximum value so it is as if it only went through the loop once.\n\nA detached local is a local var that is captured in a codeblock. Even though it is a local var, it stays in scope until the codeblock is out of scope.\n\nHere are some example codeblocks to make detached locals. If you have more than one counter, you will need a separate function for each one.\n\nJames\n\n---------------------------------------\nDetached Locals\n\nSimple example:\n\nfunction makeBlock( i )\nreturn {| u | i }\n\nHere is another example:\n\nStatic Function MyDetach( i, a )\nReturn( {|x| if( x == NIL, a[ i ], a[ i ] := x } ) )\n\n// Column title (day of week)\nstatic function makeBlock1(i)\nreturn {|u| left(cdow(aShipDate[i]),3) }\n\n// Column title (date)\nstatic function makeBlock2(i)\nreturn {|u| left(dtoc( aShipDate[i] ),5) }", "time": "00:15", "topic": "Button and array", "username": "James Bott" } ]
Button and array
[ { "date": "2006-07-23", "forum": "FiveWin for Harbour/xHarbour", "text": "yes ok I understand..but \nbut in my source How I can make it ?\n\nRegards", "time": "23:41", "topic": "Button and array", "username": "Silvio" } ]
Button and array
[ { "date": "2007-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Hmmmm ....\n\nI have only used one button bar on my main program. I was toying with the idea of putting button bars on some dialogs. The manual indicates you can do this, so if I try to add\n\nDEFINE BUTTONBAR oBar OF oDlg SIZE 60,60 2007 \n\nit should work ???? Instead I get an error indicating it can't create the dialog ...\n\nIs this no longer a valid option, or do I need to do something else in a dialog to get it to run ?", "time": "22:38", "topic": "Button bar on dialog ?", "username": "TimStone" } ]
Button bar on dialog ?
[ { "date": "2007-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "You must create the buttonbar inside the ON INIT clause.\n\nEMG", "time": "23:31", "topic": "Button bar on dialog ?", "username": "Enrico Maria Giordano" } ]
Button bar on dialog ?
[ { "date": "2007-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "So the button bar, and the buttons, would need to go in the ON INIT statement when activating the dialog ? I just tried that with a COMMAND line and the compiler doesn't like that ...", "time": "23:48", "topic": "Button bar on dialog ?", "username": "TimStone" } ]
Button bar on dialog ?
[ { "date": "2007-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Tim\n\n ACTIVATE DIALOG oDlg CENTERED ;\n ON INIT(AddBar(oData,oLbx,nNum,oStock));\n VALID(WinOpen(oMainWnd,0),lExit)\n \nstatic function AddBar(oData,oLbx,nNum,oStock)\nlocal oBar,oBtn,oBtn1,oBtn2,oBtn3,cExitTip := '',cAddTip := '',cDelTip := '',cPrintTip := '',lRecs := FALSE\nif nNum == 1\n cExitTip := 'Exit Department Code Screen'\n cAddTip := 'Add Department Code'\n cPrintTip := 'Print Department Codes'\n cDelTip := 'Delete Deparment Code'\nelseif nNum == 2\n cExitTip := 'Exit Timesheet Code Screen'\n cAddTip := 'Add TimeSheet Code'\n cPrintTip := 'Print Timesheet Codes'\n cDelTip := 'Delete Timesheet Code'\nelseif nNum == 3\n cExitTip := 'Exit Stock Codes'\n cAddTip := 'Add Stock Code'\n cPrintTip := 'Print Stock Codes'\n cDelTip := 'Delete Stock Code'\nelseif nNum == 4\n cExitTip := 'Exit Store Codes'\n cAddTip := 'Add Store Code'\n cPrintTip := 'Print Store Codes'\n cDelTip := 'Delete Store Code'\nelseif nNum == 5\n cExitTip := 'Exit Tasks'\n cAddTip := 'Add Task'\n cPrintTip := 'Print Tasks'\n cDelTip := 'Delete Task'\nendif\nif oData:reccount() > 0\n lRecs := TRUE\nendif\n\nDEFINE BUTTONBAR oBar 3DLOOK SIZE 45, 45 OF oDlg 2007\n\nDEFINE BUTTON oBtn of oBar RESOURCE \"BTN_EXIT\";\nFLAT ;\nPROMPT \"Exit\" ;\nACTION(lExit := TRUE,oDlg:End());\nTOOLTIP(cExitTip)\n\nDEFINE BUTTON oBtn1 of oBar RESOURCE \"PLUS\";\nFLAT ;\nPROMPT \"Add\" ;\nACTION(oData:Blank(),oData:append(),oLbx:Refresh(),oLbx:SetFocus(),oLbx:GoToCol(1));\nTOOLTIP(cAddTip)\n\nDEFINE BUTTON oBtn2 of oBar RESOURCE \"PRINTER\";\nFLAT ;\nPROMPT \"Print\" ;\nACTION(PrntCodes(oData,nNum),oLbx:Refresh(),oLbx:SetFocus());\nTOOLTIP('Print Time Data')\n\nDEFINE BUTTON oBtn3 of oBar RESOURCE \"DELETE\";\nFLAT ;\nPROMPT \"Delete\" ;\nACTION(lRecs := DelRec(lRecs,nNum,oData,oStock),if(lRecs,(oLbx:Refresh(),oLbx:SetFocus()),oLbx:Hide()));\nTOOLTIP(cDelTip)\nreturn(oBar)\n\nHTH\n\nColin", "time": "01:54", "topic": "Button bar on dialog ?", "username": "Colin Haig" } ]
Button bar on dialog ?
[ { "date": "2007-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks ... it makes sense now.\n\nOf course that would add a lot of work for me ... but thats OK ... it makes it interesting.\n\nI appreciate the guidance ... now I'll plug away at it !", "time": "02:10", "topic": "Button bar on dialog ?", "username": "TimStone" } ]
Button bar on dialog ?
[ { "date": "2007-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nIt's not hard, you can still use the command line, just inside a function called by the ON INIT.\n\nJames\n\n[code:3l7ea42v] activate dialog oDlg on init buildBar&#40;oDlg&#41;\n&#46;&#46;&#46;\nstatic function buildBar&#40;oDlg&#41;\n local oBar\n define buttonbar oBar of oDlg\n &#46;&#46;&#46;\nreturn nil[/code:3l7ea42v]", "time": "09:22", "topic": "Button bar on dialog ?", "username": "James Bott" } ]
Button bar on dialog ?
[ { "date": "2007-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nNo, its not hard ... I've already got it implemented in one dialog that was very important for the change. However, whats hard is going back through so many dialogs and deciding which ones operate better with dialogs and then making the changes ... \n\nI guess hard is not the best word ... time consuming is more appropriate, especially when I need to go Christmas shopping ....\n\nHowever, its working out ... \n\nTim", "time": "16:28", "topic": "Button bar on dialog ?", "username": "TimStone" } ]
Button bar on dialog ?
[ { "date": "2006-12-15", "forum": "FiveWin for Harbour/xHarbour", "text": "I have many bmp on a directory\nI want load these file and create buttons for a dialog and four for each line \nHow I can create it ?\n\n----------------------------------------------", "time": "03:59", "topic": "Button bmp", "username": "Silvio" } ]
Button bmp
[ { "date": "2021-11-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello friends,\n\nMaybe someone has time and can help me.\nUnfortunately, ACTION does not work with the switches.\nI would like to make the switch clickable and then change the width.\n\ncall test program:\nsorting.exe mydbf.dbf\n\nBest regards,\nOtto\n\n[img:2rbrr6kx]https&#58;//mybergland&#46;com/fwforum/click&#46;jpg[/img:2rbrr6kx]\n\n\n[code=fw:2rbrr6kx]<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 /> <br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br /><br /><span style=\"color: #00C800;\">static</span> oBtn<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">static</span> nColNext := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">static</span> oFont, oFontBold<br /><span style=\"color: #00C800;\">static</span> cABC := <span style=\"color: #ff0000;\">\" \"</span><br /><span style=\"color: #00C800;\">static</span> aFields<br /><span style=\"color: #00C800;\">static</span> aStructAlt<br /><span style=\"color: #00C800;\">static</span> databaseName<br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span>cAufruf<span style=\"color: #000000;\">&#41;</span><br />   <br />   <span style=\"color: #00C800;\">local</span> cRet              := <span style=\"color: #ff0000;\">\"\"</span><br />   <span style=\"color: #00C800;\">local</span> oDlg<br />   <span style=\"color: #00C800;\">local</span> lSave             := .f.<br />   <span style=\"color: #00C800;\">local</span> oBtnEnde, oBtnSave<br />   <span style=\"color: #00C800;\">local</span> oBtnOK<br />   <span style=\"color: #00C800;\">local</span> nReihe            := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">local</span> nCount            := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">local</span> I                 := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">local</span> nColOffset        := <span style=\"color: #000000;\">3</span><br />   <span style=\"color: #00C800;\">local</span> nWidth            := GetSysMetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>/<span style=\"color: #000000;\">2</span><br />   <span style=\"color: #00C800;\">local</span> nHeight           := GetSysMetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>/<span style=\"color: #000000;\">4</span>*<span style=\"color: #000000;\">3</span><br />   <span style=\"color: #00C800;\">local</span> x                 := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">local</span> nAbstand          := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">local</span> y                 := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">local</span> maxItems           := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">Local</span> hPen                   := CreatePen<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">4144959</span> <span style=\"color: #000000;\">&#41;</span>           <span style=\"color: #B900B9;\">//Rot</span><br />   <span style=\"color: #00C800;\">local</span> cDbf := <span style=\"color: #ff0000;\">\"\"</span><br />   <span style=\"color: #00C800;\">local</span> aStruct :=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">local</span> aTemp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">local</span> nSpalten <br />   <span style=\"color: #00C800;\">local</span> cBinData<br />   *----------------------------------------------------------<br />   <br />   <span style=\"color: #00C800;\">if</span> valtype<span style=\"color: #000000;\">&#40;</span> cAufruf <span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\"U\"</span><br />      databaseName := caufruf<br />      use<span style=\"color: #000000;\">&#40;</span>caufruf<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">new</span><br />      aStruct := dbstruct<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span>aStruct<span style=\"color: #000000;\">&#41;</span><br />      cBinData := ASave<span style=\"color: #000000;\">&#40;</span> aStruct <span style=\"color: #000000;\">&#41;</span>                   <span style=\"color: #B900B9;\">// Converts Array Data and to Binary and stores in cStr</span><br />      <br />      memowrit<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"struktur.txt\"</span>, cBinData <span style=\"color: #000000;\">&#41;</span><br />      <br />   <span style=\"color: #00C800;\">else</span><br />      databaseName := <span style=\"color: #ff0000;\">\"\"</span><br />   <span style=\"color: #00C800;\">endif</span><br />   <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span> BOLD<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-20</span> BOLD<br />   <br />   aFields := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   aTemp := ARead <span style=\"color: #000000;\">&#40;</span> memoread<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"struktur.txt\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span>aTemp<span style=\"color: #000000;\">&#41;</span><br />   aStructAlt := aTemp<br />   <br />   AEval<span style=\"color: #000000;\">&#40;</span> aTemp, <span style=\"color: #000000;\">&#123;</span> |a|  AADD<span style=\"color: #000000;\">&#40;</span> afields,<span style=\"color: #000000;\">&#123;</span> a<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, I += <span style=\"color: #000000;\">1</span>  <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   asort<span style=\"color: #000000;\">&#40;</span> afields,,, <span style=\"color: #000000;\">&#123;</span> |x, y | x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   maxItems := len<span style=\"color: #000000;\">&#40;</span>aFields<span style=\"color: #000000;\">&#41;</span><br />   <br />   AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />   AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />   AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />   AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />   AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />   <br />   maxItems += <span style=\"color: #000000;\">5</span><br />   <br />     <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />           <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Auswahl\"</span> ;<br />            <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ;<br />              <span style=\"color: #0000ff;\">TO</span> nHeight, nWidth ;<br />           <span style=\"color: #0000ff;\">PIXEL</span><br /><br />   nWidth := nWidth/<span style=\"color: #000000;\">6</span>*<span style=\"color: #000000;\">4</span><br />   <br />   @ <span style=\"color: #000000;\">02</span>,<span style=\"color: #000000;\">300</span> ;<br />   <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"database fields\"</span> ;<br />   <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />   <span style=\"color: #0000ff;\">PIXEL</span> ;<br />   <span style=\"color: #0000ff;\">FONT</span> oFontBold<br />   <br />   @ <span style=\"color: #000000;\">&#40;</span> nHeight/<span style=\"color: #000000;\">3</span>*<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">+25</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>,<span style=\"color: #000000;\">0</span> ;<br />   <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"new database\"</span> ;<br />   <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />   <span style=\"color: #0000ff;\">PIXEL</span> ;<br />   <span style=\"color: #0000ff;\">FONT</span> oFontBold<br />   <br />   nSpalten := INT<span style=\"color: #000000;\">&#40;</span>   nWidth/<span style=\"color: #000000;\">105</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><br />   <br />   x           := nSpalten   <span style=\"color: #B900B9;\">//3//10</span><br />   y           := <span style=\"color: #000000;\">18</span> <span style=\"color: #B900B9;\">//35 // 15</span><br />   nAbstand    := nWidth/<span style=\"color: #000000;\">5</span> * <span style=\"color: #000000;\">4</span> / <span style=\"color: #000000;\">5</span><br />   nColOffset  := <span style=\"color: #000000;\">20</span><br />   <br />   <span style=\"color: #00C800;\">FOR</span> nReihe = <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> maxItems / <span style=\"color: #000000;\">5</span><br />      nColNext := <span style=\"color: #000000;\">5</span><br />      <br />      <span style=\"color: #00C800;\">FOR</span> I = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> x<br />         nCount := nCount + <span style=\"color: #000000;\">1</span><br />         <span style=\"color: #00C800;\">if</span> nCount > maxItems<br />            exit<br />         <span style=\"color: #00C800;\">endif</span><br />         <br />         <span style=\"color: #B900B9;\">//nRow, nCol, aVar, n, oWnd</span><br />         oBtn<span style=\"color: #000000;\">&#91;</span> nCount <span style=\"color: #000000;\">&#93;</span> := MakeGet<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> + y * nReihe <span style=\"color: #000000;\">&#41;</span>,;<br />                                        nColOffset/<span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">&#40;</span> nWidth - <span style=\"color: #000000;\">20</span> * <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>/ x /<span style=\"color: #000000;\">2.05</span> * <span style=\"color: #000000;\">&#40;</span> I - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>,;<br />                                        aFields,;<br />                                        nCount,;<br />                                        oDlg  <span style=\"color: #000000;\">&#41;</span><br />         <br />      <span style=\"color: #00C800;\">NEXT</span><br />      <br />   <span style=\"color: #00C800;\">NEXT</span><br />   <br />   <br />   @ <span style=\"color: #000000;\">&#40;</span> nHeight<span style=\"color: #000000;\">-90</span><span style=\"color: #000000;\">&#41;</span> /<span style=\"color: #000000;\">2.05</span>,nWidth/<span style=\"color: #000000;\">2</span>/<span style=\"color: #000000;\">2.05</span> - <span style=\"color: #000000;\">50</span> ;<br />     FLATBTN oBtnSave ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Save\"</span> ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span> /<span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">27</span> /<span style=\"color: #000000;\">2.05</span> ;<br />          <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">ACTION</span> Save<span style=\"color: #000000;\">&#40;</span>oDlg, nHeight<span style=\"color: #000000;\">&#41;</span> ;<br />       <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_YELLOW<br /><br />   <br />   @ <span style=\"color: #000000;\">&#40;</span> nHeight<span style=\"color: #000000;\">-90</span><span style=\"color: #000000;\">&#41;</span> /<span style=\"color: #000000;\">2.05</span>,nWidth/<span style=\"color: #000000;\">2</span>/<span style=\"color: #000000;\">2.05</span> ;<br />     FLATBTN oBtnEnde ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Abbruch\"</span> ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span> /<span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">27</span> /<span style=\"color: #000000;\">2.05</span> ;<br />          <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />       <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_YELLOW<br /><br />   <br />   SelectObject<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDc</span>, hPen <span style=\"color: #000000;\">&#41;</span><br />   <br />         <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />          <span style=\"color: #0000ff;\">CENTERED</span> ;<br />           <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span>  dragModus<span style=\"color: #000000;\">&#40;</span> oBtn, nCount <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #000000;\">&#41;</span> ;<br />          <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> <span style=\"color: #000000;\">&#40;</span>  oDlg:<span style=\"color: #000000;\">line</span><span style=\"color: #000000;\">&#40;</span> nHeight/<span style=\"color: #000000;\">3</span>*<span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">0</span>  ,nHeight/<span style=\"color: #000000;\">3</span>*<span style=\"color: #000000;\">2</span>, nWidth <span style=\"color: #000000;\">+300</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <br />   <span style=\"color: #00C800;\">if</span> lsave = .t.<br />   <span style=\"color: #00C800;\">endif</span><br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> dragModus<span style=\"color: #000000;\">&#40;</span> oBtn, nCount <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> I := <span style=\"color: #000000;\">0</span><br />   <br />   <span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> nCount <span style=\"color: #000000;\">-1</span><br />      <span style=\"color: #B900B9;\">// oBtn[ I ]:lDrag := .t.</span><br />   <span style=\"color: #00C800;\">next</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> MakeGet<span style=\"color: #000000;\">&#40;</span> nRow, nCol, aVar, n, oWnd <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oget<br />    <br />   <span style=\"color: #00C800;\">if</span> cABC <> <span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />     <br />      @ nRow <span style=\"color: #000000;\">+20</span>,nColNext ;<br />      <span style=\"color: #0000ff;\">BTNBMP</span> oGet ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> ;<br />      <span style=\"color: #0000ff;\">OF</span> oWnd  <span style=\"color: #0000ff;\">PIXEL</span> ;<br />      <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span>oGet<span style=\"color: #000000;\">&#41;</span>;<br />      <span style=\"color: #0000ff;\">FONT</span> oFontBold;   <br />      <span style=\"color: #0000ff;\">SIZE</span>  <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">14</span> FLAT  <br /><br />      cABC := <span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />      <br />   <span style=\"color: #00C800;\">else</span><br />      @ nRow <span style=\"color: #000000;\">+20</span>,nColNext ;<br />      <span style=\"color: #0000ff;\">BTNBMP</span> oGet ;<br />      <span style=\"color: #0000ff;\">PROMPT</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> ;<br />      <span style=\"color: #0000ff;\">OF</span> oWnd  <span style=\"color: #0000ff;\">PIXEL</span> ;<br />      <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span>oGet<span style=\"color: #000000;\">&#41;</span>;<br />      <span style=\"color: #0000ff;\">FONT</span> oFont;   <br />      <span style=\"color: #0000ff;\">SIZE</span>  <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">14</span> FLAT  <br />      <br />   <span style=\"color: #00C800;\">endif</span><br />    <br />   oGet:<span style=\"color: #000000;\">cargo</span> := aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br />   oGet:<span style=\"color: #000000;\">bPostDrag</span> := <span style=\"color: #000000;\">&#123;</span> |oSay| osay:<span style=\"color: #000000;\">ntop</span> := INT<span style=\"color: #000000;\">&#40;</span> osay:<span style=\"color: #000000;\">ntop</span>/<span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span>*<span style=\"color: #000000;\">20</span>   <span style=\"color: #000000;\">&#125;</span><br />      <br />   nColNext := nColNext + oGet:<span style=\"color: #000000;\">nWidth</span> + <span style=\"color: #000000;\">5</span><br />   oGet:<span style=\"color: #000000;\">lDrag</span> := .t.<br />  <br /><span style=\"color: #00C800;\">return</span> oGet<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> save<span style=\"color: #000000;\">&#40;</span> oWnd, nHeight<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> I := <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">local</span> oCtrl<br />   <span style=\"color: #00C800;\">local</span> aSortiert := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /> <br />   <span style=\"color: #00C800;\">for</span> each oCtrl in oWnd:<span style=\"color: #000000;\">aControls</span><br />      <br />      I += <span style=\"color: #000000;\">1</span><br />      <span style=\"color: #00C800;\">if</span> oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"Abbruch\"</span> .or.;<br />         oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"Save\"</span> .or.;<br />         oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"database fields\"</span> .or.;<br />         oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"new database\"</span> <br />         <br />      <span style=\"color: #00C800;\">else</span><br />         AAdd<span style=\"color: #000000;\">&#40;</span> aSortiert, <span style=\"color: #000000;\">&#123;</span> oCtrl:<span style=\"color: #000000;\">cTitle</span>, oCtrl:<span style=\"color: #000000;\">nTop</span>, oCtrl:<span style=\"color: #000000;\">nLeft</span>, <span style=\"color: #ff0000;\">\"Auswahl\"</span>, oCtrl:<span style=\"color: #000000;\">Cargo</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">next</span><br />   <br />   f_xbrowse<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br />   <br />  <br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> f_xbrowse<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oDlg, oBrw, oFont<br />   <span style=\"color: #00C800;\">local</span> oBTNSpeichern<br />   <span style=\"color: #00C800;\">local</span> oBTNWeiter<br />   <span style=\"color: #00C800;\">local</span> lOK            := .f.<br />   <span style=\"color: #00C800;\">local</span> cBuchungsNr    := <span style=\"color: #ff0000;\">\"\"</span><br />   <span style=\"color: #00C800;\">local</span> aGaeste        := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   *----------------------------------------------------------<br />   <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">'Tahoma'</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span><br />   <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />   <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Liste aller Einstellungen\"</span> ;<br />   <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">540</span> ;<br />   <span style=\"color: #0000ff;\">PIXEL</span> ;<br />   <span style=\"color: #0000ff;\">FONT</span> oFont<br />   <br />   @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> ;<br />   <span style=\"color: #0000ff;\">XBROWSE</span> oBrw ;<br />   <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />   <span style=\"color: #0000ff;\">PIXEL</span> ;<br />   <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">200</span> ;<br />   DATASOURCE aSortiert ;<br />   AUTOSORT ;<br />   NOBORDER<br />   <br />   oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span>    = MARQSTYLE_HIGHLWIN7<br />   oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <br />   <br />   @ <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>/<span style=\"color: #000000;\">5</span>/<span style=\"color: #000000;\">2.05</span>  ;<br />   FLATBTN oBTNSpeichern ;<br />   <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"DBF erstellen\"</span> ;<br />   <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> /<span style=\"color: #000000;\">2.05</span> ;<br />   <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />   <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> dbf_erstellen<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />   <br />   @ <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>,oDlg:<span style=\"color: #000000;\">nWidth</span>/<span style=\"color: #000000;\">2</span>/<span style=\"color: #000000;\">2.05</span> + oBTNSpeichern:<span style=\"color: #000000;\">nWidth</span> + <span style=\"color: #000000;\">10</span>;<br />   FLATBTN oBTNWeiter ;<br />   <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Abbruch\"</span> ;<br />   <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> /<span style=\"color: #000000;\">2.05</span> ;<br />   <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />   <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />   CANCEL<br />   <br />   <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />   <br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> dbf_erstellen<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> aTemp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">local</span> I := <span style=\"color: #000000;\">1</span><br />   <span style=\"color: #00C800;\">local</span> aStructNeu := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">local</span> cCode := <span style=\"color: #ff0000;\">\"\"</span><br />   <span style=\"color: #00C800;\">local</span> aTemp1 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">local</span> cBinData<br />   *----------------------------------------------------------<br />   <br />   <span style=\"color: #00C800;\">FOR</span> I:= <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>aSortiert<span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">if</span> aSortiert<span style=\"color: #000000;\">&#91;</span>I, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> > <span style=\"color: #000000;\">560</span><br />         aadd<span style=\"color: #000000;\">&#40;</span> atemp, aSortiert<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">endif</span><br />      <br />   <span style=\"color: #00C800;\">next</span><br />   <br />   asort<span style=\"color: #000000;\">&#40;</span> atemp,,, <span style=\"color: #000000;\">&#123;</span> |x, y | x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>    <br />   asort<span style=\"color: #000000;\">&#40;</span> atemp,,, <span style=\"color: #000000;\">&#123;</span> |x, y | x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <br />   <br />   <span style=\"color: #B900B9;\">//xbrowse(aTemp)</span><br />   <br />   cBinData := ASave<span style=\"color: #000000;\">&#40;</span> aTemp <span style=\"color: #000000;\">&#41;</span>                   <span style=\"color: #B900B9;\">// Converts Array Data and to Binary and stores in cStr</span><br />   <br />   memowrit<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"structurfilter.txt\"</span>, cBinData <span style=\"color: #000000;\">&#41;</span><br />   <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /> </div>[/code:2rbrr6kx]", "time": "18:12", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Very strange. With me, 2 buttons work and 3 buttons don't work.\n\nMuy extraño. En mi caso, 2 botones funcionan y 3 botones no funcionan.\n\n[code=fw:17h84jdt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br /><br /><span style=\"color: #00C800;\">STATIC</span> oBtn<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">STATIC</span> nColNext := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">STATIC</span> oFont, oFontBold<br /><span style=\"color: #00C800;\">STATIC</span> cABC := <span style=\"color: #ff0000;\">\" \"</span><br /><span style=\"color: #00C800;\">STATIC</span> aFields<br /><span style=\"color: #00C800;\">STATIC</span> aStructAlt<br /><span style=\"color: #00C800;\">STATIC</span> databaseName<br /><span style=\"color: #00C800;\">STATIC</span> oGet<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span> cAufruf <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cRet &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lSave &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oBtnEnde, oBtnSave<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oBtnOK<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nReihe &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> I &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nColOffset &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= GetSysMetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nHeight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := GetSysMetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">4</span> * <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> x &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nAbstand &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> y &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> maxItems &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> hPen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := CreatePen<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">4144959</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Rot</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cDbf := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aStruct := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aTemp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nSpalten<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cBinData<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ValType<span style=\"color: #000000;\">&#40;</span> cAufruf <span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\"U\"</span><br />&nbsp; &nbsp; &nbsp; databaseName := caufruf<br />&nbsp; &nbsp; &nbsp; use<span style=\"color: #000000;\">&#40;</span> caufruf <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">new</span><br />&nbsp; &nbsp; &nbsp; aStruct := dbStruct<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span> aStruct <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; cBinData := ASave<span style=\"color: #000000;\">&#40;</span> aStruct <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Converts Array Data and to Binary and stores in cStr</span><br /><br />&nbsp; &nbsp; &nbsp; MemoWrit<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"struktur.txt\"</span>, cBinData <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; databaseName := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">14</span> BOLD<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">20</span> BOLD<br /><br />&nbsp; &nbsp;aFields := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aTemp := ARead <span style=\"color: #000000;\">&#40;</span> MemoRead<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"struktur.txt\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span> aTemp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aStructAlt := aTemp<br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> aTemp, <span style=\"color: #000000;\">&#123;</span>| a | &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> a<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, I += <span style=\"color: #000000;\">1</span> &nbsp;<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;ASort<span style=\"color: #000000;\">&#40;</span> afields,,, <span style=\"color: #000000;\">&#123;</span>| x, y | x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;maxItems := Len<span style=\"color: #000000;\">&#40;</span> aFields <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW 1\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW 2\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW 3\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW 4\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW 5\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;maxItems += <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Auswahl\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TO</span> nHeight, nWidth ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;nWidth := nWidth / <span style=\"color: #000000;\">6</span> * <span style=\"color: #000000;\">4</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">02</span>, <span style=\"color: #000000;\">300</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"database fields\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFontBold<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> nHeight / <span style=\"color: #000000;\">3</span> * <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">25</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, <span style=\"color: #000000;\">0</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"new database\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFontBold<br /><br />&nbsp; &nbsp;nSpalten := Int<span style=\"color: #000000;\">&#40;</span> &nbsp; nWidth / <span style=\"color: #000000;\">105</span> <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp;x &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := nSpalten &nbsp; <span style=\"color: #B900B9;\">// 3//10</span><br />&nbsp; &nbsp;y &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">18</span> <span style=\"color: #B900B9;\">// 35 // 15</span><br />&nbsp; &nbsp;nAbstand &nbsp; &nbsp;:= nWidth / <span style=\"color: #000000;\">5</span> * <span style=\"color: #000000;\">4</span> / <span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp;nColOffset &nbsp;:= <span style=\"color: #000000;\">20</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> nReihe = <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> maxItems / <span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp; &nbsp; nColNext := <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> I = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> x<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCount := nCount + <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nCount > maxItems<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXIT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// nRow, nCol, aVar, n, oWnd</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn<span style=\"color: #000000;\">&#91;</span> nCount <span style=\"color: #000000;\">&#93;</span> := MakeGet<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> + y * nReihe <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColOffset / <span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">&#40;</span> nWidth - <span style=\"color: #000000;\">20</span> * <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> / x / <span style=\"color: #000000;\">2.05</span> * <span style=\"color: #000000;\">&#40;</span> I - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aFields, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nCount, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oDlg &nbsp;<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Master Otto?</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// ASI, SOLO 2 BOTTONES TIENE ACTION?? ES CORRECTO?</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn<span style=\"color: #000000;\">&#91;</span> I <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">lDrag</span> := .T. &nbsp;<span style=\"color: #B900B9;\">// NEW</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> nHeight - <span style=\"color: #000000;\">90</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, nWidth / <span style=\"color: #000000;\">2</span> / <span style=\"color: #000000;\">2.05</span> - <span style=\"color: #000000;\">50</span> ;<br />&nbsp; &nbsp; &nbsp; FLATBTN oBtnSave ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Save\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span> / <span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">27</span> / <span style=\"color: #000000;\">2.05</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> Save<span style=\"color: #000000;\">&#40;</span> oDlg, nHeight <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_YELLOW<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> nHeight - <span style=\"color: #000000;\">90</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, nWidth / <span style=\"color: #000000;\">2</span> / <span style=\"color: #000000;\">2.05</span> ;<br />&nbsp; &nbsp; &nbsp; FLATBTN oBtnEnde ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Abbruch\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span> / <span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">27</span> / <span style=\"color: #000000;\">2.05</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_YELLOW<br /><br />&nbsp; &nbsp;SelectObject<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDc</span>, hPen <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> &nbsp;dragModus<span style=\"color: #000000;\">&#40;</span> oBtn, nCount <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> <span style=\"color: #000000;\">&#40;</span> &nbsp;oDlg:<span style=\"color: #000000;\">line</span><span style=\"color: #000000;\">&#40;</span> nHeight / <span style=\"color: #000000;\">3</span> * <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">0</span>, nHeight / <span style=\"color: #000000;\">3</span> * <span style=\"color: #000000;\">2</span>, nWidth + <span style=\"color: #000000;\">300</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lsave = .T.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> dragModus<span style=\"color: #000000;\">&#40;</span> oBtn, nCount <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> I := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nCount - <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// oBtn[ I ]:lDrag := .t.</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MakeGet<span style=\"color: #000000;\">&#40;</span> nRow, nCol, aVar, n, oWnd <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// LOCAL oget</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> cABC <> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; @ nRow + <span style=\"color: #000000;\">20</span>, nColNext ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">BTNBMP</span> oGet ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oWnd &nbsp;<span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span> oGet <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">FONT</span> oFontBold;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> &nbsp;<span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">14</span> FLAT<br /><br />&nbsp; &nbsp; &nbsp; cABC := <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; @ nRow + <span style=\"color: #000000;\">20</span>, nColNext ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">BTNBMP</span> oGet ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oWnd &nbsp;<span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span> oGet <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">FONT</span> oFont;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> &nbsp;<span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">14</span> FLAT<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;oGet:<span style=\"color: #000000;\">Cargo</span> := aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp;oGet:<span style=\"color: #000000;\">bPostDrag</span> := <span style=\"color: #000000;\">&#123;</span>| oSay | oSay:<span style=\"color: #000000;\">ntop</span> := Int<span style=\"color: #000000;\">&#40;</span> oSay:<span style=\"color: #000000;\">ntop</span> / <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">&#41;</span> * <span style=\"color: #000000;\">20</span> &nbsp; <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;nColNext := nColNext + oGet:<span style=\"color: #000000;\">nWidth</span> + <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// oGet:Click()</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// funciona.</span><br />&nbsp; &nbsp;oGet:<span style=\"color: #000000;\">bLDblClick</span> := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | EditControl<span style=\"color: #000000;\">&#40;</span> nRow, nCol, oGet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oGet:<span style=\"color: #000000;\">bRClicked</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | EditControl<span style=\"color: #000000;\">&#40;</span> nRow, nCol, oGet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// oGet:lDrag := .T. asi, no hay ACTION &nbsp;//???</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">RETURN</span> oGet<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> EditControl<span style=\"color: #000000;\">&#40;</span> nRow, nCol, oControl <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;? <span style=\"color: #000000;\">&#91;</span>yes? SI!<span style=\"color: #000000;\">&#93;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> save<span style=\"color: #000000;\">&#40;</span> oWnd, nHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> I := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oCtrl<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aSortiert := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> EACH oCtrl in oWnd:<span style=\"color: #000000;\">aControls</span><br /><br />&nbsp; &nbsp; &nbsp; I += <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"Abbruch\"</span> .OR. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"Save\"</span> .OR. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"database fields\"</span> .OR. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"new database\"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aSortiert, <span style=\"color: #000000;\">&#123;</span> oCtrl:<span style=\"color: #000000;\">cTitle</span>, oCtrl:<span style=\"color: #000000;\">nTop</span>, oCtrl:<span style=\"color: #000000;\">nLeft</span>, <span style=\"color: #ff0000;\">\"Auswahl\"</span>, oCtrl:<span style=\"color: #000000;\">Cargo</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;f_xbrowse<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> f_xbrowse<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oBrw, oFont<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oBTNSpeichern<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oBTNWeiter<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lOK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cBuchungsNr &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aGaeste &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">'Tahoma'</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">14</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Liste aller Einstellungen\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">540</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">XBROWSE</span> oBrw ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">200</span> ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE aSortiert ;<br />&nbsp; &nbsp; &nbsp; AUTOSORT ;<br />&nbsp; &nbsp; &nbsp; NOBORDER<br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp; &nbsp;= MARQSTYLE_HIGHLWIN7<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, oDlg:<span style=\"color: #000000;\">nWidth</span> / <span style=\"color: #000000;\">5</span> / <span style=\"color: #000000;\">2.05</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; FLATBTN oBTNSpeichern ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"DBF erstellen\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> dbf_erstellen<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, oDlg:<span style=\"color: #000000;\">nWidth</span> / <span style=\"color: #000000;\">2</span> / <span style=\"color: #000000;\">2.05</span> + oBTNSpeichern:<span style=\"color: #000000;\">nWidth</span> + <span style=\"color: #000000;\">10</span>;<br />&nbsp; &nbsp; &nbsp; FLATBTN oBTNWeiter ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Abbruch\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; CANCEL<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> dbf_erstellen<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aTemp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> I := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aStructNeu := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cCode := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aTemp1 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cBinData<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> aSortiert<span style=\"color: #000000;\">&#91;</span> I, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> > <span style=\"color: #000000;\">560</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> atemp, aSortiert<span style=\"color: #000000;\">&#91;</span> I <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;ASort<span style=\"color: #000000;\">&#40;</span> atemp,,, <span style=\"color: #000000;\">&#123;</span>| x, y | x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;ASort<span style=\"color: #000000;\">&#40;</span> atemp,,, <span style=\"color: #000000;\">&#123;</span>| x, y | x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// xbrowse(aTemp)</span><br /><br />&nbsp; &nbsp;cBinData := ASave<span style=\"color: #000000;\">&#40;</span> aTemp <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Converts Array Data and to Binary and stores in cStr</span><br /><br />&nbsp; &nbsp;MemoWrit<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"structurfilter.txt\"</span>, cBinData <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:17h84jdt]\n\nRegards, saludos.", "time": "19:40", "topic": "Button click action", "username": "karinha" } ]
Button click action
[ { "date": "2021-11-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Joao,\nI think it has to do as I create the button with the principle of detached locals.\nBest regards,\nOtto", "time": "20:30", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks,João,\nI give up on that.\n\nWhat I want to achieve is to drag a selection of fields onto a grid and to be able to make the width and other presets.\n\nThe grid should be suitable for creating a bootstrap grid.\n\nHere is a sample:\n\n[img:xvy0qft0]https&#58;//mybergland&#46;com/fwforum/grid1&#46;jpg[/img:xvy0qft0]\n\nI think it might be easier with 2 xBrowser.\n\n[img:xvy0qft0]https&#58;//mybergland&#46;com/fwforum/grid2&#46;jpg[/img:xvy0qft0]\n\nBut first I'll see what a JS solution looks like. \n\nBest regards,\nOtto", "time": "08:21", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Joao,\nI found out, that in my case, it is \noGet:lDrag := .t.\nwhich stops ACTION.\nBest regards,\nOtto", "time": "10:39", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[img:2dxdegny]https&#58;//mybergland&#46;com/fwforum/switch&#46;gif[/img:2dxdegny]", "time": "12:14", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Maestro Otto, solo curiosidad, ¿código final? ¿Puedes mostrar? Si no puede, no hay problema. Solo curiosidad del programador.\n\nMaster Otto, just curiosity, final code? You can show? If you can't, no problem. Programmer's curiosity only.\n\nRegards, saludos.", "time": "13:56", "topic": "Button click action", "username": "karinha" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello João,\nhere is my code. \nI am glad you help and are interested.\nIf you have any changes, please poste.\n\n\nBest regards,\nOtto\n\n[code=fw:372zz1ov]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br /><br /><span style=\"color: #00C800;\">static</span> oBtn<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">static</span> nColNext := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">static</span> oFont, oFontBold<br /><span style=\"color: #00C800;\">static</span> cABC := <span style=\"color: #ff0000;\">\" \"</span><br /><span style=\"color: #00C800;\">static</span> aFields<br /><span style=\"color: #00C800;\">static</span> aStructAlt<br /><span style=\"color: #00C800;\">static</span> databaseName<br /><span style=\"color: #00C800;\">static</span> oDlg<br /><span style=\"color: #00C800;\">static</span> lVar := .t.<br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span>cAufruf<span style=\"color: #000000;\">&#41;</span><br />    <br />    <span style=\"color: #00C800;\">local</span> cRet              := <span style=\"color: #ff0000;\">\"\"</span><br />    <br />    <span style=\"color: #00C800;\">local</span> lSave             := .f.<br />    <span style=\"color: #00C800;\">local</span> oBtnEnde, oBtnSave<br />    <span style=\"color: #00C800;\">local</span> oBtnOK<br />    <span style=\"color: #00C800;\">local</span> nReihe            := <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">local</span> nCount            := <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">local</span> I                 := <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">local</span> nColOffset        := <span style=\"color: #000000;\">3</span><br />    <span style=\"color: #00C800;\">local</span> nWidth            := GetSysMetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>/<span style=\"color: #000000;\">2</span><br />    <span style=\"color: #00C800;\">local</span> nHeight           := GetSysMetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>/<span style=\"color: #000000;\">4</span>*<span style=\"color: #000000;\">3</span><br />    <span style=\"color: #00C800;\">local</span> x                 := <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">local</span> nAbstand          := <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">local</span> y                 := <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">local</span> maxItems          := <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">Local</span> hPen                  := CreatePen<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">4144959</span> <span style=\"color: #000000;\">&#41;</span>           <span style=\"color: #B900B9;\">//Rot</span><br />    <span style=\"color: #00C800;\">local</span> cDbf := <span style=\"color: #ff0000;\">\"\"</span><br />    <span style=\"color: #00C800;\">local</span> aStruct :=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">local</span> aTemp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">local</span> nSpalten <br />    <span style=\"color: #00C800;\">local</span> cBinData<br />    <span style=\"color: #00C800;\">local</span> oGetTest<br />    <span style=\"color: #00C800;\">local</span> oSw<br />    <br />    *----------------------------------------------------------<br />    <br />    <span style=\"color: #00C800;\">if</span> valtype<span style=\"color: #000000;\">&#40;</span> cAufruf <span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\"U\"</span><br />        databaseName := caufruf<br />        use<span style=\"color: #000000;\">&#40;</span>caufruf<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">new</span><br />        aStruct := dbstruct<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span>aStruct<span style=\"color: #000000;\">&#41;</span><br />        cBinData := ASave<span style=\"color: #000000;\">&#40;</span> aStruct <span style=\"color: #000000;\">&#41;</span>                   <span style=\"color: #B900B9;\">// Converts Array Data and to Binary and stores in cStr</span><br />        <br />        memowrit<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"struktur.txt\"</span>, cBinData <span style=\"color: #000000;\">&#41;</span><br />        <br />    <span style=\"color: #00C800;\">else</span><br />        databaseName := <span style=\"color: #ff0000;\">\"\"</span><br />    <span style=\"color: #00C800;\">endif</span><br />    <br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span> BOLD<br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-20</span> BOLD<br />    <br />    aFields := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />    aTemp := ARead <span style=\"color: #000000;\">&#40;</span> memoread<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"struktur.txt\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span>aTemp<span style=\"color: #000000;\">&#41;</span><br />    aStructAlt := aTemp<br />    <br />    AEval<span style=\"color: #000000;\">&#40;</span> aTemp, <span style=\"color: #000000;\">&#123;</span> |a|  AADD<span style=\"color: #000000;\">&#40;</span> afields,<span style=\"color: #000000;\">&#123;</span> a<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, I += <span style=\"color: #000000;\">1</span>  <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />    <br />    asort<span style=\"color: #000000;\">&#40;</span> afields,,, <span style=\"color: #000000;\">&#123;</span> |x, y | x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />    <br />    maxItems := len<span style=\"color: #000000;\">&#40;</span>aFields<span style=\"color: #000000;\">&#41;</span><br />    <br />    AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />    AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />    AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />    AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />    AADD<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"ROW\"</span>,  maxItems + <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#41;</span><br />    <br />    maxItems += <span style=\"color: #000000;\">5</span><br />    <br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />    <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Auswahl\"</span> ;<br />    <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> ;<br />    <span style=\"color: #0000ff;\">TO</span> nHeight, nWidth ;<br />    <span style=\"color: #0000ff;\">PIXEL</span><br />    <br />    nWidth := nWidth/<span style=\"color: #000000;\">6</span>*<span style=\"color: #000000;\">4</span><br />    <br />    @ <span style=\"color: #000000;\">02</span>,<span style=\"color: #000000;\">300</span> ;<br />    <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"database fields\"</span> ;<br />    <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />    <span style=\"color: #0000ff;\">PIXEL</span> ;<br />    <span style=\"color: #0000ff;\">FONT</span> oFontBold<br />    <br />    @ <span style=\"color: #000000;\">&#40;</span> nHeight/<span style=\"color: #000000;\">3</span>*<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">+25</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.050</span>,<span style=\"color: #000000;\">250</span> ;<br />    <span style=\"color: #00C800;\">SWITCH</span> oSw ;<br />        <span style=\"color: #0000ff;\">VAR</span> lVar ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> ;<br />        <span style=\"color: #0000ff;\">PIXEL</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />        <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">128</span>,   <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />        <br />        <br />        <br />        @ <span style=\"color: #000000;\">&#40;</span> nHeight/<span style=\"color: #000000;\">3</span>*<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">+25</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>,<span style=\"color: #000000;\">0</span> ;<br />        <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"new database\"</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />        <span style=\"color: #0000ff;\">PIXEL</span> ;<br />        <span style=\"color: #0000ff;\">FONT</span> oFontBold<br />        <br />        nSpalten    := INT<span style=\"color: #000000;\">&#40;</span>   nWidth/<span style=\"color: #000000;\">105</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><br />        x           := nSpalten   <span style=\"color: #B900B9;\">//3//10</span><br />        y           := <span style=\"color: #000000;\">18</span> <span style=\"color: #B900B9;\">//35 // 15</span><br />        nAbstand    := nWidth/<span style=\"color: #000000;\">5</span> * <span style=\"color: #000000;\">4</span> / <span style=\"color: #000000;\">5</span><br />        nColOffset  := <span style=\"color: #000000;\">20</span><br />        <br />        <span style=\"color: #00C800;\">FOR</span> nReihe = <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> maxItems / <span style=\"color: #000000;\">5</span><br />            nColNext := <span style=\"color: #000000;\">5</span><br />            <br />            <span style=\"color: #00C800;\">FOR</span> I = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> x<br />                nCount := nCount + <span style=\"color: #000000;\">1</span><br />                <span style=\"color: #00C800;\">if</span> nCount > maxItems<br />                    exit<br />                <span style=\"color: #00C800;\">endif</span><br />                <br />                <span style=\"color: #B900B9;\">//nRow, nCol, aVar, n, oWnd</span><br />                oBtn<span style=\"color: #000000;\">&#91;</span> nCount <span style=\"color: #000000;\">&#93;</span> := MakeGet<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> + y * nReihe <span style=\"color: #000000;\">&#41;</span>,;<br />                nColOffset/<span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">&#40;</span> nWidth - <span style=\"color: #000000;\">20</span> * <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>/ x /<span style=\"color: #000000;\">2.05</span> * <span style=\"color: #000000;\">&#40;</span> I - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>,;<br />                aFields,;<br />                nCount <span style=\"color: #000000;\">&#41;</span><br />                <br />            <span style=\"color: #00C800;\">NEXT</span><br />            <br />        <span style=\"color: #00C800;\">NEXT</span><br />        <br />        <br />        <br />        <br />        @ <span style=\"color: #000000;\">&#40;</span> nHeight<span style=\"color: #000000;\">-90</span><span style=\"color: #000000;\">&#41;</span> /<span style=\"color: #000000;\">2.05</span>,nWidth/<span style=\"color: #000000;\">2</span>/<span style=\"color: #000000;\">2.05</span> - <span style=\"color: #000000;\">50</span> ;<br />        FLATBTN oBtnSave ;<br />        <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Save\"</span> ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span> /<span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">27</span> /<span style=\"color: #000000;\">2.05</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />        <span style=\"color: #0000ff;\">ACTION</span> Save<span style=\"color: #000000;\">&#40;</span>oDlg, nHeight<span style=\"color: #000000;\">&#41;</span> ;<br />        <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_YELLOW<br />        <br />        <br />        @ <span style=\"color: #000000;\">&#40;</span> nHeight<span style=\"color: #000000;\">-90</span><span style=\"color: #000000;\">&#41;</span> /<span style=\"color: #000000;\">2.05</span>,nWidth/<span style=\"color: #000000;\">2</span>/<span style=\"color: #000000;\">2.05</span> ;<br />        FLATBTN oBtnEnde ;<br />        <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Abbruch\"</span> ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span> /<span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">27</span> /<span style=\"color: #000000;\">2.05</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />        <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />        <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_YELLOW<br />        <br />        <br />        SelectObject<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDc</span>, hPen <span style=\"color: #000000;\">&#41;</span><br />        <br />        <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />        <span style=\"color: #0000ff;\">CENTERED</span> ;<br />        <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span>  dragModus<span style=\"color: #000000;\">&#40;</span> oBtn, nCount <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #000000;\">&#41;</span> ;<br />        <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> <span style=\"color: #000000;\">&#40;</span>  oDlg:<span style=\"color: #000000;\">line</span><span style=\"color: #000000;\">&#40;</span> nHeight/<span style=\"color: #000000;\">3</span>*<span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">0</span>  ,nHeight/<span style=\"color: #000000;\">3</span>*<span style=\"color: #000000;\">2</span>, nWidth <span style=\"color: #000000;\">+300</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        <br />        <br />        <span style=\"color: #00C800;\">if</span> lsave = .t.<br />        <span style=\"color: #00C800;\">endif</span><br />        <br />    <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />    <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />    <br />    <span style=\"color: #00C800;\">function</span> dragModus<span style=\"color: #000000;\">&#40;</span> oBtn, nCount <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">local</span> I := <span style=\"color: #000000;\">0</span><br />        <br />        <span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> nCount <span style=\"color: #000000;\">-1</span><br />            <span style=\"color: #B900B9;\">// oBtn[ I ]:lDrag := .t.</span><br />        <span style=\"color: #00C800;\">next</span><br />    <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />    <br />    <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />    <br />    <span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> MakeGet<span style=\"color: #000000;\">&#40;</span> nRow, nCol, aVar, n  <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">local</span> oget<br />        <br />        <span style=\"color: #00C800;\">if</span> cABC <> <span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />            <br />            @ nRow <span style=\"color: #000000;\">+20</span>,nColNext ;<br />            <span style=\"color: #0000ff;\">BTNBMP</span> oGet ;<br />            <span style=\"color: #0000ff;\">PROMPT</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> ;<br />            <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #0000ff;\">PIXEL</span> ;<br />            <span style=\"color: #0000ff;\">FONT</span> oFontBold;   <br />            <span style=\"color: #0000ff;\">SIZE</span>  <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">14</span>  <br />            <br />            cABC := <span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />            <br />            <br />        <span style=\"color: #00C800;\">else</span><br />            @ nRow <span style=\"color: #000000;\">+20</span>,nColNext ;<br />            <span style=\"color: #0000ff;\">BTNBMP</span> oGet ;<br />            <span style=\"color: #0000ff;\">PROMPT</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> ;<br />            <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #0000ff;\">PIXEL</span> ;<br />            <span style=\"color: #0000ff;\">FONT</span> oFont;   <br />            <span style=\"color: #0000ff;\">SIZE</span>  <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">14</span> <br />        <span style=\"color: #00C800;\">endif</span><br />        <br />        oGet:<span style=\"color: #000000;\">cargo</span> := aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br />        oGet:<span style=\"color: #000000;\">bPostDrag</span> := <span style=\"color: #000000;\">&#123;</span> |oSay| osay:<span style=\"color: #000000;\">ntop</span> := INT<span style=\"color: #000000;\">&#40;</span> osay:<span style=\"color: #000000;\">ntop</span>/<span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span>*<span style=\"color: #000000;\">20</span>, IIF<span style=\"color: #000000;\">&#40;</span> lVar=.t., f_fieldsetup<span style=\"color: #000000;\">&#40;</span>oSay<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #000000;\">&#125;</span><br />        <br />        nColNext := nColNext + oGet:<span style=\"color: #000000;\">nWidth</span> + <span style=\"color: #000000;\">5</span><br />        oGet:<span style=\"color: #000000;\">lDrag</span> := .t.<br />        <br />    <span style=\"color: #00C800;\">return</span> oGet<br />    <br />    <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />    <br />    <span style=\"color: #00C800;\">function</span> save<span style=\"color: #000000;\">&#40;</span> oWnd, nHeight<span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">local</span> I := <span style=\"color: #000000;\">0</span><br />        <span style=\"color: #00C800;\">local</span> oCtrl<br />        <span style=\"color: #00C800;\">local</span> aSortiert := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />        <br />        <span style=\"color: #00C800;\">for</span> each oCtrl in oWnd:<span style=\"color: #000000;\">aControls</span><br />            <br />            I += <span style=\"color: #000000;\">1</span><br />            <span style=\"color: #00C800;\">if</span> oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"Abbruch\"</span> .or.;<br />                oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"Save\"</span> .or.;<br />                oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"database fields\"</span> .or.;<br />                oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"new database\"</span> <br />                <br />            <span style=\"color: #00C800;\">else</span><br />                AAdd<span style=\"color: #000000;\">&#40;</span> aSortiert, <span style=\"color: #000000;\">&#123;</span> oCtrl:<span style=\"color: #000000;\">cTitle</span>, oCtrl:<span style=\"color: #000000;\">nTop</span>, oCtrl:<span style=\"color: #000000;\">nLeft</span>, <span style=\"color: #ff0000;\">\"Auswahl\"</span>, oCtrl:<span style=\"color: #000000;\">Cargo</span>, oCtrl:<span style=\"color: #000000;\">nWidth</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">endif</span><br />        <span style=\"color: #00C800;\">next</span><br />        <br />        f_xbrowse<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br />        <br />        <br />        <br />    <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />    <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />    <br />    <span style=\"color: #00C800;\">function</span> f_xbrowse<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">local</span> oDlg, oBrw, oFont<br />        <span style=\"color: #00C800;\">local</span> oBTNSpeichern<br />        <span style=\"color: #00C800;\">local</span> oBTNWeiter<br />        <span style=\"color: #00C800;\">local</span> lOK           := .f.<br />        <span style=\"color: #00C800;\">local</span> cBuchungsNr   := <span style=\"color: #ff0000;\">\"\"</span><br />        <span style=\"color: #00C800;\">local</span> aGaeste       := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />        *----------------------------------------------------------<br />        <br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">'Tahoma'</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span><br />        <br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />        <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Liste aller Einstellungen\"</span> ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">540</span> ;<br />        <span style=\"color: #0000ff;\">PIXEL</span> ;<br />        <span style=\"color: #0000ff;\">FONT</span> oFont<br />        <br />        @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> ;<br />        <span style=\"color: #0000ff;\">XBROWSE</span> oBrw ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />        <span style=\"color: #0000ff;\">PIXEL</span> ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">200</span> ;<br />        DATASOURCE aSortiert ;<br />        AUTOSORT ;<br />        NOBORDER<br />        <br />        <br />        oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span>    = MARQSTYLE_HIGHLWIN7<br />        oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        <br />        <br />        @ <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>/<span style=\"color: #000000;\">5</span>/<span style=\"color: #000000;\">2.05</span>  ;<br />        FLATBTN oBTNSpeichern ;<br />        <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"DBF erstellen\"</span> ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> /<span style=\"color: #000000;\">2.05</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />        <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> dbf_erstellen<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />        <br />        @ <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>,oDlg:<span style=\"color: #000000;\">nWidth</span>/<span style=\"color: #000000;\">2</span>/<span style=\"color: #000000;\">2.05</span> + oBTNSpeichern:<span style=\"color: #000000;\">nWidth</span> + <span style=\"color: #000000;\">10</span>;<br />        FLATBTN oBTNWeiter ;<br />        <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Abbruch\"</span> ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> /<span style=\"color: #000000;\">2.05</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />        <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />        CANCEL<br />        <br />        <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />        <br />        <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />        <br />        <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br />        <br />    <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />    <br />    <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />    <br />    <span style=\"color: #00C800;\">function</span> dbf_erstellen<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">local</span> aTemp := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />        <span style=\"color: #00C800;\">local</span> I := <span style=\"color: #000000;\">1</span><br />        <span style=\"color: #00C800;\">local</span> aStructNeu := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />        <span style=\"color: #00C800;\">local</span> cCode := <span style=\"color: #ff0000;\">\"\"</span><br />        <span style=\"color: #00C800;\">local</span> aTemp1 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />        <span style=\"color: #00C800;\">local</span> cBinData<br />        *----------------------------------------------------------<br />        <br />        <span style=\"color: #00C800;\">FOR</span> I:= <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>aSortiert<span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">if</span> aSortiert<span style=\"color: #000000;\">&#91;</span>I, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> > <span style=\"color: #000000;\">560</span><br />                aadd<span style=\"color: #000000;\">&#40;</span> atemp, aSortiert<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">endif</span><br />            <br />        <span style=\"color: #00C800;\">next</span><br />        <br />        asort<span style=\"color: #000000;\">&#40;</span> atemp,,, <span style=\"color: #000000;\">&#123;</span> |x, y | x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>   <br />        asort<span style=\"color: #000000;\">&#40;</span> atemp,,, <span style=\"color: #000000;\">&#123;</span> |x, y | x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <br />        <br />        <span style=\"color: #B900B9;\">//xbrowse(aTemp)</span><br />        <br />        cBinData := ASave<span style=\"color: #000000;\">&#40;</span> aTemp <span style=\"color: #000000;\">&#41;</span>                   <span style=\"color: #B900B9;\">// Converts Array Data and to Binary and stores in cStr</span><br />        <br />        memowrit<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"structurfilter.txt\"</span>, cBinData <span style=\"color: #000000;\">&#41;</span><br />        <br />    <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />    <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br />    <br />    <br />    <span style=\"color: #00C800;\">function</span> f_fieldsetup<span style=\"color: #000000;\">&#40;</span>oSay<span style=\"color: #000000;\">&#41;</span><br />        <br />        <span style=\"color: #00C800;\">local</span> oDlg, oBtn, oGet, cName := space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">local</span> aPrompts := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"1\"</span>,<span style=\"color: #ff0000;\">\"2\"</span>,<span style=\"color: #ff0000;\">\"3\"</span>,<span style=\"color: #ff0000;\">\"4\"</span>,<span style=\"color: #ff0000;\">\"5\"</span>,<span style=\"color: #ff0000;\">\"6\"</span>,<span style=\"color: #ff0000;\">\"7\"</span>,<span style=\"color: #ff0000;\">\"8\"</span>,<span style=\"color: #ff0000;\">\"9\"</span>,<span style=\"color: #ff0000;\">\"10\"</span>,<span style=\"color: #ff0000;\">\"11\"</span>,<span style=\"color: #ff0000;\">\"12\"</span> <span style=\"color: #000000;\">&#125;</span><br />        <span style=\"color: #00C800;\">local</span> oCbx<br />        <span style=\"color: #00C800;\">local</span> nVar := <span style=\"color: #ff0000;\">\"1\"</span><br />        <br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />        <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Setup\"</span> ;<br />        <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span> ;<br />        <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">40</span> ;<br />        <span style=\"color: #0000ff;\">FONT</span> oFont ;<br />        TRUEPIXEL<br />        <br />        <br />        @ <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">30</span> ;<br />        <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx ;<br />        <span style=\"color: #0000ff;\">VAR</span> nVar ;<br />        <span style=\"color: #0000ff;\">PROMPTS</span> aPrompts ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">300</span> ;<br />        <span style=\"color: #0000ff;\">PIXEL</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlg<br />        <br />        <br />        <br />        @ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Aceptar\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">24</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oSay:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">70</span> * val<span style=\"color: #000000;\">&#40;</span>nVar<span style=\"color: #000000;\">&#41;</span>,oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        <br />        @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"&Cancelar\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">24</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        <br />        <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />        <span style=\"color: #0000ff;\">CENTERED</span><br />        <br />        <br />    <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br /> </div>[/code:372zz1ov]", "time": "14:28", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "More or less... \n\n[url:22gljm0s]https&#58;//imgur&#46;com/Q1cwPpf[/url:22gljm0s]\n\n[img:22gljm0s]https&#58;//i&#46;imgur&#46;com/Q1cwPpf&#46;png[/img:22gljm0s]\n\nRegards, saludos.", "time": "17:17", "topic": "Button click action", "username": "karinha" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "YES? SI!! Ahora está como me gusta. jajaja.\n\n[url:fb5ctuod]https&#58;//imgur&#46;com/x92dvZ2[/url:fb5ctuod]\n\n[img:fb5ctuod]https&#58;//i&#46;imgur&#46;com/x92dvZ2&#46;png[/img:fb5ctuod]\n\nRegards, saludos.", "time": "18:44", "topic": "Button click action", "username": "karinha" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Code:\n\n[code=fw:3ridp8bl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// \\SAMPLES\\OTTO3.PRG - 23/11/2021</span><br /><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#Define</span> CLR_PINK &nbsp; &nbsp; &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#Define</span> CLR_MSPURPLE &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, &nbsp; <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">215</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#Define</span> CLR_MSRED &nbsp; &nbsp; &nbsp;nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">232</span>, &nbsp;<span style=\"color: #000000;\">17</span>, &nbsp;<span style=\"color: #000000;\">35</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#Define</span> CLR_MSGRAY &nbsp; &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">229</span>, <span style=\"color: #000000;\">229</span>, <span style=\"color: #000000;\">229</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#Define</span> CLR_NBLUE &nbsp; &nbsp; &nbsp;nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#41;</span><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br /><br /><span style=\"color: #00C800;\">STATIC</span> oBtn<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">STATIC</span> nColNext := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">STATIC</span> oFont, oFontBold<br /><span style=\"color: #00C800;\">STATIC</span> cABC := <span style=\"color: #ff0000;\">\" \"</span><br /><span style=\"color: #00C800;\">STATIC</span> aFields<br /><span style=\"color: #00C800;\">STATIC</span> aStructAlt<br /><span style=\"color: #00C800;\">STATIC</span> databaseName<br /><span style=\"color: #00C800;\">STATIC</span> oDlg<br /><span style=\"color: #00C800;\">STATIC</span> lVar := .T.<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span> cAufruf <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cRet &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cFile<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lSave &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oBtnEnde, oBtnSave, oFontSubl, cTitle, dDate, cTime<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oBtnOK<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nReihe &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> I &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nColOffset &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// &nbsp; &nbsp;nWidth, nHeight &nbsp;// 640 x 576</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Resolution 1280 x 768</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">800</span> <span style=\"color: #B900B9;\">// GetSysMetrics( 0 ) / 2</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nHeight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">600</span> <span style=\"color: #B900B9;\">// GetSysMetrics( 1 ) / 4 * 3</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> x &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nAbstand &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> y &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> maxItems &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> hPen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= CreatePen<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">4144959</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Rot</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cDbf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aStruct &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aTemp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nSpalten, cBinData, oGetTest, oSw<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oSilDrawLi, SilDrawLi := REPLICATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"_\"</span>, <span style=\"color: #000000;\">250</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;SET CENTURY <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp;SET DATE BRITISH<br />&nbsp; &nbsp;SET TIME FORMAT <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"HH:MM:SS\"</span><br />&nbsp; &nbsp;SET EPOCH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #0000ff;\">YEAR</span><span style=\"color: #000000;\">&#40;</span> DATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">30</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> ValType<span style=\"color: #000000;\">&#40;</span> cAufruf <span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\"U\"</span><br /><br />&nbsp; &nbsp; &nbsp; databaseName := caufruf <span style=\"color: #B900B9;\">// ??</span><br /><br />&nbsp; &nbsp; &nbsp; USE CAUFRUF <span style=\"color: #00C800;\">NEW</span> &nbsp;<span style=\"color: #B900B9;\">// EXCLUSIVE OR SHARED ?</span><br />&nbsp; &nbsp; &nbsp; GO TOP<br /><br />&nbsp; &nbsp; &nbsp; aStruct := dbStruct<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">xBrowse</span><span style=\"color: #000000;\">&#40;</span> aStruct <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cBinData := ASave<span style=\"color: #000000;\">&#40;</span> aStruct <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Converts Array Data and to Binary and stores in cStr</span><br /><br />&nbsp; &nbsp; &nbsp; MemoWrit<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"struktur.txt\"</span>, cBinData <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cFile := cFilePath<span style=\"color: #000000;\">&#40;</span> GetModuleFileName<span style=\"color: #000000;\">&#40;</span> GetInstance<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"struktur.txt\"</span><br /><br />&nbsp; &nbsp; &nbsp; WinExec<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Notepad.exe \"</span> + cFile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// visual</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; databaseName := <span style=\"color: #ff0000;\">\"\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontSubl <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">26</span> BOLD UnderLine<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">14</span> BOLD<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">20</span> BOLD<br /><br />&nbsp; &nbsp;aFields := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;aTemp := ARead <span style=\"color: #000000;\">&#40;</span> MemoRead<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"struktur.txt\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">xBrowse</span><span style=\"color: #000000;\">&#40;</span> aTemp <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aStructAlt := aTemp<br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> aTemp, <span style=\"color: #000000;\">&#123;</span>| a | &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> a<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, I += <span style=\"color: #000000;\">1</span> &nbsp;<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;ASort<span style=\"color: #000000;\">&#40;</span> afields,,, <span style=\"color: #000000;\">&#123;</span>| x, y | x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;maxItems := Len<span style=\"color: #000000;\">&#40;</span> aFields <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> afields, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ROW\"</span>, &nbsp;maxItems + <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;maxItems += <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp;dDate := DTOC<span style=\"color: #000000;\">&#40;</span> Date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cTime := Time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;cTitle := <span style=\"color: #ff0000;\">\"OttoMatic: Auswahl - 1280 x 768 - \"</span> + dDate + <span style=\"color: #ff0000;\">\" - \"</span> + cTime<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> cTitle &nbsp;<span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TO</span> nHeight, nWidth <span style=\"color: #0000ff;\">PIXEL</span> COLORS CLR_MSGRAY, CLR_WHITE TRANSPARENT<br /><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;nWidth := nWidth / <span style=\"color: #000000;\">6</span> * <span style=\"color: #000000;\">4</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">02</span>, <span style=\"color: #000000;\">020</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"OttoMatic Corp.\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">UPDATE</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFontBold COLORS CLR_CYAN, CLR_WHITE<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">02</span>, <span style=\"color: #000000;\">130</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Drag the Button to Action\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">UPDATE</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFontBold COLORS CLR_CYAN, CLR_WHITE<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">02</span>, <span style=\"color: #000000;\">290</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Database Fields\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">FONT</span> oFontBold &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; COLORS CLR_CYAN, CLR_WHITE<br /><br />&nbsp; &nbsp;@ &nbsp;<span style=\"color: #000000;\">06</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #0000ff;\">SAY</span> oSilDrawLi <span style=\"color: #0000ff;\">VAR</span> SilDrawLi <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFontBold COLORS CLR_PINK, CLR_WHITE TRANSPARENT<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">19.50</span>, <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Choose a Button to Drag\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">UPDATE</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFontSubl COLORS CLR_CYAN, CLR_WHITE<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// lVar := .T. -> CHECKBOX?</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> nHeight / <span style=\"color: #000000;\">3</span> * <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">25</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.050</span>, <span style=\"color: #000000;\">250</span> <span style=\"color: #00C800;\">SWITCH</span> oSw <span style=\"color: #0000ff;\">VAR</span> lVar <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">128</span>, &nbsp; <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oSw:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"Click me\"</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> nHeight / <span style=\"color: #000000;\">3</span> * <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">25</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\" New Database \"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFontBold <span style=\"color: #0000ff;\">UPDATE</span> COLORS CLR_CYAN, CLR_WHITE TRANSPARENT<br /><br />&nbsp; &nbsp;nSpalten &nbsp; &nbsp;:= Int<span style=\"color: #000000;\">&#40;</span> &nbsp; nWidth / <span style=\"color: #000000;\">105</span> <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;x &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := nSpalten &nbsp; <span style=\"color: #B900B9;\">// 3//10</span><br />&nbsp; &nbsp;y &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">18</span> <span style=\"color: #B900B9;\">// 35 // 15</span><br />&nbsp; &nbsp;nAbstand &nbsp; &nbsp;:= nWidth / <span style=\"color: #000000;\">5</span> * <span style=\"color: #000000;\">4</span> / <span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp;nColOffset &nbsp;:= <span style=\"color: #000000;\">20</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> nReihe = <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> maxItems / <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp; &nbsp; SYSREFRESH<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; nColNext := <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> I = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> x<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SYSREFRESH<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCount := nCount + <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nCount > maxItems<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXIT<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// nRow, nCol, aVar, n, oWnd</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn<span style=\"color: #000000;\">&#91;</span> nCount <span style=\"color: #000000;\">&#93;</span> := MakeGet<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> + y * nReihe <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColOffset / <span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">&#40;</span> nWidth - <span style=\"color: #000000;\">20</span> * <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> / x / <span style=\"color: #000000;\">2.05</span> * <span style=\"color: #000000;\">&#40;</span> I - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aFields, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nCount <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// What is the need for all this engineering? 2.05</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// &nbsp; ? nWidth / 2 / 2.05 // Center of Dialog. Crazy. hahahaha.</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> nHeight - <span style=\"color: #000000;\">50</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, nWidth / <span style=\"color: #000000;\">2</span> / <span style=\"color: #000000;\">1.30</span> - <span style=\"color: #000000;\">50</span> FLATBTN oBtnSave ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Save\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span> / <span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">27</span> / <span style=\"color: #000000;\">1.95</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_YELLOW <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> Save<span style=\"color: #000000;\">&#40;</span> oDlg, nHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oBtnSave:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"Grabar / Record\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// &nbsp; ? nWidth / 2 / 2.05 // Abbruch</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> nHeight - <span style=\"color: #000000;\">50</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, nWidth / <span style=\"color: #000000;\">2</span> / <span style=\"color: #000000;\">1.30</span> &nbsp; &nbsp; &nbsp;FLATBTN oBtnEnde ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span> / <span style=\"color: #000000;\">2.05</span> + <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">27</span> / <span style=\"color: #000000;\">1.95</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_YELLOW &nbsp;<span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oBtnEnde:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"Salida / Exit\"</span><br /><br />&nbsp; &nbsp;SelectObject<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDc</span>, hPen <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span><span style=\"color: #000000;\">&#40;</span> &nbsp;dragModus<span style=\"color: #000000;\">&#40;</span> oBtn, nCount <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #000000;\">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span><span style=\"color: #000000;\">&#40;</span> &nbsp;oDlg:<span style=\"color: #000000;\">line</span><span style=\"color: #000000;\">&#40;</span> nHeight / <span style=\"color: #000000;\">3</span> * <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">0</span>, nHeight / <span style=\"color: #000000;\">3</span> * <span style=\"color: #000000;\">2</span>, nWidth + <span style=\"color: #000000;\">300</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp;IF lSave = .T.<br />&nbsp; &nbsp;ENDIF<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oFontBold:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oFontSubl:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> MakeGet<span style=\"color: #000000;\">&#40;</span> nRow, nCol, aVar, n &nbsp;<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oget<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> cABC <> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; @ nRow + <span style=\"color: #000000;\">35</span>, nColNext + <span style=\"color: #000000;\">45</span> <span style=\"color: #0000ff;\">BTNBMP</span> oGet <span style=\"color: #0000ff;\">PROMPT</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;<span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">FONT</span> oFontBold <span style=\"color: #0000ff;\">SIZE</span> &nbsp;<span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">14</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_MSPURPLE <span style=\"color: #0000ff;\">UPDATE</span><br /><br />&nbsp; &nbsp; &nbsp; cABC := <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #B900B9;\">// VACIO / EMPTY OR NOT</span><br /><br />&nbsp; &nbsp; &nbsp; @ nRow + <span style=\"color: #000000;\">35</span>, nColNext + <span style=\"color: #000000;\">45</span> <span style=\"color: #0000ff;\">BTNBMP</span> oGet <span style=\"color: #0000ff;\">PROMPT</span> aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;<span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">SIZE</span> &nbsp;<span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">14</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_MSRED <span style=\"color: #0000ff;\">UPDATE</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;oGet:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"Drag the Button to Action\"</span><br /><br />&nbsp; &nbsp;oGet:<span style=\"color: #000000;\">Cargo</span> := aVar<span style=\"color: #000000;\">&#91;</span> n, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp;oGet:<span style=\"color: #000000;\">bPostDrag</span> := <span style=\"color: #000000;\">&#123;</span>| oSay | osay:<span style=\"color: #000000;\">ntop</span> := Int<span style=\"color: #000000;\">&#40;</span> osay:<span style=\"color: #000000;\">ntop</span> / <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">&#41;</span> * <span style=\"color: #000000;\">20</span>, &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; IIF<span style=\"color: #000000;\">&#40;</span> lVar = .T., f_fieldsetup<span style=\"color: #000000;\">&#40;</span> oSay <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;nColNext := nColNext + oGet:<span style=\"color: #000000;\">nWidth</span> + <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp;oGet:<span style=\"color: #000000;\">lDrag</span> := .T.<br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> oGet <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Save<span style=\"color: #000000;\">&#40;</span> oWnd, nHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> I := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oCtrl<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aSortiert := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> EACH oCtrl in oWnd:<span style=\"color: #000000;\">aControls</span><br /><br />&nbsp; &nbsp; &nbsp; I += <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"Abbruch\"</span> &nbsp; &nbsp; &nbsp; &nbsp; .OR. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"Save\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.OR. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"Database Fields\"</span> .OR. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCtrl:<span style=\"color: #000000;\">cTitle</span> = <span style=\"color: #ff0000;\">\"New Database\"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aSortiert, <span style=\"color: #000000;\">&#123;</span> oCtrl:<span style=\"color: #000000;\">cTitle</span>, oCtrl:<span style=\"color: #000000;\">nTop</span>, oCtrl:<span style=\"color: #000000;\">nLeft</span>, <span style=\"color: #ff0000;\">\"Auswahl\"</span>, oCtrl:<span style=\"color: #000000;\">Cargo</span>, oCtrl:<span style=\"color: #000000;\">nWidth</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;f_xBrowse<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> f_xBrowse<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oBrw, oFont<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oBTNSpeichern<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oBTNWeiter<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lOK &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cBuchungsNr := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aGaeste &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">'Tahoma'</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">14</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Liste aller Einstellungen\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">540</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">200</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; DATASOURCE aSortiert AUTOSORT NOBORDER<br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"Liste aller Einstellungen\"</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp; &nbsp;= MARQSTYLE_HIGHLWIN7<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, oDlg:<span style=\"color: #000000;\">nWidth</span> / <span style=\"color: #000000;\">5</span> / <span style=\"color: #000000;\">2.05</span> ;<br />&nbsp; &nbsp; &nbsp; FLATBTN oBTNSpeichern <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"DBF erstellen\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> dbf_erstellen<span style=\"color: #000000;\">&#40;</span> aSortiert, oDlg <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oBTNSpeichern:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"DBF erstellen - Grabar - Record\"</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span>, oDlg:<span style=\"color: #000000;\">nWidth</span> / <span style=\"color: #000000;\">2</span> / <span style=\"color: #000000;\">2.05</span> + ;<br />&nbsp; &nbsp; &nbsp; oBTNSpeichern:<span style=\"color: #000000;\">nWidth</span> + <span style=\"color: #000000;\">10</span> FLATBTN oBTNWeiter <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Abbruch\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2.05</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;oBTNWeiter:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"Abbruch - Exit - Salida\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Dbf_erstellen<span style=\"color: #000000;\">&#40;</span> aSortiert, oDlg <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// grabar / record</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aTemp &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> I &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aStructNeu := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cCode &nbsp; &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aTemp1 &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cBinData, cFile<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">&#40;</span> aSortiert <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> aSortiert<span style=\"color: #000000;\">&#91;</span> I, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> > <span style=\"color: #000000;\">560</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> atemp, aSortiert<span style=\"color: #000000;\">&#91;</span> I <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;ASort<span style=\"color: #000000;\">&#40;</span> atemp,,, <span style=\"color: #000000;\">&#123;</span>| x, y | x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;ASort<span style=\"color: #000000;\">&#40;</span> atemp,,, <span style=\"color: #000000;\">&#123;</span>| x, y | x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// xBrowse(aTemp)</span><br /><br />&nbsp; &nbsp;cBinData := ASave<span style=\"color: #000000;\">&#40;</span> aTemp <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Converts Array Data and to Binary and stores in cStr</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// MemoWrit( \"structurfilter.txt\", cBinData )</span><br />&nbsp; &nbsp;MemoWrit<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"strucfil.txt\"</span>, cBinData <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// only test</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Recording Successfully Made.\"</span> +CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"<Enter> To Continue... &nbsp; &nbsp; &nbsp;\"</span>, &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Attention! &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;cFile := cFilePath<span style=\"color: #000000;\">&#40;</span> GetModuleFileName<span style=\"color: #000000;\">&#40;</span> GetInstance<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"strucfil.txt\"</span><br /><br />&nbsp; &nbsp;WinExec<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Notepad.exe \"</span> + cFile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// visual</span><br /><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// close dialog.</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> F_fieldsetup<span style=\"color: #000000;\">&#40;</span> oSay <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn, oGet, cName := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aPrompts := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"1\"</span>, <span style=\"color: #ff0000;\">\"2\"</span>, <span style=\"color: #ff0000;\">\"3\"</span>, <span style=\"color: #ff0000;\">\"4\"</span>, <span style=\"color: #ff0000;\">\"5\"</span>, <span style=\"color: #ff0000;\">\"6\"</span>, <span style=\"color: #ff0000;\">\"7\"</span>, <span style=\"color: #ff0000;\">\"8\"</span>, <span style=\"color: #ff0000;\">\"9\"</span>, <span style=\"color: #ff0000;\">\"10\"</span>, <span style=\"color: #ff0000;\">\"11\"</span>, <span style=\"color: #ff0000;\">\"12\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oCbx, oExit<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nVar := <span style=\"color: #ff0000;\">\"1\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Setup\"</span> <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;\">15</span>, <span style=\"color: #000000;\">40</span> <span style=\"color: #0000ff;\">FONT</span> oFont TRUEPIXEL<br /><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx <span style=\"color: #0000ff;\">VAR</span> nVar <span style=\"color: #0000ff;\">PROMPTS</span> aPrompts <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">STYLE</span> CBS_DROPDOWN <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Aceptar\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">24</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oSay:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">70</span> * Val<span style=\"color: #000000;\">&#40;</span> nVar <span style=\"color: #000000;\">&#41;</span>, oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">25</span> <span style=\"color: #0000ff;\">BUTTON</span> oExit <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Cancelar\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">24</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #0000ff;\">OF</span> oBtn &nbsp;<span style=\"color: #0000ff;\">TO</span> oFont<br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #0000ff;\">OF</span> oExit <span style=\"color: #0000ff;\">TO</span> oFont<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> DragModus<span style=\"color: #000000;\">&#40;</span> oBtn, nCount <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> I := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nCount - <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// oBtn[ I ]:lDrag := .t.</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">// fin / end</span><br />&nbsp;</div>[/code:3ridp8bl]\n\nRegards, saludos.", "time": "18:46", "topic": "Button click action", "username": "karinha" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Joao,\nSo much nicer now.\n\nThis is old code. /2-05 I used as I have a feeling for pixel and before TRUEPIXEL you had to convert. size in DIALOG / 2.05 to have it like in WINDOW.\n\n\nAs I am working on a large screen, scrolling for me is not necessary. \nBut otherwise it would be fine if we could scroll the upper and lower part of the screen.\n\n\nBest regards,\nOtto\n\n\n\nWhat is the purpose of this program?\nThis program creates HTML source code for bootstrap forms.\nBut you can also use it to create a new database.\n\n<!-- m --><a class=\"postlink\" href=\"https://www.w3schools.com/bootstrap/bootstrap_grid_system.asp\">https://www.w3schools.com/bootstrap/boo ... system.asp</a><!-- m -->", "time": "19:25", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Excellent program, I learned a lot by reading and modifying the original. I am so grateful for this fantastic programming lesson. Living and learning. Thank you master Otto\n\nRegards, saludos.", "time": "19:34", "topic": "Button click action", "username": "karinha" } ]
Button click action
[ { "date": "2021-11-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Joao\n\nIf you are interested and would like to participate, I can post the whole program.\n\nIt's a bit of spaghetti code, but this is about the job that needs to be done. \nI post the flowchart once again. This is what modtools does.\n\nBest regards,\nOtto\n\n\nBest regards,\nOtto\n\n\n\n[img:2ntwcgzu]https&#58;//mybergland&#46;com/fwforum/modtools&#46;jpg[/img:2ntwcgzu]\n\n\n[img:2ntwcgzu]https&#58;//mybergland&#46;com/fwforum/flowchart&#46;png[/img:2ntwcgzu]", "time": "20:16", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Good evening master Otto, would this be the beginning of learning MOD_HARBOUR?\n\nBuenas noches maestro Otto, ¿sería este el comienzo de aprender MOD_HARBOUR?\n\nRegards, saludos.", "time": "01:06", "topic": "Button click action", "username": "karinha" } ]
Button click action
[ { "date": "2021-11-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Joao, This program, modtools, has the purpose of generating the necessary source code for a mod harbour DIALOG (web form). \n\nWith the help of the program \"sorting.prg\" you select the database fields you want to have in the DIALOG and the order.\n\nBest regards,\nOtto\n[img:3bwrx9pp]https&#58;//mybergland&#46;com/fwforum/sortingselection&#46;jpg[/img:3bwrx9pp]\n[img:3bwrx9pp]https&#58;//mybergland&#46;com/fwforum/modwebdialog&#46;jpg[/img:3bwrx9pp]", "time": "04:55", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Buenos días Maestro Otto.\nEntiendo. Parece interesante. Si desea publicar la fuente, puedo verificarla para ver si la entiendo o no. Las nuevas opiniones siempre son buenas.\n\nGood morning Master Otto.\nI understand. Seems interesting. If you want to post the source, I can check it out to see if I understand or not. New opinions are always good.\n\nSi es demasiado grande, ZIP todo y alójelo en Mega Upload para que podamos descargarlo.\n\nIf it's too big, ZIP everything and host it on Mega Upload so we can download it.\n\nRegards, saludos.", "time": "15:25", "topic": "Button click action", "username": "karinha" } ]
Button click action
[ { "date": "2021-11-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Joao, \nMay I ask if you have mod harbour installed on your PC.\nBest regards,\nOtto", "time": "18:11", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2021-11-24", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Otto\":201dt8tc]Joao, \nMay I ask if you have mod harbour installed on your PC.\nBest regards,\nOtto[/quote:201dt8tc]\n\nAfternoon master Otto. No. I don't have MOD HARBOUR installed on my computer.\nShow a step by step for the simplest possible installation, I'm a beginner and a bit dumb. hahahahahaha,\n\nBuenas tarde Maestro Otto. No. No tengo MOD HARBOR instalado en mi computadora.\nMuestre un paso a paso para la instalación más simple posible, soy un principiante y un poco tonto. jajajajajaja,\n\nThanks.\nMuchas gracias.\n\nRegards, saludos.", "time": "18:55", "topic": "Button click action", "username": "karinha" } ]
Button click action
[ { "date": "2021-11-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Joao,\nThank you for asking.\nOur friend Adhemar offers a onclick installation.\nPlease read following forum post:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=45&t=39149\">viewtopic.php?f=45&t=39149</a><!-- l -->\n\nThis link is working:\nDear Otto\n\nMod_Harbour con Apache24\n\nHere the Link\n\n<!-- m --><a class=\"postlink\" href=\"https://drive.google.com/file/d/1CJkhqKLLAxpoGY6TXhrcE1Jn8gj287oS/view?usp=sharing\">https://drive.google.com/file/d/1CJkhqK ... sp=sharing</a><!-- m -->\n\nUpdated to 30/06/21\n\nRegards\n\n\nI made also a little video:\n<!-- m --><a class=\"postlink\" href=\"https://mybergland.com/fwforum/installmodharbour.mp4\">https://mybergland.com/fwforum/installmodharbour.mp4</a><!-- m -->\n\nBest regards,\nOtto", "time": "19:22", "topic": "Button click action", "username": "Otto" } ]
Button click action
[ { "date": "2009-05-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos...\n\nComo se hacer un Button cuya descripcion tenga 2 renglones\n\ngracias\n\ndavid\nargentina", "time": "18:04", "topic": "Button con 2 renglones", "username": "dobfivewin" } ]
Button con 2 renglones
[ { "date": "2009-05-08", "forum": "FiveWin para Harbour/xHarbour", "text": "David,\n\nUso los buttonbmp y lo que hago es combinar algún bmp con texto en dos o tres renglones. Lo salvo todo como un bmp y luego lo incluyo en el buttonbmp.\n\nAlgo así:\n\n[url=http&#58;//img145&#46;imageshack&#46;us/my&#46;php?image=buttonbmp&#46;jpg:lk5e59lw][img:lk5e59lw]http&#58;//img145&#46;imageshack&#46;us/img145/9765/buttonbmp&#46;jpg[/img:lk5e59lw][/url:lk5e59lw]\n\nEspero te sirva.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "19:22", "topic": "Button con 2 renglones", "username": "rolando" } ]
Button con 2 renglones