messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2007-02-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Enrico,\n\n Thanks (as always) for your answer. I was looking at a program made in Delphi where all the errors are showed, but the user can ignore them and come back to the program. Which cases are non recoverable errors? Do you have an example to show it?\n\nbest regards,", "time": "00:55", "topic": "Changing Errorsys", "username": "Kleyber" } ]
Changing Errorsys
[ { "date": "2007-02-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Unrecoverable errors are the ones with\n\n[code:tffu8wnr]oErr:Severity = ES_CATASTROPHIC //3[/code:tffu8wnr]\n\nThis is a sample of error trapping:\n\n[code:tffu8wnr]#include \"Fivewin.ch\"\n\n\nFUNCTION MAIN()\n\n LOCAL nVar, oErr\n\n ERRORBLOCK( { | oErr | Break( oErr ) } )\n\n BEGIN SEQUENCE\n nVar *= 2\n RECOVER USING oErr\n ? \"oErr:Description\", oErr:Description\n ? \"oErr:CanDefault\", oErr:CanDefault\n ? \"oErr:CanRetry\", oErr:CanRetry\n ? \"oErr:CanSubstitute\", oErr:CanSubstitute\n ? \"oErr:Severity\", oErr:Severity\n END SEQUENCE\n\n RETURN NIL[/code:tffu8wnr]\n\nEMG", "time": "13:09", "topic": "Changing Errorsys", "username": "Enrico Maria Giordano" } ]
Changing Errorsys
[ { "date": "2007-02-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks a lot, Enrico. I'll take a good look.\n\nBest regards,", "time": "19:09", "topic": "Changing Errorsys", "username": "Kleyber" } ]
Changing Errorsys
[ { "date": "2006-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Good Morning,\n\nI have tried evey possible combination of color settings (I think) but I cannot get the colors of my ComboBoxes right.\n\nEverywhere in my system (for Get's) I use:\n\nReDefine Get ... Color CLR_BLUE\n\nand this works perfectly BUT\n\nReDefine ComboBox ... Color CLR_BLUE Items ...\n\ndoes nothing i.e. the text display is still Black.\n\nI just need to change the foreground or text color to the same blue as the text of the gets but every time I try to add different color settings like:\n\nReDefine ComboBox ... Color CLR_BLUE, CLR_BLACK Items ...\n\nor something like that I just don't seem to be able to change ONLY the foreground text color i.e. I seem to manage to make the while thing unreadable.\n\nAny ideas?\n\nRegards,\n\nDale.", "time": "08:52", "topic": "Changing Foreground and Background Colors of ComboBox", "username": "dpaterso" } ]
Changing Foreground and Background Colors of ComboBox
[ { "date": "2006-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Use SetColor() method.\n\nEMG", "time": "08:55", "topic": "Changing Foreground and Background Colors of ComboBox", "username": "Enrico Maria Giordano" } ]
Changing Foreground and Background Colors of ComboBox
[ { "date": "2006-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Dale,\n\nIs it a dropdown or a dropdownlist combobox ?\n\nIf it has an editable get then it is dropdown.", "time": "08:57", "topic": "Changing Foreground and Background Colors of ComboBox", "username": "Antonio Linares" } ]
Changing Foreground and Background Colors of ComboBox
[ { "date": "2006-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nThat was quick!\n\nEnrico: SetColor( ) to what?\n\nAntonio: It does not have an editable get.\n\nThanks,\n\nDale.", "time": "09:01", "topic": "Changing Foreground and Background Colors of ComboBox", "username": "dpaterso" } ]
Changing Foreground and Background Colors of ComboBox
[ { "date": "2006-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "oCbx:SetColor( CLR_RED, CLR_GREEN )\n\nEMG", "time": "09:08", "topic": "Changing Foreground and Background Colors of ComboBox", "username": "Enrico Maria Giordano" } ]
Changing Foreground and Background Colors of ComboBox
[ { "date": "2006-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Dale,\n\nWhen you use:\n\nREDEFINE COMBOBOX ... COLOR ...\n\nthat color is used when the combobox has no focus (for a dropdownlist combobox as you are using). When focused, the used color is the system color for selected items (right click on the desktop, properties, appareance, selected items).", "time": "09:12", "topic": "Changing Foreground and Background Colors of ComboBox", "username": "Antonio Linares" } ]
Changing Foreground and Background Colors of ComboBox
[ { "date": "2006-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok - I think I understand.\n\nBut - are Gets handled the same way i.e. when focused they use the system colors or is it just the ComboBox that works this way?\n\nI have no problem with Gets and Says.\n\nRegards,\n\nDale.", "time": "10:02", "topic": "Changing Foreground and Background Colors of ComboBox", "username": "dpaterso" } ]
Changing Foreground and Background Colors of ComboBox
[ { "date": "2006-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Dale,\n\nIt is a combobox specific Windows behavior.", "time": "10:23", "topic": "Changing Foreground and Background Colors of ComboBox", "username": "Antonio Linares" } ]
Changing Foreground and Background Colors of ComboBox
[ { "date": "2012-02-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nis it possible to release a painted Logo using [color=#FF0000:2h7gf54u]ABpaint [/color:2h7gf54u]\nwithout repainting the Background before selecting a new Logo ?\n\n[img:2h7gf54u]http&#58;//www&#46;pflegeplus&#46;com/pictures/logo11&#46;jpg[/img:2h7gf54u]\n\n[img:2h7gf54u]http&#58;//www&#46;pflegeplus&#46;com/pictures/logo12&#46;jpg[/img:2h7gf54u]\n\nWithout repainting the Background, it is not possible to replace the old Logo.\nThe new selected Logo is shown on Top of the 1. Logo :\n\n[img:2h7gf54u]http&#58;//www&#46;pflegeplus&#46;com/pictures/logo13&#46;jpg[/img:2h7gf54u]\n\nworks with repainting the Background :\n\n[code=fw:2h7gf54u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />@ nSHeight - <span style=\"color: #000000;\">255</span>, nSWidth - <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">BTNBMP</span> oWBtn3 <span style=\"color: #0000ff;\">OF</span> oWnd ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">90</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #000000;\">2007</span> ;<br />NOBORDER ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" &Logo\"</span> + CRLF + <span style=\"color: #ff0000;\">\"Select\"</span> ;<br />FILENAME c_path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\I</span>mages<span style=\"color: #000000;\">\\P</span>review.Bmp\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span>  <span style=\"color: #000000;\">&#40;</span>  cFilter := <span style=\"color: #ff0000;\">\"BMP (*.bmp)|*.bmp|\"</span>, ;<br />cNewBITM := cGetFile32<span style=\"color: #000000;\">&#40;</span> cFilter,<span style=\"color: #ff0000;\">\"Select a Logo\"</span> ,,  <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span> + CurDir()+ \"</span>\\<span style=\"color: #0000ff;\">Images</span><span style=\"color: #ff0000;\">\" ), ;<br />IIF( EMPTY( cNewBITM ), MsgAlert( \"</span>No file selected !<span style=\"color: #ff0000;\">\",\"</span>ATTENTION<span style=\"color: #ff0000;\">\" ), ;<br />( cWLogo := cFileNoPath( cNewBITM ), LOGO() ) ) ) ;              <br />FONT oFootFont ;<br />TOP<br />oWBtn3:lTransparent := .t.   <br />oWBtn3:cToolTip =  { \"</span>Logo <span style=\"color: #ff0000;\">\" + CRLF + \"</span>Selection<span style=\"color: #ff0000;\">\",\"</span>LOGO<span style=\"color: #ff0000;\">\", 1, CLR_BLACK, 14089979 }<br />oWBtn3:SetColor( 0, )<br />...<br />...<br />ACTIVATE WINDOW oWnd MAXIMIZED ;<br />ON INIT W_BACKGRD( oWnd, nWStyle, lWDirect, nWColorF, nWColorB, nWGradPos, cWBrush, cWImage ) ;<br />ON PAINT LOGO()<br /><br />SET _3DLOOK OFF<br />oHeadFont:End()<br />oFootFont:End()<br />oBrwFont:End()<br />oDataFont:End()<br /><br />RETURN NIL<br /><br />// ----------------------<br /><br />FUNCTION LOGO()<br />LOCAL hDC, oAlpha <br /><br />hDC := oWnd:GetDC<br /><br />DEFINE BITMAP oAlpha FILENAME c_Path + \"</span>\\<span style=\"color: #0000ff;\">Images</span>\\<span style=\"color: #ff0000;\">\" + cWLogo<br />ABPaint( hDC, 200, 200, oAlpha:hBitmap, 255 ) <br />oAlpha:End()<br />ReleaseDC(hDC)<br /><br />RETURN NIL<br /></span></div>[/code:2h7gf54u]\n\nAnother Solution with [color=#FF0000:2h7gf54u]TTitle[/color:2h7gf54u] :\n\n[img:2h7gf54u]http&#58;//www&#46;pflegeplus&#46;com/pictures/logo14&#46;jpg[/img:2h7gf54u]\n\n[code=fw:2h7gf54u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> LOGO2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oAlpha<br /><br /><span style=\"color: #B900B9;\">// get Image-size</span><br /><span style=\"color: #B900B9;\">// -------------------</span><br /><span style=\"color: #0000ff;\">DEFINE</span> BITMAP oAlpha FILENAME c_Path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\I</span>mages<span style=\"color: #000000;\">\\\"</span> + cWLogo<br />nWidth := oAlpha:nWidth<br />nHeight := oAlpha:nHeight<br />oAlpha:End()<br /><br />// Optional REFLEX, ANIMA LEVEL and ACTION<br />// without REFLEX => @  5, 5 TITLE oLogo size nWidth + 10, nHeight + 10 of oWnd<br /> <br />@  5, 5 TITLE oLogo size nWidth + 10, nHeight + nHeight + 10 of oWnd TRANSPARENT  NOBORDER  SHADOWSIZE 0 UPDATE<br />@  5, 5 TITLEIMG OF oLogo BITMAP c_path + \"</span>\\<span style=\"color: #0000ff;\">Images</span>\\<span style=\"color: #ff0000;\">\" + cWLogo  SIZE nWidth, nHeight REFLEX TRANSPARENT ANIMA LEVEL 255<br /><br />RETURN NIL<br /></span></div>[/code:2h7gf54u]\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "01:40", "topic": "Changing Logos at Runtime using ABPaint ?", "username": "ukoenig" } ]
Changing Logos at Runtime using ABPaint ?
[ { "date": "2012-02-14", "forum": "FiveWin for Harbour/xHarbour", "text": "A complete LOGO-editor is included now testing any Logo on any Window-brush.\nFrom TSelect < [color=#0000FF:26x684sw]LOGO-painter [/color:26x684sw]> You can switch between different Tests.\n\n1. Testing Window-brush [color=#FF0000:26x684sw]without Logo[/color:26x684sw]\n2. Testing Logo using [color=#FF0000:26x684sw]ABPaint[/color:26x684sw]\n3. Testing Logo using [color=#FF0000:26x684sw]TTitle[/color:26x684sw]\n4. Testing Logo using [color=#FF0000:26x684sw]TTitle with REFLEX[/color:26x684sw]\n5. Adding Action on [color=#FF0000:26x684sw]TTitle-image-click[/color:26x684sw]\n\nWith a Logo using [color=#FF0000:26x684sw]TTitle[/color:26x684sw], You will have a Action on Image-click, to Include a Info of You Company.\n \nA Sample could be a TRAVEL-AGENCY.\n\n[img:26x684sw]http&#58;//www&#46;pflegeplus&#46;com/pictures/logo15&#46;jpg[/img:26x684sw]\n\nUsing TTile with REFLEX\n\n[img:26x684sw]http&#58;//www&#46;pflegeplus&#46;com/pictures/logo16&#46;jpg[/img:26x684sw]\n\nCompany-info on Image-action :\n\n[img:26x684sw]http&#58;//www&#46;pflegeplus&#46;com/pictures/logo17&#46;jpg[/img:26x684sw]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "16:24", "topic": "Changing Logos at Runtime using ABPaint ?", "username": "ukoenig" } ]
Changing Logos at Runtime using ABPaint ?
[ { "date": "2012-02-29", "forum": "FiveWin for Harbour/xHarbour", "text": "I define the main window of my app as follows:\n\n[code=fw:1wrar49j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> Win_Main <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">600</span>, <span style=\"color: #000000;\">800</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">'Application name'</span> <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">MENU</span> mainmenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />...<br />...<br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> Win_Main <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> login<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">VALID</span> lExitAllowed<br />&nbsp;</div>[/code:1wrar49j] \n\nThe user then logs in and I have a variable: cUsername\n\nI would now like to change the Win_main Title to cUsername + ' Application name'\n\nI've tried this after the login:\n\n hMainWnd := Win_Main:hWnd\n SetProp( hMainWnd, \"Title\", cUsername + ' Application name')\n Win_Main:Refresh()\n\nAnd it gives an error.\n\nThanks in advance.\n\nOllie.", "time": "04:10", "topic": "Changing Main Window Title", "username": "Ollie" } ]
Changing Main Window Title
[ { "date": "2012-02-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Did you try\n\n[code=fw:3cm1s7sr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">cTitle</span>:=<span style=\"color: #ff0000;\">\"Changed the Title to FiveWin\"</span></div>[/code:3cm1s7sr]\n\nHere is a sample code\n\n[code=fw:3cm1s7sr]<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: #B900B9;\">//---------------//</span><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> oWnd<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">600</span>, <span style=\"color: #000000;\">800</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">'Application name'</span> <span style=\"color: #0000ff;\">MDI</span> <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> Login<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">//-----------------//</span><br /><span style=\"color: #00C800;\">Function</span> Login<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> oWnd2,oBtn<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd2 <span style=\"color: #0000ff;\">OF</span> WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Login\"</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; @<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Change Title\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">50</span> <span style=\"color: #0000ff;\">ACTION</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#40;</span> WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">cTitle</span>:=<span style=\"color: #ff0000;\">\"Changed the Title to FiveWin\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd2<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:3cm1s7sr]\n\nRegards\n[b:3cm1s7sr]Anser[/b:3cm1s7sr]", "time": "05:15", "topic": "Changing Main Window Title", "username": "anserkk" } ]
Changing Main Window Title
[ { "date": "2012-02-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Perfect. Thanks. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "05:41", "topic": "Changing Main Window Title", "username": "Ollie" } ]
Changing Main Window Title
[ { "date": "2010-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nwhen opening a mdi-child I'd like to change the appearance of my ribbon-menu.\nI try to redefine my ribbon-menu, but when the menu is being painted, it doesn't look right. A half button appears, but without any functionality.\n\nIs there a malfunction in painting a new ribbon? Or won't this approach work at all?\n\nThis is my source code:\n[code=fw:1a79ut7x]<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;\">\"ribbon.CH\"</span><br /><br /><span style=\"color: #00C800;\">static</span> oWnd, oRb<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">42</span>, <span style=\"color: #000000;\">105</span> ;<br />      <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"This is a MDI enviroment\"</span> <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">VSCROLL</span><br /><br />    oWnd:<span style=\"color: #000000;\">bGotFocus</span> := <span style=\"color: #000000;\">&#123;</span>|| oRb := <span style=\"color: #00C800;\">nil</span>, ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    oWnd:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span>|| oRb := <span style=\"color: #00C800;\">nil</span>, ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #B900B9;\">// First MDI-Child</span><br /><span style=\"color: #00C800;\">function</span> Create1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWndChild, oIcon<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />    <span style=\"color: #B900B9;\">// Build the Ribbon for \"MDI1\"</span><br />   oWndChild:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    oWndChild:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">// Second MDI-Child</span><br /><span style=\"color: #00C800;\">function</span> Create2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWndChild, oIcon<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />    <span style=\"color: #B900B9;\">// Build the Ribbon for \"MDI2\"</span><br />   oWndChild:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    oWndChild:<span style=\"color: #000000;\">bInit</span>  = <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Ribbon_Menu<span style=\"color: #000000;\">&#40;</span>cWindow<span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">local</span> oGr1, oGr2<br />    <span style=\"color: #00C800;\">local</span> oBackBtn, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><br />    <span style=\"color: #00C800;\">local</span> oBackstage<br />    <span style=\"color: #00C800;\">local</span> aClrMenu1 := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">69</span>, <span style=\"color: #000000;\">124</span>, <span style=\"color: #000000;\">188</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">93</span>, <span style=\"color: #000000;\">171</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">64</span>, <span style=\"color: #000000;\">136</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">56</span>, <span style=\"color: #000000;\">135</span>, <span style=\"color: #000000;\">191</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">local</span> aClrMenu2 := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">123</span>, <span style=\"color: #000000;\">178</span>, <span style=\"color: #000000;\">236</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">71</span>, <span style=\"color: #000000;\">126</span>, <span style=\"color: #000000;\">205</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">17</span>, <span style=\"color: #000000;\">78</span>, <span style=\"color: #000000;\">175</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />    <span style=\"color: #00C800;\">default</span> cWindow := <span style=\"color: #ff0000;\">\"\"</span><br />    oRb := <span style=\"color: #00C800;\">nil</span><br />    oRb := TRibbonBar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>oWnd, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Folder 1\"</span>,<span style=\"color: #ff0000;\">\"Folder 2\"</span><span style=\"color: #000000;\">&#125;</span>, ,,,<span style=\"color: #000000;\">125</span>,<span style=\"color: #000000;\">26</span><span style=\"color: #000000;\">&#41;</span><br />   oRb:<span style=\"color: #000000;\">nLeftMargin</span> = <span style=\"color: #000000;\">85</span> <span style=\"color: #B900B9;\">//97</span><br /><br />   oBackBtn = TRBtn<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #ff0000;\">\"./../bitmaps/rbnmenu.bmp\"</span>, <span style=\"color: #000000;\">&#123;</span> || oRB:<span style=\"color: #000000;\">Backstage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, oRB,;<br />        ,,,,,, .T., .T.,,,,,, <span style=\"color: #B900B9;\">/*\"POPUP\"*/</span> , oBackstage,,,,,,,,,,,,, aClrMenu1, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">172</span>, <span style=\"color: #000000;\">215</span> <span style=\"color: #000000;\">&#41;</span>,;<br />      nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">65</span>, <span style=\"color: #000000;\">106</span>, <span style=\"color: #000000;\">189</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    ADD GROUP oGr1 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group1\"</span> WIDTH <span style=\"color: #000000;\">140</span><br />        @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span>   ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Window 1\"</span>    BITMAP <span style=\"color: #ff0000;\">\"\"</span>       GROUP oGr1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> Create1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span>  ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Window 2\"</span>    BITMAP <span style=\"color: #ff0000;\">\"\"</span>       GROUP oGr1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> Create2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #B900B9;\">// Special Ribbon-Menu for \"MDI1\"</span><br />    <span style=\"color: #00C800;\">IF</span> cWindow = <span style=\"color: #ff0000;\">\"mdi1\"</span><br />        ADD GROUP oGr2 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group3b\"</span> WIDTH <span style=\"color: #000000;\">80</span><br />            @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span>   ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (1)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP oGr2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1 button\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #B900B9;\">// Special Ribbon-Menu for \"MDI2\"</span><br />    ELSEIF cWindow = <span style=\"color: #ff0000;\">\"mdi2\"</span><br />        ADD GROUP oGr2 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group3c\"</span> WIDTH <span style=\"color: #000000;\">140</span><br />            @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span>   ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (2)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP oGr2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button1\"</span><span style=\"color: #000000;\">&#41;</span><br />            @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span>  ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (2)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP oGr2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button2\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">ENDIF</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> BACKSTAGE oBackstage MAINWIDTH <span style=\"color: #000000;\">800</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> BSSELECT <span style=\"color: #0000ff;\">OF</span> oBackstage <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test1\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Test1\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> BSSELECT <span style=\"color: #0000ff;\">OF</span> oBackstage <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test2\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Test2\"</span><span style=\"color: #000000;\">&#41;</span><br />    SET BACKSTAGE oBackstage <span style=\"color: #0000ff;\">TO</span> oRb<br /><br />    oRb:<span style=\"color: #000000;\">CalcPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oRb:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />procedure AppSys  <span style=\"color: #B900B9;\">// XBase++ requirements</span><br /><span style=\"color: #00C800;\">return</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:1a79ut7x]", "time": "10:17", "topic": "Changing Ribbon on opening a MDI-Child", "username": "gkuhnert" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "This is how it looks on start of the program:\n\n[img:ym9jy1x6]http&#58;//www&#46;ctosoftware&#46;de/home/files/screen3&#46;jpg[/img:ym9jy1x6]\n\nAnd this how it looks after opening the first mdichild:\n\n[img:ym9jy1x6]http&#58;//www&#46;ctosoftware&#46;de/home/files/screen2&#46;jpg[/img:ym9jy1x6]", "time": "14:10", "topic": "Changing Ribbon on opening a MDI-Child", "username": "gkuhnert" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Gilbert,\n\nYou were not properly destroying the previously created RibbonBar (so a new one was created on top of the previous one, again and again), also the RibbonBar was using a wrong width.\n\nYour example, modified this way, seems to be working fine <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nribbon3.prg\n[code=fw:236fywkf]<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;\">\"ribbon.CH\"</span><br /><br /><span style=\"color: #00C800;\">static</span> oWnd, oRb<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">42</span>, <span style=\"color: #000000;\">105</span> ;<br />      <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"This is a MDI enviroment\"</span> <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">VSCROLL</span><br /><br />    oWnd:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #B900B9;\">// First MDI-Child</span><br /><span style=\"color: #00C800;\">function</span> Create1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWndChild, oIcon<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />   <span style=\"color: #B900B9;\">// Build the Ribbon for \"MDI1\"</span><br />   oWndChild:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   oWndChild:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild ;<br />      <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">bGotFocus</span> := <span style=\"color: #00C800;\">nil</span>, ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />      <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">// Second MDI-Child</span><br /><span style=\"color: #00C800;\">function</span> Create2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWndChild, oIcon<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br />   <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />   <span style=\"color: #B900B9;\">// Build the Ribbon for \"MDI2\"</span><br />   oWndChild:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   oWndChild:<span style=\"color: #000000;\">bInit</span>  = <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild ;<br />      <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">bGotFocus</span> := <span style=\"color: #00C800;\">nil</span>, ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />      <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Ribbon_Menu<span style=\"color: #000000;\">&#40;</span>cWindow<span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">local</span> oGr1, oGr2<br />    <span style=\"color: #00C800;\">local</span> oBackBtn, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><br />    <span style=\"color: #00C800;\">local</span> oBackstage<br />    <span style=\"color: #00C800;\">local</span> aClrMenu1 := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">69</span>, <span style=\"color: #000000;\">124</span>, <span style=\"color: #000000;\">188</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">93</span>, <span style=\"color: #000000;\">171</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">64</span>, <span style=\"color: #000000;\">136</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">56</span>, <span style=\"color: #000000;\">135</span>, <span style=\"color: #000000;\">191</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">local</span> aClrMenu2 := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">123</span>, <span style=\"color: #000000;\">178</span>, <span style=\"color: #000000;\">236</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">71</span>, <span style=\"color: #000000;\">126</span>, <span style=\"color: #000000;\">205</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">17</span>, <span style=\"color: #000000;\">78</span>, <span style=\"color: #000000;\">175</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />    <span style=\"color: #00C800;\">default</span> cWindow := <span style=\"color: #ff0000;\">\"\"</span><br />    <br />    <span style=\"color: #00C800;\">if</span> oRb != <span style=\"color: #00C800;\">nil</span><br />       oRb:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       oRB = <span style=\"color: #00C800;\">nil</span><br />    <span style=\"color: #00C800;\">endif</span><br />       <br />    oRb := TRibbonBar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>oWnd, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Folder 1\"</span>,<span style=\"color: #ff0000;\">\"Folder 2\"</span><span style=\"color: #000000;\">&#125;</span>, ,, oWnd:<span style=\"color: #000000;\">nWidth</span>, <span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">26</span> <span style=\"color: #000000;\">&#41;</span><br />    oRb:<span style=\"color: #000000;\">nLeftMargin</span> = <span style=\"color: #000000;\">85</span><br />    oRb:<span style=\"color: #000000;\">CalcPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oBackBtn = TRBtn<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #ff0000;\">\"./../bitmaps/rbnmenu.bmp\"</span>, <span style=\"color: #000000;\">&#123;</span> || oRB:<span style=\"color: #000000;\">Backstage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, oRB,;<br />        ,,,,,, .T., .T.,,,,,, <span style=\"color: #B900B9;\">/*\"POPUP\"*/</span> , oBackstage,,,,,,,,,,,,, aClrMenu1, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">172</span>, <span style=\"color: #000000;\">215</span> <span style=\"color: #000000;\">&#41;</span>,;<br />      nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">65</span>, <span style=\"color: #000000;\">106</span>, <span style=\"color: #000000;\">189</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    ADD GROUP oGr1 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group1\"</span> WIDTH <span style=\"color: #000000;\">140</span><br />        @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span>   ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Window 1\"</span>    BITMAP <span style=\"color: #ff0000;\">\"\"</span>       GROUP oGr1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> Create1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span>  ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Window 2\"</span>    BITMAP <span style=\"color: #ff0000;\">\"\"</span>       GROUP oGr1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> Create2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #B900B9;\">// Special Ribbon-Menu for \"MDI1\"</span><br />    <span style=\"color: #00C800;\">IF</span> cWindow = <span style=\"color: #ff0000;\">\"mdi1\"</span><br />        ADD GROUP oGr2 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group3b\"</span> WIDTH <span style=\"color: #000000;\">80</span><br />            @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span>   ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (1)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP oGr2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1 button\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #B900B9;\">// Special Ribbon-Menu for \"MDI2\"</span><br />    ELSEIF cWindow = <span style=\"color: #ff0000;\">\"mdi2\"</span><br />        ADD GROUP oGr2 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group3c\"</span> WIDTH <span style=\"color: #000000;\">140</span><br />            @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span>   ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (2)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP oGr2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button1\"</span><span style=\"color: #000000;\">&#41;</span><br />            @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span>  ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (2)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP oGr2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button2\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">ENDIF</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> BACKSTAGE oBackstage MAINWIDTH <span style=\"color: #000000;\">800</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> BSSELECT <span style=\"color: #0000ff;\">OF</span> oBackstage <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test1\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Test1\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> BSSELECT <span style=\"color: #0000ff;\">OF</span> oBackstage <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test2\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Test2\"</span><span style=\"color: #000000;\">&#41;</span><br />    SET BACKSTAGE oBackstage <span style=\"color: #0000ff;\">TO</span> oRb<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:236fywkf]\nAnyhow, if you just want to change some groups, it should be better not to the destroy the RibbonBar. Instead of that, just remove the no longer needed groups and add the new ones. That should avoid flickering.", "time": "17:18", "topic": "Changing Ribbon on opening a MDI-Child", "username": "Antonio Linares" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "screenshot:\n\n[img:1ycb8lj3]http&#58;//wiki&#46;fivetechsoft&#46;com/lib/exe/fetch&#46;php?cache=cache&w=793&h=485&media=ribbon3&#46;png[/img:1ycb8lj3]", "time": "22:12", "topic": "Changing Ribbon on opening a MDI-Child", "username": "Antonio Linares" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Removing the top pulldown menu:\n[code=fw:1750n1ta]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   ...<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">42</span>, <span style=\"color: #000000;\">105</span> ;<br />      <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"This is a MDI enviroment\"</span> <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">VSCROLL</span><br /><br />   oWnd:<span style=\"color: #000000;\">oMenu</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   ...<br /> </div>[/code:1750n1ta]", "time": "22:21", "topic": "Changing Ribbon on opening a MDI-Child", "username": "Antonio Linares" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nthat looks terrific, just what I needed. I'll try it as soon as I'm in the office on monday. Thank you very much! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "12:31", "topic": "Changing Ribbon on opening a MDI-Child", "username": "gkuhnert" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\n[quote=\"Antonio Linares\":241i6hsy]\nAnyhow, if you just want to change some groups, it should be better not to the destroy the RibbonBar. Instead of that, just remove the no longer needed groups and add the new ones. That should avoid flickering.[/quote:241i6hsy]\n\nHow do I properly remove no longer needed groups?\nmy goal: only the rbgroup that belongs to the mdi child with focus should be visible (together with some standard-rbgroups of course).\n\nIt seems following calls won't work:\n[code=fw:241i6hsy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oGroup1:<span style=\"color: #000000;\">Destroy</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oGroup1 := <span style=\"color: #00C800;\">nil</span></div>[/code:241i6hsy]\n\nComplete example:\n[code=fw:241i6hsy]<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;\">\"ribbon.CH\"</span><br /><br /><span style=\"color: #00C800;\">static</span> oWnd, oRb<br /><span style=\"color: #00C800;\">static</span> osGroup1, osGroup2<br /><span style=\"color: #00C800;\">static</span> oWndChild1, oWndChild2<br /><br /><span style=\"color: #B900B9;\">// Main Function ---------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">42</span>, <span style=\"color: #000000;\">105</span> ;<br />      <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"This is a MDI enviroment\"</span> <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">VSCROLL</span><br /><br />   oWnd:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span>|| ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #B900B9;\">// MDI-Children ------------------------------------------------------ //</span><br /><span style=\"color: #00C800;\">function</span> Create1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oIcon<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild1 <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />   <span style=\"color: #B900B9;\">// Build the Ribbon for \"MDI1\"</span><br />   <span style=\"color: #B900B9;\">//oWndChild1:bGotFocus  = {|| AddGroup(1) }</span><br />   oWndChild1:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span>|| AddGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #B900B9;\">//oWndChild1:bLostFocus  = {|| RemoveGroup(1) }</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild1 ;<br />      <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oWndChild1:<span style=\"color: #000000;\">bGotFocus</span> := <span style=\"color: #00C800;\">nil</span>, RemoveGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">/* ribbon_menu() */</span> , .T. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">function</span> Create2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oIcon<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild2 <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />   <span style=\"color: #B900B9;\">// Build the Ribbon for \"MDI2\"</span><br />   oWndChild2:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span>|| AddGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   oWndChild2:<span style=\"color: #000000;\">bInit</span>  = <span style=\"color: #000000;\">&#123;</span>|| AddGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   oWndChild2:<span style=\"color: #000000;\">bLostFocus</span>  = <span style=\"color: #000000;\">&#123;</span>|| RemoveGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild2 ;<br />      <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oWndChild2:<span style=\"color: #000000;\">bGotFocus</span> := <span style=\"color: #00C800;\">nil</span>, RemoveGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">/*ribbon_menu() */</span> , .T. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #B900B9;\">// Building the ribbon --------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">FUNCTION</span> Ribbon_Menu<span style=\"color: #000000;\">&#40;</span>cWindow<span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">local</span> oGr1, oGr2<br />    <span style=\"color: #00C800;\">local</span> oBackBtn, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><br />    <span style=\"color: #00C800;\">local</span> oBackstage<br />    <span style=\"color: #00C800;\">local</span> aClrMenu1 := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">69</span>, <span style=\"color: #000000;\">124</span>, <span style=\"color: #000000;\">188</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">93</span>, <span style=\"color: #000000;\">171</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">64</span>, <span style=\"color: #000000;\">136</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">56</span>, <span style=\"color: #000000;\">135</span>, <span style=\"color: #000000;\">191</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">local</span> aClrMenu2 := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">123</span>, <span style=\"color: #000000;\">178</span>, <span style=\"color: #000000;\">236</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">71</span>, <span style=\"color: #000000;\">126</span>, <span style=\"color: #000000;\">205</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">17</span>, <span style=\"color: #000000;\">78</span>, <span style=\"color: #000000;\">175</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />    <span style=\"color: #00C800;\">default</span> cWindow := <span style=\"color: #ff0000;\">\"\"</span><br /><br />    <span style=\"color: #00C800;\">if</span> oRb != <span style=\"color: #00C800;\">nil</span><br />       oRb:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       oRB = <span style=\"color: #00C800;\">nil</span><br />    <span style=\"color: #00C800;\">endif</span><br /><br />    oRb := TRibbonBar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>oWnd, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Folder 1\"</span>,<span style=\"color: #ff0000;\">\"Folder 2\"</span><span style=\"color: #000000;\">&#125;</span>, ,, oWnd:<span style=\"color: #000000;\">nWidth</span>, <span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">26</span> <span style=\"color: #000000;\">&#41;</span><br />    oRb:<span style=\"color: #000000;\">nLeftMargin</span> = <span style=\"color: #000000;\">85</span><br />    oRb:<span style=\"color: #000000;\">CalcPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   oBackBtn = TRBtn<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #ff0000;\">\"./../bitmaps/rbnmenu.bmp\"</span>, <span style=\"color: #000000;\">&#123;</span> || oRB:<span style=\"color: #000000;\">Backstage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, oRB,;<br />        ,,,,,, .T., .T.,,,,,, <span style=\"color: #B900B9;\">/*\"POPUP\"*/</span> , oBackstage,,,,,,,,,,,,, aClrMenu1, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">172</span>, <span style=\"color: #000000;\">215</span> <span style=\"color: #000000;\">&#41;</span>,;<br />      nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">65</span>, <span style=\"color: #000000;\">106</span>, <span style=\"color: #000000;\">189</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    ADD GROUP oGr1 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"GroupMain\"</span> WIDTH <span style=\"color: #000000;\">140</span><br />        @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span>   ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Window 1\"</span>    BITMAP <span style=\"color: #ff0000;\">\"\"</span>       GROUP oGr1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> Create1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span>  ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Window 2\"</span>    BITMAP <span style=\"color: #ff0000;\">\"\"</span>       GROUP oGr1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> Create2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> BACKSTAGE oBackstage MAINWIDTH <span style=\"color: #000000;\">800</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> BSSELECT <span style=\"color: #0000ff;\">OF</span> oBackstage <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test1\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Test1\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> BSSELECT <span style=\"color: #0000ff;\">OF</span> oBackstage <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test2\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Test2\"</span><span style=\"color: #000000;\">&#41;</span><br />    SET BACKSTAGE oBackstage <span style=\"color: #0000ff;\">TO</span> oRb<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #B900B9;\">// Adding and removing groups --------------------------------------------- //</span><br /><span style=\"color: #00C800;\">FUNCTION</span> AddGroup<span style=\"color: #000000;\">&#40;</span>nGroup<span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">IF</span> nGroup == <span style=\"color: #000000;\">1</span> .AND. osGroup1 == <span style=\"color: #00C800;\">nil</span><br />    ADD GROUP osGroup1 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group1\"</span> WIDTH <span style=\"color: #000000;\">140</span><br />          @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span>   ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (1)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP osGroup1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1 button1\"</span><span style=\"color: #000000;\">&#41;</span><br />       @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span>  ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (2)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP osGroup1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1 button2\"</span><span style=\"color: #000000;\">&#41;</span><br />    ELSEIF nGroup == <span style=\"color: #000000;\">2</span> .AND. osGroup2 == <span style=\"color: #00C800;\">nil</span><br />        ADD GROUP osGroup2 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group2\"</span> WIDTH <span style=\"color: #000000;\">200</span><br />          @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span>   ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (3)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP osGroup2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button1\"</span><span style=\"color: #000000;\">&#41;</span><br />       @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span>  ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (4)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP osGroup2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button2\"</span><span style=\"color: #000000;\">&#41;</span><br />            @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">135</span> ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (5)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span>    GROUP osGroup2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button3\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br /><br />    oRb:<span style=\"color: #000000;\">CalcPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oRb:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> RemoveGroup<span style=\"color: #000000;\">&#40;</span>nGroup<span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">IF</span> nGroup == <span style=\"color: #000000;\">1</span> .AND. osGroup1 != <span style=\"color: #00C800;\">nil</span><br />        osGroup1:<span style=\"color: #000000;\">Destroy</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        osGroup1 := <span style=\"color: #00C800;\">nil</span><br />    ELSEIF nGroup == <span style=\"color: #000000;\">2</span> .AND. osGroup2 != <span style=\"color: #00C800;\">nil</span><br />        osGroup2:<span style=\"color: #000000;\">Destroy</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        osGroup2 := <span style=\"color: #00C800;\">nil</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    oRb:<span style=\"color: #000000;\">CalcPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oRb:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:241i6hsy]", "time": "15:30", "topic": "Changing Ribbon on opening a MDI-Child", "username": "gkuhnert" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Gilbert,\n\nPlease try with oGroup1:End() instead of oGroup1:Destroy()\n\nMethod Destroy() usually should never be called directly. It is automatically called by Windows to clean no longer needed resources. Method End() starts the process to end and destroy an object.", "time": "18:31", "topic": "Changing Ribbon on opening a MDI-Child", "username": "Antonio Linares" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nthanks, with :end() is working. But now I've got a paint-problem:\nAt adding and removing the mdi-child I tried a oRb:Refresh() as well as a oRb:Paint() but I always loose the background. After resizing the main window It also seems that the background colors of the main group disappear as well.\n\nAfter opening the mdi-child:\n[img:14upgwfg]http&#58;//www&#46;ctosoftware&#46;de/home/files/mdi_2&#46;jpg[/img:14upgwfg]\n\nAfter closing the mdi-child:\n[img:14upgwfg]http&#58;//www&#46;ctosoftware&#46;de/home/files/mdi_3&#46;jpg[/img:14upgwfg]\n\nAfter resizing the main window:\n[img:14upgwfg]http&#58;//www&#46;ctosoftware&#46;de/home/files/mdi_4&#46;jpg[/img:14upgwfg]", "time": "11:14", "topic": "Changing Ribbon on opening a MDI-Child", "username": "gkuhnert" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Gilbert,\n\nPlease post your most recent example code so we try it here, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "12:47", "topic": "Changing Ribbon on opening a MDI-Child", "username": "Antonio Linares" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nhere the code:\n\n[code=fw:ajfyk6a5]<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;\">\"ribbon.CH\"</span><br /><br /><span style=\"color: #00C800;\">static</span> oWnd, oRb<br /><span style=\"color: #00C800;\">static</span> osGroup1, osGroup2<br /><span style=\"color: #00C800;\">static</span> oWndChild1, oWndChild2<br /><br /><span style=\"color: #B900B9;\">// Main Function ---------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">42</span>, <span style=\"color: #000000;\">105</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"This is a MDI enviroment\"</span> <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">VSCROLL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> ribbon_menu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #B900B9;\">// MDI-Children ------------------------------------------------------ //</span><br /><span style=\"color: #00C800;\">function</span> Create1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oIcon<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild1 <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Add the ribbongroup for \"MDI1\"</span><br />&nbsp; &nbsp;oWndChild1:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span>|| AddGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild1 ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oWndChild1:<span style=\"color: #000000;\">bGotFocus</span> := <span style=\"color: #00C800;\">nil</span>, RemoveGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">function</span> Create2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oIcon<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIcon <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"test\"</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild2 <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">ICON</span> oIcon<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Add the ribbongroup for \"MDI1\"</span><br />&nbsp; &nbsp;oWndChild2:<span style=\"color: #000000;\">bInit</span> &nbsp;= <span style=\"color: #000000;\">&#123;</span>|| AddGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild2 ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oWndChild2:<span style=\"color: #000000;\">bGotFocus</span> := <span style=\"color: #00C800;\">nil</span>, RemoveGroup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #B900B9;\">// Building the ribbon --------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">FUNCTION</span> Ribbon_Menu<span style=\"color: #000000;\">&#40;</span>cWindow<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> oGr1, oGr2<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> oBackBtn, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> oBackstage<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> aClrMenu1 := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">69</span>, <span style=\"color: #000000;\">124</span>, <span style=\"color: #000000;\">188</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">93</span>, <span style=\"color: #000000;\">171</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">64</span>, <span style=\"color: #000000;\">136</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">56</span>, <span style=\"color: #000000;\">135</span>, <span style=\"color: #000000;\">191</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> aClrMenu2 := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">123</span>, <span style=\"color: #000000;\">178</span>, <span style=\"color: #000000;\">236</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">71</span>, <span style=\"color: #000000;\">126</span>, <span style=\"color: #000000;\">205</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">17</span>, <span style=\"color: #000000;\">78</span>, <span style=\"color: #000000;\">175</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">default</span> cWindow := <span style=\"color: #ff0000;\">\"\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oRb != <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp;&nbsp;oRb:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oRB = <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;oRb := TRibbonBar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>oWnd, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Folder 1\"</span>,<span style=\"color: #ff0000;\">\"Folder 2\"</span><span style=\"color: #000000;\">&#125;</span>, ,, oWnd:<span style=\"color: #000000;\">nWidth</span>, <span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">26</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oRb:<span style=\"color: #000000;\">nLeftMargin</span> = <span style=\"color: #000000;\">85</span><br />&nbsp; &nbsp;oRb:<span style=\"color: #000000;\">CalcPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; oBackBtn = TRBtn<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #ff0000;\">\"./../bitmaps/rbnmenu.bmp\"</span>, <span style=\"color: #000000;\">&#123;</span> || oRB:<span style=\"color: #000000;\">Backstage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, oRB,;<br />&nbsp; &nbsp; &nbsp; &nbsp; ,,,,,, .T., .T.,,,,,, <span style=\"color: #B900B9;\">/*\"POPUP\"*/</span> , oBackstage,,,,,,,,,,,,, aClrMenu1, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">172</span>, <span style=\"color: #000000;\">215</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">65</span>, <span style=\"color: #000000;\">106</span>, <span style=\"color: #000000;\">189</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; ADD GROUP oGr1 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"GroupMain\"</span> WIDTH <span style=\"color: #000000;\">140</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> &nbsp; ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Window 1\"</span> &nbsp; &nbsp;BITMAP <span style=\"color: #ff0000;\">\"\"</span> &nbsp; &nbsp; &nbsp; GROUP oGr1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> Create1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span> &nbsp;ADD <span style=\"color: #0000ff;\">BUTTON</span> oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Window 2\"</span> &nbsp; &nbsp;BITMAP <span style=\"color: #ff0000;\">\"\"</span> &nbsp; &nbsp; &nbsp; GROUP oGr1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> Create2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> BACKSTAGE oBackstage MAINWIDTH <span style=\"color: #000000;\">800</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> BSSELECT <span style=\"color: #0000ff;\">OF</span> oBackstage <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test1\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Test1\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> BSSELECT <span style=\"color: #0000ff;\">OF</span> oBackstage <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test2\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Test2\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; SET BACKSTAGE oBackstage <span style=\"color: #0000ff;\">TO</span> oRb<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #B900B9;\">// Adding and removing groups --------------------------------------------- //</span><br /><span style=\"color: #00C800;\">FUNCTION</span> AddGroup<span style=\"color: #000000;\">&#40;</span>nGroup<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nGroup == <span style=\"color: #000000;\">1</span> .AND. osGroup1 == <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp;&nbsp;ADD GROUP osGroup1 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group1\"</span> WIDTH <span style=\"color: #000000;\">140</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> &nbsp; ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (1)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span> &nbsp; &nbsp;GROUP osGroup1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1 button1\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;&nbsp; &nbsp; @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span> &nbsp;ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (2)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span> &nbsp; &nbsp;GROUP osGroup1 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi1 button2\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; ELSEIF nGroup == <span style=\"color: #000000;\">2</span> .AND. osGroup2 == <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ADD GROUP osGroup2 RIBBON oRB <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Group2\"</span> WIDTH <span style=\"color: #000000;\">200</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> &nbsp; ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (3)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span> &nbsp; &nbsp;GROUP osGroup2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button1\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;&nbsp; &nbsp; @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">70</span> &nbsp;ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (4)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span> &nbsp; &nbsp;GROUP osGroup2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button2\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">135</span> ADD <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"MDI-button (5)\"</span> BITMAP <span style=\"color: #ff0000;\">\"\"</span> &nbsp; &nbsp;GROUP osGroup2 <span style=\"color: #0000ff;\">ROUND</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"mdi2 button3\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; oRb:<span style=\"color: #000000;\">CalcPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; oRb:<span style=\"color: #00C800;\">Display</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; oRb:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> RemoveGroup<span style=\"color: #000000;\">&#40;</span>nGroup<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nGroup == <span style=\"color: #000000;\">1</span> .AND. osGroup1 != <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; osGroup1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; osGroup1 := <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; ELSEIF nGroup == <span style=\"color: #000000;\">2</span> .AND. osGroup2 != <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; osGroup2:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; osGroup2 := <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; oRb:<span style=\"color: #000000;\">CalcPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; oRb:<span style=\"color: #00C800;\">Display</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; oRb:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:ajfyk6a5]", "time": "13:06", "topic": "Changing Ribbon on opening a MDI-Child", "username": "gkuhnert" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Gilbert,\n\nFixed. A required change was needed in Class TRibbonBar <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nWe email you a modified TRibbon.prg.\n\nWe will include these changes in FWH 10.7", "time": "13:44", "topic": "Changing Ribbon on opening a MDI-Child", "username": "Antonio Linares" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nthanks a lot for your quick support <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nNow it seems to be working just fine.\n\nCan I assume that this correction automatically will be included in the next build of fwh?", "time": "15:03", "topic": "Changing Ribbon on opening a MDI-Child", "username": "gkuhnert" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Gilbert,\n\nyes, I told you in my previous post <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "15:09", "topic": "Changing Ribbon on opening a MDI-Child", "username": "Antonio Linares" } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2013-08-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhat if I need to change the whole Ribbon for a new one with different groups and buttons.\nHow can I achieve this process ?\n\nThis looks really good, but in my case if I click on some app's module, all options at ribbon are different.\n\nThanks a lot", "time": "01:24", "topic": "Changing Ribbon on opening a MDI-Child", "username": "Raymundo Islas M." } ]
Changing Ribbon on opening a MDI-Child
[ { "date": "2010-08-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nHow to change the tab font in TFolderEx? (Not for aDialogs)\n\nI tried oFld:oFont:= ...... , but it gives an error.\n\nThanks,", "time": "14:56", "topic": "Changing Tab font in TFolderEx?", "username": "Horizon" } ]
Changing Tab font in TFolderEx?
[ { "date": "2010-08-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Horizont\n\nwe can not change tabs font (yet)", "time": "15:05", "topic": "Changing Tab font in TFolderEx?", "username": "Daniel Garcia-Gil" } ]
Changing Tab font in TFolderEx?
[ { "date": "2010-09-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Daniel,\n\nOk. Is there any plan to modify?", "time": "13:31", "topic": "Changing Tab font in TFolderEx?", "username": "Horizon" } ]
Changing Tab font in TFolderEx?
[ { "date": "2010-09-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes\n\nthe problem is the vertical tabs, isn't solve yet\n\nhorizontal tabs work perfectly", "time": "13:37", "topic": "Changing Tab font in TFolderEx?", "username": "Daniel Garcia-Gil" } ]
Changing Tab font in TFolderEx?
[ { "date": "2010-09-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI understand. As a matter of fact I need only horizontal tabs. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "13:59", "topic": "Changing Tab font in TFolderEx?", "username": "Horizon" } ]
Changing Tab font in TFolderEx?
[ { "date": "2012-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello, as in the subject...", "time": "09:15", "topic": "Changing Tab-text color on TRibbon?", "username": "byte-one" } ]
Changing Tab-text color on TRibbon?
[ { "date": "2012-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Günther,\nI think you have to change the class.\n\nGruß\nOtto\n\n\n[code=fw:2qsdcvvs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /> bPaintTxt  := <  | oSelf |<br />                    <span style=\"color: #00C800;\">local</span> hOldFont, nClrTxt, nOldClr, nMode<br />                    hOldFont  = SelectObject<span style=\"color: #000000;\">&#40;</span> hDCMem, oSelf:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">hFont</span>  <span style=\"color: #000000;\">&#41;</span><br />                    <span style=\"color: #00C800;\">if</span> ValType<span style=\"color: #000000;\">&#40;</span> oSelf:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span> nPrompt <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"N\"</span><br />                       nClrTxt = oSelf:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span> nPrompt <span style=\"color: #000000;\">&#93;</span><br />                    elseif ValType<span style=\"color: #000000;\">&#40;</span> oSelf:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span> nPrompt <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"B\"</span><br />                       nClrTxt = Eval<span style=\"color: #000000;\">&#40;</span> oSelf:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span> nPrompt <span style=\"color: #000000;\">&#93;</span>, oSelf <span style=\"color: #000000;\">&#41;</span><br />                    <span style=\"color: #00C800;\">else</span><br />                       nClrTxt = CLRTEXT<br />                    <span style=\"color: #00C800;\">endif</span><br />                    <span style=\"color: #00C800;\">if</span> nPrompt == oSelf:<span style=\"color: #000000;\">nStart</span><br />                       nClrTxt = CLR_WHITE<br />                    <span style=\"color: #00C800;\">endif</span><br />                    <br />                          <span style=\"color: #B900B9;\">//@Otto                     </span><br />                          <span style=\"color: #00C800;\">if</span>  nType = <span style=\"color: #000000;\">3</span><br />                              nClrTxt = CLR_GREEN<br />                          <span style=\"color: #00C800;\">endif</span><br />                          <span style=\"color: #B900B9;\">//@Otto </span><br />                      <br />                      nOldClr   = SetTextColor<span style=\"color: #000000;\">&#40;</span> hDCMem, <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oSelf:<span style=\"color: #000000;\">aEnable</span><span style=\"color: #000000;\">&#91;</span> nPrompt <span style=\"color: #000000;\">&#93;</span>, nClrTxt, GetSysColor<span style=\"color: #000000;\">&#40;</span> COLOR_GRAYTEXT <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />                   <br />                    nMode     = SetBkMode<span style=\"color: #000000;\">&#40;</span> hDCMem, TRANSPARENT <span style=\"color: #000000;\">&#41;</span><br />                    <br />                    <br />                    DrawText<span style=\"color: #000000;\">&#40;</span> hDCMem, oSelf:<span style=\"color: #000000;\">aPrompts</span><span style=\"color: #000000;\">&#91;</span> nPrompt <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#123;</span> nRow<span style=\"color: #000000;\">+2</span>, nCol, nRow + oSelf:<span style=\"color: #000000;\">nHeightFld</span><span style=\"color: #000000;\">+1</span>, nCol + oSelf:<span style=\"color: #000000;\">aSizes</span><span style=\"color: #000000;\">&#91;</span> nPrompt <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                                       nOr<span style=\"color: #000000;\">&#40;</span> DT_SINGLELINE, DT_VCENTER, DT_CENTER, DT_NOPREFIX <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />                    SetBkMode<span style=\"color: #000000;\">&#40;</span>hDCMem, nMode <span style=\"color: #000000;\">&#41;</span><br /><br />                    SetTextColor<span style=\"color: #000000;\">&#40;</span> hDCMem, nOldClr <span style=\"color: #000000;\">&#41;</span><br />                    SelectObject<span style=\"color: #000000;\">&#40;</span> hDCMem, hOldFont  <span style=\"color: #000000;\">&#41;</span><br />                    <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />                    ><br /> </div>[/code:2qsdcvvs]", "time": "11:00", "topic": "Changing Tab-text color on TRibbon?", "username": "Otto" } ]
Changing Tab-text color on TRibbon?
[ { "date": "2012-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Günther,\n\n[img:2vcycaxj]http&#58;//www&#46;pflegeplus&#46;com/pictures/ribbtxt1&#46;jpg[/img:2vcycaxj]\n\n[color=#0040FF:2vcycaxj]\noRibbon:aGradFld := {| nOpt | if( nOpt == oRibbon:nStart, { { 1, 16777215, 8293112 } },; \n { { 1, 8293112, 16777215 } } ) } // Tabcolor\noRibbon:nClrPaneRB := 14856016 // Background blue \noRibbon:aClrTabTxt[1] := 0 // a different Color for each prompt ( black )\noRibbon:aClrTabTxt[2] := 128 // ( red )\noRibbon:aClrTabTxt[3] := 65535 // ( yellow )\noRibbon:aClrTabTxt[4] := 4259584 // ( light green )\noRibbon:aClrTabTxt[5] := 8114941 // ( orange ) [/color:2vcycaxj]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "11:13", "topic": "Changing Tab-text color on TRibbon?", "username": "ukoenig" } ]
Changing Tab-text color on TRibbon?
[ { "date": "2012-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks all! Both variants are possible.", "time": "13:03", "topic": "Changing Tab-text color on TRibbon?", "username": "byte-one" } ]
Changing Tab-text color on TRibbon?
[ { "date": "2012-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Uwe,\n\nhow can you change hover text colour on ribbon if\n\n if nPrompt == oSelf:nStart\n nClrTxt = CLR_WHITE\n endif\nid inside the painting method.\n\nBest regards,\nOtto", "time": "13:29", "topic": "Changing Tab-text color on TRibbon?", "username": "Otto" } ]
Changing Tab-text color on TRibbon?
[ { "date": "2012-05-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Otto,\n\nit was a bit more complicated :\n\n[img:1ai7yww6]http&#58;//www&#46;pflegeplus&#46;com/pictures/ribbtext2&#46;jpg[/img:1ai7yww6]\n\n[code=fw:1ai7yww6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRibbon:<span style=\"color: #000000;\">nClrPaneRB</span> := <span style=\"color: #000000;\">16641734</span> <span style=\"color: #B900B9;\">// Background-Color</span><br />oRibbon:<span style=\"color: #000000;\">nTop</span> := <span style=\"color: #000000;\">25</span><br />oRibbon:<span style=\"color: #000000;\">nHeight</span> := <span style=\"color: #000000;\">200</span><br />oRibbon:<span style=\"color: #000000;\">nGroupSeparation</span> := <span style=\"color: #000000;\">20</span><br />oRibbon:<span style=\"color: #000000;\">oFont</span> := oFont <span style=\"color: #B900B9;\">// Tab-Fonts</span><br />oRibbon:<span style=\"color: #000000;\">nHeightFld</span> := <span style=\"color: #000000;\">30</span> <span style=\"color: #B900B9;\">// Folder-Tab--Height</span><br />oRibbon:<span style=\"color: #000000;\">nClrBoxSelIn</span> := <span style=\"color: #000000;\">32768</span><br />oRibbon:<span style=\"color: #000000;\">aGradFld</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span>| nOpt | <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> nOpt == oRibbon:<span style=\"color: #000000;\">nStart</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">16777215</span>, <span style=\"color: #000000;\">8293112</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>,; <span style=\"color: #B900B9;\">// Tabcolor</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, &nbsp;<span style=\"color: #000000;\">8293112</span>, <span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br />oRibbon:<span style=\"color: #000000;\">aGradOver</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">13873022</span>, <span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// Folder-Mouse-Focus</span><br />oRibbon:<span style=\"color: #000000;\">nClrPaneRB</span> := <span style=\"color: #000000;\">14856016</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Background blue </span><br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">16750487</span> <br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">7303167</span><br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">65535</span><br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">4259584</span> <br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">8114941</span> <br /><br />oRibbon:<span style=\"color: #000000;\">bMMoved</span> := <span style=\"color: #000000;\">&#123;</span> |nRow, nCol | n := oRibbon:<span style=\"color: #000000;\">nOverPrompt</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span>, ;<br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">16750487</span>, ; <br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">7303167</span>, ;<br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">65535</span>, ;<br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">4259584</span>, ; <br />oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">8114941</span>, ; <br />IIF<span style=\"color: #000000;\">&#40;</span> n = <span style=\"color: #000000;\">1</span>, oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span>, ; <br />IIF<span style=\"color: #000000;\">&#40;</span> n = <span style=\"color: #000000;\">2</span>, oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span>, ; <br />IIF<span style=\"color: #000000;\">&#40;</span> n = <span style=\"color: #000000;\">3</span>, oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span>, ; <br />IIF<span style=\"color: #000000;\">&#40;</span> n = <span style=\"color: #000000;\">4</span>, oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span>, ; <br />IIF<span style=\"color: #000000;\">&#40;</span> n = <span style=\"color: #000000;\">5</span>, oRibbon:<span style=\"color: #000000;\">aClrTabTxt</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span>, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span>, oRibbon:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br />&nbsp;</div>[/code:1ai7yww6]\n\nBest Regards\nUwe <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: -->", "time": "17:36", "topic": "Changing Tab-text color on TRibbon?", "username": "ukoenig" } ]
Changing Tab-text color on TRibbon?
[ { "date": "2015-09-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI want to change a Windows setting in my application.\n\nIt concerns this setting :\n[img:3s0yaw6p]http&#58;//ma-consult&#46;telenet&#46;be/knipsel&#46;jpg[/img:3s0yaw6p]\n\nI know that I have to logoff. That is no problem. I know how to do that.\n\nDoes anyone know how to establish this change?\n\nThanks a lot in advance for any help.", "time": "19:02", "topic": "Changing a Windows setting in a FWH-application", "username": "driessen" } ]
Changing a Windows setting in a FWH-application
[ { "date": "2015-09-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Michel\nTry changing the key\nHKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Assistance\\Client\\1.0\\Settings\\ZoomPercent\nAnd logoff", "time": "20:12", "topic": "Changing a Windows setting in a FWH-application", "username": "cnavarro" } ]
Changing a Windows setting in a FWH-application
[ { "date": "2015-09-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Christobal,\n\nUnfortunately, this doesn't work. I even don't have this item in the register. Not with 100 % and not with 125 %.", "time": "20:36", "topic": "Changing a Windows setting in a FWH-application", "username": "driessen" } ]
Changing a Windows setting in a FWH-application
[ { "date": "2015-09-02", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"driessen\":1sr2276s]Christobal,\n\nUnfortunately, this doesn't work. I even don't have this item in the register. Not with 100 % and not with 125 %.[/quote:1sr2276s]\n\nWhich version of Windows you use?", "time": "20:43", "topic": "Changing a Windows setting in a FWH-application", "username": "cnavarro" } ]
Changing a Windows setting in a FWH-application
[ { "date": "2015-09-02", "forum": "FiveWin for Harbour/xHarbour", "text": "I need it for Windows XP, Vista, 7 and 8(.1)", "time": "23:28", "topic": "Changing a Windows setting in a FWH-application", "username": "driessen" } ]
Changing a Windows setting in a FWH-application
[ { "date": "2015-09-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Christobal,\n\nI noticed that this key is the one containing the dpi.\n\nHKEY_CURRENT_USER\\Control Panel\\Desktop\\Windowmetrics\\AppliedDPI\n\nIt is a REG_DWORD key, containing the DPI hexadecimal.\n\nBut how can I read this value in a FWH-application?\n\nI don't have that much experience with the register.\n\nThank you.", "time": "11:47", "topic": "Changing a Windows setting in a FWH-application", "username": "driessen" } ]
Changing a Windows setting in a FWH-application
[ { "date": "2015-09-03", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:xet33uli]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#ifndef HKEY_CURRENT_USER<br />   <span style=\"color: #00D7D7;\">#define</span>  HKEY_CURRENT_USER       <span style=\"color: #000000;\">2147483649</span>        <span style=\"color: #B900B9;\">// 0x80000001</span><br />#endif<br /><br /><br />   <span style=\"color: #00C800;\">local</span> oReg<br /><br />   oReg:= TReg32<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> HKEY_CURRENT_USER, <span style=\"color: #ff0000;\">\"Control Panel<span style=\"color: #000000;\">\\D</span>esktop<span style=\"color: #000000;\">\\W</span>indowmetrics\"</span> <span style=\"color: #000000;\">&#41;</span><br />   ? oReg:<span style=\"color: #0000ff;\">Get</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AppliedDPI\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   oReg:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AppliedDPI\"</span>, nNewValue <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:xet33uli]", "time": "14:04", "topic": "Changing a Windows setting in a FWH-application", "username": "nageswaragunupudi" } ]
Changing a Windows setting in a FWH-application
[ { "date": "2015-09-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks a lot, Mr. Rao.", "time": "14:10", "topic": "Changing a Windows setting in a FWH-application", "username": "driessen" } ]
Changing a Windows setting in a FWH-application
[ { "date": "2009-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi all,\nI'm trying to change a get picture at runtime but unsuccessfully.\n\nIn this self-contained sample I have a get initialized with a euro picture (9999.99), \nthen pressing the \"Lire picture\" button I would like to change the picture in the 999999 format but it doesn't change.\n\nAny suggest ?\n\nThanks in advance.\n\nfunction Main()\n\n local oDlg, oGet, oBtn\n\n nTest:=0\n cPicture:=\"9999.99\"\n\n DEFINE DIALOG oDlg TITLE \"A simple GET\" ;\n FROM 2, 2 TO 13, 40\n\n @ 10, 10 GET oTEST1 VAR nTest SIZE 120, 13 pixel OF oDlg RIGHT PICTURE cPicture\n\n @ 3, 4 BUTTON oBtn PROMPT \"Euro picture\" SIZE 45, 12 OF oDlg ;\n ACTION ( cPicture:=\"9999.99\", oTest1:Refresh())\n\n @ 3, 14 BUTTON \"Lire picture\" SIZE 45, 12 OF oDlg ;\n ACTION ( cPicture:=\"999999\", oTest1:Refresh())\n\n ACTIVATE DIALOG oDlg CENTERED\n\nreturn nil", "time": "10:45", "topic": "Changing a get picture at runtime", "username": "Marco Turco" } ]
Changing a get picture at runtime
[ { "date": "2009-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Ciao,\nIo ho risolto così\n\n@10,1.5 GET oImpdef VAR cImpdef OF oDlg picture if(euro = 1,\"@E 99,999,999.99\",\"@E 9,999,999,999\") valid somma() SIZE 50,10\n\nStefano", "time": "11:21", "topic": "Changing a get picture at runtime", "username": "stefano" } ]
Changing a get picture at runtime
[ { "date": "2009-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Oppure\n\n[code:3e07d1c6]ACTION ( oTest1&#58;oGet&#58;Picture&#58;=\"999999\", oTest1&#58;Refresh())[/code:3e07d1c6]\n\nEMG", "time": "11:28", "topic": "Changing a get picture at runtime", "username": "Enrico Maria Giordano" } ]
Changing a get picture at runtime
[ { "date": "2009-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Enrico Maria Giordano\":1s31hrpw]Oppure\n\n[code:1s31hrpw]ACTION ( oTest1&#58;oGet&#58;Picture&#58;=\"999999\", oTest1&#58;cPicture&#58;=\"999999\", oTest1&#58;Refresh())[/code:1s31hrpw]\n <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \nEMG[/quote:1s31hrpw]", "time": "12:44", "topic": "Changing a get picture at runtime", "username": "sambomb" } ]
Changing a get picture at runtime
[ { "date": "2009-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Please, take the time to try the suggestions. There's no need to assign cPicture property.\n\nEMG", "time": "13:59", "topic": "Changing a get picture at runtime", "username": "Enrico Maria Giordano" } ]
Changing a get picture at runtime
[ { "date": "2009-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Enrico,\nyour solution give me an \"message not found\" error in the tget class.\nThe only running solution I have found is the following but there is a problem with the picture refresh. The picture change only when I select the get with the mouse.\n\nAny ideas ?\n\n---------\n\nFunction Main()\n local oDlg, oGet, oBtn\n nTest:=0\n cPicture:=\"9999.99\"\n\n DEFINE DIALOG oDlg TITLE \"A simple GET\" ;\n FROM 2, 2 TO 13, 40\n\n @ 10, 10 GET oTEST1 VAR nTest SIZE 120, 13 pixel OF oDlg RIGHT PICTURE cPicture\n\n @ 3, 4 BUTTON oBtn PROMPT \"Euro picture\" SIZE 45, 12 OF oDlg ;\n ACTION ( oTest1:cPicture:=\"9999.99\", oTest1:Refresh())\n\n @ 3, 14 BUTTON \"Lire picture\" SIZE 45, 12 OF oDlg ;\n ACTION ( oTest1:cPicture:=\"999999\", oTest1:Refresh())\n\n ACTIVATE DIALOG oDlg CENTERED\n\nreturn nil", "time": "23:08", "topic": "Changing a get picture at runtime", "username": "Marco Turco" } ]
Changing a get picture at runtime
[ { "date": "2009-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "The following sample works fine here:\n\n[code:20xa6ywu]#include \"Fivewin&#46;ch\"\n\n\nfunction Main()\n\nlocal oDlg, oBtn, nTest, cPicture, oTest1\n\nnTest&#58;=0\ncPicture&#58;=\"9999&#46;99\"\n\nDEFINE DIALOG oDlg TITLE \"A simple GET\" ;\nFROM 2, 2 TO 13, 40\n\n@ 10, 10 GET oTEST1 VAR nTest SIZE 120, 13 pixel OF oDlg RIGHT PICTURE cPicture\n\n@ 3, 4 BUTTON oBtn PROMPT \"Euro picture\" SIZE 45, 12 OF oDlg ;\nACTION ( oTest1&#58;oGet&#58;Picture&#58;=\"9999&#46;99\", oTest1&#58;Refresh())\n\n@ 3, 14 BUTTON \"Lire picture\" SIZE 45, 12 OF oDlg ;\nACTION ( oTest1&#58;oGet&#58;Picture&#58;=\"999999\", oTest1&#58;Refresh())\n\nACTIVATE DIALOG oDlg CENTERED\n\nreturn nil[/code:20xa6ywu]\n\nEMG", "time": "23:58", "topic": "Changing a get picture at runtime", "username": "Enrico Maria Giordano" } ]
Changing a get picture at runtime
[ { "date": "2009-01-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes. It runs fine.\n\nThanks a lot.", "time": "19:46", "topic": "Changing a get picture at runtime", "username": "Marco Turco" } ]
Changing a get picture at runtime
[ { "date": "2010-09-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Guys:\n\nHow can I change an xBrowse column header after the xBrowse has been created ? For example, when the user left clicks on the column header, the browse changes index order and I want to display some sort of column header indicator as to specify on which field order the xBrowse is displaying the records. Thank you.", "time": "21:00", "topic": "Changing an xBrowse column header.", "username": "HunterEC" } ]
Changing an xBrowse column header.
[ { "date": "2010-09-01", "forum": "FiveWin for Harbour/xHarbour", "text": "XBrowse automatically shows an UpArrow or DownArrow on the column header that is sorted. That is the standard indication which column is sorted and whether sorted in ascending or descending order.\n\nNormally it should not necessary for the programmer to do anything to show this indication.\n\nIn any case you can change the column header at runtime with this code:\noCol:cHeader := \"New Name\"\noBrw:Refresh()", "time": "22:27", "topic": "Changing an xBrowse column header.", "username": "nageswaragunupudi" } ]
Changing an xBrowse column header.
[ { "date": "2010-09-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Nageswaragunupudi:\n\nMy xBrowse does not show the arrows that you mentioned. What I'm doing wrong ? Thank you.", "time": "07:09", "topic": "Changing an xBrowse column header.", "username": "HunterEC" } ]
Changing an xBrowse column header.
[ { "date": "2013-09-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nOk, how about changing the bitmap on a TbnBmp object at runtime?\n\nHere is my code, but it isn't changing the bitmap. \n\n[code=fw:3e2c364g]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />   <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP ::<span style=\"color: #000000;\">oBalance</span> BITMAP <span style=\"color: #ff0000;\">\"dotGreen\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">501</span> <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oDlg</span> TEXTRIGHT ;<br />               <span style=\"color: #0000ff;\">PROMPT</span> oSelf:<span style=\"color: #000000;\">cDebt</span> <span style=\"color: #0000ff;\">UPDATE</span><br />...<br />      ::<span style=\"color: #000000;\">oBalance</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cDebt</span> <span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #000000;\">oBalance</span>:<span style=\"color: #000000;\">LoadBitMaps</span><span style=\"color: #000000;\">&#40;</span> IIF<span style=\"color: #000000;\">&#40;</span> nDebt > <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"DotRed\"</span>, <span style=\"color: #ff0000;\">\"DotGray\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />      ::<span style=\"color: #000000;\">oBalance</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:3e2c364g]\n\nIdeas?\n\nThank you,\n\n\nReinaldo.", "time": "23:22", "topic": "Changing bitmap on TBtnBmp at runtime", "username": "reinaldocrespo" } ]
Changing bitmap on TBtnBmp at runtime
[ { "date": "2013-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hola Reinaldo,\n\nI don't know if this is the best solution, but I think work\n\n[code=fw:3hx8yal0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br />....<br />::<span style=\"color: #000000;\">oBalance</span>:<span style=\"color: #000000;\">hBitmap</span> := LoadBitmap<span style=\"color: #000000;\">&#40;</span> GetResources<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, IIF<span style=\"color: #000000;\">&#40;</span> nDebt > <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"DotRed\"</span>, <span style=\"color: #ff0000;\">\"DotGray\"</span>  <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />::<span style=\"color: #000000;\">oBalance</span>:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />...</div>[/code:3hx8yal0]\n\nsaludos\n\nMarcelo", "time": "01:06", "topic": "Changing bitmap on TBtnBmp at runtime", "username": "Marcelo Via Giglio" } ]
Changing bitmap on TBtnBmp at runtime
[ { "date": "2013-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Reinaldo,\n\nviendo el código fuente, creo que lo que está mal de tu código es tan solo una \"S\",\n\ncambia\n\n::oBalance:LoadBitMaps( IIF( nDebt > 0, \"DotRed\", \"DotGray\" ) ) \n\npor\n\n::oBalance:LoadBitMap( IIF( nDebt > 0, \"DotRed\", \"DotGray\" ) ) \n\nsaludos\n\nMarcelo", "time": "02:21", "topic": "Changing bitmap on TBtnBmp at runtime", "username": "Marcelo Via Giglio" } ]
Changing bitmap on TBtnBmp at runtime
[ { "date": "2013-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Marcelo Via Giglio\":pspe4bhx]Reinaldo,\n\nviendo el código fuente, creo que lo que está mal de tu código es tan solo una \"S\",\n\ncambia\n\n::oBalance:LoadBitMaps( IIF( nDebt > 0, \"DotRed\", \"DotGray\" ) ) \n\npor\n\n::oBalance:LoadBitMap( IIF( nDebt > 0, \"DotRed\", \"DotGray\" ) ) \n\nsaludos\n\nMarcelo[/quote:pspe4bhx]\n\nHello\n\nit's a wrong way, because we need release the bitmap handle first,\n\nReinaldo you're using correct way, your code should be work fine\n\n[quote=\"Marcelo Via Giglio\":pspe4bhx]::oBalance:LoadBitMap( IIF( nDebt > 0, \"DotRed\", \"DotGray\" ) )[/quote:pspe4bhx]", "time": "02:42", "topic": "Changing bitmap on TBtnBmp at runtime", "username": "Daniel Garcia-Gil" } ]
Changing bitmap on TBtnBmp at runtime
[ { "date": "2013-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"reinaldocrespo\":pu1ca2co]Hi,\n\nOk, how about changing the bitmap on a TbnBmp object at runtime?\n\nHere is my code, but it isn't changing the bitmap. \n\n[code=fw:pu1ca2co]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />   <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP ::<span style=\"color: #000000;\">oBalance</span> BITMAP <span style=\"color: #ff0000;\">\"dotGreen\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">501</span> <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oDlg</span> TEXTRIGHT ;<br />               <span style=\"color: #0000ff;\">PROMPT</span> oSelf:<span style=\"color: #000000;\">cDebt</span> <span style=\"color: #0000ff;\">UPDATE</span><br />...<br />      ::<span style=\"color: #000000;\">oBalance</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cDebt</span> <span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #000000;\">oBalance</span>:<span style=\"color: #000000;\">LoadBitMaps</span><span style=\"color: #000000;\">&#40;</span> IIF<span style=\"color: #000000;\">&#40;</span> nDebt > <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"DotRed\"</span>, <span style=\"color: #ff0000;\">\"DotGray\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />      ::<span style=\"color: #000000;\">oBalance</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:pu1ca2co]\n\nIdeas?\n\nThank you,\n\n\nReinaldo.[/quote:pu1ca2co]\n\nThis is TButtonBmp object and not TBtnBmp (FWH own class) object.\nShould be :LoadBitmap(...) not :LoadBitmaps(...)\nMethod LoadBitmap() releases previous bitmap handle.\nLoadBitmap accepts single parameter.\n\nHere is a working sample to showing switching bitmap, text and alignment\n\n[code=fw:pu1ca2co]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> ButtnBmpChange<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oDlg, oFont, oBtn<br /><br />   USE CUSTOMER <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> CUST<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;\">200</span>,<span style=\"color: #000000;\">140</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />   @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> BUTTONBMP oBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Go Right\"</span> BITMAP <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\r</span>ight1.bmp\"</span> ;<br />      TEXTLEFT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />   @ <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">10</span> BUTTONBMP <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Change\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"left\"</span> $ oBtn:<span style=\"color: #000000;\">cBitmap</span>, ;<br />         <span style=\"color: #000000;\">&#40;</span> oBtn:<span style=\"color: #000000;\">LoadBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\r</span>ight1.bmp\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />           oBtn:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Go Right\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />           oBtn:<span style=\"color: #000000;\">cPosText</span> := <span style=\"color: #ff0000;\">\"TEXTLEFT\"</span>, oBtn:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />         <span style=\"color: #000000;\">&#40;</span> oBtn:<span style=\"color: #000000;\">LoadBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\l</span>eft1.bmp\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />           oBtn:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Go Left\"</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />           oBtn:<span style=\"color: #000000;\">cPosText</span> := <span style=\"color: #ff0000;\">\"TEXTRIGHT\"</span>, oBtn:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #000000;\">&#41;</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 /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:pu1ca2co]", "time": "03:16", "topic": "Changing bitmap on TBtnBmp at runtime", "username": "nageswaragunupudi" } ]
Changing bitmap on TBtnBmp at runtime
[ { "date": "2013-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nThis code worked for me .. \n\nRick Lipkin\n\n[code=fw:14459yi8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br /><span style=\"color: #00C800;\">CASE</span> lISGOALS = .T. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// found a goals record</span><br />&nbsp; &nbsp; &nbsp;oBtn4:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"G/W*\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;oBtn4:<span style=\"color: #000000;\">LoadBitmaps</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"OK\"</span>, <span style=\"color: #ff0000;\">\"DOK\"</span>, <span style=\"color: #ff0000;\">\"DOK\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;oBTN4:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;SysReFresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">OTHERWISE</span><br />&nbsp; &nbsp; &nbsp;oBtn4:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"R+/W*\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;oBtn4:<span style=\"color: #000000;\">LoadBitmaps</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"POWER\"</span>, <span style=\"color: #ff0000;\">\"DPOWER\"</span>, <span style=\"color: #ff0000;\">\"DPOWER\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;oBtn4:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;SysReFresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDCASE</span><br />&nbsp;</div>[/code:14459yi8]", "time": "17:11", "topic": "Changing bitmap on TBtnBmp at runtime", "username": "Rick Lipkin" } ]
Changing bitmap on TBtnBmp at runtime
[ { "date": "2013-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rick\n\nThough the caption says TBtnBmp actually the control is not TBtnBmp but TButtonBmp, if we see Mr. Reinaldo's code posted first.\n[code=fw:1hohjcvu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP ::<span style=\"color: #000000;\">oBalance</span> BITMAP <span style=\"color: #ff0000;\">\"dotGreen\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">501</span> <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oDlg</span> TEXTRIGHT ;<br />&nbsp;</div>[/code:1hohjcvu]\nThe control is clearly TButtonBmp which is inherited from TButton and is basically a Windows Control.\n\nTButtonBmp does not have Method LoadBitmaps( .... ) but only Method LoadBitmap() with a single parameter.", "time": "17:19", "topic": "Changing bitmap on TBtnBmp at runtime", "username": "nageswaragunupudi" } ]
Changing bitmap on TBtnBmp at runtime
[ { "date": "2013-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Everyone (Marcelo, Rao, Rick, Daniel) - Thank you very much.\n\nBefore posting the question, I had tried :loadbitmaps() as well as loadbitmap(), refresh(), GetResources(), and a few others. I had followed TButtonBmp source code and still could not figure out why it wasn't working until I realized that this piece of code was never executing do to a preexisting if condition that prevented program flow from executing it. I felt really stupid <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( --> LoadBitMap() followed by a refresh() works as expected. Thank you all VERY MUCH for your help.\n\nBest regards,\n\n\nReinaldo.", "time": "17:51", "topic": "Changing bitmap on TBtnBmp at runtime", "username": "reinaldocrespo" } ]
Changing bitmap on TBtnBmp at runtime
[ { "date": "2008-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio and friends,\r\n\r\nI created this function bellow to change the property \"cCaption\" of the buttons to reuse the same button to different tasks... I did not want to directly change the ownership cCaption, but this is the best solution even?\r\n\r\n[code:2fzte1bo]FUNCTION setCaption&#40; oObject, cCaption &#41;\n\nDEFAULT cCaption &#58;= \"\"\n\nIF valType&#40; oObject &#41; == \"O\"\n\n setWindowText&#40; oObject&#58;hWnd, cCaption &#41;\n oObject&#58;refresh&#40;&#41;\n \nENDIF\n\nRETURN&#40; NIL &#41;[/code:2fzte1bo]", "time": "19:26", "topic": "Changing cCaption of buttons!? ( SOLVED )", "username": "JC" } ]
Changing cCaption of buttons!? ( SOLVED )
[ { "date": "2008-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Friends,\r\n\r\nSolved!\r\n\r\nUsing the ::setText() method! <!-- s;) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";)\" title=\"Wink\" /><!-- s;) -->", "time": "19:39", "topic": "Changing cCaption of buttons!? ( SOLVED )", "username": "JC" } ]
Changing cCaption of buttons!? ( SOLVED )
[ { "date": "2008-10-25", "forum": "FiveWin for Harbour/xHarbour", "text": "yes <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "10:25", "topic": "Changing cCaption of buttons!? ( SOLVED )", "username": "Antonio Linares" } ]
Changing cCaption of buttons!? ( SOLVED )
[ { "date": "2011-08-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Guys:\n\nHow can I change a cell color, based on a condition, in xBrowse ? For example if an amount is less than zero, change the whole amount the red color to bright white over red (on text would be \"W+/R\") ?\n\n\nThank you.", "time": "23:31", "topic": "Changing cell color on xBrowse", "username": "HunterEC" } ]
Changing cell color on xBrowse
[ { "date": "2011-08-10", "forum": "FiveWin for Harbour/xHarbour", "text": "oLbx:aCols[7]:bClrstd := {|| { CLR_BLACK, If( oPo:myob, CMYOBCOL, CBRWBACK) } }\n\nHope this helps \n\nColin", "time": "00:30", "topic": "Changing cell color on xBrowse", "username": "Colin Haig" } ]
Changing cell color on xBrowse
[ { "date": "2011-08-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Colin:\n\nThank you, I'll give it a try.", "time": "04:21", "topic": "Changing cell color on xBrowse", "username": "HunterEC" } ]
Changing cell color on xBrowse
[ { "date": "2013-07-29", "forum": "FiveWin for Harbour/xHarbour", "text": "[b:381724g6]Changing a cell-color as the result of a incremental search.[/b:381724g6]\n( the full sample is included in a new UPDATE of the ASCVIEWER 3.2 )\n\nThe Table shows 3 sections with 25 rows ( from DBF ).\nI've been looking for a solution to do a incremental search scanning\ndifferent sections of a xbrowse-table.\nThe cell with the found value I wanted to show with a different color :\n\n[img:381724g6]http&#58;//www&#46;pflegeplus&#46;com/pictures/search1&#46;jpg[/img:381724g6]\n\n[code=fw:381724g6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> SHOW_VKEYS<span style=\"color: #000000;\">&#40;</span>cKey<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> cKeySearch := <span style=\"color: #ff0000;\">\"?  \"</span>, I := <span style=\"color: #000000;\">1</span>, nBRow := <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">LOCAL</span> nKey := LEN<span style=\"color: #000000;\">&#40;</span>cKey<span style=\"color: #000000;\">&#41;</span><br /><br />DBSELECTAREA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"VKEY\"</span><span style=\"color: #000000;\">&#41;</span><br />DBGOTOP<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> !EOF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">IF</span> cKey = <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> VKEY->KEY1, <span style=\"color: #000000;\">1</span>, nKey<span style=\"color: #000000;\">&#41;</span>  <br />        cKeySearch := VKEY->VALUE1<br />        nCPos := <span style=\"color: #000000;\">1</span><br />        nBRow := VKEY-><span style=\"color: #000000;\">&#40;</span>ORDKEYNO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />        EXIT<br />    ELSEIF cKey = <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> VKEY->KEY2, <span style=\"color: #000000;\">1</span>, nKey<span style=\"color: #000000;\">&#41;</span>  <br />        cKeySearch := VKEY->VALUE2  <br />        nCPos := <span style=\"color: #000000;\">3</span><br />        nBRow := VKEY-><span style=\"color: #000000;\">&#40;</span>ORDKEYNO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />        EXIT<br />    ELSEIF cKey = <span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span> VKEY->KEY3, <span style=\"color: #000000;\">1</span>, nKey<span style=\"color: #000000;\">&#41;</span>  <br />        cKeySearch := VKEY->VALUE3 <br />        nCPos := <span style=\"color: #000000;\">5</span><br />        nBRow := VKEY-><span style=\"color: #000000;\">&#40;</span>ORDKEYNO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />        EXIT<br />    <span style=\"color: #00C800;\">ENDIF</span><br /><br />    DBSKIP<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">ENDDO</span><br />oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>nCPos<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrstd</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> nBTColor1, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nBRow = oBrw2:<span style=\"color: #000000;\">KeyNo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, nBCSELECT, nBColor1 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>nCPos + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrstd</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> nBTColor2, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nBRow = oBrw2:<span style=\"color: #000000;\">KeyNo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, nBCSELECT, nBColor2 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> cKeySearch <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:381724g6]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "11:19", "topic": "Changing cell color on xBrowse", "username": "ukoenig" } ]
Changing cell color on xBrowse
[ { "date": "2013-07-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Esta funcion me la dio y publico Daniel hace tiempisimo, aca la comparto, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\nFUNCION cronograma()\n.\n.\n.\n.\n FOR nFor = 6 to LEN( oBrw:aCols )\n oBrw:aCols[ nFor ]:bClrStd := ChangeColor( oBrw, nFor )\n\n NEXT\n.\n.\n.\nRETURN .T.\n\nFUNCTION ChangeColor( oBrw, n ) //\n*RETURN {|| { ColorCell( oBrw:aRow[ n ] ), ColorCell( oBrw:aRow[ n ] ) } } // TEXTO MISMO COLOR DE CELDA\nRETURN {|| { ColorCell( oBrw:aCols[ n ]:Value ), ColorCell( oBrw:aCols[ n ]:Value ) } }\n\nFUNCTION ColorCell( uDato ) // DEVUELVE COLOR SEGUN STATUS FORMA PAGO CUOTA\n\n LOCAL nColor\n\n DO CASE\n CASE uDato == 1 // AMARILLO-PAGADAS AL DIA\n nColor := RGB(255, 255, 128)\n\n CASE uDato == 2 // AZUL-PAGADAS ADELANTADAS\n nColor := RGB(0, 100, 200)\n\n CASE uDato == 3 // MARRON CLARO-PAGADAS CON ATRASO\n nColor := RGB(255, 172, 89)\n\n CASE uDato == 9 // ROJO-CUOTAS VENCIDAS\n nColor := RGB(240, 0, 0)\n\n OTHERWISE\n nColor := GetSysColor( 5 )\n\n ENDCASE\n\nRETURN nColor\n\n...y para muestra un boton...\n\n[url=http&#58;//imageshack&#46;us/photo/my-images/11/j5s2&#46;jpg/:1v7owvz3][img:1v7owvz3]http&#58;//imageshack&#46;us/scaled/medium/11/j5s2&#46;jpg[/img:1v7owvz3][/url:1v7owvz3]", "time": "14:15", "topic": "Changing cell color on xBrowse", "username": "joseluisysturiz" } ]
Changing cell color on xBrowse
[ { "date": "2006-10-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI try to change the text color from a say object with :\n\noSay:Setcolor(CLR_HRED) ; oSay:refresh()\n\nBut , it doesn't work.\n\nI Tryed it also in testsay2.prg , no succes\n\n[code:2rhqud6m]\n// A sample showing to to let a SAY accept Clicks events\n\n#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n\n local oDlg, oSay, oCursor\n\n DEFINE CURSOR oCursor HAND\n\n DEFINE DIALOG oDlg\n\n @ 2, 2 SAY oSay PROMPT \"Test\"\n\n oSay&#58;lWantClick = &#46;t&#46;\n oSay&#58;bLClicked = &#123; || oSay&#58;SetColor&#40;CLR_HRED&#41; , oSay&#58;refresh&#40;&#41; &#125;\n //oSay&#58;bLClicked = &#123; || MsgInfo&#40; \"Hello\" &#41; &#125;\n oSay&#58;oCursor = oCursor\n\n ACTIVATE DIALOG oDlg CENTERED\n\nreturn nil\n\n[/code:2rhqud6m]\n\nFrank", "time": "08:55", "topic": "Changing color from say", "username": "Frank Demont" } ]
Changing color from say
[ { "date": "2006-10-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Frank,\n\nThis code works fine:\n[code:bk6uqr3w]\n#define COLOR_BTNFACE 15\n&#46;&#46;&#46;\n oSay&#58;bLClicked = &#123; || oSay&#58;SetColor&#40; CLR_WHITE, GetSysColor&#40; COLOR_BTNFACE &#41; &#41;, oSay&#58;Refresh&#40;&#41;, MsgInfo&#40; \"Hello\" &#41; &#125;\n[/code:bk6uqr3w]", "time": "09:10", "topic": "Changing color from say", "username": "Antonio Linares" } ]
Changing color from say
[ { "date": "2006-10-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nOk , it seems that the background color can't be omitted. I supposed that when it is nil , it has not to change. Now i have to know what this color is or ,\n\n oSay:SetColor( CLR_HRED , osay:nClrPane )\n\nFrank", "time": "09:43", "topic": "Changing color from say", "username": "Frank Demont" } ]
Changing color from say
[ { "date": "2013-08-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nis it possible, to change the color of a focused [size=150:zdvnepxr]memofield[/size:zdvnepxr] in xBrowse ?\n\nseems not to work with MEMOFIELDS .\n\n[color=#0000FF:zdvnepxr][b:zdvnepxr]:bClrSelFocus = { || { 0, 16512957 } } \n:bClrSel = { || { 16777215, 255 } } [/b:zdvnepxr] [/color:zdvnepxr]\n\n[img:zdvnepxr]http&#58;//www&#46;pflegeplus&#46;com/picctures/MFocus1&#46;jpg[/img:zdvnepxr]\n\n[code=fw:zdvnepxr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// 2</span><br />oCol  := oBrw1:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Info1\"</span> <span style=\"color: #000000;\">&#41;</span><br />oCol:<span style=\"color: #000000;\">nWidth</span>       := <span style=\"color: #000000;\">155</span><br />oCol:<span style=\"color: #000000;\">nEditType</span>    := EDIT_BUTTON<br />oCol:<span style=\"color: #000000;\">bEditBlock</span>   := <span style=\"color: #000000;\">&#123;</span> | r, c, o | EDITNOTES<span style=\"color: #000000;\">&#40;</span> r, c, o, STYLE1->Info1 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />oCol:<span style=\"color: #000000;\">bOnPostEdit</span>  := <span style=\"color: #000000;\">&#123;</span> | o, cVal | <span style=\"color: #00C800;\">If</span> <span style=\"color: #000000;\">&#40;</span> cVal != <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #000000;\">&#40;</span> DBSELECTAREA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"STYLE1\"</span><span style=\"color: #000000;\">&#41;</span>, ;<br />                                        NET_RLOCK<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                                            STYLE1->Info1 := cVal, ;<br />                                        NET_ULOCK<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw1:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:zdvnepxr]\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "13:36", "topic": "Changing color of xBrowse Memo-cellcolor on focus ?", "username": "ukoenig" } ]
Changing color of xBrowse Memo-cellcolor on focus ?
[ { "date": "2013-08-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Works the sameway whether memofields or normal fields", "time": "13:39", "topic": "Changing color of xBrowse Memo-cellcolor on focus ?", "username": "nageswaragunupudi" } ]
Changing color of xBrowse Memo-cellcolor on focus ?
[ { "date": "2012-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Friends.\n\nI need to change the contents of a cell of the Tree / xBrowse. Can anyone tell me how to do it?\n\n\n[img:3ryescpt]http&#58;//i1122&#46;photobucket&#46;com/albums/l532/gibiteka/Clipboard01&#46;jpg[/img:3ryescpt]\n[code=fw:3ryescpt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">  <br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">XBROWSE</span> oLbx       <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">102</span> <span style=\"color: #0000ff;\">OF</span> oDlg LINES CELL<br /><br />           oLbx:<span style=\"color: #000000;\">SetTree</span><span style=\"color: #000000;\">&#40;</span> BuildTree<span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">self</span>,oItem<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"FLDOPEN\"</span>,<span style=\"color: #ff0000;\">\"FOLDER\"</span>,  <span style=\"color: #ff0000;\">\"16FRM\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />           ADD <span style=\"color: #0000ff;\">TO</span> oLbx <span style=\"color: #00C800;\">DATA</span> oLbx:<span style=\"color: #000000;\">oTreeItem</span>:<span style=\"color: #000000;\">Cargo</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> HEADER <span style=\"color: #ff0000;\">\"Conteúdo\"</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> BuildTree<span style=\"color: #000000;\">&#40;</span>oRpt,oItem<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oTree<br /><br />   TREE oTree<br /><br />        _TreeItem<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Item\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Cargo</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"\"</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span><br />        TREE<br />           _TreeItem<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Conteúdo\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Cargo</span>       := <span style=\"color: #000000;\">&#123;</span> oItem:<span style=\"color: #000000;\">cCaption</span>,<span style=\"color: #000000;\">01</span> <span style=\"color: #000000;\">&#125;</span><br />           _TreeItem<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Tipo\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Cargo</span>              := <span style=\"color: #000000;\">&#123;</span> oItem:<span style=\"color: #000000;\">cTipo</span>   ,<span style=\"color: #000000;\">02</span> <span style=\"color: #000000;\">&#125;</span><br />           _TreeItem<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Tamanho\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Cargo</span>       := <span style=\"color: #000000;\">&#123;</span> oItem:<span style=\"color: #000000;\">nTamanho</span>,<span style=\"color: #000000;\">03</span> <span style=\"color: #000000;\">&#125;</span><br />           _TreeItem<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Classifica\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Cargo</span>      := <span style=\"color: #000000;\">&#123;</span> oItem:<span style=\"color: #000000;\">lIndex</span>  ,<span style=\"color: #000000;\">04</span> <span style=\"color: #000000;\">&#125;</span><br />           _TreeItem<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Quebra\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Cargo</span>         := <span style=\"color: #000000;\">&#123;</span> oItem:<span style=\"color: #000000;\">cQuebra</span> ,<span style=\"color: #000000;\">05</span> <span style=\"color: #000000;\">&#125;</span><br />           _TreeItem<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Resume\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Cargo</span>        := <span style=\"color: #000000;\">&#123;</span> oItem:<span style=\"color: #000000;\">lResume</span> ,<span style=\"color: #000000;\">06</span> <span style=\"color: #000000;\">&#125;</span><br />           _TreeItem<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Totaliza\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Cargo</span>       := <span style=\"color: #000000;\">&#123;</span> oItem:<span style=\"color: #000000;\">lTotal</span>  ,<span style=\"color: #000000;\">07</span> <span style=\"color: #000000;\">&#125;</span><br />        ENDTREE<br /><br />   ENDTREE<br /><br />   oTree:<span style=\"color: #000000;\">Expand</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> oTree<br /> </div>[/code:3ryescpt]", "time": "01:37", "topic": "Changing content in xBrowse/Tree", "username": "vilian" } ]
Changing content in xBrowse/Tree
[ { "date": "2012-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "oBrw:oTreeItem:Cargo[ 1 ] := <newvalue>\noBrw:RefreshCurrent()", "time": "17:04", "topic": "Changing content in xBrowse/Tree", "username": "nageswaragunupudi" } ]
Changing content in xBrowse/Tree
[ { "date": "2013-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "I have a GET define so:\n\nREDEFINE GET oValue VAR mValue ID 2105 of oQry_Dlg ;\n\t on change ( iif(! oSave:lactive, Set_Save() ) ) ;\n update\n\nWhenever the value of mValue becomes numeric the picture of oValue is changed as in the next line.\n oValue := tGet():Redefine( , bSetGet := {||mValue }, oQry_Dlg, ,\"@R ######.##\" , , , , , , ,True, , ,False )\n\n\nWhenever the value of mValue becomes a date the picture of oValue is changed as in the next line.\n oValue := tGet():Redefine( , bSetGet := {||mValue }, oQry_Dlg, ,\"@D\" , , , , , , ,True, , ,False )\n\n\nWhenever the value of mValue becomes a character string the picture of oValue is changed as in the next line.\n oValue := tGet():Redefine( , bSetGet := {||mValue } , oQry_Dlg, , , , , , , , ,True, , ,False )\n\nThis works unfailingly for numbers and dates but does not work with strings. I've tried every character picture I can think of and nothing works.\n\n\nThe other problem I'm having is that oValue does not refresh until the cursor is place in the control. oValue:Refresh(), oValue:SetFocus() does not work.", "time": "01:34", "topic": "Changing data type and picture in GET", "username": "DonDrew" } ]
Changing data type and picture in GET
[ { "date": "2013-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Trying new ideas to see if I can learn about what's creating my problem.\n\n\nThis line would not properly alter oValue from numeric or date formats to string. \n oValue := tGet():Redefine( , bSetGet := {||mValue } , oQry_Dlg, ,\"@S30\" , , , , , , ,True, , ,False )\nThe line seems to execute properly because msginfo(oValue:cPicture) returns \"@S30\"\n\nNext I tried removing the line redefining the and replaced it with the next 2 lines:\n\noValue:cPicture := \"@S30\"\noValue:bSetGet := {||mValue }\n\noValue:Refresh() causes an error --\n\n Path and name: E:\\ABA\\ABA5\\AbaWin32.exe (32 bits)\n Size: 3,381,760 bytes\n Time from start: 0 hours 0 mins 12 secs \n Error occurred at: Friday 06/28/2013, 20:26:46\n Error description: Error BASE/1073 Argument error: <\n Args:\n [ 1] = C Don \n [ 2] = N 0\n\nStack Calls\n===========\n Called from: ../../../tget.prg => TCLIPGET:PUTMASK(0)\n Called from: ../../../tget.prg => TCLIPGET:UPDATEBUFFER(0)\n Called from: .\\source\\classes\\TGET.PRG => (b)TGET(144)\n Called from: .\\source\\classes\\TGET.PRG => TGET:REFRESH(0)\n Called from: e:\\aba\\aba5\\Queries.prg => SETGET(367)\n Called from: e:\\aba\\aba5\\Queries.prg => LOADQUERY(227)\n Called from: => (b)EVAL(150)\n Called from: .\\source\\classes\\WBROWSE.PRG => TWBROWSE:LBUTTONDOWN(1201)\n Called from: .\\source\\classes\\CONTROL.PRG => TCONTROL:HANDLEEVENT(1711)\n Called from: .\\source\\classes\\WBROWSE.PRG => TWBROWSE:HANDLEEVENT(1637)\n Called from: .\\source\\classes\\WINDOW.PRG => _FWH(3178)\n Called from: => DIALOGBOX(0)\n Called from: .\\source\\classes\\DIALOG.PRG => TDIALOG:ACTIVATE(270)\n Called from: e:\\aba\\aba5\\Queries.prg => QUERY(150)\n Called from: e:\\aba\\aba5\\Members.prg => (b)BLDBAR(1222)\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:CLICK(465)\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:LBUTTONUP(656)\n Called from: .\\source\\classes\\CONTROL.PRG => TCONTROL:HANDLEEVENT(1714)\n\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1408)\n Called from: .\\source\\classes\\WINDOW.PRG => _FWH(3178) Called from: => WINRUN(0)\n Called from: .\\source\\classes\\WINDOW.PRG => TMDIFRAME:ACTIVATE(991)\n Called from: e:\\aba\\aba5\\abawin.prg => MAIN(115)\n\nWhat's going on?", "time": "01:54", "topic": "Changing data type and picture in GET", "username": "DonDrew" } ]
Changing data type and picture in GET
[ { "date": "2023-03-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Guys, \nI am getting different result here when I compile this code with my FWH11.08 and FWH1912.\n\nThis is the old behavior that I want to retain.\n1. Run program\n2. Click menu [i:j247gpm7]Printer Setup[/i:j247gpm7] \n3. Select a different printer than windows default. e.g. Microsoft Print To Pdf\n4. Click Print [will go to recently selected printer]\n5. Click Print again [will still go the printer recently selected within the program]\n\nThis is the behavior with FWH1912\n1. Run program\n2. Click menu [i:j247gpm7]Printer Setup[/i:j247gpm7] \n3. Select a different printer than windows default. e.g. Microsoft Print To Pdf\n4. Click Print [will go to recently selected printer]\n[color=#FF0000:j247gpm7][b:j247gpm7]5. Click Print again [will now go to windows default printer][/b:j247gpm7][/color:j247gpm7]\n\nAny help is deeply appreciated as customers have been complaining about the different behavior after their program was upgraded.\n\nTIA\n\nThis is the self-contained test code \n[code=fw:j247gpm7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">static</span> oWnd<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">MENU</span> SysMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br /><br />   @ <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"&Print\"</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> ;<br />      <span style=\"color: #0000ff;\">ACTION</span> PrintMe<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// try also with oWnd:HardCopy()</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> PrintMe<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oPrn<br /><br />   <span style=\"color: #00C800;\">PRINT</span> oPrn <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Test\"</span><br />      <span style=\"color: #0000ff;\">PAGE</span><br />         oPrn:<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #ff0000;\">\"This is a test\"</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">ENDPAGE</span><br />   <span style=\"color: #0000ff;\">ENDPRINT</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">STATIC</span> FUNC SysMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oMenu<br /><br />   <span style=\"color: #0000ff;\">MENU</span> oMenu<br /><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Printer Setup\"</span> <span style=\"color: #0000ff;\">action</span> printerSetup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Exit\"</span> <span style=\"color: #0000ff;\">action</span> oWnd:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">ENDMENU</span><br /><span style=\"color: #00C800;\">return</span> oMenu<br /><br /> </div>[/code:j247gpm7]", "time": "08:47", "topic": "Changing default printer for current application only", "username": "hua" } ]
Changing default printer for current application only
[ { "date": "2023-03-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hua,\n\nI don't know if this will help, but I found it in my notes.\n\nUse the following to set the application's current printer. It will remain the current printer until changed.\n\n[code=fw:czmtrnby]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//--- Set application's current printer. Returns .T. if successful.</span><br /><span style=\"color: #B900B9;\">// Author: James Bott</span><br /><span style=\"color: #00C800;\">function</span> setPrinter<span style=\"color: #000000;\">&#40;</span> cPrinter <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> cOldPrinter:=<span style=\"color: #ff0000;\">\"\"</span>, hDC:=<span style=\"color: #000000;\">0</span>, aPrn, cText:=<span style=\"color: #ff0000;\">\"\"</span>, lSuccess:=.f.<br /><br />   <span style=\"color: #00C800;\">if</span> cPrinter <> prnGetName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />      cText := StrTran<span style=\"color: #000000;\">&#40;</span>GetProfString<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Devices\"</span><span style=\"color: #000000;\">&#41;</span>,Chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>, chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />      aPrn  := Array<span style=\"color: #000000;\">&#40;</span>Mlcount<span style=\"color: #000000;\">&#40;</span>cText, <span style=\"color: #000000;\">250</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />      Aeval<span style=\"color: #000000;\">&#40;</span>aPrn, <span style=\"color: #000000;\">&#123;</span>|v,e| aPrn<span style=\"color: #000000;\">&#91;</span>e<span style=\"color: #000000;\">&#93;</span> := Trim<span style=\"color: #000000;\">&#40;</span>Memoline<span style=\"color: #000000;\">&#40;</span>cText, <span style=\"color: #000000;\">250</span>, e<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #00C800;\">if</span>  ascan<span style=\"color: #000000;\">&#40;</span>aPrn,cPrinter<span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br /><br />         cOldPrinter := GetProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"windows\"</span>, <span style=\"color: #ff0000;\">\"device\"</span> , <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span><br />         WriteProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"windows\"</span>, <span style=\"color: #ff0000;\">\"device\"</span>, cPrinter <span style=\"color: #000000;\">&#41;</span><br />         SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />         PrinterInit<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />         hDC := GetPrintDefault<span style=\"color: #000000;\">&#40;</span> GetActiveWindow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">if</span> hDC><span style=\"color: #000000;\">0</span><br />            lSuccess:= resetDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">endif</span><br />         SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />         WriteProfString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"windows\"</span>, <span style=\"color: #ff0000;\">\"device\"</span>, cOldPrinter  <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #00C800;\">endif</span></div>[/code:czmtrnby]\n\n endif\nreturn lSuccess", "time": "16:31", "topic": "Changing default printer for current application only", "username": "James Bott" } ]
Changing default printer for current application only
[ { "date": "2023-03-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks James.\n The code helps in setting the app to the last printer selected.\nFor my earlier problem, I rem out PrinterEnd() at method End() of TPrinter", "time": "03:50", "topic": "Changing default printer for current application only", "username": "hua" } ]
Changing default printer for current application only
[ { "date": "2009-12-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI'm trying to create a small app that downloads files from an FTP site. My app connects ok to the FTP site, but i want to see what files are in a sub-folder. I've tried to use SetCurrentDirectory() but this doesnt seem to do anything - when i look at the results from <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->irectory() it always returns what is in the root. Can anyone supply me with an example of using the :directory() routine in a sub-folder? \n\nMany thanks\n\nPete", "time": "10:28", "topic": "Changing directory in tFtp", "username": "PeterHarmes" } ]
Changing directory in tFtp
[ { "date": "2009-12-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Solved using Directory() - the path you type in is case sensitive!!\n\nRegards,\n\nPete", "time": "10:34", "topic": "Changing directory in tFtp", "username": "PeterHarmes" } ]
Changing directory in tFtp
[ { "date": "2009-12-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Pete,\n\nThanks for the info <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "11:05", "topic": "Changing directory in tFtp", "username": "Antonio Linares" } ]
Changing directory in tFtp
[ { "date": "2009-12-07", "forum": "FiveWin for Harbour/xHarbour", "text": "I think i might have found a problem with the directory function, if i do this:\n\naFiles = oFTP:Directory( cDirName + \"*.*\" )\nIF !Empty(aFiles)\n FOR nCount := 1 TO Len(aFiles)\n IF Left(aFiles[nCount, 1], 1) <> \".\"\n lCopy := .F.\n ? File( cIwsFolder + \"\\Upgrade\\New\\\" + aFiles[nCount, 1]) - This always returns .F.\n\nIf i do this:\n\n ? File( cIwsFolder + \"\\Upgrade\\New\\\" + Left(aFiles[nCount, 1],12)) - This always returns the correct result\n\nif i do this:\n\n ? \"-\" + Alltrim(aFiles[nCount, 1]) + \"-\"\n\nthe second \"-\" does not appear\n\nI have got around this by using the left( , 12) example above as i know the length of the filenames\n\nThis is using FW09.05\n\nRegards,\n\nPete", "time": "12:35", "topic": "Changing directory in tFtp", "username": "PeterHarmes" } ]
Changing directory in tFtp
[ { "date": "2009-12-07", "forum": "FiveWin for Harbour/xHarbour", "text": "FtpFindFirstFile/InternetFindNextFile return the filename filled by a char, i think chr(0).\n\nI use this\n\n[code=fw:zs9jslwr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> CLEARSTRING <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><span style=\"color: #000000;\">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;hb_retc<span style=\"color: #000000;\">&#40;</span>hb_parc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:zs9jslwr]\n\nfor clear the filename.", "time": "12:50", "topic": "Changing directory in tFtp", "username": "Patrizio" } ]
Changing directory in tFtp
[ { "date": "2009-12-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Pete,\n\nThat would mean that some not valid characters are being placed into the file name. Thats why you can extract a valid portion of it, but if you try to concatenate with another string then it fails.\n\nCould you please test FWH\\samples\\FtpDir.prg and check if it works fine for you ? thanks", "time": "12:52", "topic": "Changing directory in tFtp", "username": "Antonio Linares" } ]
Changing directory in tFtp
[ { "date": "2009-12-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI get the \"oFTP:hFTP is null\" message, yet i can access the ftp site through i.e. fine\n\nRegards,\n\nPete", "time": "13:03", "topic": "Changing directory in tFtp", "username": "PeterHarmes" } ]
Changing directory in tFtp
[ { "date": "2009-12-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Pete,\n\nWe have just tested it again using Windows 7 and it works fine using FWH 9.11, with both Harbour and xHarbour. But we got a request to allow it from the Windows firewall, that had to be accepted.\n\nCould someone else test FWH\\samples\\FtpDir.prg and report here how it works ? thanks", "time": "16:18", "topic": "Changing directory in tFtp", "username": "Antonio Linares" } ]
Changing directory in tFtp
[ { "date": "2009-05-13", "forum": "FiveWin for Harbour/xHarbour", "text": "I have 2 buttons and a checkbox in a dialog. The 1st button is for printing. Users mistakenly press ENTER and the print preview comes up. How can I display the dialog and change the focus to the checkbox or have the focus elsewhere ?", "time": "17:48", "topic": "Changing focus on a dialog.", "username": "HunterEC" } ]
Changing focus on a dialog.
[ { "date": "2009-05-13", "forum": "FiveWin for Harbour/xHarbour", "text": "If you use Resource, you can designate with Pelles the taborder, the first in the taborder that can be focused will receive the initial focus\n\nYou can change the focus no the init of the dialog too,\n\n[code=fw:2sj1h6k0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Dialog</span> etc...<br /><br />Active <span style=\"color: #0000ff;\">Dialog</span> oDialog <span style=\"color: #0000ff;\">On</span> <span style=\"color: #0000ff;\">Init</span> oCheckBox:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2sj1h6k0]", "time": "22:00", "topic": "Changing focus on a dialog.", "username": "sambomb" } ]
Changing focus on a dialog.
[ { "date": "2006-08-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello ,\n\nI try to change the font from a existing osay , but it seems not easy\n\n1) obj:oFont := oFont (changed) ; obj:refresh() doesn't work\n\n2) \tObj:end()\n\tobj := TSay():New(0,10,{||txt},oDlg,,ofont(new)... )\n // from ppo-file\n\tobj:Activate()\n\nSeems to work , at least the first time , not when the button is clicked again (and the first font must be restored)\n\nIs there a better solution ?\n\n[code:mup2hmxq]\n# include \"fivewin&#46;ch\"\n//# define TEST1\nFUNC MAIN\nLOCAL oFont&#91;2&#93; , oSay , oBut&#91;2&#93;\nLOCAL tel &#58;= 1\n\nDEFINE FONT oFont&#91;1&#93; NAME \"MS Sans Serif\" SIZE 0, -20\nDEFINE FONT oFont&#91;2&#93; NAME \"MS Sans Serif\" SIZE 0, -40\n\n\t\tDEFINE DIALOG oDlg ;\n\t\tFROM 0,0 TO 200,400 PIXEL\n\t\t@ 0,10 SAY oSay VAR \"TEST FONT 1\" OF oDlg PIXEL FONT ofont&#91;1&#93;\n\t\t@ 40,20 BUTTON oBut&#91;1&#93; PROMPT \"Change font oSay\" OF oDlg ACTION &#40;ChangFont&#40;oSay , ofont , @tel&#41;&#41; PIXEL SIZE 80,20 FONT ofont&#91;1&#93;\n\t\t@ 65,90 BUTTON oBut&#91;2&#93; PROMPT \"CANCEL\" OF oDlg ACTION &#40;oDlg&#58;end&#40;&#41;&#41; PIXEL SIZE 80 , 30 FONT oFont&#91;2&#93;\n\t\tACTIVATE DIALOG oDlg CENTER\n\nRETURN lOk\n\n\tPROC ChangFont&#40;Obj,aofont,tel&#41;\n\t*******************************\n\tLOCAL txt &#58;= \"Changed \" + LTRIM&#40;STR&#40;tel&#41;&#41;\n\tLOCAL nWidth &#58;= Obj&#58;nWidth , nHeight &#58;= Obj&#58;nHeight\n\tLOCAL n , f \n\t# ifdef TEST1\n\t Obj&#58;oFont &#58;= aofont&#91;2&#93;\n\t Obj&#58;Varput&#40;Txt&#41;\n\t Obj&#58;refresh&#40;&#41; // Font is not changed\n\t RETURN\n\t# else\n\tIF tel%2 == 1\n\t\tn &#58;= 2\n\t\tf &#58;= 2\n\tELSE\n\t\tn &#58;= 1\n\t\tf &#58;= 1/2\n\tENDIF\n\tObj&#58;end&#40;&#41;\n\tobj &#58;= TSay&#40;&#41;&#58;New&#40;0,10,&#123;||txt&#125;,oDlg,,aofont&#91;n&#93;,&#46;F&#46;,&#46;F&#46;,&#46;F&#46;,&#46;T&#46;,,,nWidth*f,nHeight*f,&#46;F&#46;,&#46;F&#46;,&#46;F&#46;,&#46;F&#46;,&#46;F&#46; &#41;\n\tobj&#58;Activate&#40;&#41;\n\tobj&#58;refresh&#40;&#41;\n\ttel++\n\tRETURN\n\t# endif\n[/code:mup2hmxq]", "time": "13:41", "topic": "Changing font from oSay", "username": "Frank Demont" } ]
Changing font from oSay