messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2019-02-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi !\n\nThere are several controls of the type TGET, when you press the up and down arrow keys, the focus changes. Can I prevent the focus from changing when these keys are pressed ?",
"time": "07:05",
"topic": "Change focus",
"username": "Natter"
}
] |
Change focus
|
[
{
"date": "2019-02-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "If I understood the question...\n\n[code=fw:2dr5ob97]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #00C800;\">IF</span> GETASYNCKEY<span style=\"color: #000000;\">(</span> VK_UP <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// in vkey.ch</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span> .F. <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">IF</span> GETASYNCKEY<span style=\"color: #000000;\">(</span> VK_DOWN <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span> .T. <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> </div>[/code:2dr5ob97]\n\nRegards, saludos.",
"time": "16:20",
"topic": "Change focus",
"username": "karinha"
}
] |
Change focus
|
[
{
"date": "2019-02-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for your help !\n And what the ReadKey() function does not work ?",
"time": "12:01",
"topic": "Change focus",
"username": "Natter"
}
] |
Change focus
|
[
{
"date": "2012-01-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nCan anyone give me an example how to change font in sàome rows in a wbrowse / xbrowse?\nI know how change color for each line, but did'n found an example for changing fonts.\n\nThanks,\nMarc",
"time": "11:01",
"topic": "Change fonts on wbrowse & xbrowse",
"username": "Marc Vanzegbroeck"
}
] |
Change fonts on wbrowse & xbrowse
|
[
{
"date": "2012-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Marc,\n\ne.g:[code=fw:2s2217yk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-8</span> BOLD<br />oCol:<span style=\"color: #000000;\">oDataFont</span> := oFont</div>[/code:2s2217yk]\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=8043\">viewtopic.php?f=3&t=8043</a><!-- l -->\n\nor:[code=fw:2s2217yk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCol:<span style=\"color: #000000;\">oDataFont</span> := <span style=\"color: #000000;\">{</span> || <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ..., oFont1, oFont2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span></div>[/code:2s2217yk]\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=12704\">viewtopic.php?f=6&t=12704</a><!-- l -->",
"time": "08:43",
"topic": "Change fonts on wbrowse & xbrowse",
"username": "frose"
}
] |
Change fonts on wbrowse & xbrowse
|
[
{
"date": "2012-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Frank,\n\nRegards,\nMarc",
"time": "10:34",
"topic": "Change fonts on wbrowse & xbrowse",
"username": "Marc Vanzegbroeck"
}
] |
Change fonts on wbrowse & xbrowse
|
[
{
"date": "2009-01-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nHow can I change the Headers in xBrowse while it is displayed?\n\nThanks,\nMarc",
"time": "15:31",
"topic": "Change headers in xbrowse",
"username": "Marc Vanzegbroeck"
}
] |
Change headers in xbrowse
|
[
{
"date": "2009-01-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Marc,\n\nChange and Test all xBrowse-Settings at Runtime ( Header, Footer, Fonts, Background, Cells .... :\nI think, You want to set new values for the header on Button-click ?.\nCan You tell me the values, You want to change ?\n\nDownload :\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/fw_downloads/BRWTools5.zip\">http://www.pflegeplus.com/fw_downloads/BRWTools5.zip</a><!-- m -->\n\n[img:7wm2gker]http://www.pflegeplus.com/pictures/header5.jpg[/img:7wm2gker]\n\nRegards\nUwe : <!-- s:P --><img src=\"{SMILIES_PATH}/icon_razz.gif\" alt=\":P\" title=\"Razz\" /><!-- s:P -->",
"time": "16:27",
"topic": "Change headers in xbrowse",
"username": "ukoenig"
}
] |
Change headers in xbrowse
|
[
{
"date": "2009-01-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe,\n\nI want the customer to be able to change the header of the xBrowse.\nIn this example 'Marc' or 'Jan'\n\n[img:2ym0kjbb]http://www.vms.be/FWTest/xbrowseHeader.jpg[/img:2ym0kjbb]\n\nIn tsbrowse I did something like this:\n[code:2ym0kjbb]oBrw:SetHeaders( , , ahoofding, , , , )\noBrw:DrawHeaders()\n[/code:2ym0kjbb]\n\nRegards,\nMarc",
"time": "19:23",
"topic": "Change headers in xbrowse",
"username": "Marc Vanzegbroeck"
}
] |
Change headers in xbrowse
|
[
{
"date": "2009-01-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code:nwqlotxd]\noBrw:Jan:cHeader := 'cChangedJan'\noBrw:Refresh()\n[/code:nwqlotxd]",
"time": "20:24",
"topic": "Change headers in xbrowse",
"username": "nageswaragunupudi"
}
] |
Change headers in xbrowse
|
[
{
"date": "2009-01-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "NageswaraRao,\n\nThis is not working. Jan is the text that is in this sample in the cHeader of the 2e row. It's not a variable.\n\nRegards,\nMarc",
"time": "20:44",
"topic": "Change headers in xbrowse",
"username": "Marc Vanzegbroeck"
}
] |
Change headers in xbrowse
|
[
{
"date": "2009-01-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Marc,\n\nany selected Mouse-Clicks inside the xBrowse, will change the Header-Text\nChoose one, to do the defined Column-Title-Change ( You can use also VAR'S ).\nAnother option could be, to change the Head-color as well.\n\n[code:2k0ylfkb]\n// Old Column-Titles\n// ------------------------\noLbx:aCols[ 1 ]:cHeader = Padr(\"No.\", 3)\noLbx:aCols[ 2 ]:cHeader = Padr(\"Start\", 19)\n\n// Define New Column-Titles on any Mouse-Click\n// -----------------------------------------------------\nfor nFor := 1 to 2 // 2 Columns\n\n oLbx:aCols[ nFor ]:bRClickHeader := ;\n {|r,c,f,o| IIF( o:nCreationOrder = 1, o:cHeader := \"Text 1\", o:cHeader := \"Text 2\"), oLbx:Refresh() }\n \n oLbx:aCols[ nFor ]:bLClickFooter := ;\n {|r,c,f,o| IIF( o:nCreationOrder = 1, o:cHeader := \"Text 1\", o:cHeader := \"Text 2\"), oLbx:Refresh() }\n \n oLbx:aCols[ nFor ]:bRClickFooter := ;\n {|r,c,f,o| IIF( o:nCreationOrder = 1, o:cHeader := \"Text 1\", o:cHeader := \"Text 2\"), oLbx:Refresh() }\n \n oLbx:aCols[ nFor ]:blDClickData := ;\n {|r,c,f,o| IIF( o:nCreationOrder = 1, o:cHeader := \"Text 1\", o:cHeader := \"Text 2\"), oLbx:Refresh() }\n \n oLbx:aCols[ nFor ]:bRClickData := ;\n {|r,c,f,o| IIF( o:nCreationOrder = 1, o:cHeader := \"Text 1\", o:cHeader := \"Text 2\"), oLbx:Refresh() }\n\nnext\n\n[/code:2k0ylfkb]\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "21:20",
"topic": "Change headers in xbrowse",
"username": "ukoenig"
}
] |
Change headers in xbrowse
|
[
{
"date": "2009-01-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you Uwe,\n\nIt's working very nice now!! <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \n\nRegards,\nMarc",
"time": "21:53",
"topic": "Change headers in xbrowse",
"username": "Marc Vanzegbroeck"
}
] |
Change headers in xbrowse
|
[
{
"date": "2022-01-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I once changed my htaccess file in order to forward ALL link, access and calls to the oldsite to the new site.\n\nI have a FIVEWIN folder on it in order to upload images to post insite the forum here, but that also forward all pictures to the new index of the new domain.\nMy hosting says to look at the internet for a sample to do so <!-- s:twisted: --><img src=\"{SMILIES_PATH}/icon_twisted.gif\" alt=\":twisted:\" title=\"Twisted Evil\" /><!-- s:twisted: --> <!-- s:twisted: --><img src=\"{SMILIES_PATH}/icon_twisted.gif\" alt=\":twisted:\" title=\"Twisted Evil\" /><!-- s:twisted: --> \nI 'm not able to do it and tried some samples, but it is tuff... Any ideas ?\n\nThis is now insite it (just renamed my site to 'mysite' tekst\n\nsample : <!-- w --><a class=\"postlink\" href=\"http://www.maveco.be/fivewin/test.jpg\">www.maveco.be/fivewin/test.jpg</a><!-- w --> will bring you to my site and not post the pic here as usual...\n\nFile : \n\n# ~~advancedcms landing start~~\n\n# Code generated by <!-- m --><a class=\"postlink\" href=\"http://www.301-redirect.online\">http://www.301-redirect.online</a><!-- m -->\nRewriteEngine on\n#RewriteCond %{QUERY_STRING} ^$\n#RewriteRule $ <!-- m --><a class=\"postlink\" href=\"https://www.mysite.be/\">https://www.mysite.be/</a><!-- m --> [R=301,L]\n#RewriteCond %{REQUEST_URI}!^/fivewin/\n#RewriteRule ^(.*)$ <!-- m --><a class=\"postlink\" href=\"https://www.mysite.be/\">https://www.mysite.be/</a><!-- m --> [R=301,L]\nRewriteRule !^fivewin($|/) <!-- m --><a class=\"postlink\" href=\"https://mysite.be/\">https://mysite.be/</a><!-- m --> [L,R=301] \nRewriteRule !^eshop($|/) <!-- m --><a class=\"postlink\" href=\"https://mysite.be/\">https://mysite.be/</a><!-- m --> [L,R=301] \n\n<IfModule mod_rewrite.c>\n\t<IfModule mod_env.c>\n\t\tSetEnv HTTP_MOD_REWRITE On\n\t</IfModule>\n\n\tOptions +SymLinksIfOwnerMatch -MultiViews\n\tRewriteEngine on\n\tRewriteRule . - [E=REWRITEBASE:/]\n\tRewriteCond %{REQUEST_URI} /$\n\tRewriteCond %{QUERY_STRING} !(^|&)rand=\n\tRewriteCond %{QUERY_STRING} !(^|&)mylogout=\n\tRewriteRule ^.*$ %{ENV:REWRITEBASE}index.php?fc=module&module=advancedcms&controller=adcms&id_cms=22&rewrite=Maveco_Main [L]\n</IfModule>",
"time": "22:29",
"topic": "Change htaccess for access to 1 folder",
"username": "Marc Venken"
}
] |
Change htaccess for access to 1 folder
|
[
{
"date": "2022-01-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Marc,\n\nWith mod_harbour CGI version we do it this way:\n[code=fw:1bnjgc24]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><Directory C:/xampp/htdocs><br /> RewriteEngine <span style=\"color: #0000ff;\">on</span><br /> RewriteRule ^<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">[</span>a-zA-Z<span style=\"color: #000000;\">]</span>*<span style=\"color: #000000;\">)</span>$ /cgi-bin/modharbour.exe?$<span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">[</span>NC,QSA<span style=\"color: #000000;\">]</span><br /></Directory></div>[/code:1bnjgc24]\n[url:1bnjgc24]https://github.com/FiveTechSoft/mod_harbour/tree/master/cgi[/url:1bnjgc24]\n\nI wasn't aware of [url:1bnjgc24]http://www.301-redirect.online[/url:1bnjgc24] thank you",
"time": "10:01",
"topic": "Change htaccess for access to 1 folder",
"username": "Antonio Linares"
}
] |
Change htaccess for access to 1 folder
|
[
{
"date": "2021-03-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Can we change the status of aSelected?\n\nThe idea is that I call several functions (one by one) with a different ordscope() selection. The result records of that selection should be set to .t. in de aSelected\nNext again a ordscope with other results, but these also need to be set .t. in aselected.\netc...\n\nFinaly all selections are made and oBrw:aSelected contains all record from different searches/selections.\n\nredraw of xbrowse should show all the records in aSelected.",
"time": "16:58",
"topic": "Change oBrw:aSelected outsite xbrowse",
"username": "Marc Venken"
}
] |
Change oBrw:aSelected outsite xbrowse
|
[
{
"date": "2021-03-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Purpose of oBrw:aSelected is totally different.\nWhat you want is you prepare an array of record numbers, which you want to show in xbrowse.\n\nIn this sample, aRecs represent the array aSelected you are referring to:\n\n[code=fw:31h355qz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oFont, oBrw<br /> <span style=\"color: #00C800;\">local</span> aRecs := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">}</span><br /><br /> USE STATES<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 /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont ;<br /> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"FILTER BY ARRAY\"</span><br /><br /> @ <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> DATASOURCE <span style=\"color: #ff0000;\">\"STATES\"</span> ;<br /> COLUMNS <span style=\"color: #ff0000;\">\"RECNO()\"</span>, <span style=\"color: #ff0000;\">\"CODE\"</span>, <span style=\"color: #ff0000;\">\"NAME\"</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"REC\"</span> PICTURES <span style=\"color: #ff0000;\">\"999\"</span> ;<br /> CELL LINES NOBORDER ;<br /> ROWS aRecs<br /><br /> oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"CHANGE RECORDS\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">40</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">aArrayData</span> := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">23</span>, <span style=\"color: #000000;\">47</span> <span style=\"color: #000000;\">}</span>, oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:31h355qz]\n\n[url=https://imageshack.com/i/pnXtlT4hg:31h355qz][img:31h355qz]https://imagizer.imageshack.com/img923/7705/XtlT4h.gif[/img:31h355qz][/url:31h355qz]",
"time": "20:07",
"topic": "Change oBrw:aSelected outsite xbrowse",
"username": "nageswaragunupudi"
}
] |
Change oBrw:aSelected outsite xbrowse
|
[
{
"date": "2021-03-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for sending me in the correct direction !!\n\nIn every lookup function (afther selection)\nI will add records to the array with a dbeval(....aadd()..)",
"time": "11:02",
"topic": "Change oBrw:aSelected outsite xbrowse",
"username": "Marc Venken"
}
] |
Change oBrw:aSelected outsite xbrowse
|
[
{
"date": "2023-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nThere are 2 controls on the window - a [b:1e4txqrl]Tbutton[/b:1e4txqrl] and a [b:1e4txqrl]TPanel[/b:1e4txqrl]. I need to tell the [b:1e4txqrl]TButton[/b:1e4txqrl] that it belongs to the [b:1e4txqrl]TPanel[/b:1e4txqrl]. How can this problem be solved ?",
"time": "09:46",
"topic": "Change of control owner",
"username": "Natter"
}
] |
Change of control owner
|
[
{
"date": "2023-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Yuri,\n\nWhen you create the TButton you use .. OF <TPanelObject>\n\nAnother way is to use Windows API function SetParent()\n[url:1y3waedg]https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setparent[/url:1y3waedg]",
"time": "09:52",
"topic": "Change of control owner",
"username": "Antonio Linares"
}
] |
Change of control owner
|
[
{
"date": "2017-05-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hey,\n\nEvery couple of day, while my program grows, I have to change (add) more fields into the online database\n\nNow I go into my phpMyadmin and change the structure and continue.\nI've seen that there are functions to change it from FWH.\n\nWhat approach do you mostly take ?",
"time": "22:37",
"topic": "Change of structure during development",
"username": "Marc Venken"
}
] |
Change of structure during development
|
[
{
"date": "2017-05-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Marc\n\nSorry for my bad english, i use this code for add columns\n\n if fieldpos(\"c_emdirec\") < 1\n gci_sqlexe(\"ALTER TABLE gci_empresas ADD c_emdirec CHAR(60) DEFAULT '' NOT NULL AFTER c_emname2\")\n gci_sqlexe(\"ALTER TABLE vcnewbos ADD tas_detrac NUMERIC(5,2) DEFAULT '0.00' NOT NULL AFTER des_newbos\")\n end if\n\nif you need change colums this code : \n\n if len(cdo_cuenta) == 12\n gci_sqlexe(\"ALTER TABLE vcpatpcg MODIFY cdo_cuenta CHAR(14) DEFAULT '' NOT NULL\")\n end if\n\ngci_sqlexe is my function to invoke mysql in ADO or TDolphin maybe have other names",
"time": "02:49",
"topic": "Change of structure during development",
"username": "Enrrique Vertiz"
}
] |
Change of structure during development
|
[
{
"date": "2017-05-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "FWH implementation\n\nExamples:\nAdding a numeric column\n\n[code=fw:wkr8jdlx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCn:<span style=\"color: #000000;\">AddColumn</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"mytale\"</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"columnname\"</span>, <span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span> --> lSuccess<br /> </div>[/code:wkr8jdlx]\n\nAltering a column. Assuming we have a column with name \"member_name\" with width 20. We want to alter the width as 30\n[code=fw:wkr8jdlx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCn:<span style=\"color: #000000;\">AlterColumn</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"mytable\"</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"member_name\"</span>, <span style=\"color: #ff0000;\">'C'</span>, <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span><br /> </div>[/code:wkr8jdlx]\n\nSecond parameter is like the column specification in our familiar DBF structure.\n\nRename a column:\n[code=fw:wkr8jdlx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCn:<span style=\"color: #000000;\">RenameColumn</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"mytable\"</span>, <span style=\"color: #ff0000;\">\"oldcolumnname\"</span>, <span style=\"color: #ff0000;\">\"newcolumnname\"</span> <span style=\"color: #000000;\">)</span> --> lSucess<br /> </div>[/code:wkr8jdlx]\n\nIf we have a table without primary key and \n(a) we want to add an auto-increment field as primary key\n[code=fw:wkr8jdlx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCn:<span style=\"color: #000000;\">AddAutoInc</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"tablename\"</span>, <span style=\"color: #ff0000;\">\"columnname\"</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:wkr8jdlx]\n(b) we want to make one of the existing columns as primary key\n[code=fw:wkr8jdlx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCn:<span style=\"color: #000000;\">MakePrimaryKey</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"tablename\"</span>, <span style=\"color: #ff0000;\">\"columnname\"</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:wkr8jdlx]",
"time": "07:57",
"topic": "Change of structure during development",
"username": "nageswaragunupudi"
}
] |
Change of structure during development
|
[
{
"date": "2017-05-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Exactly what I needed. Thanks all.",
"time": "12:35",
"topic": "Change of structure during development",
"username": "Marc Venken"
}
] |
Change of structure during development
|
[
{
"date": "2013-04-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio publishes on Topic Utilitades/planitllas this sample to show vertical a record on xbrowse\n\n[code=fw:1nfo3uj0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oBrw, oCol, aRecord, nAt := <span style=\"color: #000000;\">1</span><br /> <br /> USE Customer<br /> <br /> aRecord = Array<span style=\"color: #000000;\">(</span> Customer-><span style=\"color: #000000;\">(</span> FCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span><br /><br /> @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg ARRAY aRecord <span style=\"color: #B900B9;\">// AUTOSORT</span><br /><br /> oCol = oBrw:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /> oCol:<span style=\"color: #000000;\">bStrData</span> = <span style=\"color: #000000;\">{</span> || Customer-><span style=\"color: #000000;\">(</span> FieldName<span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">nArrayAt</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <br /> oCol:<span style=\"color: #000000;\">cHeader</span> = <span style=\"color: #ff0000;\">\"FieldName\"</span> <br /><br /> oCol = oBrw:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /> oCol:<span style=\"color: #000000;\">bStrData</span> = <span style=\"color: #000000;\">{</span> || Customer-><span style=\"color: #000000;\">(</span> FieldGet<span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">nArrayAt</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <br /> oCol:<span style=\"color: #000000;\">cHeader</span> = <span style=\"color: #ff0000;\">\"Value\"</span> <br /><br /> oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span> = MARQSTYLE_HIGHLROW<br /><br /> oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oBrw:<span style=\"color: #000000;\">bKeyCount</span> = <span style=\"color: #000000;\">{</span> || Customer-><span style=\"color: #000000;\">(</span> FCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> <br /> oDlg:<span style=\"color: #000000;\">oClient</span> = oBrw <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> oDlg:<span style=\"color: #000000;\">Resize</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> <br /> </div>[/code:1nfo3uj0]\n\n\nThis show all fields of customer.dbf \n\nBut If we want show only some fields of this dbf How We can do ?\n\nsample If we create two array sample :\n\naFields:={First,Last ,state,salary }\naNames:={\"Name\",\"surname\" ,\"State\",\"salary\" }\n\nand call a function Ut_BrwColVert(cDbf,aFields,aNames)\n\n\nI tried to create this function but not run well because not take the right field\n\n\n FUNCTION Ut_BrwColVert(cDbf,aTitles,aFields)\n local oDlgVista, oBrw\n Local nBottom := 33\n Local nRight := 66\n Local nWidth := Max( nRight * DLG_CHARPIX_W, 180 )\n Local nHeight := nBottom * DLG_CHARPIX_H\n lOCAL aStruct\n\n IF LEN(aFields)=0\n aStruct := (cdbf)->( DbStruct() )\n ELSE\n aStruct :=aFields\n eNDIF\n\n\n IF nType =1\n If Len( aStruct) != Len(aTitles)\n msginfo(\"Error on titles - fields\",\"ATTENtION!\")\n return nil\n ENDIF\n\n DEFINE DIALOG oDlgVista SIZE nWidth, nHeight ;\n Title \"Visualizzazione verticale\"\n\n\n @ 0,0 XBROWSE oBrw OF oDlgVista COLUMNS 1 HEADERS \"Campi\" ;\n COLSIZES 140;\n ARRAY aStruct CELL LINES NOBORDER SIZE -1,-20\n\n ADD TO oBrw DATA (cdbf)->(FieldGet(oBrw:nArrayAt)) TITLE \"Valori\"\n\n\n oBrw:aCols[ 1 ]:bEditValue := { ||aTitles[ oBrw:nArrayAt ] }\n oBrw:aCols[ 1 ]:nWidth := 200\n oBrw:aCols[ 2 ]:nWidth := 300\n\n\n\n oBrw:CreateFromCode()\n\n\n @ 230, 193 BUTTON oBtn PROMPT \"&Uscita\" OF oDlgVista SIZE 40, 15;\n PIXEL ACTION oDlgVista:end()\n ACTIVATE DIALOG oDlgVista center\n\nreturn nil",
"time": "22:36",
"topic": "Change on Vertical show with xbrowse",
"username": "Silvio.Falconi"
}
] |
Change on Vertical show with xbrowse
|
[
{
"date": "2013-04-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "If you want just the same functionality of the above sample, i.e, without editing and navigation of dbf, this simple function works for you.\n[code=fw:xxx5nyvp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.Ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"ord.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> aCols := <span style=\"color: #000000;\">{</span> ;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Name\"</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"SurName\"</span>, <span style=\"color: #ff0000;\">\"Last\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"State\"</span>, <span style=\"color: #ff0000;\">\"State\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Salary\"</span>, <span style=\"color: #ff0000;\">\"Salary\"</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /> USE CUSTOMER <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> CUST SHARED VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /> GO TOP<br /> CUST-><span style=\"color: #000000;\">(</span> Ut_BrwColVert<span style=\"color: #000000;\">(</span> aCols <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> CLOSE CUST<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">function</span> Ut_BrwColVert<span style=\"color: #000000;\">(</span> aCols <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oBrw, cAlias<br /><br /> cAlias := <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> cAlias<br /> @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> DATASOURCE aCols ;<br /> COLUMNS <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">{</span> || <span style=\"color: #000000;\">(</span> cAlias <span style=\"color: #000000;\">)</span>->&<span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"ColumnName\"</span>, <span style=\"color: #ff0000;\">\"ColumnValue\"</span> ;<br /> CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /> :<span style=\"color: #000000;\">nStretchCol</span> := <span style=\"color: #000000;\">2</span><br /> :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, .f. <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:xxx5nyvp]",
"time": "03:09",
"topic": "Change on Vertical show with xbrowse",
"username": "nageswaragunupudi"
}
] |
Change on Vertical show with xbrowse
|
[
{
"date": "2013-04-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I suggest you first compile and test the code above.\n\nHere I am posting a more elaborate function. This function provides\n(1) editing the field\n(2) buttons to navigate the dbf\n(3) resizes the dialog to fit the contents of the browse.\n\n[code=fw:2u15cv5m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/*<br />*<br />* XBRVERT.PRG<br />* Apr 29-2013 05:13 AM<br />*<br />*/</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.Ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"ord.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> aCols := <span style=\"color: #000000;\">{</span> ;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Name\"</span>, <span style=\"color: #ff0000;\">\"First\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"SurName\"</span>, <span style=\"color: #ff0000;\">\"Last\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"State\"</span>, <span style=\"color: #ff0000;\">\"State\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Salary\"</span>, <span style=\"color: #ff0000;\">\"Salary\"</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /> USE CUSTOMER <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> CUST SHARED VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /> GO TOP<br /><br /> CUST-><span style=\"color: #000000;\">(</span> FldVertBrowse<span style=\"color: #000000;\">(</span> aCols <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> CLOSE CUST<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #0000ff;\">init</span> procedure PrgInit<br /><br /> SET DATE ITALIAN<br /> SET CENTURY <span style=\"color: #0000ff;\">ON</span><br /> SET TIME FORMAT <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"HH:MM:SS\"</span><br /> SET EPOCH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #0000ff;\">YEAR</span><span style=\"color: #000000;\">(</span>DATE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">-50</span><br /><br /> SET DELETED <span style=\"color: #0000ff;\">ON</span><br /> SET EXCLUSIVE OFF<br /><br /> RDDSETDEFAULT<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #000000;\">)</span><br /><br /> XbrNumFormat<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'E'</span>, .t. <span style=\"color: #000000;\">)</span><br /> SetKinetic<span style=\"color: #000000;\">(</span> .f. <span style=\"color: #000000;\">)</span><br /> SetGetColorFocus<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> FldVertBrowse<span style=\"color: #000000;\">(</span> aCols <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oBrw, oFont, nRec, hRes<br /> <span style=\"color: #00C800;\">local</span> nSelect := <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> aBrw := AClone<span style=\"color: #000000;\">(</span> aCols <span style=\"color: #000000;\">)</span><br /><br /> nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</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><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">600</span>,<span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /> <span style=\"color: #B900B9;\">// --------- BUTTONS FOR NAVIGATION OF DBF --------------------//</span><br /><br /> hRes := GetResources<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> SET RESOURCES <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"PREV32.DLL\"</span><br /><br /> @ <span style=\"color: #000000;\">05</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">16</span>,<span style=\"color: #000000;\">16</span> <span style=\"color: #0000ff;\">PIXEL</span> BITMAP <span style=\"color: #ff0000;\">\"Top2\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdKeyNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">1</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbGoTop<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> @ <span style=\"color: #000000;\">05</span>, <span style=\"color: #000000;\">30</span> BUTTONBMP <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">16</span>,<span style=\"color: #000000;\">16</span> <span style=\"color: #0000ff;\">PIXEL</span> BITMAP <span style=\"color: #ff0000;\">\"Previous2\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdKeyNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">1</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbSkip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">00</span>,<span style=\"color: #000000;\">050</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"RecNo\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">09</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">CENTER</span><br /> @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">050</span> <span style=\"color: #0000ff;\">GET</span> nRec <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"9999\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbGoTo<span style=\"color: #000000;\">(</span> nRec <span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, .t. <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">05</span>, <span style=\"color: #000000;\">95</span> BUTTONBMP <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">16</span>,<span style=\"color: #000000;\">16</span> <span style=\"color: #0000ff;\">PIXEL</span> BITMAP <span style=\"color: #ff0000;\">\"Next2\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdKeyNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> < OrdKeyCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbSkip<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> @ <span style=\"color: #000000;\">05</span>,<span style=\"color: #000000;\">115</span> BUTTONBMP <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">16</span>,<span style=\"color: #000000;\">16</span> <span style=\"color: #0000ff;\">PIXEL</span> BITMAP <span style=\"color: #ff0000;\">\"Bottom2\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdKeyNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> < OrdKeyCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbGoBottom<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> SetResources<span style=\"color: #000000;\">(</span> hRes <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">//------------ XBROWSE DEFINITION --------------------//</span><br /><br /> @ <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">280</span>,<span style=\"color: #000000;\">260</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> DATASOURCE aBrw ;<br /> COLUMNS <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">{</span> || <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> &<span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"Column\"</span>, <span style=\"color: #ff0000;\">\"ColumnValue\"</span> ;<br /> CELL LINES NOBORDER FASTEDIT <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> WITH OBJECT oBrw<br /> :<span style=\"color: #000000;\">lHScroll</span> := .f.<br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">{</span> || <span style=\"color: #000000;\">{</span> CLR_BLACK, oBrw:<span style=\"color: #000000;\">nRecSelColor</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /> WITH OBJECT oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span><br /> :<span style=\"color: #000000;\">nEditType</span> := EDIT_GET<br /> :<span style=\"color: #000000;\">bOnPostEdit</span> := <span style=\"color: #000000;\">{</span> |o,x,n| <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> n != VK_ESCAPE .and. DbRLock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, ;<br /> <span style=\"color: #000000;\">(</span> FieldPut<span style=\"color: #000000;\">(</span> FieldPos<span style=\"color: #000000;\">(</span> o:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span>, x <span style=\"color: #000000;\">)</span>, DbRUnlock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> END<br /> <span style=\"color: #B900B9;\">//</span><br /> :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END<br /><br /> <span style=\"color: #B900B9;\">// -------------- ACTIVATE DIALOG -------------------//</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> DlgInit<span style=\"color: #000000;\">(</span> oBrw <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> DlgInit<span style=\"color: #000000;\">(</span> oBrw <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg := oBrw:<span style=\"color: #000000;\">oWnd</span><br /> <span style=\"color: #00C800;\">local</span> aDim := <span style=\"color: #000000;\">{</span> oBrw:<span style=\"color: #000000;\">nWidth</span>, oBrw:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">// ----- RESIZE DIALOG TO FIT THE CONTENTS OF BROWSE -------//</span><br /><br /> oBrw:<span style=\"color: #000000;\">BrwFitSize</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> oBrw:<span style=\"color: #000000;\">nWidth</span> < <span style=\"color: #000000;\">284</span><br /> oBrw:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">284</span><br /> oBrw:<span style=\"color: #000000;\">nStretchCol</span> := <span style=\"color: #000000;\">2</span><br /> <span style=\"color: #00C800;\">endif</span><br /> oDlg:<span style=\"color: #000000;\">nWidth</span> += <span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">nWidth</span> - aDim<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oDlg:<span style=\"color: #000000;\">nHeight</span> += <span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">nHeight</span> - aDim<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> WITH OBJECT oBrw<br /> :<span style=\"color: #000000;\">ColStretch</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END<br /><br /><span style=\"color: #00C800;\">return</span> .f.<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:2u15cv5m]\n\nI have used 'prev32.dll' for the button bitmaps. If your dll name is different, please change in the program.",
"time": "03:30",
"topic": "Change on Vertical show with xbrowse",
"username": "nageswaragunupudi"
}
] |
Change on Vertical show with xbrowse
|
[
{
"date": "2013-04-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Mr. Rao, this is that I mean!",
"time": "09:02",
"topic": "Change on Vertical show with xbrowse",
"username": "Silvio.Falconi"
}
] |
Change on Vertical show with xbrowse
|
[
{
"date": "2013-04-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I made some modifies : I insert a buttonbar and insert your buttons and get....[b:2nfhbeqr]only the say is not transparent [/b:2nfhbeqr] ( Isaw on rpreview but not run ok) \n\n[img:2nfhbeqr]http://img507.imageshack.us/img507/1643/vertg.jpg[/img:2nfhbeqr]\n\n\n\n\n[code=fw:2nfhbeqr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br /> <span style=\"color: #B900B9;\">/*<br /> *<br /> * XBRVERT.PRG<br /> * Apr 29-2013 05:13 AM<br /> *<br /> */</span><br /><br /> <span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.Ch\"</span><br /> <span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"ord.ch\"</span><br /> <span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /> <span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"constant.ch\"</span><br /><br /> <span style=\"color: #00D7D7;\">#define</span> LIGHTCYAN nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">203</span>, <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">252</span> <span style=\"color: #000000;\">)</span><br /><br /><br /> <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /> REQUEST DBFCDX<br /><br /> <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /> <span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">/*<br /> local aCols := { ;<br /> { \"Name\", \"First\" }, ;<br /> { \"SurName\", \"Last\" }, ;<br /> { \"State\", \"State\" }, ;<br /> { \"Salary\", \"Salary\" } }<br /> */</span><br /><br /><br /> <span style=\"color: #00C800;\">local</span> aCols := <span style=\"color: #000000;\">{</span> ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"Name\"</span>,<span style=\"color: #ff0000;\">\"FIRST\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"Surname\"</span> , <span style=\"color: #ff0000;\">\"LAST\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"Address\"</span>,<span style=\"color: #ff0000;\">\"STREET\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"City\"</span>,<span style=\"color: #ff0000;\">\"CITY\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"State\"</span>,<span style=\"color: #ff0000;\">\"STATE\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"HireDate\"</span>,<span style=\"color: #ff0000;\">\"HIREDATE\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"Married\"</span>,<span style=\"color: #ff0000;\">\"MARRIED\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"Age\"</span>,<span style=\"color: #ff0000;\">\"AGE\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"Salary\"</span>,<span style=\"color: #ff0000;\">\"SALARY\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"Notes\"</span>,<span style=\"color: #ff0000;\">\"NOTES\"</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /><br /><br /><br /><br /><br /> USE CUSTOMER <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> CUST SHARED VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /> GO TOP<br /><br /> CUST-><span style=\"color: #000000;\">(</span> FldVertBrowse<span style=\"color: #000000;\">(</span> aCols <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> CLOSE CUST<br /><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /> <span style=\"color: #0000ff;\">init</span> procedure PrgInit<br /><br /> SET DATE ITALIAN<br /> SET CENTURY <span style=\"color: #0000ff;\">ON</span><br /> SET TIME FORMAT <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"HH:MM:SS\"</span><br /> SET EPOCH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #0000ff;\">YEAR</span><span style=\"color: #000000;\">(</span>DATE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">-50</span><br /><br /> SET DELETED <span style=\"color: #0000ff;\">ON</span><br /> SET EXCLUSIVE OFF<br /><br /> RDDSETDEFAULT<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #000000;\">)</span><br /><br /> XbrNumFormat<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'E'</span>, .t. <span style=\"color: #000000;\">)</span><br /> SetKinetic<span style=\"color: #000000;\">(</span> .f. <span style=\"color: #000000;\">)</span><br /> SetGetColorFocus<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">return</span><br /><br /> <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /> <span style=\"color: #00C800;\">function</span> FldVertBrowse<span style=\"color: #000000;\">(</span> aCols <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oBrw, oFont, nRec, hRes<br /> <span style=\"color: #00C800;\">local</span> nSelect := <span style=\"color: #0000ff;\">SELECT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> aBrw := AClone<span style=\"color: #000000;\">(</span> aCols <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Local</span> nBottom := <span style=\"color: #000000;\">37</span><br /> <span style=\"color: #00C800;\">Local</span> nRight := <span style=\"color: #000000;\">75</span><br /> <span style=\"color: #00C800;\">Local</span> nWidth := <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">(</span> nRight * DLG_CHARPIX_W, <span style=\"color: #000000;\">180</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Local</span> nHeight := nBottom * DLG_CHARPIX_H<br /><br /> nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</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><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> nWidth,nHeight ;<br /> <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">\"Visualizzazione verticale\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont ;<br /> GRADIENT <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">1</span>,CLR_WHITE, LIGHTCYAN <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /><br /><br /> <span style=\"color: #B900B9;\">//------------ XBROWSE DEFINITION --------------------//</span><br /><br /> @ <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">296</span>,<span style=\"color: #000000;\">250</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> DATASOURCE aBrw ;<br /> COLUMNS <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">{</span> || <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> &<span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"Colonna\"</span>, <span style=\"color: #ff0000;\">\"Valore\"</span> ;<br /> CELL LINES NOBORDER FASTEDIT <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> WITH OBJECT oBrw<br /> :<span style=\"color: #000000;\">lHScroll</span> := .f.<br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">{</span> || <span style=\"color: #000000;\">{</span> CLR_BLACK, oBrw:<span style=\"color: #000000;\">nRecSelColor</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span><br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">100</span><br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">200</span><br /> WITH OBJECT oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span><br /> :<span style=\"color: #000000;\">nEditType</span> := EDIT_GET<br /> :<span style=\"color: #000000;\">bOnPostEdit</span> := <span style=\"color: #000000;\">{</span> |o,x,n| <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> n != VK_ESCAPE .and. DbRLock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, ;<br /> <span style=\"color: #000000;\">(</span> FieldPut<span style=\"color: #000000;\">(</span> FieldPos<span style=\"color: #000000;\">(</span> o:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span>, x <span style=\"color: #000000;\">)</span>, DbRUnlock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> END<br /> <span style=\"color: #B900B9;\">//</span><br /> :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END<br /><br /><br /><br /><br /> @ <span style=\"color: #000000;\">138</span>,<span style=\"color: #000000;\">98</span> <span style=\"color: #0000ff;\">Button</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> <span style=\"color: #0000ff;\">Action</span> odlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /> <span style=\"color: #B900B9;\">// -------------- ACTIVATE DIALOG -------------------//</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span>DlgInit<span style=\"color: #000000;\">(</span> oBrw <span style=\"color: #000000;\">)</span>,oDlgBar<span style=\"color: #000000;\">(</span>oDlg,oBrw,nSelect,nRec<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /> <span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> oDlgBar<span style=\"color: #000000;\">(</span>oDlg,oBrw,nSelect,nRec<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Local</span> oBar,oFontBar,oSay,oRec<br /> <span style=\"color: #00C800;\">Local</span> hRes:= GetResources<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> SET RESOURCES <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"PREV32.DLL\"</span><br /><br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">24</span>, <span style=\"color: #000000;\">24</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #000000;\">2007</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Top2\"</span> ;<br /> <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdKeyNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">1</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbGoTop<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,oRec:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,;<br /> oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> NOBORDER<br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Previous2\"</span> ;<br /> <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdKeyNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> > <span style=\"color: #000000;\">1</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbSkip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,oRec:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,;<br /> oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> NOBORDER<br /><br /><br /><br /> @ <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"RecNo :\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">CENTER</span><br /><br /> @ <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">GET</span> oRec <span style=\"color: #0000ff;\">VAR</span> nRec <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"9999\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">65</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbGoTo<span style=\"color: #000000;\">(</span> nRec <span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,;<br /> oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, .t. <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">290</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0.5</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #0000ff;\">FONT</span> oFontBar<br /> oSay:<span style=\"color: #000000;\">lTransparent</span> = .T.<br /><br /> <span style=\"color: #00D7D7;\">#define</span> NULL_BRUSH <span style=\"color: #000000;\">5</span><br /> FixSays<span style=\"color: #000000;\">(</span> oBar:<span style=\"color: #000000;\">hWnd</span>, GetStockObject<span style=\"color: #000000;\">(</span> NULL_BRUSH <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /><br /><br /><br /><br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Next2\"</span> ;<br /> <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdKeyNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> < OrdKeyCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbSkip<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,oRec:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,;<br /> oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> NOBORDER<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Bottom2\"</span> ;<br /> <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> OrdKeyNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> < OrdKeyCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nSelect <span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span> DbGoBottom<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, nRec := RecNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,oRec:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,;<br /> oDlg:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>;<br /> NOBORDER<br /> SetResources<span style=\"color: #000000;\">(</span> hRes <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /> <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /> <span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> DlgInit<span style=\"color: #000000;\">(</span> oBrw <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg := oBrw:<span style=\"color: #000000;\">oWnd</span><br /> <span style=\"color: #00C800;\">local</span> aDim := <span style=\"color: #000000;\">{</span> oBrw:<span style=\"color: #000000;\">nWidth</span>, oBrw:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">// ----- RESIZE DIALOG TO FIT THE CONTENTS OF BROWSE -------//</span><br /><br /> oBrw:<span style=\"color: #000000;\">BrwFitSize</span><span style=\"color: #000000;\">(</span> .t. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> oBrw:<span style=\"color: #000000;\">nWidth</span> < <span style=\"color: #000000;\">284</span><br /> oBrw:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">284</span><br /> oBrw:<span style=\"color: #000000;\">nStretchCol</span> := <span style=\"color: #000000;\">2</span><br /> <span style=\"color: #00C800;\">endif</span><br /> oDlg:<span style=\"color: #000000;\">nWidth</span> += <span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">nWidth</span> - aDim<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oDlg:<span style=\"color: #000000;\">nHeight</span> += <span style=\"color: #000000;\">(</span> oBrw:<span style=\"color: #000000;\">nHeight</span> - aDim<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> WITH OBJECT oBrw<br /> :<span style=\"color: #000000;\">ColStretch</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> END<br /><br /> <span style=\"color: #00C800;\">return</span> .f.<br /><br /> <span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:2nfhbeqr]\n\n\n\n\n\nI'd like insert it on lookup xbrowse main ( I create a button bar where I call XBRVERT.PRG)\n and how I can to create acols from xbrowse ?\n\nI thiked this :\n\n LOCAL nLen := Len( oBrowse:aCols )\n LOCAL aHeader [ nLen ]\n LOCAL aShow [ nlen ]\n LOCAL aSizes [ nLen ]\n LOCAL aArray [ nLen ] \n\n FOR n := 1 TO nLen\n aHeader [ n ] := oBrowse:aCols[ n ]:cHeader\n aShow [ n ] := ! oBrowse:aCols[ n ]:value\n aArray [ n ] := {aHeader[n],aShow[n]}\n NEXT\n\nxbrowse.....oBrw:SetArray(aArray)\n\nit can run ?",
"time": "10:45",
"topic": "Change on Vertical show with xbrowse",
"username": "Silvio.Falconi"
}
] |
Change on Vertical show with xbrowse
|
[
{
"date": "2013-04-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[img:1kvqcpyy]http://img33.imageshack.us/img33/9710/vertjo.jpg[/img:1kvqcpyy]\n\n\n\n\n\n\n\n\nI made ( but it run bad) \noBrowse is the main xbrowse table \n\n\n[code=fw:1kvqcpyy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">Function</span> testsilvio<span style=\"color: #000000;\">(</span>cDbf, oBrowse<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> nLen := Len<span style=\"color: #000000;\">(</span> oBrowse:<span style=\"color: #000000;\">aCols</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> aHeader <span style=\"color: #000000;\">[</span> nLen <span style=\"color: #000000;\">]</span><br /><span style=\"color: #00C800;\">LOCAL</span> aShow <span style=\"color: #000000;\">[</span> nlen <span style=\"color: #000000;\">]</span><br /><span style=\"color: #00C800;\">LOCAL</span> aSizes <span style=\"color: #000000;\">[</span> nLen <span style=\"color: #000000;\">]</span><br /><span style=\"color: #00C800;\">LOCAL</span> aArray <span style=\"color: #000000;\">[</span> nLen <span style=\"color: #000000;\">]</span><br /><br /> <span style=\"color: #00C800;\">FOR</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nLen<br /> aHeader <span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span> := oBrowse:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">cHeader</span><br /> aShow <span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span> := oBrowse:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">Value</span><br /><br /> aArray <span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span> := <span style=\"color: #000000;\">{</span>aHeader<span style=\"color: #000000;\">[</span>n<span style=\"color: #000000;\">]</span>,aShow<span style=\"color: #000000;\">[</span>n<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">}</span><br /><span style=\"color: #00C800;\">NEXT</span><br /><br /><br /><span style=\"color: #B900B9;\">//call your vertical function </span><br /> FldVertBrowse<span style=\"color: #000000;\">(</span>aArray <span style=\"color: #000000;\">)</span><br /><br /> RETUR <span style=\"color: #00C800;\">NIL</span></div>[/code:1kvqcpyy]\n\n\n\nstrange If I made xbrowser aArray I can see good !!!",
"time": "11:04",
"topic": "Change on Vertical show with xbrowse",
"username": "Silvio.Falconi"
}
] |
Change on Vertical show with xbrowse
|
[
{
"date": "2008-06-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi all !\r\nI want to take MDICHILD dialog(from external MDI application) and change him parent on my window. It's OK. But I not chage size or move this MDICHILD dialog - error external MDI application.\r\nWhat's that ?",
"time": "09:53",
"topic": "Change parent",
"username": "Natter"
}
] |
Change parent
|
[
{
"date": "2008-06-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Natter,\r\n\r\nPlease provide a small and self contained PRG to reproduce the error, thanks",
"time": "23:25",
"topic": "Change parent",
"username": "Antonio Linares"
}
] |
Change parent
|
[
{
"date": "2008-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "How may know list name styles of external application window ?",
"time": "23:28",
"topic": "Change parent",
"username": "Natter"
}
] |
Change parent
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi my friends!\n\nHow I can change the position ( Top and Left ) of a modal dialog at runtime?\nIt's possible?\n\n\nThanks for all!",
"time": "01:03",
"topic": "Change position of Modal Dialog?",
"username": "JC"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Julio,\n\noDlg:nTop = ...\noDlg:nLeft = ...",
"time": "08:56",
"topic": "Change position of Modal Dialog?",
"username": "Antonio Linares"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":1z27jg6e]Julio,\n\noDlg:nTop = ...\noDlg:nLeft = ...[/quote:1z27jg6e]\n\n\nFirst, thanks Antonio...\n\nThis is my situation:\n\n[code:1z27jg6e]\n\n\nDEFINE DIALOG oDlg RESOURCE \"GRID_SELECTION\" OF oDlgP\n\n ... \n\nACTIVATE DIALOG oDlg ON INIT ( oDlg:move( oDlgP:nTop, oDlgP:nLeft,,, .T. ) )\n[/code:1z27jg6e]\n\nBut, the method move() put the top and left of the main window, not of the oDlgP. I'm crazy? hehehe\n\nI want this: the dialog oDlg get the bottom and left position of the oDlgP!",
"time": "13:17",
"topic": "Change position of Modal Dialog?",
"username": "JC"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Try with functions WndTop(oDlgp:hWnd) and WndLeft(oDlgp:hWnd)",
"time": "13:26",
"topic": "Change position of Modal Dialog?",
"username": "Biel EA6DD"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Biel EA6DD\":1j5neruu]Try with functions WndTop(oDlgp:hWnd) and WndLeft(oDlgp:hWnd)[/quote:1j5neruu]\n\nGabriel.... this not fun! <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->",
"time": "14:18",
"topic": "Change position of Modal Dialog?",
"username": "JC"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Cesar,\n\nmaybe you can try with\n oDlg:Move(20,20,700,800,.t.)\nRegards,\nOtto\n\n\n\n\n[code:k3s2qaeb] //\n\n\n\n//DEFINE DIALOG oDlg RESOURCE \"GRID_SELECTION\" OF oDlgP\n\n //...\n\n//ACTIVATE DIALOG oDlg ON INIT ( oDlg:move( oDlgP:nTop, oDlgP:nLeft,,, .T. ) )\n\n\n\n //EMG\n#include \"Fivewin.ch\"\n\n\nFUNCTION MAIN()\n\n LOCAL oDlg, oBtn\n\n LOCAL oGet1, oGet2\n\n LOCAL cVar1 := SPACE( 30 )\n LOCAL cVar2 := SPACE( 60 )\n\n DEFINE DIALOG oDlg\n\n @ 1, 1 GET oGet1 VAR cVar1\n @ 1, 1 GET oGet2 VAR cVar2\n\n @ 3, 1 BUTTON oBtn PROMPT \"Scientific\";\n ACTION CHANGE( oDlg, oBtn, oGet1, oGet2 )\n\n ACTIVATE DIALOG oDlg;\n ON INIT oGet2:Hide()\n\nRETURN NIL\n\n\nSTATIC FUNCTION CHANGE( oDlg, oBtn, oGet1, oGet2 )\n\n IF oBtn:GetText() = \"Scientific\"\n oDlg:SetSize( 500, , .T. )\n oDlg:Move(200,300,700,800,.t.)\n oBtn:SetText( \"Standard\" )\n oGet1:Hide()\n oGet2:Show()\n ELSE\n oDlg:SetSize( 300, , .T. )\n oDlg:Move(20,20,700,800,.t.)\n oBtn:SetText( \"Scientific\" )\n oGet1:Show()\n oGet2:Hide()\n ENDIF\n\nRETURN NIL[/code:k3s2qaeb]",
"time": "14:38",
"topic": "Change position of Modal Dialog?",
"username": "Otto"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Otto\":2z09x1p5]Hello Cesar,\n\nmaybe you can try with\n oDlg:Move(20,20,700,800,.t.)\nRegards,\nOtto\n\n\n\n\n[code:2z09x1p5] //\n\n\n\n//DEFINE DIALOG oDlg RESOURCE \"GRID_SELECTION\" OF oDlgP\n\n //...\n\n//ACTIVATE DIALOG oDlg ON INIT ( oDlg:move( oDlgP:nTop, oDlgP:nLeft,,, .T. ) )\n\n\n\n //EMG\n#include \"Fivewin.ch\"\n\n\nFUNCTION MAIN()\n\n LOCAL oDlg, oBtn\n\n LOCAL oGet1, oGet2\n\n LOCAL cVar1 := SPACE( 30 )\n LOCAL cVar2 := SPACE( 60 )\n\n DEFINE DIALOG oDlg\n\n @ 1, 1 GET oGet1 VAR cVar1\n @ 1, 1 GET oGet2 VAR cVar2\n\n @ 3, 1 BUTTON oBtn PROMPT \"Scientific\";\n ACTION CHANGE( oDlg, oBtn, oGet1, oGet2 )\n\n ACTIVATE DIALOG oDlg;\n ON INIT oGet2:Hide()\n\nRETURN NIL\n\n\nSTATIC FUNCTION CHANGE( oDlg, oBtn, oGet1, oGet2 )\n\n IF oBtn:GetText() = \"Scientific\"\n oDlg:SetSize( 500, , .T. )\n oDlg:Move(200,300,700,800,.t.)\n oBtn:SetText( \"Standard\" )\n oGet1:Hide()\n oGet2:Show()\n ELSE\n oDlg:SetSize( 300, , .T. )\n oDlg:Move(20,20,700,800,.t.)\n oBtn:SetText( \"Scientific\" )\n oGet1:Show()\n oGet2:Hide()\n ENDIF\n\nRETURN NIL[/code:2z09x1p5][/quote:2z09x1p5]\n\n\nYes, I tried! But this is the problem.... is a Dialog opened from another Dialog... the value must be from the first Dialog, but it get a value of top and left from the main window! I'm crazy, that's it!!!\n\nReally, I want one thing: The second dialog must be show exactly on top of first dialog, with top and left!",
"time": "14:50",
"topic": "Change position of Modal Dialog?",
"username": "JC"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Julio,\n\nYou need to turn absolute coordinates into relative ones.\n\nPlease review function ScreenToClient()\n\nPlease make a search for ScreenToClient in these forums. There are several examples of its use",
"time": "16:40",
"topic": "Change position of Modal Dialog?",
"username": "Antonio Linares"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Cesar,\nI think you are right. There is no function opposite to the SetWindowPos = GetWindowPos in FIVEWIN.\noDlg:nTop() returns 0 in my tests\n @ 3, 16 BUTTON \"Top\" SIZE 40, 12 ACTION msginfo(oDlg:nTop())\n\nMaybe you can store the nTop of the first DIALOG in a STATIC and then use this STATIC for the second DIALOG. If you move the first you must change the STATIC VAR too.\nRegards,\nOtto",
"time": "16:56",
"topic": "Change position of Modal Dialog?",
"username": "Otto"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "As Biel pointed, WndTop( oDlg:hWnd [,nNewTop] ) should work similar to oDlg:nTop",
"time": "17:35",
"topic": "Change position of Modal Dialog?",
"username": "Antonio Linares"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, where do you get nNewTop from?\nRegards,\nOtto",
"time": "18:17",
"topic": "Change position of Modal Dialog?",
"username": "Otto"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto,\n\nIts a new value for nTop.\n\noWnd:nTop is equivalent to WndTop( oWnd:hWnd )\n\nand\n\noWnd:nTop := 5 is equivalent to WndTop( oWnd:hWnd, 5 )",
"time": "18:33",
"topic": "Change position of Modal Dialog?",
"username": "Antonio Linares"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Cesar,\nmaybe this is what you need.\n\nRegards,\nOtto\n[code:3mbfaxds]#include \"fivewin.ch\"\n\nSTATIC nTop, nLeft\nSTATIC oWnd\n\nfunction main()\n local oWnd\n\n DEFINE WINDOW oWnd TITLE \"oWnd1\" ;\n FROM 5, 5 TO 24, 64\n\n ACTIVATE WINDOW oWnd on Init f_dlg()\n\nreturn nil\n\n\nfunc f_dlg\n local oDlg, oIco, cTest := \"Hello world! \"\n local nTop\n\n\n DEFINE ICON oIco FILE \"..\\icons\\fivewin.ico\"\n\n DEFINE DIALOG oDlg TITLE \"I am a DialogBox\" COLOR \"W+/B\" ;\n ICON oIco of Ownd\n\n @ 1, 3 GET cTest\n\n @ 3, 5 BUTTON \"Ok\" SIZE 40, 12 ;\n ACTION ( xCheck( oDlg ), f_dlg2() ) DEFAULT\n\n ACTIVATE DIALOG oDlg CENTERED ;\n VALID MsgYesNo( \"Do you want to end ?\" )\n\nreturn nil\n\nfunction xCheck( oDlg )\n\n local aPoint := { 0, 0 }\n\n aPoint = ClientToScreen( oDlg:hWnd, aPoint )\n\n if aPoint[ 1 ] > 32768\n aPoint[ 1 ] -= 65535\n endif\n if aPoint[ 2 ] > 32768\n aPoint[ 2 ] -= 65535\n endif\n\n nTop:= aPoint[ 1 ] - 20\n nLeft:= aPoint[ 2 ]\n\n\n //msginfo(STR(nTop) + \" \" +str(nLeft) )\n\nreturn nil\n\nfunc f_dlg2()\n local oDlg, oIco, cTest := \"Hello world! \"\n\n DEFINE DIALOG oDlg TITLE \"I am a DialogBox\" of oWnd\n\n @ 3, 5 BUTTON \"&Ok\" SIZE 40, 12 ;\n ACTION oDlg:End() DEFAULT\n\n ACTIVATE DIALOG oDlg ON INIT oDlg:Move(nTop,nLeft,,,.t.)\n\nreturn nil\n\n[/code:3mbfaxds]",
"time": "18:54",
"topic": "Change position of Modal Dialog?",
"username": "Otto"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2008-03-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":d5tvhl0b]Julio,\n\nYou need to turn absolute coordinates into relative ones.\n\nPlease review function ScreenToClient()\n\nPlease make a search for ScreenToClient in these forums. There are several examples of its use[/quote:d5tvhl0b]\n\nYes Antonio.... with ScreenToClient() , It's work fine!\nOtto, thanks too!\n\nThanks very much! With much strenght!! <!-- s;) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";)\" title=\"Wink\" /><!-- s;) -->",
"time": "20:14",
"topic": "Change position of Modal Dialog?",
"username": "JC"
}
] |
Change position of Modal Dialog?
|
[
{
"date": "2010-07-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I must change the size of a group of a Tab of RibbonBar\n\n MENUITEM \"Change Size\" ACTION ( nwidthnew:= ChangeSize(oGrp:nWidth,\"Change the size to group \"+\" [\"+oGrp:cCaption+\"]\"),;\n oGrp:End(),oGrp:=( oRBar:AddGroup(nwidthnew,cCaption,nGroup)),;\n oRBar:Calcpos(), oRBar:display(),oRBar:refresh() )\n\nI understood I must destroy the group and add a new group with the same nIndex ( number of Goup) \n[b:2w1cgr03] oGrp:End(),oGrp:=( oRBar:AddGroup(nwidthnew,cCaption,nGroup)),;[/b:2w1cgr03]\n\nbut \n\nwith oGrp:End() the ribbonbar make error ....or there is a bug on the ribbonbar class \n\nChangeSize function is a simply dialog with a get to change the number size",
"time": "23:36",
"topic": "Change size on a Ribbon Group",
"username": "MdaSolution"
}
] |
Change size on a Ribbon Group
|
[
{
"date": "2010-07-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "With the first Release of the Ribbonbar-Class < 08.2009 >\nI started with a Painter, but stopped the work on it.\n\n[color=#4000FF:1j8kw8z7]I understood I must destroy the group and add a new group with the same nIndex ( number of Goup) \noGrp:End(),oGrp:=( oRBar:AddGroup(nwidthnew,cCaption,nGroup)),;\nbut \nwith oGrp:End() the ribbonbar make error ....or there is a bug on the ribbonbar class [/color:1j8kw8z7]\n\n[color=#FF0000:1j8kw8z7]I repainted the complete Ribbonbar on a Button-Action after changes ![/color:1j8kw8z7]\n\nMy Solution :\nA painted Ribbonbar on the Main-Window.\nA Tool-window with Folders, to add / change Settings. ( the same Logic, I use in all my other tools )\nWith a Draw-button, I distroyed and repainted the Ribbonbar with the new Settings on the Main-Window.\nIt works fine and I could add / resize Tabs, Groups , changing Colors .....\nI think, to change / add something from inside the Ribbonbar, doesn't work and is to difficult to manage.\n\nAs soon You want to create a PRG- and EXE-File, You have to define a Preview-Function of a Window \nwith the Ribbonbar and the used Vars from the Folderpages. \n( On the bottom of this post You can see, how to do it ( a Part of Code-Creation from the Button-Tools )\n\n[img:1j8kw8z7]http://www.pflegeplus.com/pictures/ribbonb1.jpg[/img:1j8kw8z7]\n\nMaybe it gives You a Idea, how to create it.\n\nCreating PRG- and EXE-File ( it is not easy and takes some Time )\n\n[code=fw:1j8kw8z7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> MAKE_EXE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">// c_path := CURDRIVE() + \":\\\" + GETCURDIR() </span><br /><span style=\"color: #00C800;\">IF</span> FILE <span style=\"color: #000000;\">(</span>c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\P</span>ROJECT.PRG\"</span><span style=\"color: #000000;\">)</span><br /> DELETE FILE c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\P</span>ROJECT.PRG\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> FILE <span style=\"color: #000000;\">(</span>c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\P</span>ROJECT.EXE\"</span><span style=\"color: #000000;\">)</span><br /> DELETE FILE c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\P</span>ROJECT.EXE\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// create the PRG</span><br />DO_SOURCE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">IF</span> FILE <span style=\"color: #000000;\">(</span> c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\P</span>ROJECT.PRG\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">// File exists open with Editor</span><br /> WAITRUN<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Angelwriter.exe \"</span> + c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\P</span>ROJECT.prg\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// copy from .PRG</span><br /> <span style=\"color: #B900B9;\">// Close Editor and create EXE-File</span><br /> <span style=\"color: #00C800;\">IF</span> MsgYesNo<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Do you want to Create / Run : PROJECT.exe ?\"</span>,<span style=\"color: #ff0000;\">\"PROJECT\"</span><span style=\"color: #000000;\">)</span><br /> WAITRUN<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"GO.BAT\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// the LINK-File !!!!</span><br /> <span style=\"color: #00C800;\">IF</span> FILE <span style=\"color: #000000;\">(</span> c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\P</span>ROJECT.EXE\"</span> <span style=\"color: #000000;\">)</span><br /> WINEXEC<span style=\"color: #000000;\">(</span> c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\P</span>ROJECT.EXE\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"The file : PROJECT.EXE \"</span> + CRLF + ;<br /> <span style=\"color: #ff0000;\">\"is not created !\"</span>,<span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ELSE</span><br /> MsgAlert<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"The File : \"</span> + CRLF + ;<br /> <span style=\"color: #ff0000;\">\"PROJECT.PRG\"</span> + CRLF + ;<br /> <span style=\"color: #ff0000;\">\"is not created !\"</span>, <span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">ENDIF</span><br />SYSREFRESH<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">// ------- The Main-Window with Exit-Button --------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> DO_SOURCE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br />oText := TTxtFile<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\P</span>ROJECT.PRG\"</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">IF</span> oText:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'#include \"FiveWin.ch\"'</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'#include \"Image.ch\"'</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"static oWnd, oButtFont, oSkinB\"</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"FUNCTION Main()\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'LOCAL oBtn1, oBtn2, hDC, oBrush, oImage'</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"LOCAL nWidth := GetSysMetrics(0)\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"LOCAL nHeight := GetSysMetrics(1)\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"SET _3DLOOK ON\"</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"SetBalloon( .T. )\"</span> <span style=\"color: #000000;\">)</span> <br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'c_path := CURDRIVE() + \":<span style=\"color: #000000;\">\\\"</span> + GETCURDIR()'</span><span style=\"color: #000000;\">)</span> <br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'oProgFont := TFont():New(\"Arial\", ,-14,.F.,.F. , , , ,.F. ) '</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'DEFINE WINDOW oWnd TITLE \"Buttonbar- and Button-Test\" '</span><span style=\"color: #000000;\">)</span> <br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'oButtFont := TFont():New(\"Arial\",0,-16,.F.,.T.,0,0,0,.T. ) '</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'DEFINE IMAGE oImage FILENAME c_path + \"<span style=\"color: #000000;\">\\I</span>mages<span style=\"color: #000000;\">\\B</span>ACKGRD.JPG\" '</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"@ nHeight - 160, nWidth - 420 BTNBMP oBtn1 SIZE 200, 60 OF oWnd 2007 ;\"</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'FILENAME c_path + \"<span style=\"color: #000000;\">\\I</span>mages<span style=\"color: #000000;\">\\s</span>elect.bmp\" ;'</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"LEFT ;\"</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'PROMPT \" &Preview Buttons \" ; '</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"FONT oButtFont ;\"</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ACTION Buttons(oWnd)\"</span> <span style=\"color: #000000;\">)</span> <br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"oBtn1:lTransparent = .t. \"</span> <span style=\"color: #000000;\">)</span> <br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'oBtn1:cTooltip := { \"Open\" + CRLF + ;'</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">' \"the Button-Test\",\"Button-Test\", 1, CLR_BLACK, 14089979 }'</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"@ nHeight - 160, nWidth - 200 BTNBMP oBtn2 SIZE 150, 60 OF oWnd 2007 ;\"</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'FILENAME c_path + \"<span style=\"color: #000000;\">\\I</span>mages<span style=\"color: #000000;\">\\e</span>xit.bmp\" ;'</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"LEFT ;\"</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'PROMPT \" &Exit \" ;'</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"FONT oButtFont ;\"</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ACTION oWnd:End()\"</span> <span style=\"color: #000000;\">)</span> <br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"oBtn2:lTransparent = .t.\"</span> <span style=\"color: #000000;\">)</span> <br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'oBtn2:cTooltip := { \"Close\" + CRLF + ;'</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">' \"the VTitle-Painter\",\"Close Window\", 1, CLR_BLACK, 14089979 }'</span> <span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'ACTIVATE WINDOW oWnd MAXIMIZED ;'</span><span style=\"color: #000000;\">)</span> <br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'ON PAINT ( DRAWBITMAP( hdc, oImage:hbitmap, 0, 0, nWidth, nHeight ) ) ;'</span><span style=\"color: #000000;\">)</span> <br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'VALID MsgYesNo( \"Do you want to end?\" )'</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"oProgFont:End()\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"oButtFont:End()\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">)</span><br /> oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'RETURN( NIL )'</span><span style=\"color: #000000;\">)</span> <br /> ....<br /> ....<br /> ....<br /> <span style=\"color: #B900B9;\">// Call any Functions You need</span><br /> BAR_PART<span style=\"color: #000000;\">(</span> oText <span style=\"color: #000000;\">)</span> <br /> ....<br /> oText:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #B900B9;\">// -- Numeric Vars use like ( Position ) : oText:Add(\"@ \" + ALLTRIM(STR(nTop)) + ',' + ALLTRIM(STR(nLeft)) ... </span><br /><br /><span style=\"color: #B900B9;\">// ---------------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> BAR_PART<span style=\"color: #000000;\">(</span> oText <span style=\"color: #000000;\">)</span><br /><br />oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">)</span><br />oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'// ------------- Buttonbar --------------------------------------'</span> <span style=\"color: #000000;\">)</span> <br />oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">)</span><br />oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"FUNCTION MAKEBBAR(oDlg, oTextFont)\"</span><span style=\"color: #000000;\">)</span><br />oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"LOCAL oBar, oButt1, oButt2, oButt3, oButt4, oButt5, oButt6, oButt7\"</span><span style=\"color: #000000;\">)</span><br />oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">)</span><br />oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"DEFINE BUTTONBAR oBar OF oDlg SIZE \"</span> + ALLTRIM<span style=\"color: #000000;\">(</span>STR<span style=\"color: #000000;\">(</span>B_WIDTH<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\",\"</span> + ALLTRIM<span style=\"color: #000000;\">(</span>STR<span style=\"color: #000000;\">(</span>B_HEIGHT<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\" 3DLOOK 2007 TOP\"</span> <span style=\"color: #000000;\">)</span><br />...<br />...<br />oText:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"RETURN NIL\"</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">)</span><br /><br /> </div>[/code:1j8kw8z7]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "13:26",
"topic": "Change size on a Ribbon Group",
"username": "ukoenig"
}
] |
Change size on a Ribbon Group
|
[
{
"date": "2010-07-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "UWE not use prg extern...\n\nogrp:SETSIZE (..) [b:2p08xmtb]...not run[/b:2p08xmtb]\nogrp:Move() [b:2p08xmtb] not run[/b:2p08xmtb]\n\nAlso I reaprint the orbar with ::calcpos(),::display() but not run !!\n\ntry to set before 200 to nwidth of a group then try to insert a button ( trbtn ) and create an action \nACTION ( ogrp:nwidth:=300, ogrp:refresh(), orbar:calcpos(),orbar:display(),orbar:refresh()) [b:2p08xmtb]NOT RUN[/b:2p08xmtb]or \n\n ACTION ( ogrp:nwidth:=300, ogrp:setsize(,ogrp:nwidth), orbar:calcpos(),orbar:display(),orbar:refresh()) [b:2p08xmtb]NOT RUN[/b:2p08xmtb]",
"time": "20:00",
"topic": "Change size on a Ribbon Group",
"username": "MdaSolution"
}
] |
Change size on a Ribbon Group
|
[
{
"date": "2007-04-13",
"forum": "FiveWin for CA-Clipper",
"text": "Hello,\n\nI have a browse and four buttoms inside of a dialog and I need to expand the dialog and browse to adjust to screen resolution and move the buttons to other position.\n\nDoes somebody know as doing it?\n\nRegards,",
"time": "13:02",
"topic": "Change size to dialog during execution program",
"username": "alfonso"
}
] |
Change size to dialog during execution program
|
[
{
"date": "2007-04-14",
"forum": "FiveWin for CA-Clipper",
"text": "oDialog:nWidth = ... \noDialog:nHeight = ... \n\n<oControl>:nTop = ... \n<oControl>:nLeft ...\n<oControl>:nWidth = ... \n<oControl>:nHeight = ...",
"time": "06:53",
"topic": "Change size to dialog during execution program",
"username": "Antonio Linares"
}
] |
Change size to dialog during execution program
|
[
{
"date": "2007-04-17",
"forum": "FiveWin for CA-Clipper",
"text": "Hi,\nCLASS TDialog FROM TWindow\n\n\nMETHOD Autoresize(ntop,nleft)\n\nMETHOD Autoresize(ntop,nleft)\nlocal i,rsl0,rsl1\nDEFAULT ntop:=0\nDEFAULT nleft:=0\n\n \n \n rsl0:=getsysmetrics(0)/800\n if rsl0<=1; return ; end //<=800*600, not needed \n rsl1:=getsysmetrics(1)/600\n for i:=1 TO LEN(::acontrols)\n oCtrol = ::aControls[i]\n aRect = GetCoors( oCtrol:hWnd )\n if oCtrol:classname()==\"TCOMBOBOX\"\n oCtrol:Move( aRect[1]*rsl0, aRect[2]*rsl1)\n else \n oCtrol:Move( aRect[1]*rsl0, aRect[2]*rsl1, (aRect[4] - aRect[2])*rsl0, (aRect[3] - aRect[1])*rsl1, .t. ) \n end\n next\n \n aRect = GetWndRect( ::hWnd )\n \n ::Move( ntop,nleft,::nWidth*rsl0, ::nHeight*rsl1, .T. )\n \n if ::lCentered\n WndCenter( ::hWnd )\n else\n if Empty( ::cResName )\n ::Move( ::nTop, ::nLeft )\n endif\n endif\n \n\nreturn\n\n\n In you app\n\n define dialog odlg\n redefine controls ...\n ...\n activate dialog odlg on init odlg:autoresize()\n\nRegards,\nShuming Wang",
"time": "07:36",
"topic": "Change size to dialog during execution program",
"username": "ShumingWang"
}
] |
Change size to dialog during execution program
|
[
{
"date": "2007-04-17",
"forum": "FiveWin for CA-Clipper",
"text": "Thanks for your reply.\nBut I have a problem, the fix text or literals in a dialog are not resized. Do you know how can I manage it to resize it?\nThanks in advance,\nJose Alfonso",
"time": "10:14",
"topic": "Change size to dialog during execution program",
"username": "alfonso"
}
] |
Change size to dialog during execution program
|
[
{
"date": "2007-04-18",
"forum": "FiveWin for CA-Clipper",
"text": "So far,-1 Id not support yet.\n You could change like this:\n redefine say prompt ' ... ...' of odlg id 111\nRegards\nShuming Wang",
"time": "02:26",
"topic": "Change size to dialog during execution program",
"username": "ShumingWang"
}
] |
Change size to dialog during execution program
|
[
{
"date": "2018-10-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "How do I interchange between a descending and ascending sort order in a Xbrowse?\n\n[code=fw:3p0ci2hb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">SELECT</span> myfile<br /> DATABASE oDbfG<br /> <span style=\"color: #B900B9;\">//create temporary index</span><br /> oDbfG:<span style=\"color: #000000;\">CreateIndex</span><span style=\"color: #000000;\">(</span> ,<span style=\"color: #ff0000;\">\"NumberD\"</span>,<span style=\"color: #ff0000;\">\"myfile->number\"</span>, ,.T.,.T.<span style=\"color: #000000;\">)</span><br /> oDbfG:<span style=\"color: #000000;\">CreateIndex</span><span style=\"color: #000000;\">(</span> ,<span style=\"color: #ff0000;\">\"Number\"</span> , <span style=\"color: #ff0000;\">\"myfile->number\"</span>, , ,.T.<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Main\"</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Main\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /> oDbfG:<span style=\"color: #000000;\">GOTOP</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFuente <span style=\"color: #0000ff;\">COLOR</span> RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>,RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">226</span>,<span style=\"color: #000000;\">241</span>,<span style=\"color: #000000;\">254</span><span style=\"color: #000000;\">)</span> ;<br /> AUTOSORT DATASOURCE oDbfG;<br /> FIELDS oDbfG:<span style=\"color: #000000;\">number</span><br /> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> HEADERS <span style=\"color: #ff0000;\">\"Number\"</span> ;<br /> SIZES <span style=\"color: #000000;\">110</span><br /> <br /> WITH OBJECT oBrw<br /> :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">cSortOrder</span> := <span style=\"color: #ff0000;\">\"number\"</span><br /> :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">oDataFont</span> := oFont<br /><span style=\"color: #B900B9;\">// Try this among dozen other combinations but will not work</span><br /><br /> :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bLClickHeader</span> := <span style=\"color: #000000;\">{</span> || nOrden++, IIF<span style=\"color: #000000;\">(</span>nOrden><span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">{</span>nOrder:=<span style=\"color: #000000;\">0</span>, oBrw:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"number\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">cSortOrder</span>=<span style=\"color: #00C800;\">Nil</span> <span style=\"color: #000000;\">}</span>, ;<br /> IIF<span style=\"color: #000000;\">(</span>nOrden=<span style=\"color: #000000;\">1</span>, oBrw:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"number\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">cSortOrder</span>=<span style=\"color: #ff0000;\">\"number\"</span>, ;<br /> oBrw:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"number\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">cSortOrder</span>=<span style=\"color: #ff0000;\">\"numberD\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> END</div>[/code:3p0ci2hb]\n\nAscending sort is working when clicking on header, but will not change to descending or back to none.\n\nThanks\nEmiliano Llano Díaz",
"time": "17:42",
"topic": "Change sort order on browse when clicking on header",
"username": "ellano"
}
] |
Change sort order on browse when clicking on header
|
[
{
"date": "2018-10-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please try this sample. Click on header toggles ascending and descending orders. \nThat is the default behavior, if not modified in the application program.\n\nSample code:\n[code=fw:234awvzb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDbf, oDlg, oBrw, oFont<br /><br /> USE \\FWH\\SAMPLES\\STATES <span style=\"color: #00C800;\">NEW</span> SHARED VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /> DATABASE oDbf<br /><br /> oDbf:<span style=\"color: #000000;\">CreateIndex</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #ff0000;\">\"TMPCODE\"</span>, <span style=\"color: #ff0000;\">\"CODE\"</span>, <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>, .T. <span style=\"color: #000000;\">)</span><br /> oDbf:<span style=\"color: #000000;\">CreateIndex</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #ff0000;\">\"TMPNAME\"</span>, <span style=\"color: #ff0000;\">\"NAME\"</span>, <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>, .T. <span style=\"color: #000000;\">)</span><br /><br /> oDbf:<span style=\"color: #000000;\">SetOrder</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TMPCODE\"</span> <span style=\"color: #000000;\">)</span><br /> oDbf:<span style=\"color: #000000;\">GoTop</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</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;\">\"Segoe UI\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-16</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /> @ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> DATASOURCE oDbf ;<br /> COLUMNS <span style=\"color: #ff0000;\">\"CODE\"</span>, <span style=\"color: #ff0000;\">\"NAME\"</span> ; <span style=\"color: #B900B9;\">// do not use FIELDS clause</span><br /> SORT <span style=\"color: #ff0000;\">\"TMPCODE\"</span>, <span style=\"color: #ff0000;\">\"TMPNAME\"</span> ;<br /> AUTOSORT CELL LINES NOBORDER<br /><br /> oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</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;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /> oDbf:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:234awvzb]\n\n[url=https://imageshack.com/i/pnwscyU4g:234awvzb][img:234awvzb]https://imageshack.com/a/img923/4564/wscyU4.gif[/img:234awvzb][/url:234awvzb]",
"time": "21:00",
"topic": "Change sort order on browse when clicking on header",
"username": "nageswaragunupudi"
}
] |
Change sort order on browse when clicking on header
|
[
{
"date": "2018-10-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "As always, right on the point. Everything back to normal when changing FIELDS to COLUMNS. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nMy final example (in case someone is stuck):\n\n[code=fw:b6i257l6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-16</span> BOLD<br /> <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">FONT</span> oFont1 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span> BOLD<br /><br /> <span style=\"color: #0000ff;\">Select</span> IsActive<br /> SET ORDER <span style=\"color: #0000ff;\">TO</span> TAG <span style=\"color: #ff0000;\">\"ID\"</span><br /><br /> <span style=\"color: #0000ff;\">SELECT</span> MyFile<br /> DATABASE oDbfG<br /><br /> <span style=\"color: #B900B9;\">//create temporary indexes: CreateIndex( [cFile], cTag, cKey, [lUnique], [lDescend], [lMemory] )</span><br /> oDbfG:<span style=\"color: #000000;\">CreateIndex</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">nil</span>,<span style=\"color: #ff0000;\">\"Numbr\"</span>, <span style=\"color: #ff0000;\">\"MyFile->Numbr\"</span> , <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>,.T.<span style=\"color: #000000;\">)</span><br /> oDbfG:<span style=\"color: #000000;\">CreateIndex</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">nil</span>,<span style=\"color: #ff0000;\">\"cName\"</span>, <span style=\"color: #ff0000;\">\"Left(PADR(ALLTRIM(MyFile->cName),25),25)\"</span>, <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>,.T.<span style=\"color: #000000;\">)</span><br /> oDbfG:<span style=\"color: #000000;\">CreateIndex</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">nil</span>,<span style=\"color: #ff0000;\">\"Born\"</span>, <span style=\"color: #ff0000;\">\"DTOS(MyFile->fecnac)\"</span> , <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>,.T.<span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oShow <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Show_Main\"</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Main\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /> oDbfG:<span style=\"color: #000000;\">GOTOP</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oDbfG:<span style=\"color: #000000;\">SetOrder</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Numbr\"</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">// reserve column 5 for a bitmap</span><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oShow <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">COLOR</span> RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>,RGB<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">226</span>,<span style=\"color: #000000;\">241</span>,<span style=\"color: #000000;\">254</span><span style=\"color: #000000;\">)</span> ;<br /> DATASOURCE oDbfG;<br /> COLUMNS <span style=\"color: #ff0000;\">\"Numbr\"</span>, <span style=\"color: #ff0000;\">\"cName\"</span>, <span style=\"color: #ff0000;\">\"Born\"</span>, <span style=\"color: #ff0000;\">\"Sex\"</span>, <span style=\"color: #ff0000;\">\" \"</span> ;<br /> SORT <span style=\"color: #ff0000;\">\"Numbr\"</span>, <span style=\"color: #ff0000;\">\"cName\"</span>, <span style=\"color: #ff0000;\">\"Born\"</span>, <span style=\"color: #00C800;\">nil</span> , <span style=\"color: #00C800;\">nil</span> ;<br /> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> HEADERS <span style=\"color: #ff0000;\">\"ID\"</span>,<span style=\"color: #ff0000;\">\"Name\"</span>,<span style=\"color: #ff0000;\">\"Date\"</span>,<span style=\"color: #ff0000;\">\"Sex\"</span>,<span style=\"color: #ff0000;\">\"Active\"</span> ;<br /> SIZES <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">40</span> ;<br /> AUTOSORT CELL LINES NOBORDER <br /> <br /> WITH OBJECT oBrw<br /> :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">oDataFont</span> := oFont1<br /> :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">oDataFont</span> := oFont1<br /><br /> :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'ON'</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">'OFF'</span> <span style=\"color: #000000;\">)</span><br /> :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bBmpData</span>:=<span style=\"color: #000000;\">{</span> || IIF<span style=\"color: #000000;\">(</span> IsActive-><span style=\"color: #000000;\">(</span>DBSEEK<span style=\"color: #000000;\">(</span>MyFile->Numbr<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> :<span style=\"color: #000000;\">bKeyDown</span> :=<span style=\"color: #000000;\">{</span>|nKey| Move_Line<span style=\"color: #000000;\">(</span>oShow, nKey, oBrw, cImages<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> :<span style=\"color: #000000;\">bLDblClick</span> := <span style=\"color: #000000;\">{</span>|| Show_Register<span style=\"color: #000000;\">(</span>cImages, oBrw<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> END <br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oShow <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span>HB_SYMBOL_UNUSED<span style=\"color: #000000;\">(</span><span style=\"color: #00C800;\">self</span><span style=\"color: #000000;\">)</span>,;<br /> Show_Bar<span style=\"color: #000000;\">(</span>oShow,oBrw,@num,cImages<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oFont1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span></div>[/code:b6i257l6]\n\nThanks\nEmiliano Llano Díaz",
"time": "08:02",
"topic": "Change sort order on browse when clicking on header",
"username": "ellano"
}
] |
Change sort order on browse when clicking on header
|
[
{
"date": "2018-10-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Why show_bar() function ON INIT?\n\nWe can now create buttonbars for dialogs also just like in windows.",
"time": "08:28",
"topic": "Change sort order on browse when clicking on header",
"username": "nageswaragunupudi"
}
] |
Change sort order on browse when clicking on header
|
[
{
"date": "2018-10-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You are right again. But in this particular case is because this depends on 3 different scenarios that I did not include on the sample:\n\nIn my program it something like this:\n\n[code=fw:18mfqg9t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Show_Bar<span style=\"color: #000000;\">(</span>aryFile,oShow,oBrw,@num,Company,cImages,nWhich<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//nWhich indicates the bar to display and options to hide or show</span><br /> </div>[/code:18mfqg9t]",
"time": "13:19",
"topic": "Change sort order on browse when clicking on header",
"username": "ellano"
}
] |
Change sort order on browse when clicking on header
|
[
{
"date": "2009-09-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Define window ownd; \nSTYLE ( WS_POPUP )\n \nCAn i make it outside this call ?\n\ni want make as:\noWnd:Style( WS_POPUP )\n\ny tryed this:\n\noWnd:nStyle:= nOr (WS_POPUP) ( no show error ) more no work how is when i do it in define window ....",
"time": "11:47",
"topic": "Change style of a dialog or window ( Solved )",
"username": "lailton.webmaster"
}
] |
Change style of a dialog or window ( Solved )
|
[
{
"date": "2009-09-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "lailton,\n\noWnd: nStyle -= WS_POPUP\n\n\n[quote=\"lailton.webmaster\"]Define window ownd; \nSTYLE ( WS_POPUP )\n \nCAn i make it outside this call ?\n\ni want make as:\noWnd:Style( WS_POPUP )\n\ny tryed this:\n\noWnd:nStyle:= nOr (WS_POPUP) ( no show error ) more no work how is when i do it in define window ....[/quote]",
"time": "22:08",
"topic": "Change style of a dialog or window ( Solved )",
"username": "wmormar"
}
] |
Change style of a dialog or window ( Solved )
|
[
{
"date": "2009-09-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks more yet continue. \nit´s no work to me.",
"time": "04:01",
"topic": "Change style of a dialog or window ( Solved )",
"username": "lailton.webmaster"
}
] |
Change style of a dialog or window ( Solved )
|
[
{
"date": "2009-09-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Lailton,\n\n[code=fw:2shxbw3w]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oWnd:<span style=\"color: #000000;\">nStyle</span> := nOr <span style=\"color: #000000;\">(</span>oWnd:<span style=\"color: #000000;\">nStyle</span>, WS_POPUP<span style=\"color: #000000;\">)</span></div>[/code:2shxbw3w]",
"time": "09:02",
"topic": "Change style of a dialog or window ( Solved )",
"username": "StefanHaupt"
}
] |
Change style of a dialog or window ( Solved )
|
[
{
"date": "2009-09-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Lailton:\n\nYou should use SetWindowLong function to change the window's style. The WS_POPUP style shouldn't be used alone but combined with at least another one eg WS_VISIBLE.\n\nTry this sample:[code=fw:3stv7p0k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#define</span> GWL_STYLE <span style=\"color: #000000;\">-16</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Local</span> oWnd<br /><br /> <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Window</span> oWnd <span style=\"color: #0000ff;\">From</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /> @<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"ok\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> SetWindowLong<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">hWnd</span>, GWL_STYLE, nOr<span style=\"color: #000000;\">(</span> WS_VISIBLE, WS_POPUP <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>, ;<br /> oWnd:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> @<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"End\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">Activate</span> <span style=\"color: #0000ff;\">Window</span> oWnd<br /> <br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span></div>[/code:3stv7p0k]\n\nBest regards.\n\nManuel Mercado Gomez.",
"time": "18:41",
"topic": "Change style of a dialog or window ( Solved )",
"username": "mmercado"
}
] |
Change style of a dialog or window ( Solved )
|
[
{
"date": "2009-09-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "mmercado and StefanHaupt,\n\nit´s work fine !!\n\nThanks so much... <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "18:57",
"topic": "Change style of a dialog or window ( Solved )",
"username": "lailton.webmaster"
}
] |
Change style of a dialog or window ( Solved )
|
[
{
"date": "2009-01-13",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "I'm with a trouble to change a Buttombmp style(especificaly WS_TABSTOP) and a LOT of good programmers don't know how to change the style in execution...\nI think that change the nStyle for logical Data will solve all this troubles...\n[code:fbni0hos]\nEx.: Redefine ButtonBMP oBtn;\n ID 100\n Prompt \"Can be focused\";\n Update;\n Action CanFocus(oBtn)\n\nProcedure CanFocus(oObj)\n\n oObj:[red]WS_TABSTOP[/red] := !oObj:WS_TABSTOP\n if oObj:WS_TABSTOP\n oObj:settext( \"Can't be focused\" )\n else\n oObj:settext( \"Can be focused\" )\n end\n \n oObj:Refresh()\n\nReturn\n\n[/code:fbni0hos]\n\nThe only trouble I see is a lot of classes to be changed (or not I don't know how it can be done)",
"time": "11:50",
"topic": "Change style's to DATA",
"username": "sambomb"
}
] |
Change style's to DATA
|
[
{
"date": "2009-01-14",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "You can use:\n\nSetWindowLong( oBtn:hWnd, GWL_STYLE, nXor( GetWindowLong( oBtn:hWnd, GWL_STYLE ), WS_TABSTOP ) )",
"time": "00:11",
"topic": "Change style's to DATA",
"username": "Antonio Linares"
}
] |
Change style's to DATA
|
[
{
"date": "2009-01-14",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "Thanks Linares, I already discover how to change <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> but it's difficult to understand.",
"time": "17:01",
"topic": "Change style's to DATA",
"username": "sambomb"
}
] |
Change style's to DATA
|
[
{
"date": "2009-01-24",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "Windows API's rules <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "20:02",
"topic": "Change style's to DATA",
"username": "Antonio Linares"
}
] |
Change style's to DATA
|
[
{
"date": "2009-01-26",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "[quote=\"Antonio Linares\":xcendhtc]Windows API's rules <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:xcendhtc]\nWhere I can find these rules? \n\nPS.: If it was in portuguese is better for me...",
"time": "12:22",
"topic": "Change style's to DATA",
"username": "sambomb"
}
] |
Change style's to DATA
|
[
{
"date": "2009-01-26",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "On MSDN.\n\nEMG",
"time": "12:49",
"topic": "Change style's to DATA",
"username": "Enrico Maria Giordano"
}
] |
Change style's to DATA
|
[
{
"date": "2009-01-26",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "Samir,\n\n<!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/ms633591(VS.85\">http://msdn.microsoft.com/en-us/library/ms633591(VS.85</a><!-- m -->).aspx\n\n<!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/ms633584(VS.85\">http://msdn.microsoft.com/en-us/library/ms633584(VS.85</a><!-- m -->).aspx",
"time": "14:37",
"topic": "Change style's to DATA",
"username": "Antonio Linares"
}
] |
Change style's to DATA
|
[
{
"date": "2009-01-26",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "Thanks, I will take a look <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: -->",
"time": "18:50",
"topic": "Change style's to DATA",
"username": "sambomb"
}
] |
Change style's to DATA
|
[
{
"date": "2011-07-15",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=21910\">viewtopic.php?f=3&t=21910</a><!-- l -->\n\nThat would be wonderfull if we can change the color of 2007 clause and change the color of all system with that...",
"time": "14:39",
"topic": "Change system colors - 2007/2010 style",
"username": "sambomb"
}
] |
Change system colors - 2007/2010 style
|
[
{
"date": "2006-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nA Belgium bank nr always have the same picture.\n999-9999999-99\n\nSometimes the client is from another country and has a bank nr with another picture.\n\nHow can I change the picture of the field when the window is running.\n\nThe idea is to start all nrs with \"BE\" \n\nSo the picture will be :\n\n\"!!-999-9999999-99\"\n\nwhere the first 2 characters will be by default \"BE\"\n\nWhen the get got focus the position of the cursor should be 4.\n\nWhen the content of the first 2 characters is \"BE\" the picture should have to be \"!!-999-9999999-99\"\nOtherwise the picture should be \"!!-xxxxxxxxxxxxxxx\"\n\nDoes anybody have an idea how to fix this.\n\nThanks\n\nWilly Hermans.\n\nThanks,\n\nWilly",
"time": "11:20",
"topic": "Change te picture of a get according the contents",
"username": "Willy"
}
] |
Change te picture of a get according the contents
|
[
{
"date": "2006-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You could try using ON CHANGE and changing the picture (oGet:oGet:cPicture). \n\nBut I would just let the user type in whatever they want, then post process it to put it in the correct format and put it back into the GET. If it doesn't appear to be valid data, then you can turn the background a different color to signify that the data is invalid.\n\nJames",
"time": "18:25",
"topic": "Change te picture of a get according the contents",
"username": "James Bott"
}
] |
Change te picture of a get according the contents
|
[
{
"date": "2006-04-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks James,\n\nI have tried it this way, and indeed this is a better way.\n\nThanks for the advice.\n\nWilly.",
"time": "09:08",
"topic": "Change te picture of a get according the contents",
"username": "Willy"
}
] |
Change te picture of a get according the contents
|
[
{
"date": "2006-04-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maybe you should use ComboBox (or other control) to let a user select approciated picture format himself?\n\nVladimir Grigoriev",
"time": "11:29",
"topic": "Change te picture of a get according the contents",
"username": "Vladimir Grigoriev"
}
] |
Change te picture of a get according the contents
|
[
{
"date": "2006-04-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Vladimir:\n\n You can change the get picture whenever you want with:\n\n\t IF CRUB==1\n\t oPuni:oGet:Picture:='999,999.9999'\n\t\t\toPuni:Refresh()\n\t ELSE\n\t oPuni:oGet:Picture:='999,999.99'\n\t\t\toPuni:Refresh()\n\t ENDIF\n\nRegards,",
"time": "08:31",
"topic": "Change te picture of a get according the contents",
"username": "DanielPuente"
}
] |
Change te picture of a get according the contents
|
[
{
"date": "2006-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\nhow is possible to change the text of a button in a toolbar?\n\nThank you",
"time": "16:14",
"topic": "Change text button Toolbar",
"username": "Riccardo"
}
] |
Change text button Toolbar
|
[
{
"date": "2006-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Have you tried: oBtn:setText(\"New Text\")?",
"time": "20:55",
"topic": "Change text button Toolbar",
"username": "James Bott"
}
] |
Change text button Toolbar
|
[
{
"date": "2006-09-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Riccardo,\n\nYou have to add this method to Class TToolBar:\n[code:1sebn8sr]\nMETHOD SetText( nButton, cText ) INLINE TBSetText( ::hWnd, nButton, cText ) \n[/code:1sebn8sr]\nAnd this code to your app:\n[code:1sebn8sr]\n#pragma BEGINDUMP\n\n#include <hbapi.h>\n#include <Windows.h>\n#include <CommCtrl.h>\n\nHB_FUNC( TBSETTEXT )\n{\n HWND hToolBar = ( HWND ) hb_parnl( 1 );\n TBBUTTONINFO tbi;\n\n memset( ( char * ) &tbi, 0, sizeof( tbi ) );\n\n\ttbi.dwMask = TBIF_TEXT | TBIF_BYINDEX;\n\ttbi.cbSize = sizeof( TBBUTTONINFO );\n\ttbi.pszText = hb_parc( 3 );\n\ttbi.cchText = hb_parclen( 3 );\n\t \n SendMessage( hToolBar, TB_SETBUTTONINFO, hb_parni( 2 ) - 1, ( LPARAM ) &tbi );\n}\n[/code:1sebn8sr]\nThen use it this way:\n[code:1sebn8sr]\n oToolbar:SetText( 1, \"Hello\" ) // set first button text\n[/code:1sebn8sr]",
"time": "07:06",
"topic": "Change text button Toolbar",
"username": "Antonio Linares"
}
] |
Change text button Toolbar
|
[
{
"date": "2006-09-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\nthank you, works fine.\n\nI've modify the Method Commad of the TToolBar to have the nId of the buttom when pressed:\n Eval( bAction, Self ) -> Eval( bAction, Self, nID )\n\nBye\nRiccardo",
"time": "09:23",
"topic": "Change text button Toolbar",
"username": "Riccardo"
}
] |
Change text button Toolbar
|
[
{
"date": "2006-09-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Riccardo,\n\n> Eval( bAction, Self ) -> Eval( bAction, Self, nID )\n\nOk, we have also modified it here, though we may finally create a new Class TTBButton and the TBButton object will be supplied instead of nID.",
"time": "09:29",
"topic": "Change text button Toolbar",
"username": "Antonio Linares"
}
] |
Change text button Toolbar
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I do like this:\n\n[code=fw:3ubew6jg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">Redefine</span> <span style=\"color: #0000ff;\">RADIO</span> ::<span style=\"color: #000000;\">oRad760_DadosCobranca</span> ;<br /> <span style=\"color: #0000ff;\">VAR</span> ::<span style=\"color: #000000;\">oDs_ClientesEdit</span>:<span style=\"color: #000000;\">COBRANCA</span> ;<br /> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">761</span>,<span style=\"color: #000000;\">762</span>,<span style=\"color: #000000;\">763</span>,<span style=\"color: #000000;\">764</span> <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oFldDetalhes</span>:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #0000ff;\">Color</span> G_COLOR_SYS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span>,G_COLOR_SYS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> <br /> </div>[/code:3ubew6jg]\n\nIn this example, G_COLOR_SYS (2) is white and G_COLOR_SYS (1) is the background.\nI can't change the colors of the text or the background of tRadio.\nAlready tried the Bj: nClrText: = also does not work. This also happens with CheckBox.\nWould anyone know any method to make this possible?\n\n[img:3ubew6jg]https://i.postimg.cc/1Xm04z8X/SH-22-Nov-20-11-25.jpg[/img:3ubew6jg]",
"time": "15:38",
"topic": "Change text color and background of tRadio",
"username": "Giovany Vecchi"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "As far as I know it is a problem to have active themes (also for checkboxes).\nThis may work although for me it has never been a good solution.\n[code=fw:qapv5kuz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> SetWindowTheme<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oRad760_DadosCobranca</span>:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:qapv5kuz]",
"time": "15:49",
"topic": "Change text color and background of tRadio",
"username": "cnavarro"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "When executing I get the message:\n[code=fw:1rgevfb7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1004</span> <span style=\"color: #0000ff;\">Message</span> not found: <span style=\"color: #000000;\">TRADMENU</span>:<span style=\"color: #000000;\">HWND</span></div>[/code:1rgevfb7]",
"time": "16:04",
"topic": "Change text color and background of tRadio",
"username": "Giovany Vecchi"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sorry, try \n\n[code=fw:3umasqj0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />SetWindowTheme<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oRad760_DadosCobranca</span>:<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:3umasqj0]",
"time": "16:12",
"topic": "Change text color and background of tRadio",
"username": "cnavarro"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks, it worked.\nI better change the tRadio class so I don't have to mess with the whole system.\nI am creating a kind of Dark Theme, and if I could not change certain controls, it would not work.\n\n[code=fw:x837ev5i]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> ::<span style=\"color: #000000;\">oDlgCadastro</span>:<span style=\"color: #000000;\">bInit</span> := <||<br /> AEval<span style=\"color: #000000;\">(</span> lc_oSelf:<span style=\"color: #000000;\">oCliDetConta</span>:<span style=\"color: #000000;\">oRad760_DadosCobranca</span>:<span style=\"color: #000000;\">aItems</span>,;<br /> <span style=\"color: #000000;\">{</span>|_oRadSeq|SetWindowTheme<span style=\"color: #000000;\">(</span> _oRadSeq:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /> > <span style=\"color: #B900B9;\">//cEnd</span><br /> </div>[/code:x837ev5i]\n\n[img:x837ev5i]https://i.postimg.cc/D0Mq5JQN/SH-24-Nov-20-12-37.jpg[/img:x837ev5i]",
"time": "16:36",
"topic": "Change text color and background of tRadio",
"username": "Giovany Vecchi"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ok, but I don't like the 3dlook style\nTry using also this and tell me if it works with redefined controls\n\n[code=fw:26w3sr9a]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />Ctl3DLook<span style=\"color: #000000;\">(</span> <yourobjectcontrol>:<span style=\"color: #000000;\">hWnd</span>, .F. <span style=\"color: #000000;\">)</span><br /> </div>[/code:26w3sr9a]",
"time": "16:41",
"topic": "Change text color and background of tRadio",
"username": "cnavarro"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Giovany, Your design is very good, congratulations",
"time": "16:50",
"topic": "Change text color and background of tRadio",
"username": "cnavarro"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I thought the [b:8wlbr73c]Set3DLook(.F.)[/b:8wlbr73c] function would solve this question",
"time": "16:56",
"topic": "Change text color and background of tRadio",
"username": "Giovany Vecchi"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"cnavarro\":1xstv44c]Giovany, Your design is very good, congratulations[/quote:1xstv44c]\nThank you Navarro. We have to show that Fivewin is beyond what we think we can do.\n\nVia Activex Integration\n[img:1xstv44c]https://i.postimg.cc/nhcZb3mB/SH-25-Nov-20-13-03.jpg[/img:1xstv44c]\n\nOther controls\n[img:1xstv44c]https://i.postimg.cc/yd5yh6qn/SH-26-Nov-20-13-07.jpg[/img:1xstv44c]",
"time": "17:11",
"topic": "Change text color and background of tRadio",
"username": "Giovany Vecchi"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Giovany Vecchi\":wqrs4a61][quote=\"cnavarro\":wqrs4a61]Giovany, Your design is very good, congratulations[/quote:wqrs4a61]\nThank you Navarro. We have to show that Fivewin is beyond what we think we can do.\n\n[/quote:wqrs4a61]\n\n[b:wqrs4a61][size=150:wqrs4a61]The limit is our imagination, without any doubt[/size:wqrs4a61][/b:wqrs4a61]\n\n[quote=\"Giovany Vecchi\":wqrs4a61]\nI thought the Set3DLook(.F.) function would solve this question\n[/quote:wqrs4a61]\n\nHave you managed to solve the 3D effect?",
"time": "17:39",
"topic": "Change text color and background of tRadio",
"username": "cnavarro"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2019-11-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote:3v0olq0a]Have you managed to solve the 3D effect?[/quote:3v0olq0a]\n\nI did not make it.\nI noticed that even putting at the beginning of the program the option Set3dLook (.F.) OR .T., Does not change anything.",
"time": "17:59",
"topic": "Change text color and background of tRadio",
"username": "Giovany Vecchi"
}
] |
Change text color and background of tRadio
|
[
{
"date": "2005-12-20",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "Antonio,\n\n I think it would be great if you can do this for FW/FWH, because When I have problems with decreasing resources, I have no idea where to see in which percentual it is, and on Win XP the FWH always returns 90%.\n\nThanks,\n\nKleyber Derick",
"time": "00:45",
"topic": "Change the \"90% of resources\" for a REAL percentua",
"username": "Kleyber"
}
] |
Change the "90% of resources" for a REAL percentua
|
[
{
"date": "2005-12-20",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "Kleyber,\n\nGoogling it, we have found this interesting page:\n\n<!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/msdnmag/issues/03/01/GDILeaks/default.aspx\">http://msdn.microsoft.com/msdnmag/issue ... fault.aspx</a><!-- m -->\n\nLets see if it may help.",
"time": "05:52",
"topic": "Change the \"90% of resources\" for a REAL percentua",
"username": "Antonio Linares"
}
] |
Change the "90% of resources" for a REAL percentua
|
[
{
"date": "2005-12-20",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "Here we can get a free GDI inspector:\n\n<!-- m --><a class=\"postlink\" href=\"http://ltearno.free.fr/dpus/\">http://ltearno.free.fr/dpus/</a><!-- m -->",
"time": "06:37",
"topic": "Change the \"90% of resources\" for a REAL percentua",
"username": "Antonio Linares"
}
] |
Change the "90% of resources" for a REAL percentua
|
[
{
"date": "2005-12-21",
"forum": "To do - WishList / Por hacer - Peticiones",
"text": "Antonio,\n\n Very interesting... is there a chance to put this in a simpler way inside FWH?\n\nRegards,\n\nKleyber Derick",
"time": "16:00",
"topic": "Change the \"90% of resources\" for a REAL percentua",
"username": "Kleyber"
}
] |
Change the "90% of resources" for a REAL percentua
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.