messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Tim\n\nPlease see\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30518\">viewtopic.php?f=3&t=30518</a><!-- l -->\n\nIf you are reorganizing your code into two methods of a class, please wait. You may save lot of time with this new development.", "time": "19:14", "topic": "ButtonBar in resource ?", "username": "nageswaragunupudi" } ]
ButtonBar in resource ?
[ { "date": "2015-01-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nIs it possible to define buttonbar od dialog like on window. (not on INIT)\nI have much buttons an more than hundred private variables, i dont want to send tehm all in function for creating buttonbar \nand i dont want to declare them public\n\nRegards,", "time": "22:00", "topic": "ButtonBar od DIALOG", "username": "avista" } ]
ButtonBar od DIALOG
[ { "date": "2015-01-04", "forum": "FiveWin for Harbour/xHarbour", "text": "I'm afraid not.\n\nEMG", "time": "23:34", "topic": "ButtonBar od DIALOG", "username": "Enrico Maria Giordano" } ]
ButtonBar od DIALOG
[ { "date": "2015-01-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\nThanks for reply\n\nAny other solution ?\nIf i define WINDOW in place of DIALOG than i must change size of all objects <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->\n\nBest regards,", "time": "10:36", "topic": "ButtonBar od DIALOG", "username": "avista" } ]
ButtonBar od DIALOG
[ { "date": "2015-01-05", "forum": "FiveWin for Harbour/xHarbour", "text": "You can create a dialog with TAB hidden folder and create the BAR in the folder dialog", "time": "11:18", "topic": "ButtonBar od DIALOG", "username": "cnavarro" } ]
ButtonBar od DIALOG
[ { "date": "2015-01-05", "forum": "FiveWin for Harbour/xHarbour", "text": "cnavarro,\nThanks for reply\n\nLittle sample if you can please ?\n\nBest regards,", "time": "12:14", "topic": "ButtonBar od DIALOG", "username": "avista" } ]
ButtonBar od DIALOG
[ { "date": "2015-01-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Nose si esto te ayude, estoy ahorita haciendo algo a lo que quieres con folder...saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\n[code=fw:28hj5ith]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"XBrowse.ch\"</span><br /><br />MEMVAR oDatos<br /><br /><span style=\"color: #00C800;\">STATIC</span> oWndGrupos, oBrw, aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span>, oBar, lNew, oFldx<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> mgrupos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// MAESTRO DE GRUPOS</span><br /><br />   <span style=\"color: #00C800;\">LOCAL</span> oDlg, oError, cQry, oQry, aCampos := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br />   lNew := .t.<br /><br />   TGet<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">lDisColors</span> := .f.<br /><br />   cQry := <span style=\"color: #ff0000;\">\"SELECT * FROM inv_grupos \"</span> +;<br />      <span style=\"color: #ff0000;\">\"WHERE empresa_id = '\"</span> + oDatos:<span style=\"color: #000000;\">emp_codigo</span> +;<br />      <span style=\"color: #ff0000;\">\"' ORDER BY gru_codigo, gru_nombre ASC\"</span><br /><br />   <span style=\"color: #00C800;\">TRY</span><br />      oQry := TDolphinQry<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> cQry, oDatos:<span style=\"color: #000000;\">oConex</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   CATCH oError<br />      MSGSTOP<span style=\"color: #000000;\">&#40;</span> oError:<span style=\"color: #000000;\">description</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + CRLF + CRLF + ;<br />               <span style=\"color: #ff0000;\">\"Error Ejecución de Sentencia en Tabla(inv_grupos): \"</span> + ;<br />               CRLF + CRLF + cQry, oDatos:<span style=\"color: #000000;\">cTitMsg</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br />   END<br /><br />   <span style=\"color: #00C800;\">IF</span> oWndGrupos == <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #B900B9;\">// DEFINO WND</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndGrupos BORDER SINGLE <span style=\"color: #0000ff;\">MDICHILD</span> ;<br />         <span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">&#40;</span> WS_CAPTION, WS_VISIBLE, WS_SYSMENU, WS_MINIMIZEBOX <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1.0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">30.0</span>, <span style=\"color: #000000;\">107.0</span> ;<br />         <span style=\"color: #0000ff;\">TITLE</span> oDatos:<span style=\"color: #000000;\">cTit</span> + <span style=\"color: #ff0000;\">\"- Maestro de Grupos\"</span> ;<br />         <span style=\"color: #0000ff;\">OF</span> oDatos:<span style=\"color: #000000;\">oWndPPAL</span><br /><br /><span style=\"color: #B900B9;\">// DEFINO BARRA DE BOTONES Y BOTONES</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">50</span> <span style=\"color: #0000ff;\">OF</span> oWndGrupos <span style=\"color: #000000;\">2010</span><br />      oBar:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar NOBORDER GROUP ;<br />         <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"NUEVO32\"</span> ;<br />         Tooltip <span style=\"color: #ff0000;\">\"Crear Registro\"</span> ;<br />         <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> lNew := .t., cargadata<span style=\"color: #000000;\">&#40;</span> oQry, aVar, aGet <span style=\"color: #000000;\">&#41;</span> ,;<br />            oFldx:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aEvalwhen</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFldx:<span style=\"color: #000000;\">SetOption</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar NOBORDER ;<br />         <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"MODIFI32\"</span> ;<br />         Tooltip <span style=\"color: #ff0000;\">\"Modificar Registro\"</span> ;<br />         <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> lNew := .f., cargadata<span style=\"color: #000000;\">&#40;</span> oQry, aVar, aGet <span style=\"color: #000000;\">&#41;</span> ,;<br />            oFldx:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aEvalwhen</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFldx:<span style=\"color: #000000;\">SetOption</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">RecCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar NOBORDER ;<br />         <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"ELIMI32\"</span> ;<br />         Tooltip <span style=\"color: #ff0000;\">\"Eliminar Registros\"</span> ;<br />         <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> eliminar<span style=\"color: #000000;\">&#40;</span> oQry, oBrw, <span style=\"color: #ff0000;\">\"gru_codigo\"</span> <span style=\"color: #000000;\">&#41;</span>, inivar<span style=\"color: #000000;\">&#40;</span> aVar <span style=\"color: #000000;\">&#41;</span> ,;<br />            iniget<span style=\"color: #000000;\">&#40;</span> aGet <span style=\"color: #000000;\">&#41;</span>, oFldx:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aEvalwhen</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oFldx:<span style=\"color: #000000;\">SetOption</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">RecCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar NOBORDER ;    <span style=\"color: #B900B9;\">// ESTA PENDIENTE...</span><br />         <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CANCEL32\"</span> ;<br />         Tooltip <span style=\"color: #ff0000;\">\"Cancelar Registros\"</span> ;<br />         <span style=\"color: #0000ff;\">ACTION</span> Alert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Cancelar...Pendiente...\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar NOBORDER ;<br />         <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"SALVAR32\"</span> ;<br />         Tooltip <span style=\"color: #ff0000;\">\"Grabar los Datos\"</span> ;<br />         <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> grabagrupo<span style=\"color: #000000;\">&#40;</span> oQry, aVar <span style=\"color: #000000;\">&#41;</span>, inivar<span style=\"color: #000000;\">&#40;</span> aVar <span style=\"color: #000000;\">&#41;</span>, iniget<span style=\"color: #000000;\">&#40;</span> aGet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar NOBORDER ;<br />         <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"EXPOR32\"</span> ;<br />         Tooltip <span style=\"color: #ff0000;\">\"Exportar los Datos\"</span> ;<br />         <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Botones de la BAR\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">RecCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar NOBORDER GROUP ;<br />         <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"PRINT32\"</span> ;<br />         Tooltip <span style=\"color: #ff0000;\">\"Imprimir Listado\"</span> ;<br />         <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">REPORT</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">RecCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oBar NOBORDER GROUP ;<br />         <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"SALIR32\"</span> ;<br />         Tooltip <span style=\"color: #ff0000;\">\"Salir al Menu\"</span> ;<br />         <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> lNew := <span style=\"color: #00C800;\">NIL</span>, oWndGrupos:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      aBtnBar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">lCancel</span> := .t.<br /><br />      SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWndGrupos <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\" Inventario - Maestro de Grupos\"</span> <span style=\"color: #000000;\">2007</span><br /><br /><span style=\"color: #B900B9;\">// DEFINO DLG</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"DLG_NOWAIT\"</span> <span style=\"color: #0000ff;\">OF</span> oWndGrupos<br /><br /><span style=\"color: #B900B9;\">// DEFINO FOLDER</span><br />      <span style=\"color: #0000ff;\">REDEFINE</span> FOLDEREX oFldx <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">401</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />         <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Listado\"</span>, <span style=\"color: #ff0000;\">\"Datos\"</span> ;<br />         <span style=\"color: #0000ff;\">BITMAPS</span> <span style=\"color: #ff0000;\">\"CONFIG16\"</span>, <span style=\"color: #ff0000;\">\"GRUPO16\"</span> ;<br />         <span style=\"color: #0000ff;\">DIALOGS</span> <span style=\"color: #ff0000;\">\"INV_BROWSE\"</span>, <span style=\"color: #ff0000;\">\"INV_CORTOS\"</span><br /><br /><span style=\"color: #B900B9;\">// DIALOGO 1</span><br />      aCampos := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"gru_codigo\"</span>, <span style=\"color: #ff0000;\">\"gru_nombre\"</span><span style=\"color: #000000;\">&#125;</span><br /><br />      oBrw := TXBrowse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oFldx:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      WITH OBJECT oBrw<br />         :<span style=\"color: #000000;\">SetDolphin</span><span style=\"color: #000000;\">&#40;</span> oQry, .t., .t., aCampos <span style=\"color: #000000;\">&#41;</span><br />         :<span style=\"color: #000000;\">nMarqueeStyle</span>       := MARQSTYLE_HIGHLROW<br />         :<span style=\"color: #000000;\">nStretchCol</span>         := STRETCHCOL_LAST<br />         :<span style=\"color: #000000;\">lColDividerComplete</span> := .t.<br />         :<span style=\"color: #000000;\">lAllowColHiding</span>     := .f.<br />         :<span style=\"color: #000000;\">nHeaderHeight</span>       := <span style=\"color: #000000;\">30</span><br />         :<span style=\"color: #000000;\">lFooter</span>             := .t.<br />         :<span style=\"color: #000000;\">lRecordSelector</span>     := .t.<br />         :<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">RecNo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> % <span style=\"color: #000000;\">2</span> == <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK, CLR_WHITE<span style=\"color: #000000;\">&#125;</span> ,;<br />                             <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">0</span>, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">203</span>,<span style=\"color: #000000;\">226</span>,<span style=\"color: #000000;\">254</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />      END WITH<br /><br />      WITH OBJECT oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />         :<span style=\"color: #000000;\">cHeader</span>       := <span style=\"color: #ff0000;\">\"Código\"</span><br />         :<span style=\"color: #000000;\">bEditValue</span>    := <span style=\"color: #000000;\">&#123;</span>|| IIF<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">LastRec</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span>, SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span> ,;<br />                                    oQry:<span style=\"color: #000000;\">gru_codigo</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />         :<span style=\"color: #000000;\">nHeadStrAlign</span> := AL_CENTER<br />         :<span style=\"color: #000000;\">nDataStrAlign</span> := AL_LEFT<br />         :<span style=\"color: #000000;\">nWidth</span>        := <span style=\"color: #000000;\">100</span><br /><br />      END WITH<br /><br />      WITH OBJECT oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br />         :<span style=\"color: #000000;\">cHeader</span>       := <span style=\"color: #ff0000;\">\"Nombre / Descripción\"</span><br />         :<span style=\"color: #000000;\">bEditValue</span>    := <span style=\"color: #000000;\">&#123;</span>|| IIF<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">LastRec</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span>, SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span> ,;<br />                                    oQry:<span style=\"color: #000000;\">gru_nombre</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />         :<span style=\"color: #000000;\">nHeadStrAlign</span> := AL_CENTER<br />         :<span style=\"color: #000000;\">nDataStrAlign</span> := AL_LEFT<br />         :<span style=\"color: #000000;\">nWidth</span>        := <span style=\"color: #000000;\">200</span><br /><br />      END WITH<br /><br />      oBrw:<span style=\"color: #000000;\">CreateFromResource</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">100</span><span style=\"color: #000000;\">&#41;</span><br />      oBrw:<span style=\"color: #000000;\">GOTOP</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>; oBrw:<span style=\"color: #0000ff;\">REFRESH</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// DIALOGO 2</span><br />      <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4004</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span> <span style=\"color: #0000ff;\">OF</span> oFldx:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />         <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> existe<span style=\"color: #000000;\">&#40;</span> oQry, aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #ff0000;\">\"gru_codigo\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">&#40;</span> lNew <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4005</span> <span style=\"color: #0000ff;\">OF</span> oFldx:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />         <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> novacio<span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">&#40;</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> MEMO <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">199</span> <span style=\"color: #0000ff;\">OF</span> oFldx:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />         <span style=\"color: #0000ff;\">WHEN</span> <span style=\"color: #000000;\">&#40;</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <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;\">NOWAIT</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CLICK</span> oDlg:<span style=\"color: #0000ff;\">UPDATE</span> ;<br />         <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #0000ff;\">MOVE</span><span style=\"color: #000000;\">&#40;</span> oBar:<span style=\"color: #000000;\">nHeight</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">VALID</span><span style=\"color: #000000;\">&#40;</span> !GETKEYSTATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">27</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #B900B9;\">//VALID ( .f. )</span><br /><br />      <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndGrupos ;<span style=\"color: #B900B9;\">//ON INIT ( oFldx:SetFocus() ) ;</span><br />         <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oWndGrupos:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, .t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> oWndGrupos := <span style=\"color: #00C800;\">NIL</span>, .t. <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">ELSE</span><br />      oWndGrupos:<span style=\"color: #000000;\">Restore</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      oWndGrupos:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:28hj5ith]\n\nEste es el resultado...\n\n[img]\n[url=http&#58;//www&#46;subirimagenes&#46;net/i/150105042131406823&#46;jpg:28hj5ith][img:28hj5ith]http&#58;//sim1&#46;subirimagenes&#46;net/img/2015/01/05//150105042131406823&#46;jpg[/img:28hj5ith][/url:28hj5ith]\n[/img]", "time": "16:21", "topic": "ButtonBar od DIALOG", "username": "joseluisysturiz" } ]
ButtonBar od DIALOG
[ { "date": "2015-01-05", "forum": "FiveWin for Harbour/xHarbour", "text": "The only way I know to put a buttonbar on a dialog is with the ON INIT clause.\n\nYou can solve your PRIVATE vars issue by creating a class and declaring all the vars as DATA. Then you can just pass the class object. The object will then be holding all the data.\n\nThink OOP.\n\nYou really shouldn't be using PRIVATEs or PUBLICs anymore. They will cause bugs that are hard to find.\n\nJames", "time": "18:17", "topic": "ButtonBar od DIALOG", "username": "James Bott" } ]
ButtonBar od DIALOG
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Till now we had to define buttonbar on a dialog and bar buttons in a separate function called from ON INIT clause while activating the dialog.\n\nNow it is possible to define the buttonbar and buttons in the same procedure/function creating the dialog, same way as in the case of a window.\n\n\\fwh\\samples\\barondlg.prg\n[code=fw:2trdk8z1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> TestDlgBar<br /><br />   <span style=\"color: #00C800;\">local</span> oDlg, oBar, oFont, oSegoe, oBrw<br /><br />   FWNumFormat<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"A\"</span>, .t. <span style=\"color: #000000;\">&#41;</span><br /><br />   USE CUSTOMER <span style=\"color: #00C800;\">NEW</span> SHARED VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont  <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span>     <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span> BOLD<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oSegoe <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Segoe UI\"</span>  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">700</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <span style=\"color: #0000ff;\">FONT</span> oFont ;<br />      <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"ButtonBar on Dialogs : FWH15.04\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">64</span>,<span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">2007</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Add\"</span>     FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\n</span>ew.bmp\"</span>    <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">EditSource</span><span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Edit\"</span>    FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\e</span>dit.bmp\"</span>   <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">EditSource</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Delete\"</span>  FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\d</span>elete.bmp\"</span>       <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">Delete</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Print\"</span>   FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\p</span>rint32.bmp\"</span> GROUP <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">Report</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Excel\"</span>   FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\e</span>xcel.bmp\"</span>        <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">ToExcel</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"PDF\"</span>     FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\p</span>df.bmp\"</span>  <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">Report</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">nil</span>, .t., <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #ff0000;\">\"pdf\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Quit\"</span>    FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\e</span>xit.bmp\"</span> GROUP <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   @ <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg DATASOURCE <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />      COLUMNS <span style=\"color: #ff0000;\">\"First\"</span>, <span style=\"color: #ff0000;\">\"City\"</span>, <span style=\"color: #ff0000;\">\"State\"</span>, <span style=\"color: #ff0000;\">\"Age\"</span>, <span style=\"color: #ff0000;\">\"Salary\"</span> ;<br />      <span style=\"color: #0000ff;\">FONT</span> oSegoe ;<br />      FOOTERS NOBORDER CELL LINES<br /><br />   oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   oDlg:<span style=\"color: #000000;\">oClient</span> := oBrw<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #000000;\">Resize</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont, oSegoe<br /><br />   CLOSE CUSTOMER<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2trdk8z1]\n\n[url=https&#58;//imageshack&#46;com/i/f0o2F3Xrj:2trdk8z1][img:2trdk8z1]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/540/o2F3Xr&#46;jpg[/img:2trdk8z1][/url:2trdk8z1]", "time": "16:52", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "nageswaragunupudi" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Creating buttonbar from resource.\n\n[code=fw:1mjdjbbx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oBar, oFont, oBrw<br /><br />&nbsp; &nbsp;USE STATES<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"timbar\"</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"FWH 15.04 BUTTONBAR FROM RESOURCE\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">64</span>,<span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">2007</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Add\"</span> &nbsp; &nbsp; FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\n</span>ew.bmp\"</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Edit\"</span> &nbsp; &nbsp;FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\e</span>dit.bmp\"</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Delete\"</span> &nbsp;FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\d</span>elete.bmp\"</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Print\"</span> &nbsp; FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\p</span>rint32.bmp\"</span> GROUP<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Quit\"</span> &nbsp; &nbsp;FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\e</span>xit.bmp\"</span> GROUP <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg DATASOURCE <span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">AUTOCOLS</span> FOOTERS<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:1mjdjbbx]\n\nResource File:\n[code=fw:1mjdjbbx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />timbar <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">200</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME | WS_BORDER | WS_DLGFRAME | WS_POPUP | WS_SYSMENU<br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span><br />CAPTION <span style=\"color: #ff0000;\">\"Test\"</span><br />BEGIN<br />&nbsp; &nbsp;CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"TBar\"</span>, <span style=\"color: #000000;\">0</span> | WS_CHILD | WS_VISIBLE, &nbsp; <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">40</span><br />&nbsp; &nbsp;DEFPUSHBUTTON &nbsp; <span style=\"color: #ff0000;\">\"OK\"</span>, IDOK, <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">168</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">14</span>, WS_VISIBLE<br />&nbsp; &nbsp;PUSHBUTTON &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"Cancel\"</span>, IDCANCEL, <span style=\"color: #000000;\">101</span>, <span style=\"color: #000000;\">168</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">14</span>, WS_VISIBLE<br />&nbsp; &nbsp;CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #ff0000;\">\"TXBrowse\"</span>, <span style=\"color: #000000;\">0</span> | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">360</span>, <span style=\"color: #000000;\">100</span><br />END<br />&nbsp;</div>[/code:1mjdjbbx]\n\n[url=https&#58;//imageshack&#46;com/i/exmJ8C9gj:1mjdjbbx][img:1mjdjbbx]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/537/mJ8C9g&#46;jpg[/img:1mjdjbbx][/url:1mjdjbbx]", "time": "18:31", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "nageswaragunupudi" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Great job dear Rao! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "18:35", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "Antonio Linares" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "This is a great new feature, Rao. Thanks!\n\nJames", "time": "21:34", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "James Bott" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2015-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "I will be using this when .04 is released. Thank you.", "time": "22:42", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "TimStone" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2015-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":rqhc8q6e]Great job dear Rao! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:rqhc8q6e]\n+1", "time": "05:27", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "bpd2000" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2015-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Good Morning,\n\nhow to make a combobox in buttonbar a dialog?\n\nThank´s \n\nJoão Alpande", "time": "10:41", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "Joaoalpande" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2015-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Mira este ejemplo by Silvio Falconi...\n\n[url:3utgo119]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=30868&p=177780&hilit=buttonbar+en+dialog#p177735[/url:3utgo119]\n\n[code=fw:3utgo119]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xBrowse.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> &nbsp;LIGHTCYAN &nbsp; &nbsp;nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">203</span>, <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">252</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br />EXTERNAL ORDKEYNO,ORDKEYCOUNT,ORDCREATE,ORDKEYGOTO<br /><br /><span style=\"color: #00C800;\">static</span> oTitle<br /><span style=\"color: #00C800;\">static</span> aFlds,aHdrs,nWild<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oGrid, oFont<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nOrder:= <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nRecno:= <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp;RddSetDefault<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;SetHandleCount<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;USE CUSTOMER <span style=\"color: #0000ff;\">ALIAS</span> CL<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> CL->FIRST &nbsp;TAG FIRST <span style=\"color: #0000ff;\">TO</span> CUSTOMER<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">'Tahoma'</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-12</span><br /><br />&nbsp; &nbsp; &nbsp;nWild := <span style=\"color: #000000;\">2</span><br /><br />&nbsp; &nbsp;aBrowse &nbsp; := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> || CL->FIRST<span style=\"color: #000000;\">&#125;</span>, i18n<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Cognome\"</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> || CL->LAST <span style=\"color: #000000;\">&#125;</span>, i18n<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Nome\"</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> || CL->STREET <span style=\"color: #000000;\">&#125;</span>, i18n<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Indirizzo\"</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">190</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> || CL->STATE<span style=\"color: #000000;\">&#125;</span>, i18n<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Stato\"</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">145</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">640</span>,<span style=\"color: #000000;\">440</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">'Test '</span><br /><br />&nbsp; &nbsp;oGrid := TXBrowse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oDlg <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oGrid:<span style=\"color: #000000;\">nTop</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">30</span><br />&nbsp; &nbsp;oGrid:<span style=\"color: #000000;\">nLeft</span> &nbsp; := <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp;oGrid:<span style=\"color: #000000;\">nBottom</span> := <span style=\"color: #000000;\">200</span><br />&nbsp; &nbsp;oGrid:<span style=\"color: #000000;\">nRight</span> &nbsp;:= <span style=\"color: #000000;\">320</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> i := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">&#40;</span>aBrowse<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oCol := oGrid:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style=\"color: #000000;\">bStrData</span> := aBrowse<span style=\"color: #000000;\">&#91;</span> i, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style=\"color: #000000;\">cHeader</span> &nbsp;:= aBrowse<span style=\"color: #000000;\">&#91;</span> i, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style=\"color: #000000;\">nWidth</span> &nbsp; := aBrowse<span style=\"color: #000000;\">&#91;</span> i, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br /><br /><br />&nbsp; &nbsp;oGrid:<span style=\"color: #000000;\">lIncrFilter</span> &nbsp; := .t.<br />&nbsp; &nbsp;oGrid:<span style=\"color: #000000;\">lSeekWild</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#40;</span> nWild == <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oGrid:<span style=\"color: #000000;\">cFilterFld</span> &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"FIRST\"</span><br /><br />&nbsp; &nbsp;oGrid:<span style=\"color: #000000;\">SetRDD</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oGrid:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;CL-><span style=\"color: #000000;\">&#40;</span>DbSetOrder<span style=\"color: #000000;\">&#40;</span>nOrder<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nRecNo < CL-><span style=\"color: #000000;\">&#40;</span>LastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> .AND. nRecno != <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; CL-><span style=\"color: #000000;\">&#40;</span>DbGoTo<span style=\"color: #000000;\">&#40;</span>nRecno<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; CL-><span style=\"color: #000000;\">&#40;</span>DbGoTop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span><span style=\"color: #000000;\">&#40;</span> Create_bar<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span>, Cerca_cliente<span style=\"color: #000000;\">&#40;</span>oTitle,<span style=\"color: #ff0000;\">\"CL\"</span>,oGrid, oDlg<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> Create_bar<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oTitle _3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">44</span>, <span style=\"color: #000000;\">46</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #000000;\">2007</span> NOBORDER<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> Cerca_cliente<span style=\"color: #000000;\">&#40;</span>oTitle,cdbf,oGrid, oDlg<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nLen := Len<span style=\"color: #000000;\">&#40;</span> oGrid:<span style=\"color: #000000;\">aCols</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> n<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> oCbx<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> cCampo := oGrid:<span style=\"color: #000000;\">cFilterFld</span><br /><br />&nbsp; &nbsp;nWild := <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp;cList := <span style=\"color: #ff0000;\">\"FIRST,LAST,STREET,STATE\"</span><br />&nbsp; &nbsp;aFlds := &nbsp;HB_ATokens<span style=\"color: #000000;\">&#40;</span> cList, <span style=\"color: #ff0000;\">','</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aHdrs := <span style=\"color: #000000;\">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i18n<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Cognome\"</span><span style=\"color: #000000;\">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i18n<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Nome\"</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i18n<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Indirizzo\"</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i18n<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Stato\"</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">6.9</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx <span style=\"color: #0000ff;\">VAR</span> &nbsp;cCampo &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ITEMS</span> &nbsp;aHdrs ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span>oGrid:<span style=\"color: #000000;\">cFilterFld</span> :=aFlds<span style=\"color: #000000;\">&#91;</span>ocbx:<span style=\"color: #000000;\">nat</span><span style=\"color: #000000;\">&#93;</span>, &nbsp;oGrid:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span>, oGrid:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oTitle<br /><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">6.9</span>, <span style=\"color: #000000;\">190</span> <span style=\"color: #0000ff;\">COMBOBOX</span> nWild <span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Voci che iniziano con..\"</span>, <span style=\"color: #ff0000;\">\"Voci che contengono....\"</span> <span style=\"color: #000000;\">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> oGrid:<span style=\"color: #000000;\">lSeekWild</span> := <span style=\"color: #000000;\">&#40;</span> nWild == <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGrid:<span style=\"color: #000000;\">Seek</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oGrid:<span style=\"color: #000000;\">lSeekWild</span>, oGrid:<span style=\"color: #000000;\">cSeek</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGrid:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oTitle<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">6.9</span>,<span style=\"color: #000000;\">340</span> <span style=\"color: #0000ff;\">say</span> oGrid:<span style=\"color: #000000;\">oSeek</span> <span style=\"color: #0000ff;\">PROMPT</span> oGrid:<span style=\"color: #000000;\">cSeek</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oTitle <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK,CLR_WHITE <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">'@!'</span> BORDER<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oTitle FILENAME <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\E</span>xit.bmp\"</span> FLAT ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> TOOLTIP <span style=\"color: #ff0000;\">\"Exit this app\"</span> GROUP<br /><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:3utgo119]\n\u001a", "time": "16:50", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "karinha" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2015-09-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Karinha, necesito usando recurso .rc\n\nGracias", "time": "17:10", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "Joaoalpande" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2015-09-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:il19lcpg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> CAW110<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oItem:=oMOpc, oBtnB:=oBBar , oDlg, oWChld, nColP<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cVar,aIdx:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, oIcon, cBmp, nW, nH ,oFntB ,OsAY,cmail<br />&nbsp; &nbsp;cBmp:=LoadBitMap<span style=\"color: #000000;\">&#40;</span>GetResources<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"C_Pal\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oT:=CA_110<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;\">&#41;</span><br />&nbsp; &nbsp;AFill<span style=\"color: #000000;\">&#40;</span>oT:<span style=\"color: #000000;\">oDat</span>,<span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oDCli:=Open_Dbf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Clientes\"</span>,.T.,.T.,aIdx<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>OrdSetFocus<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span>DbGoTop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cVar:=aIdx<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;oAt:=<span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;oT:<span style=\"color: #000000;\">lObs</span>:=<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>!Empty<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->Observ<span style=\"color: #000000;\">&#41;</span>,.T.,.F.<span style=\"color: #000000;\">&#41;</span><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;\">\"IconSys\"</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWChld <span style=\"color: #0000ff;\">MDIChild</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Clientes\"</span> NOZOOM <span style=\"color: #0000ff;\">ICON</span> oIcon<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CAW110\"</span> <span style=\"color: #0000ff;\">FONT</span> oWnd:<span style=\"color: #000000;\">oFont</span> <span style=\"color: #0000ff;\">OF</span> oWChld<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">LISTBOX</span> oBCli ;<br />&nbsp; &nbsp; &nbsp; FIELDS <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->RazSoc, Ds_Mar<span style=\"color: #000000;\">&#40;</span>cBmp<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->NumCli,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->UltVen<span style=\"color: #000000;\">&#41;</span>, Desp_Imp<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; HEADER <span style=\"color: #ff0000;\">\"NOME/RAZÃO SOCIAL\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"CÓDIGO\"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"ULT. VENDA\"</span>, <span style=\"color: #ff0000;\">\"SDO. ATUAL\"</span> &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; SIZES &nbsp;<span style=\"color: #000000;\">360</span>, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">90</span>, <span style=\"color: #000000;\">90</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp; <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">FONT</span> oWnd:<span style=\"color: #000000;\">oFont</span><br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">aJustify</span> &nbsp;:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">lCellStyle</span>:=.F.<br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">nFreeze</span>:=<span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">nClrForeHead</span>:=CLR_BLACK<br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">nHeaderHeight</span> += <span style=\"color: #000000;\">30</span><br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">nFooterHeight</span> += <span style=\"color: #000000;\">30</span><br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">nLineHeight</span>:=<span style=\"color: #000000;\">15</span><br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">nClrBackHead</span>:=CLR_LBLUE<br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">nClrFBack</span> :=CLR_LBLUE<br />&nbsp; &nbsp;oBCli: <span style=\"color: #000000;\">nClrFFore</span> :=CLR_WHITE<br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">bChange</span> &nbsp; :=<span style=\"color: #000000;\">&#123;</span>|| Refresca<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">bLDblClick</span>:=<span style=\"color: #000000;\">&#123;</span>|| Desp_Men<span style=\"color: #000000;\">&#40;</span>oDlg,<span style=\"color: #000000;\">90</span>,<span style=\"color: #000000;\">240</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">bKeyDown</span> &nbsp;:=<span style=\"color: #000000;\">&#123;</span>|nKey| Val_nKey<span style=\"color: #000000;\">&#40;</span>nKey,oDlg<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBCli:<span style=\"color: #000000;\">bTextColor</span>:=<span style=\"color: #000000;\">&#123;</span>|nRow,nCol,nStyle| <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>nCol=<span style=\"color: #000000;\">5</span> .AND. nStyle=<span style=\"color: #000000;\">0</span> .AND. <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->SalAct<<span style=\"color: #000000;\">0</span>,CLR_RED,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><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: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->EncCom <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><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: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->TelFi1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">112</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->TelFi2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">113</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><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: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->Mor1Fis <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">114</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->Mor2Fis <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">115</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->CodFis <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">116</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->NIC &nbsp; &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">117</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> Desp_Cre<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">118</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->Email &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">119</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->TelFi3 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">120</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">16</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->TelEn1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">125</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">17</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->TelEn2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">126</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">18</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->TelEn3 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">127</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #000000;\">&#40;</span>oDCli<span style=\"color: #000000;\">&#41;</span>->PriVen <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">121</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> Desp_Loc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">122</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">CHECKBOX</span> oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> oT:<span style=\"color: #000000;\">lObs</span> &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">123</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />&nbsp; &nbsp;oT:<span style=\"color: #000000;\">oDat</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> SENSITIVE <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"» Observações «\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">124</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_HRED COLOROVER CLR_HBLUE &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> Get_Observ<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> MOUSEOVER SndPlaySound<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Click.Wav\"</span><span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #B900B9;\">//TRANSPARENT</span><br />&nbsp; &nbsp;nW:=<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>IsWinNT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;nH:=<span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>IsWinNT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">28</span>,<span style=\"color: #000000;\">27</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span>oWChld:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,.T.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWChld ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> &nbsp; <span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,Cria_bar<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span>, Cria_B<span style=\"color: #000000;\">&#40;</span>aIdx,cVar<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> RESIZE <span style=\"color: #000000;\">&#40;</span>oWChld:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">nWidth</span>+nW,oDlg:<span style=\"color: #000000;\">nHeight</span>+nH<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">VALID</span> &nbsp; &nbsp; <span style=\"color: #000000;\">&#40;</span>oWChld:=<span style=\"color: #00C800;\">Nil</span>,Cierra_Dlg<span style=\"color: #000000;\">&#40;</span>oItem,oBtnB<span style=\"color: #000000;\">&#41;</span>,.T.<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------------------//</span><br />Stat <span style=\"color: #00C800;\">Function</span> Cria_bar<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> cLook=<span style=\"color: #ff0000;\">\"2010\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">65</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #000000;\">2010</span> NOBORDER<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">65</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #000000;\">2007</span> NOBORDER<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------------------//</span><br />Stat <span style=\"color: #00C800;\">Function</span> Cria_b<span style=\"color: #000000;\">&#40;</span> aIdx,cVar<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oCbx<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Novo\"</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\s</span>ys<span style=\"color: #000000;\">\\B</span>_New.png\"</span> NOBORDER ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Novo cliente\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> Ad_Dados<span style=\"color: #000000;\">&#40;</span>.T.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Apagar\"</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\s</span>ys<span style=\"color: #000000;\">\\B</span>_Del.png\"</span> NOBORDER ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Apagar Cliente\"</span> &nbsp; <span style=\"color: #0000ff;\">ACTION</span> Del_Dados<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Modificar\"</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\s</span>ys<span style=\"color: #000000;\">\\B</span>_chg.png\"</span> NOBORDER ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Modificar Dados\"</span> &nbsp;<span style=\"color: #0000ff;\">ACTION</span> Ad_Dados<span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Preços\"</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\s</span>ys<span style=\"color: #000000;\">\\p</span>recos32.png\"</span> NOBORDER ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Preços de Venda\"</span> <span style=\"color: #0000ff;\">ACTION</span> Pre_Venda<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"C.Corrente\"</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\s</span>ys<span style=\"color: #000000;\">\\c</span>ntcor32.png\"</span> NOBORDER ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Conta Corrente\"</span> <span style=\"color: #0000ff;\">ACTION</span> Cnt_Corrente<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Movimento\"</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\s</span>ys<span style=\"color: #000000;\">\\m</span>ov32.png\"</span> NOBORDER ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Movimento\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> Movimento<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Consigna.\"</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\s</span>ys<span style=\"color: #000000;\">\\c</span>onsig32.png\"</span> NOBORDER ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Consignação\"</span> &nbsp; <span style=\"color: #0000ff;\">ACTION</span> Pro_Cons<span style=\"color: #000000;\">&#40;</span>oDCli,oBCli,<span style=\"color: #ff0000;\">\"5\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Localizar\"</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\s</span>ys<span style=\"color: #000000;\">\\m</span>aps32.png\"</span> NOBORDER ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Localizar no Google Maps\"</span> &nbsp; <span style=\"color: #0000ff;\">ACTION</span> GOOGLE_MAPA_DIST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Imprimir\"</span> FILE <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\B</span>itmaps<span style=\"color: #000000;\">\\s</span>ys<span style=\"color: #000000;\">\\l</span>ist4.png\"</span> NOBORDER ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Imprimir\"</span> &nbsp; <span style=\"color: #0000ff;\">ACTION</span> Relacao<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx <span style=\"color: #0000ff;\">VAR</span> &nbsp;cVar &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ITEMS</span> &nbsp;aIdx ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> Sel_Index<span style=\"color: #000000;\">&#40;</span>oCbx<span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">110</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oBar<br />&nbsp; &nbsp;oCbx:<span style=\"color: #000000;\">cTooltip</span>:=<span style=\"color: #ff0000;\">\"Classificar...\"</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------------------//</span></div>[/code:il19lcpg]\n\nThank´s", "time": "16:39", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "Joaoalpande" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2020-05-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"bpd2000\":1bquhjif][quote=\"Antonio Linares\":1bquhjif]Great job dear Rao! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:1bquhjif]\n+1[/quote:1bquhjif]\n+1\n\nI join in thanking Mr. Dao.\n\nUn problema que me demoré demasiadas horas en resolver.\nYa es segundo inconveniente que tengo con los controles creados como recursos en Pelles C.\n\nAnteriormente, me falló el control xBrowse, y con la excelente ayuda de Adolfo Lagos pude solucionar.\nAhora tenía problemas con el control ButtonBar, y con el código de ejemplo de Mr. Rao, puedo seguir avanzando.\n\nLo que ocurre es que retomé la programación Harbour-FiveWin este 2020 luego de 5 años de inactividad.\nAhora me encuentro con herramientas más robustas pero que requieren bastante lectura para entender la forma de trabajar.\n\nTerminé usando el editor de recursos Borland WorkShop, el cual tenía un excelente manual y una dll con los controles propios de Fivewin.\n¿Eso ya no existe para Pelles C?\n\nSi agrego el archivo .rc (generado con Pelles C), en el proyecto, me arroja varios errores\nEn cambio, si uso el archivo .res no tengo problemas, excepto los indicados anteriormente.\n\nLa consulta es:\n¿Cuál es la mejor forma de trabajar los recursos, y qué extensión de archivo se debe incluir en el proyecto?\n\n\nLuis Antonio GM\nCuricó-Chile", "time": "19:04", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "lagm" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2020-05-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hola amigo \n\nSegún mi experiencia del último año, si quieres trabajar con .RC, Resedit y con ficheros. res Puelles C. \n\nEn el Foro creo que la mayoría usa. RC, yo personalmente después de haberme peleado mucho con Resedit ahora no tengo ningún problema, prueba y su te da algún error postea, seguro que lo resolvemos \n\nSaludos \n\nJosé. \n\nEnviado desde mi POCOPHONE F1 mediante Tapatalk", "time": "08:21", "topic": "ButtonBar on Dialogs: FWH 15.04", "username": "jvtecheto" } ]
ButtonBar on Dialogs: FWH 15.04
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "If I use the option l2015 how I must make each button to have another color (or on evidence) when each button have lpressed:= .t. ?\nthanks", "time": "09:32", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "You may assign your color gradient\noBar:bClrGrad := <your gradient>", "time": "10:21", "topic": "ButtonBar style 2015", "username": "nageswaragunupudi" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "with oBar:bClrGrad := <your gradient> I change the color of the bar and not the buttons ....\n\n::oBar1:bClrGrad := { | lPressed | If( ! lPressed,;\n { { 1, nRGB( 253, 254, 255 ), nRGB( 179, 217, 255 ) } },;\n { { 1, nRGB( 179, 217, 255 ), nRGB( 253, 254, 255 ) } } ) }\n\nI have esch button as this\n DEFINE BUTTON RESOURCE \"RTFNEW\" OF ::oBar1 GROUP ;\n MESSAGE \"Creates a new document\" ;\n TOOLTIP \"New\" NOBORDER ;\n ACTION ::RTFNew()\n\n[img:118qu8ys]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/05/buttonbar&#46;jpg[/img:118qu8ys]\n\nHow I must make to have the button no border white at init and when each button have lpressed:=.t. colorized ?\nI allready use the param NOBORDER on buttons", "time": "10:51", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nRemember that the pixel color at 0, 0 of the bitmap is used to specify the transparent color to use.\n\nThis is an example:\n[img:1t1v8m0i]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/calc&#46;bmp[/img:1t1v8m0i]", "time": "11:05", "topic": "ButtonBar style 2015", "username": "Antonio Linares" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio sorry but I tried yesterday with many colors filled", "time": "11:06", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nIt is the way we do it in FiveDBU, Fivedit, etc.\n\nPlease modify those examples to reproduce it or please provide a complete example, thanks", "time": "11:09", "topic": "ButtonBar style 2015", "username": "Antonio Linares" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "now I tried also with that color\nand not run ok", "time": "11:10", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "my test ( also to see the error of this topic <!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=32405\">viewtopic.php?f=3&t=32405</a><!-- l --> )\n\n[img:3sqojlia]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/05/nn&#46;jpg[/img:3sqojlia]\n\n\n\n\n[code=fw:3sqojlia]<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> oWndMain<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd,oFont<br /><br /><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndMain <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;\">23</span>, <span style=\"color: #000000;\">79</span> ;<br />          <span style=\"color: #0000ff;\">MENU</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />          <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"test\"</span> ;<br />          <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #00C800;\">NIL</span>, CLR_HGRAY ;<br />          MENUINFO <span style=\"color: #000000;\">9</span> ;<br />          <span style=\"color: #0000ff;\">MDI</span><br /><br />    oWndMain:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span> oFont := TFont<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> GetSysFont<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">0</span>, ;<br />                                               <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> LargeFonts<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">-10</span>, <span style=\"color: #000000;\">-12</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   oWndMain:<span style=\"color: #000000;\">SetIcon</span><span style=\"color: #000000;\">&#40;</span> TIcon<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: #ff0000;\">\"RTFPAD\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      setbar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndMain ;<br />  <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> NEW_WIND_CHILD<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 /><br /><br /><span style=\"color: #00C800;\">function</span> BuildMenu<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oMenu<br /><br />   <span style=\"color: #0000ff;\">MENU</span> oMenu  <span style=\"color: #000000;\">2015</span><br /><br />   <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&File\"</span><br /><br />      <span style=\"color: #0000ff;\">MENU</span><br /><br />          <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&New\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+N\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFNEW\"</span>  <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Creates a new document\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"N\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Open...\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+O\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFOPEN\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Opens an existing document\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"O\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Close\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFCLOSE\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Closes the active document\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br /><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Save\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+S\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFSAVE\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Saves the active document\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"S\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Save &As...\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Saves the active document with a new name\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Print...\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+P\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFPRINT\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Prints the active document\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"P\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Print Pre&view\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFPREVIEW\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Displays full pages\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"P&rint Setup...\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Changes the printer and printing options\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> PrinterSetup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Page Set&up...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFPAGE\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Changes page layout settings\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br /><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Sen&d...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFMAIL\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Sends the active document through electronic mail\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Proper&ties...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFPROPERTY\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Shows the properties of the active document\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Recent Files \"</span><br /><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFEXIT\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Exit from the application\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />        <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><br /><br /> <span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------------------------//</span><br /><br /><br />   <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Edit\"</span><br />          <span style=\"color: #0000ff;\">MENU</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Undo\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+Z\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFUndo\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Reverses the last action\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Z\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Redo\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+Y\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFRedo\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Carries out the previously undone action\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Y\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                   <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Cu&t\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+X\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFCut\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Cuts the selection and puts it on the Clipboard\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"X\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Copy\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+C\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFCopy\"</span>  <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Copies the selection and puts it on the Clipboard\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"C\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Paste\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+V\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFPaste\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts Clipboard contents\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"V\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Paste &Special...\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts Clipboard contents with options\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Select A&ll\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+A\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"SelAll\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Selects the entire document\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"A\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />           <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Delete\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Del\"</span> ;<br />                    <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Del\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Erases the selection\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Find...\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+F\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFFind\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Finds the specified text\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"F\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"R&eplace...\"</span> + Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Ctrl+H\"</span> ;<br />                     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFREPLACE\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Replaces specific text with diferent text\"</span> ;<br />                     ACCELERATOR ACC_CONTROL, <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"H\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br />        <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><br /><br /><br /><br />  <span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------------------------//</span><br />    <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"F&onts\"</span><br />       <span style=\"color: #0000ff;\">MENU</span><br />        <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"F&ont...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFFONT\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Formats the selection with a font\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />        <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Styles...\"</span><br />        <span style=\"color: #0000ff;\">MENU</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Bold...\"</span>      <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFBold\"</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Italic...\"</span>    <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFItalic\"</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Underline...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFUnderLINE\"</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Strikeout...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFSTRIKE\"</span><br />        <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span>  <span style=\"color: #ff0000;\">\"All Capitals...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Upper\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Formats the selection to capital letters (toggle)\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />          *  ::<span style=\"color: #000000;\">oMnuUpp</span>:<span style=\"color: #000000;\">lChecked</span> := .F.<br />            <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><br /><br />       <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Size...\"</span><br />       <span style=\"color: #0000ff;\">MENU</span><br /><br />            <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><br />       <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Text -6color...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFColour\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Formats the selection with a color\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Text Background color...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFHlight\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Highlights the selection with a color\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br />    <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><br />   <span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------------------------//</span><br /><br /><br />   <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Paragraph\"</span><br />         <span style=\"color: #0000ff;\">MENU</span><br /><br />              <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"F&ont...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFFONT\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Formats the selection with a font\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Paragraph...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFPARAGRAPH\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Formats current or selected paragraph(s)\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Numbering\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFNumber\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a numbering on this line\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />          *  ::<span style=\"color: #000000;\">oMnuNum</span>:<span style=\"color: #000000;\">lChecked</span> := .F.<br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"B&ullets\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFBullet\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a bullet on this line\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />          *  ::<span style=\"color: #000000;\">oMnuBul</span>:<span style=\"color: #000000;\">lChecked</span> := .F.<br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Font Color...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFColour\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Formats the selection with a color\"</span> ;<br />                   <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Highlight Color...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFHlight\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Highlights the selection with a color\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br /><br /><br /><br />      <span style=\"color: #0000ff;\">MENUITEM</span>  <span style=\"color: #ff0000;\">\"&Superscript\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Superscript\"</span> CHECKED ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Formats the selection by rising it above the normal text (toggle)\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />           * ::<span style=\"color: #000000;\">oMnuSup</span>:<span style=\"color: #000000;\">lChecked</span> := .F.<br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span>  <span style=\"color: #ff0000;\">\"Su&bscript\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Subscript\"</span> CHECKED ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Formats the selection by lowering it below the normal text (toggle)\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />           * ::<span style=\"color: #000000;\">oMnuSub</span>:<span style=\"color: #000000;\">lChecked</span> := .F.<br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span>  <span style=\"color: #ff0000;\">\"&Upper characters\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Upper\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Formats the selection to capital letters (toggle)\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />           * ::<span style=\"color: #000000;\">oMnuUpp</span>:<span style=\"color: #000000;\">lChecked</span> := .F.<br /><br /><br />           <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><br />     <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"F&ormat\"</span><br />     <span style=\"color: #0000ff;\">MENU</span><br />     <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------------------------//</span><br /><br />   <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Insert\"</span><br />          <span style=\"color: #0000ff;\">MENU</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&File...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFFile\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a file\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Date/time...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFDate\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts today's date and/or time\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Picture...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFIMAGE\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a picture from a file\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Bitmap\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFBMP\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a bitmap from resource\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />            <span style=\"color: #0000ff;\">SEPARATOR</span><br /><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Object...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFOBJ\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a new embedded object\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br />                 <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Table...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFOBJ\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a table\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />        <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------------------------//</span><br />        <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Table\"</span><br />        <span style=\"color: #0000ff;\">MENU</span><br />           <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Table...\"</span>  ;<br />                 <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFTABLE\"</span>    <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a table\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br />     <span style=\"color: #0000ff;\">ENDMENU</span><br /><br />         <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"O&ptions\"</span><br />         <span style=\"color: #0000ff;\">MENU</span><br />            <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Numbering\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFNumber\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a numbering on this line\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />           <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Numbering\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFNumber\"</span> ;<br />                     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Inserts a numbering on this line\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span>  <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">//::RTFNumering2()</span><br /><br /><br /><br />     <span style=\"color: #0000ff;\">ENDMENU</span><br /><br />        <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Window\"</span><br />           <span style=\"color: #0000ff;\">MENU</span><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Cascade\"</span>             <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"WND_CAS\"</span> ;<br />                      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Organizes windows on cascade\"</span> ;<br />                      <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Horizontal mosaic\"</span>   <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"WND_MOH\"</span> ;<br />                      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Organizes windows on horizontal mosaic\"</span> ;<br />                      <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Vertical mosaic\"</span>     <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"WND_MOV\"</span> ;<br />                      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Organizes windows on vertical mosaic\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Minimize Windows\"</span>    <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"WND_MIN\"</span> ;<br />                      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Minimizes all Windows\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Restore all windows\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"WND_MAX\"</span> ;<br />                      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Restores all windows\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"C&lose windows\"</span>       <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"WND_CLO\"</span> ;<br />                      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Closes all windows\"</span> ;<br />                    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Organize Icons\"</span>;<br />                      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Organize minimized windows\"</span> ;<br />                     <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br />        <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------------------------//</span><br /><br /><br /><br />        <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Help\"</span><br />        <span style=\"color: #0000ff;\">MENU</span><br />             <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&About FivePad...\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Help\"</span> ;<br />                      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Displays program information, version number and \"</span> + ;<br />                              <span style=\"color: #ff0000;\">\"copyright\"</span> ;<br />                      <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />               <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Statistic.\"</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Help\"</span> ;<br />                      <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"  \"</span> ;<br />                      <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />        <span style=\"color: #0000ff;\">ENDMENU</span><br />   <span style=\"color: #0000ff;\">ENDMENU</span><br /><br />   <span style=\"color: #00C800;\">RETURN</span> oMenu<br /><br /><br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------------------------------</span><br /><br />   <span style=\"color: #00C800;\">FUNCTION</span> NEW_WIND_CHILD<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">650</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />         <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWndmain ;<br />         <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE,CLR_WHITE<br />        oWnd:<span style=\"color: #000000;\">SetIcon</span><span style=\"color: #000000;\">&#40;</span> TIcon<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: #ff0000;\">\"RTFDOC\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">maximized</span><br />        <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br />  <span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> setbar <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #00C800;\">LOCAL</span> oBar, oCursor<br />     <span style=\"color: #00C800;\">local</span> oBar1,oBar2<br /><br /><br />     <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">CURSOR</span> oCursor HAND<br /><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWndMain 3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">84</span><br /><br />   oBar:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />   oBar:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   @ <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">-1</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar1 <span style=\"color: #0000ff;\">OF</span> oBar 3D <span style=\"color: #0000ff;\">SIZE</span> oBar:<span style=\"color: #000000;\">nWidth</span> - <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">29</span> ;<br />            BUTTONSIZE <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">27</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFNEW\"</span> <span style=\"color: #0000ff;\">OF</span> oBar1 GROUP ;<br />          <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Creates a new document\"</span> ;<br />          TOOLTIP <span style=\"color: #ff0000;\">\"New\"</span> NOBORDER ;<br />          <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFOPEN\"</span> <span style=\"color: #0000ff;\">OF</span> oBar1 ;<br />          <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Opens an existing document\"</span> ;<br />          TOOLTIP <span style=\"color: #ff0000;\">\"Open\"</span> NOBORDER ;<br />          <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br />   oBar1:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />   oBar1:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   AEval<span style=\"color: #000000;\">&#40;</span> oBar1:<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> |x| x:<span style=\"color: #000000;\">oCursor</span> := oCursor <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br />      @ <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">-1</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar2 <span style=\"color: #0000ff;\">OF</span> oBar 3D <span style=\"color: #0000ff;\">SIZE</span> oBar:<span style=\"color: #000000;\">nWidth</span> - <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">29</span> ;<br />            BUTTONSIZE <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">27</span><br /><br /><br />         <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFNEW\"</span> <span style=\"color: #0000ff;\">OF</span> oBar2 GROUP ;<br />          <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Creates a new document\"</span> ;<br />          TOOLTIP <span style=\"color: #ff0000;\">\"New\"</span> NOBORDER ;<br />          <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"RTFOPEN\"</span> <span style=\"color: #0000ff;\">OF</span> oBar2 ;<br />          <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Opens an existing document\"</span> ;<br />          TOOLTIP <span style=\"color: #ff0000;\">\"Open\"</span> NOBORDER ;<br />          <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br />   oBar2:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />   oBar2:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br /><br />   AEval<span style=\"color: #000000;\">&#40;</span> oBar2:<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> |x| x:<span style=\"color: #000000;\">oCursor</span> := oCursor, ;<br />                                   x:<span style=\"color: #000000;\">nLeft</span> += <span style=\"color: #000000;\">219</span>, x:<span style=\"color: #000000;\">nRight</span> += <span style=\"color: #000000;\">219</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// to init on this point </span><br />   oBar1:<span style=\"color: #000000;\">l2015</span>:=.t.<br />   oBar2:<span style=\"color: #000000;\">l2015</span>:=.t.<br /><br /><br />   <span style=\"color: #B900B9;\">//test1</span><br />   oBar2:<span style=\"color: #000000;\">bClrGrad</span>  := <span style=\"color: #000000;\">&#123;</span> | lMouseOver | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ! lMouseOver,;<br />      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">14277043</span>, <span style=\"color: #000000;\">16053482</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">16053482</span>, <span style=\"color: #000000;\">14277043</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">14342911</span>, <span style=\"color: #000000;\">16119295</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">16119295</span>, <span style=\"color: #000000;\">14342911</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 /><br />    <span style=\"color: #B900B9;\">//test2</span><br /><br />   oBar1:<span style=\"color: #000000;\">bClrGrad</span> := <span style=\"color: #000000;\">&#123;</span> | lPressed | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ! lPressed,;<br />                           <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">253</span>, <span style=\"color: #000000;\">254</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">179</span>, <span style=\"color: #000000;\">217</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 />                           <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">179</span>, <span style=\"color: #000000;\">217</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">253</span>, <span style=\"color: #000000;\">254</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> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />  <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br /><br /><br /><br /><br /> </div>[/code:3sqojlia]\n\nthe bitmaps\n\n[b:3sqojlia]rtfnew [/b:3sqojlia] \n[img:3sqojlia]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/05/RTFNEW&#46;bmp[/img:3sqojlia]\n[b:3sqojlia]rtfopen[/b:3sqojlia]\n[img:3sqojlia]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/05/RTFOPEN&#46;bmp[/img:3sqojlia]", "time": "11:22", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nAntonio wrote :\n[quote:1p86suqj]Remember that the pixel color at 0, 0 of the bitmap is used to specify the transparent color to use.[/quote:1p86suqj]\n\nYou have to break the outline ( just one pixel ) to use a color\notherwise the color will be used as TRANSPARENT\nYou cannot use the full backgroundarea.\n\n[img:1p86suqj]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Btncolor1&#46;jpg[/img:1p86suqj]\n\n[img:1p86suqj]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Btncolor2&#46;jpg[/img:1p86suqj]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "11:47", "topic": "ButtonBar style 2015", "username": "ukoenig" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe this is not the problem\nI wish the buttonbar with styles 2003|2007|2010|2013|2015 \nand the btnbmp when are lpressed := .t. must be different color as you see the btnbmp on 2007 when you move the mouse over\non 2015 i not see this difference \nok I cannot use 2015 style ?\nif you download angelwrite and use it on windows seven you can see what I mean\n\n[img:ffq1w22b]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/05/angelwriter&#46;jpg[/img:ffq1w22b]\n\n\nI wish and I like emulate the same on fwh ....if it is possible... I not asked the moon ...thanks", "time": "11:53", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "The two styles 2007 and 2015\ncolor changed on focused buttons from transparent -> 2007 yellow and 2015 blue\nI noticed PRESSED doesn't change the background\n\n[img:1kqfxmso]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Btncolor3&#46;jpg[/img:1kqfxmso]\n\nI tested on Speedcommander\nthere is a colorchange on PRESSED as well\n\n[img:1kqfxmso]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Btncolor4&#46;jpg[/img:1kqfxmso]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "12:09", "topic": "ButtonBar style 2015", "username": "ukoenig" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n for and 2015 blue\nyou use a specific color gradiant ?\nbecause here I not see the difference\n\n[img:4dw43zko]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/05/mio&#46;jpg[/img:4dw43zko]\n\ndo you see the btnbmp pressed ? \nI see only a black box but I set a specific color \n\n AEval( aBar2, { |x| x:nClrBorder:= CLR_HBLUE }, 1, 15)\n\n AEval( aBar2, { |x,y| if(x:lPressed,x:nClrBorder:= CLR_HBLUE, ) }, 1, 15 )", "time": "12:53", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Nothing special just 2015 defined \n\nDEFINE BUTTONBAR oBar SIZE 33, 33 _3D OF oWnd [color=#0000FF:1kk770uv]2015 [/color:1kk770uv]// 2007\n\nbut I'm using Windows 10\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "12:59", "topic": "ButtonBar style 2015", "username": "ukoenig" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "How i can modify the colors \nif move the mouse over the comboBox it is colorized of blue, also the spinners of get but the btnmbp not ...why ?", "time": "16:21", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\njust tested < DEFINE BUTTON uses BTNBMP > :\ndefine < oBtn[1] OF oBar > and You can use BTNBMP - options\n\nAs well have a look at < samples\\[color=#0000FF:wmn7qoqr][b:wmn7qoqr]Testbtb.prg [/b:wmn7qoqr]>[/color:wmn7qoqr] for changing images if needed.\n\nDEFINE BUTTON [color=#0000FF:wmn7qoqr][b:wmn7qoqr]oBtn[1] [/b:wmn7qoqr][/color:wmn7qoqr] OF oBar FILE \".\\bitmaps\\Open.bmp\" MESSAGE \"Open a previous project\" ;\nACTION MsgStop( \"Open Project\", \"Stop\" )\n[color=#0000FF:wmn7qoqr]oBtn[1]:bClrGrad := { | lMouseOver | If( ! lMouseOver,;\n{ { 0.5, 16764573, 16756833 }, ;\n{ 0.5, 16756833, 16764573 } }, ;\n{ { 0.5, 11524015, 13625295 }, ;\n{ 0.5, 13625295, 11524015 } } ) }[/color:wmn7qoqr]\n\nin case You want plain colors for normal and focused, You can use\n\n[color=#0000FF:wmn7qoqr]oBtn[1]:bClrGrad := { | lMouseOver | If( ! lMouseOver,;\n{ { 0.1, 16764573, 16764573 }, ;\n{ 0.1, 16764573, 16764573 } }, ;\n{ { 0.1, 11524015, 11524015 }, ;\n{ 0.1, 11524015, 11524015 } } ) }[/color:wmn7qoqr]\n\n[img:wmn7qoqr]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Btncolor5&#46;jpg[/img:wmn7qoqr]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "19:31", "topic": "ButtonBar style 2015", "username": "ukoenig" } ]
ButtonBar style 2015
[ { "date": "2016-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "By default, we can use only 2 colors.\n1) Normal color\n2) Mouse Over or Pressed\n\nIf we want to have 3 colors\n1) Normal Color\n2) Pressed\n3) Mouse Over\nplease try this sample and adopt:\n[code=fw:eo639s7b]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Btntest<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oWnd:<span style=\"color: #000000;\">oBar</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">32</span>,<span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">2015</span><br /><br />   oWnd:<span style=\"color: #000000;\">oBar</span>:<span style=\"color: #000000;\">bClrGrad</span>   := < |lInvert, oBtn|<br />      <span style=\"color: #00C800;\">if</span> oBtn != <span style=\"color: #00C800;\">nil</span> .and. oBtn:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TBTNBMP\"</span> <span style=\"color: #000000;\">&#41;</span> .and. oBtn:<span style=\"color: #000000;\">lPressed</span><br />         <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>/<span style=\"color: #000000;\">3</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">253</span>, <span style=\"color: #000000;\">222</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">151</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ; <span style=\"color: #B900B9;\">// Any clr grad of your choice</span><br />                  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>/<span style=\"color: #000000;\">3</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>,  <span style=\"color: #000000;\">84</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">233</span>, <span style=\"color: #000000;\">162</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#125;</span><br />      elseif lInvert<br />         <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">145</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #000000;\">247</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">145</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #000000;\">247</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// 2015 : invert</span><br />      <span style=\"color: #00C800;\">endif</span><br />      <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">245</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">245</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>    <span style=\"color: #B900B9;\">// 2015 normal</span><br />      ><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oWnd:<span style=\"color: #000000;\">oBar</span> FILE <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span>    <span style=\"color: #0000ff;\">ACTION</span> BtnAction<span style=\"color: #000000;\">&#40;</span> This <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oWnd:<span style=\"color: #000000;\">oBar</span> FILE <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\o</span>pen3.bmp\"</span>   <span style=\"color: #0000ff;\">ACTION</span> BtnAction<span style=\"color: #000000;\">&#40;</span> This <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oWnd:<span style=\"color: #000000;\">oBar</span> FILE <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\z</span>oom2.bmp\"</span>   <span style=\"color: #0000ff;\">ACTION</span> BtnAction<span style=\"color: #000000;\">&#40;</span> This <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oWnd:<span style=\"color: #000000;\">oBar</span> FILE <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\p</span>rinter.bmp\"</span> <span style=\"color: #0000ff;\">ACTION</span> BtnAction<span style=\"color: #000000;\">&#40;</span> This <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> BtnAction<span style=\"color: #000000;\">&#40;</span> oBtn <span style=\"color: #000000;\">&#41;</span><br /><br />   AEval<span style=\"color: #000000;\">&#40;</span> oBtn:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> |o| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TBTNBMP\"</span> <span style=\"color: #000000;\">&#41;</span>, o:<span style=\"color: #000000;\">lPressed</span> := .f., <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   oBtn:<span style=\"color: #000000;\">lPressed</span> := .t.<br />   oBtn:<span style=\"color: #000000;\">oWnd</span>:<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 /> </div>[/code:eo639s7b]\n\n[url=https&#58;//imageshack&#46;com/i/polbVtfDp:eo639s7b][img:eo639s7b]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/924/lbVtfD&#46;png[/img:eo639s7b][/url:eo639s7b]\n\nIn the above, button 3 is pressed earlier and mouse is now over 1st button.", "time": "15:56", "topic": "ButtonBar style 2015", "username": "nageswaragunupudi" } ]
ButtonBar style 2015
[ { "date": "2016-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Mr Rao this sample is good.. go to make a test to my app!!!", "time": "16:46", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr Rao,\nI have a oBar and on this I have two oBar \n\n [b:15dzucgu]DEFINE BUTTONBAR oBar OF ::oWndMain 3D SIZE 26, 84[/b:15dzucgu]\n\n oBar:bLClicked := { || NIL }\n oBar:bRClicked := { || NIL }\n\n [b:15dzucgu] @ -1, -1 BUTTONBAR ::oBar1 OF oBar 3D SIZE oBar:nWidth - 1, 29 ;\n BUTTONSIZE 26, 27[/b:15dzucgu]\n//sample button \n DEFINE BUTTON RESOURCE \"RTFNEW\" OF ::oBar1 GROUP ;\n MESSAGE \"Creates a new document\" ;\n TOOLTIP \"New\" NOBORDER ;\n ACTION ::RTFNew()\n\n\n ::oBar1:bLClicked := { || NIL }\n ::oBar1:bRClicked := { || NIL }\n\n AEval( ::oBar1:aControls, { |x| x:oCursor := oCursor } )\n\n [b:15dzucgu] @ 26, -1 BUTTONBAR ::oBar2 OF oBar 3D SIZE oBar:nWidth - 1, 29 ;\n BUTTONSIZE 26, 27[/b:15dzucgu]\n\n\n//sample button \n DEFINE BUTTON RESOURCE \"RTFNEW\" OF ::oBar1 GROUP ;\n MESSAGE \"Creates a new document\" ;\n TOOLTIP \"New\" NOBORDER ;\n ACTION ::RTFNew()\n\n\n ::oBar2:bLClicked := { || NIL }\n ::oBar2:bRClicked := { || NIL }\n\n AEval( ::oBar2:aControls, { |x| x:oCursor := oCursor, ;\n x:nLeft += 219, x:nRight += 219 } )\n\n\n [b:15dzucgu]::oBar1:l2015:=.t.\n ::oBar2:l2015:=.t.[/b:15dzucgu]", "time": "17:05", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Rao taking your test I made some modification ( as I have on my app)\n\n[code=fw:1kvesmth]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Btntest<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd,oCursor<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">CURSOR</span> oCursor HAND<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">84</span> <span style=\"color: #000000;\">2015</span><br /><br /><br />&nbsp; &nbsp;oBar:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBar:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">-1</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar1 <span style=\"color: #0000ff;\">OF</span> oBar 3D <span style=\"color: #0000ff;\">SIZE</span> oBar:<span style=\"color: #000000;\">nWidth</span> - <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">29</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BUTTONSIZE <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">27</span><br /><br />&nbsp; &nbsp;oBar1:<span style=\"color: #000000;\">l2015</span>:=.t.<br /><br />&nbsp; &nbsp; oBar1:<span style=\"color: #000000;\">bClrGrad</span> &nbsp; := < |lInvert, oBtn|<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> oBtn != <span style=\"color: #00C800;\">nil</span> .and. oBtn:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TBTNBMP\"</span> <span style=\"color: #000000;\">&#41;</span> .and. oBtn:<span style=\"color: #000000;\">lPressed</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>/<span style=\"color: #000000;\">3</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">253</span>, <span style=\"color: #000000;\">222</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">151</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ; <span style=\"color: #B900B9;\">// Any clr grad of your choice</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>/<span style=\"color: #000000;\">3</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>, &nbsp;<span style=\"color: #000000;\">84</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">233</span>, <span style=\"color: #000000;\">162</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; elseif lInvert<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">145</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #000000;\">247</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">145</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #000000;\">247</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// 2015 : invert</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">245</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">245</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// 2015 normal</span><br />&nbsp; &nbsp; &nbsp; ><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar1 FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\w</span>ork<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span> &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> BtnAction<span style=\"color: #000000;\">&#40;</span> This <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar1 FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\w</span>ork<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\o</span>pen3.bmp\"</span> &nbsp; <span style=\"color: #0000ff;\">ACTION</span> BtnAction<span style=\"color: #000000;\">&#40;</span> This <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;oBar1:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBar1:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> oBar1:<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> |x| x:<span style=\"color: #000000;\">oCursor</span> := oCursor <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">-1</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar2 <span style=\"color: #0000ff;\">OF</span> oBar 3D <span style=\"color: #0000ff;\">SIZE</span> oBar:<span style=\"color: #000000;\">nWidth</span> - <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">29</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BUTTONSIZE <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">27</span><br /><br />&nbsp; oBar2:<span style=\"color: #000000;\">l2015</span>:=.t.<br /><br />&nbsp; &nbsp; &nbsp;oBar2:<span style=\"color: #000000;\">bClrGrad</span> &nbsp; := < |lInvert, oBtn|<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> oBtn != <span style=\"color: #00C800;\">nil</span> .and. oBtn:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TBTNBMP\"</span> <span style=\"color: #000000;\">&#41;</span> .and. oBtn:<span style=\"color: #000000;\">lPressed</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>/<span style=\"color: #000000;\">3</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">253</span>, <span style=\"color: #000000;\">222</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">151</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ; <span style=\"color: #B900B9;\">// Any clr grad of your choice</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>/<span style=\"color: #000000;\">3</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>, &nbsp;<span style=\"color: #000000;\">84</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">233</span>, <span style=\"color: #000000;\">162</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; elseif lInvert<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">145</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #000000;\">247</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">145</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #000000;\">247</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// 2015 : invert</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">245</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">245</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// 2015 normal</span><br />&nbsp; &nbsp; &nbsp; ><br /><br /><br /><br /><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar2 FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\w</span>ork<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\z</span>oom2.bmp\"</span> &nbsp; <span style=\"color: #0000ff;\">ACTION</span> BtnAction<span style=\"color: #000000;\">&#40;</span> This <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar2 FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\w</span>ork<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\p</span>rinter.bmp\"</span> <span style=\"color: #0000ff;\">ACTION</span> BtnAction<span style=\"color: #000000;\">&#40;</span> This <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> BtnAction<span style=\"color: #000000;\">&#40;</span> oBtn <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> oBtn:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> |o| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TBTNBMP\"</span> <span style=\"color: #000000;\">&#41;</span>, o:<span style=\"color: #000000;\">lPressed</span> := .f., <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBtn:<span style=\"color: #000000;\">lPressed</span> := .t.<br />&nbsp; &nbsp;oBtn:<span style=\"color: #000000;\">oWnd</span>:<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 />&nbsp;</div>[/code:1kvesmth]\n\n\n\nand it seems run ok ...", "time": "17:24", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2016-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Mr Rao \n\n[img:1t9kiqhp]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/05/GOOD&#46;jpg[/img:1t9kiqhp]\n\nIt was what I wanted to do", "time": "18:00", "topic": "ButtonBar style 2015", "username": "Silvio.Falconi" } ]
ButtonBar style 2015
[ { "date": "2006-11-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Solucionado mi consulta anterior, lo que no visualizo son los ButtonBar y BTNBMP, los cuales en fw16 sí lo hacen. Estan todos declarados en forma y los leo del recurso creado. Puede ser un error de compilación...\n\nEstan declarados de la siguiente forma:\n\n DEFINE BUTTON RESOURCE \"remito\" of oBarrabotones;\n TOOLTIP \"Remitos\";\n ACTION remito() ;\n MESSAGE (\"Formulario de remitos\") NOBORDER \n\n\ny el btnbmp\n\n REDEFINE BTNBMP oNbut[6] id 109 OF oDlg resource \"btnsalir\",\"btnsali1\" etc etc\n\nen el recurso estan indicados en tipo bitmaps\n\nGracias\n\nLuis", "time": "13:10", "topic": "ButtonBar y BTNBMP", "username": "surGom" } ]
ButtonBar y BTNBMP
[ { "date": "2006-11-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Tampoco me funcionan en los ejemplos que trae el fwh25, están compilados con los mak que trae el mismo. Cuando hice un programa con fwh25 me los mostraba, y ahora no me los muestra, hay que tener algún archivo en especial...\n\nGracias", "time": "13:19", "topic": "ButtonBar y BTNBMP", "username": "surGom" } ]
ButtonBar y BTNBMP
[ { "date": "2006-11-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Luis,\n\nPrueba el ejemplo samples\\TestBtnB.prg que debería funcionarte bien.", "time": "13:41", "topic": "ButtonBar y BTNBMP", "username": "Antonio Linares" } ]
ButtonBar y BTNBMP
[ { "date": "2006-11-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio, lo que hice fue reinstalar el fwh (ya que compilaba también los ejemplos y pasaba lo mismo???), y bueno ahora los BTNBMP funcionan perfecto, lo que me sigue sin mostrar son las imágines de la barra de botones, el ejemplo de fwh funciona pero estamos llamando a los bitmaps desde disco, y en mi caso lo hago desde el recurso, el código es el siguiente...\n\n DEFINE BUTTONBAR oBar 3D OF oVentPrinc;\n SIZE 50,30 //tamaño de los bimaps requeridos\n\n\nDEFINE BUTTON RESOURCE \"cli_bar\" OF oBar ;\n TOOLTIP \"Clientes\";\n ACTION BrwClient() GROUP; \n MESSAGE \"Edición de Clientes\" NOBORDER\n\ndónde todas la variables estan definidas como locales\n\nUso fwh25 versión Octubre 2004 y borland, quisiera poder seguir llamando a los botones desde el recurso (en lo posible).\n\nGracias por tu atención\n\nLuis", "time": "15:57", "topic": "ButtonBar y BTNBMP", "username": "surGom" } ]
ButtonBar y BTNBMP
[ { "date": "2006-01-14", "forum": "FiveWin for CA-Clipper", "text": "I can not find BottonBar functions well with Dialogs Only with Windows . Is this Right ? if So, It is written in NG :\n Bar Commands\n [ OF | WINDOW | DIALOG <oWnd> ] ;\n\n\nfunction main()\nlocal oBar\nDEFINE DIALOG oDlg From 1,5 to 20,65 TITLE \"FiveWin TWBrowse Power!!!\"\nDEFINE BUTTONBAR oBar size 20,20 of DIALOG oDlg\nACTIVATE DIALOG oDlg CENTERED\nreturn nil", "time": "00:30", "topic": "ButtonBars for Dialog", "username": "Ehab Samir Aziz" } ]
ButtonBars for Dialog
[ { "date": "2006-01-14", "forum": "FiveWin for CA-Clipper", "text": "You can place a buttonbar at a dialog from the ON INIT clause of the dialog:\n\n[code:17qobupe]\n ACTIVATE DIALOG oDlg ;\n ON INIT PlaceButtonBar&#40; oDlg &#41;\n\n&#46;&#46;&#46;\n\nfunction PlaceButtonBar&#40; oDlg &#41;\n\n local oBar\n\n DEFINE BUTTONBAR oBar size 20,20 of DIALOG oDlg \n\nreturn nil\n[/code:17qobupe]", "time": "01:54", "topic": "ButtonBars for Dialog", "username": "Antonio Linares" } ]
ButtonBars for Dialog
[ { "date": "2007-08-31", "forum": "FiveWin for CA-Clipper", "text": "Hello Antonio,\nis to declare OK as Static the best solution or is there an other way to end a DIALOG from a Bar?\n\nBTW: in your example I think DIALOG too much\nDEFINE BUTTONBAR oBar size 20,20 of DIALOG oDlg\n\nDEFINE DIALOG oDlg From 1,5 to 20,65 TITLE \"FiveWin TWBrowse Power!!!\" \nDEFINE BUTTONBAR oBar size 20,20 of DIALOG oDlg \n ACTIVATE DIALOG oDlg ; \n ON INIT PlaceButtonBar( oDlg ) \n\nif OK=.t.\n...\nendif\n\nreturn nil \nfunction PlaceButtonBar( oDlg ) \n local oBar \n\n DEFINE BUTTONBAR oBar size 20,20 of oDlg \n\n DEFINE BUTTON FILE \".\\bitmaps2\\E4.bmp\" OF oBar ;\n ACTION (OK:=.T.,oDlg:END()) ;\n MESSAGE \"Neuen Artikel eingeben\" \n\nreturn nil", "time": "15:56", "topic": "ButtonBars for Dialog", "username": "Otto" } ]
ButtonBars for Dialog
[ { "date": "2007-08-31", "forum": "FiveWin for CA-Clipper", "text": "You can delare Ok as local as pass it by reference:\n\nON INIT PlaceButtonBar( oDlg, @Ok )", "time": "17:16", "topic": "ButtonBars for Dialog", "username": "Antonio Linares" } ]
ButtonBars for Dialog
[ { "date": "2007-08-31", "forum": "FiveWin for CA-Clipper", "text": "I tried by reference but with no success.\n\nRegards\nOtto\n\n\n#INCLUDE \"BOX.CH\"\n#INCLUDE \"FILEIO.CH\"\n#INCLUDE \"FIVEWIN.CH\"\n#INCLUDE \"FOLDER.CH\"\n#INCLUDE \"INKEY.CH\"\n#INCLUDE \"REPORT.CH\"\n\n\n\nfunction Main()\n LOCAL oWnd\n\n DEFINE WINDOW oWnd from 1,1 TO 30,60 TITLE \"TEST\";\n MENU bldMenu()\n ACTIVATE WINDOW oWnd\n\nreturn nil\n\nfunction bldMenu()\n LOCAL oMenu\n MENU oMenu\n MENUITEM \"Start\" ;\n ACTION f_code()\n ENDMENU\n\nreturn oMenu\n\nfunc f_code\n LOCAL oDlg\n LOCAL ok := .f.\n\n DEFINE DIALOG oDlg From 1,5 to 20,65 TITLE \"Test Dialog with Buttonbar\"\n\n ACTIVATE DIALOG oDlg ;\n ON INIT PlaceButtonBar( oDlg ,@OK )\n\n if OK=.t.\n msgInfo(\"OK\")\n else\n msgInfo(\"not OK\")\n\n endif\n\nreturn nil\n\nfunction PlaceButtonBar( oDlg , OK)\n local oBar\n\n DEFINE BUTTONBAR oBar size 20,20 of oDlg\n\n DEFINE BUTTON FILE \"E4.bmp\" OF oBar ;\n ACTION (OK:=.T.,oDlg:END()) ;\n MESSAGE \"Neuen Artikel eingeben\"\n\nreturn nil", "time": "17:52", "topic": "ButtonBars for Dialog", "username": "Otto" } ]
ButtonBars for Dialog
[ { "date": "2007-08-31", "forum": "FiveWin for CA-Clipper", "text": "Otto,\n\nIt should work, if not, then declare it as static", "time": "18:19", "topic": "ButtonBars for Dialog", "username": "Antonio Linares" } ]
ButtonBars for Dialog
[ { "date": "2012-12-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos todos,\nTengo un pequeño inconveniente con los botones BUTTONBMP y la tecla ESCAPE, en ambiente MDI utilizando dialogs NOWAIT incrustados en MdiChilds.\nHe condicionado la salida (odlg y Child) mediante GetKeyState(VK_ESCAPE) y me funciona correctamente.\nAhora bien, si el focus lo tiene cualquier objeto que no sea ButtonBmp, la condición trabaja bien. Pero si el usuario hace click sobre cualquier ButtonBmp y i suelta la tecla del ratón fuera del botón, quedando el foco en este, y luego presiona escape, se dispara la acción de la tecla escape y solo cierra el dialog, quedando activa la child. Es decir, si cualquier BUTTONBMP tiene el foco y se oprime la tecla escape, la condición dada con GetKeyState(VK_ESCAPE) se irrespeta, y únicamente cierra el dialog.\n\n¿Alguno de ustedes experimentado este problema? ¿Tiene la solución?\nAgradezco de antemano cualquier comentario al respecto. Utilizo Fwh1204-xHarbour-PellesC\n\nSaludos.", "time": "17:40", "topic": "ButtonBmp + Escape", "username": "FranciscoA" } ]
ButtonBmp + Escape
[ { "date": "2012-12-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Francisco,\nEstablece que cuando se cierre el dialogo, cierra la window\nsaludos\npaco", "time": "21:37", "topic": "ButtonBmp + Escape", "username": "Francisco Horta" } ]
ButtonBmp + Escape
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Francisco, gracias, asi lo hago.\nMira aqui: <!-- l --><a class=\"postlink-local\" href=\"http://fivetechsupport.com/forums/viewtopic.php?f=3&t=25387#p138243\">viewtopic.php?f=3&t=25387#p138243</a><!-- l -->\nSaludos.", "time": "00:19", "topic": "ButtonBmp + Escape", "username": "FranciscoA" } ]
ButtonBmp + Escape
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "A mi me pasaba a menudo.\nDa igual los controles que pusiera, se seguía cerrando el cuadro de dialog sin cerrar el mdi.\nAdemás no podía reproducirlo. Pasaba a veces.\n\nHasta que que lo he conseguido anulando las llamadas en KeyChar que cierran la ventana\n\n[code=fw:2iwmkgyv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> KeyChar<span style=\"color: #000000;\">&#40;</span> nKey, nFlags <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TMdiChild<br /><br />   <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">bKeyChar</span> != <span style=\"color: #00C800;\">nil</span>  <span style=\"color: #B900B9;\">//fgondi</span><br />      <span style=\"color: #00C800;\">return</span> Eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bKeyChar</span>, nKey, nFlags <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #B900B9;\">/*<br />   if nKey == VK_ESCAPE<br />      ::End()<br />      return 0<br />   endif<br />*/</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">KeyChar</span><span style=\"color: #000000;\">&#40;</span> nKey, nFlags <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2iwmkgyv]\n\n[code=fw:2iwmkgyv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> KeyChar<span style=\"color: #000000;\">&#40;</span> nKey, nFlags <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TDialog<br /><br />   <span style=\"color: #00C800;\">if</span> nKey == VK_ESCAPE<br />      <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oWnd</span> = <span style=\"color: #00C800;\">nil</span> .or. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TDIALOG\"</span> <span style=\"color: #000000;\">&#41;</span> .or. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TMDIFRAME\"</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">if</span> SetDialogEsc<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            ::<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">endif</span><br />      <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #B900B9;\">/* fgondi<br />      if ::oWnd != nil .and. ( ::oWnd:IsKindOf( \"TMDICHILD\" ) .or. ;<br />         ::oWnd:IsKindOf( \"TDIALOG\" ) .or. ::oWnd:IsKindOf( \"TMDIFRAME\" ) )<br />         if SetDialogEsc()<br />            //::End() //fgondi<br />         endif<br />      endif<br />   */</span>      <br />      <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span>     <br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">KeyChar</span><span style=\"color: #000000;\">&#40;</span> nKey, nFlags <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2iwmkgyv]", "time": "11:23", "topic": "ButtonBmp + Escape", "username": "fgondi" } ]
ButtonBmp + Escape
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Fernando,\nGracias por contestar.\nHice las modificaciones indicadas en copias de las classes TMDICHILD y TDIALOG, y el comportamiento es el mismo.\nComo explicaba antes, solamente sucede si el focus lo tiene cualquier TBUTTONBMP al momento de oprimir la tecla ESCAPE.\n\nLo que pretendo es que el usuario no pueda salir del DIALOG NOWAIT incrustado en MDICHILD, si oprime ESCAPE. Vale decir que este comportamiento solo es requerido en ciertos dialogs, por lo tanto, el objetivo no es deshabilitar ESCAPE en todo el programa.\n\nPrueba el siguiente código y lo comprobarás. En este comparo las classes TBUTTONBMP vs TBTNBMP . Con la segunda funciona todo bien, pero con la otra no.\nContinúo pensando que el problema está en la Class TBUTTON (Button.prg), y me estoy concentrando en eso, ya que he intentado de todo lo que he encontrado aquí en el foro, sin resultados.\n\n[code=fw:1hz7tj0v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//PRUEBA 4 MDI + MDICHILD + DIALOG NOWAIT INCRUSTADO + ESCAPE</span><br /><span style=\"color: #B900B9;\">//-------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> COLOR_BTNFACE &nbsp; <span style=\"color: #000000;\">15</span><br /><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 /><span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDIChilds\"</span> <span style=\"color: #0000ff;\">MDI</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">maximized</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWndChild, oDlg, oBtn1, oBtn2, oBtn3, oBtn4<br />&nbsp; &nbsp;<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 ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">6</span>;<br /><span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W\"</span> ;<br />BORDER NONE &nbsp;NOMAXIMIZE NOMINIMIZE <span style=\"color: #B900B9;\">// prevent resizing</span><br /><br />oWndChild:<span style=\"color: #000000;\">bGotFocus</span> &nbsp;= <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">STYLE</span> WS_CHILD ;<br /><span style=\"color: #0000ff;\">OF</span> oWndChild <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog from Child- Window\"</span> <span style=\"color: #0000ff;\">PIXEL</span> &nbsp;TRANSPARENT <br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBUTTONBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn1 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Prueba de Focus\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Test\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn2 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBTNBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn3 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;<span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" &nbsp;&Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />oBtn3:<span style=\"color: #000000;\">lTransparent</span> = .t. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;<span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" &nbsp;&Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t. &nbsp; &nbsp;<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>!GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_ESCAPE<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span>, .F.<span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild ;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oWndChild:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">nWidth</span>,oDlg:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:1hz7tj0v] \nNuevamente, muchas gracias por tu amabilidad.\nSaludos.", "time": "14:53", "topic": "ButtonBmp + Escape", "username": "FranciscoA" } ]
ButtonBmp + Escape
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "por favor intenta agregar esto:\nsolo funciona con xharbour, si usas harbour debes incluir la lib xhb y el archivo hbcompat.ch\n\nsalu2\ncarlos vargas\n\n[code=fw:15k73h5p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />....<br />   OVERRIDE <span style=\"color: #00C800;\">METHOD</span> GetDlgCode IN <span style=\"color: #00C800;\">CLASS</span> TButton  WITH KGetDlgCode<br />....<br /><br /><br /><span style=\"color: #B900B9;\">/*-------------------------------------------------------------------------------------------------*/</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> KGetDlgCode<span style=\"color: #000000;\">&#40;</span> nLastKey <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> <span style=\"color: #00C800;\">Self</span> := HB_QSelf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nLastKey</span> := nLastKey<br /><br />   <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />   <span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span> != <span style=\"color: #00C800;\">NIL</span> .and. <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TFOLDER\"</span>   <span style=\"color: #000000;\">&#41;</span> .or. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TFOLDEREX\"</span> <span style=\"color: #000000;\">&#41;</span>      <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">RETURN</span> DLGC_WANTALLKEYS<br />   <span style=\"color: #00C800;\">CASE</span> nLastKey == VK_ESCAPE .and. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span> != <span style=\"color: #00C800;\">NIL</span> .and. <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TWINDOW\"</span> <span style=\"color: #000000;\">&#41;</span> .and. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TDIALOG\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">RETURN</span> DLGC_WANTALLKEYS<br />   <span style=\"color: #00C800;\">ENDCASE</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /> </div>[/code:15k73h5p]\n\nsi no funciona intenta agregar otro case\n[code=fw:15k73h5p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   ...<br />   <span style=\"color: #00C800;\">CASE</span> nLastKey == VK_ESCAPE .and. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span> != <span style=\"color: #00C800;\">NIL</span> .and. <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TMDICHILD\"</span>   <span style=\"color: #000000;\">&#41;</span> .and. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TDIALOG\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">RETURN</span> DLGC_WANTALLKEYS<br />   <span style=\"color: #00C800;\">ENDCASE</span><br /> </div>[/code:15k73h5p]\ny aun no\n[code=fw:15k73h5p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">IF</span> nLastkey == VK_ESCAPE<br />&nbsp; &nbsp; ? ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">Classname</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span> != <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;?::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">Classname</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;</div>[/code:15k73h5p]\nmuestra el resultado, please", "time": "16:52", "topic": "ButtonBmp + Escape", "username": "carlos vargas" } ]
ButtonBmp + Escape
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\nMuchisimas gracias. Precisamente hace unos instantes acabo de postear para Uwe, la posible solución que encontré y es esta. \nVoy a probar tu código.\n[code=fw:2kdqqlxm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> GetDlgCode<span style=\"color: #000000;\">&#40;</span> nLastKey <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TButton<br /><br />   ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nLastKey</span> := nLastKey<br /><br /><span style=\"color: #B900B9;\">/*<br />   if ::oWnd:oWnd != nil .and. ( ::oWnd:oWnd:IsKindOf( \"TFOLDER\" ) .or. ;   //Original<br />                                 ::oWnd:oWnd:IsKindOf( \"TFOLDEREX\" ) )<br />       return DLGC_WANTALLKEYS<br />   endif<br />*/</span><br /><br />  <span style=\"color: #B900B9;\">//FranciscoA 21/12/2012</span><br />  <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span> != <span style=\"color: #00C800;\">nil</span> <br />      <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TFOLDER\"</span> <span style=\"color: #000000;\">&#41;</span> .or. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TFOLDEREX\"</span> <span style=\"color: #000000;\">&#41;</span> <br />         <span style=\"color: #00C800;\">return</span> DLGC_WANTALLKEYS<br />      <span style=\"color: #00C800;\">endif</span><br /><br />      <span style=\"color: #00C800;\">if</span> nLastKey == VK_ESCAPE    <br />         <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TDIALOG\"</span> <span style=\"color: #000000;\">&#41;</span> <br />            <span style=\"color: #00C800;\">return</span> DLGC_WANTALLKEYS<br />         <span style=\"color: #00C800;\">endif</span><br />      <span style=\"color: #00C800;\">endif</span><br />  <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2kdqqlxm] \n[code=fw:2kdqqlxm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//PRUEBA 4 MDI + MDICHILD + DIALOG NOWAIT INCRUSTADO + ESCAPE</span><br /><span style=\"color: #B900B9;\">//-------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> COLOR_BTNFACE   <span style=\"color: #000000;\">15</span><br /><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 /><span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDIChilds\"</span> <span style=\"color: #0000ff;\">MDI</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">maximized</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWndChild, oDlg, oBtn1, oBtn2, oBtn3, oBtn4<br /><span style=\"color: #00C800;\">local</span> bExit<br /><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 ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">6</span>;<br /><span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W\"</span> ;<br />BORDER NONE  NOMAXIMIZE NOMINIMIZE <span style=\"color: #B900B9;\">// prevent resizing</span><br /><br />oWndChild:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">STYLE</span> WS_CHILD ;<br /><span style=\"color: #0000ff;\">OF</span> oWndChild <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog from Child- Window\"</span> <span style=\"color: #0000ff;\">PIXEL</span>  TRANSPARENT <br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBUTTONBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn1 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Prueba de Focus\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Test\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn2 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />         <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBTNBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn3 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />oBtn3:<span style=\"color: #000000;\">lTransparent</span> = .t.                      <br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br />bExit := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Hello...!!! Do you like music?\"</span>+CRLF+;<br />             <span style=\"color: #ff0000;\">\"Voyage at the bottom of the bath (The Shadows)\"</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;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />    <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>!GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_ESCAPE<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span>, .F.<span style=\"color: #000000;\">&#41;</span> ;     <span style=\"color: #B900B9;\">//with the tbutton changes, if you not use getkeystate(), valid clause works as normal escape.</span><br />    <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <br /><br />oWndChild:<span style=\"color: #000000;\">bPostEnd</span> := <span style=\"color: #000000;\">&#123;</span>|| Eval<span style=\"color: #000000;\">&#40;</span>bExit<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> .T. ;       <span style=\"color: #B900B9;\">//if(!GetKeyState(VK_ESCAPE),(MsgInfo(\"I go home.\"), .t.), .F.) ;</span><br />    <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oWndChild:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">nWidth</span>,oDlg:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2kdqqlxm]\nSaludos.", "time": "17:14", "topic": "ButtonBmp + Escape", "username": "FranciscoA" } ]
ButtonBmp + Escape
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Carlos,\nHe probado tu solución y funciona!!!.\nVoy a mantener las dos opciones, por si acaso una de ellas me falla.\n[code=fw:2cs2mlwh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//PRUEBA 4 MDI + MDICHILD + DIALOG NOWAIT INCRUSTADO + ESCAPE</span><br /><span style=\"color: #B900B9;\">//-------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> COLOR_BTNFACE &nbsp; <span style=\"color: #000000;\">15</span><br /><br /><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 /><span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDIChilds\"</span> <span style=\"color: #0000ff;\">MDI</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">maximized</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWndChild, oDlg, oBtn1, oBtn2, oBtn3, oBtn4<br /><span style=\"color: #00C800;\">local</span> bExit<br /><br />OVERRIDE <span style=\"color: #00C800;\">METHOD</span> GetDlgCode IN <span style=\"color: #00C800;\">CLASS</span> TButton &nbsp;WITH KGetDlgCode<br />&nbsp; <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 ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">6</span>;<br /><span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W\"</span> ;<br />BORDER NONE &nbsp;NOMAXIMIZE NOMINIMIZE <span style=\"color: #B900B9;\">// prevent resizing</span><br /><br />oWndChild:<span style=\"color: #000000;\">bGotFocus</span> &nbsp;= <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">STYLE</span> WS_CHILD ;<br /><span style=\"color: #0000ff;\">OF</span> oWndChild <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog from Child- Window\"</span> <span style=\"color: #0000ff;\">PIXEL</span> &nbsp;TRANSPARENT <br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBUTTONBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn1 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Prueba de Focus\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Test\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn2 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBTNBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn3 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;<span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" &nbsp;&Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />oBtn3:<span style=\"color: #000000;\">lTransparent</span> = .t. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;<span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" &nbsp;&Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t. &nbsp; &nbsp;<br /><br />bExit := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Hello...!!! Do you like music?\"</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"Voyage at the bottom of the bath (The Shadows)\"</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;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>!GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_ESCAPE<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span>, .F.<span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <br /><br />oWndChild:<span style=\"color: #000000;\">bPostEnd</span> := <span style=\"color: #000000;\">&#123;</span>|| Eval<span style=\"color: #000000;\">&#40;</span>bExit<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 />&nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> .T. ; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//if(!GetKeyState(VK_ESCAPE),(MsgInfo(\"I go home.\"), .t.), .F.) ;</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oWndChild:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">nWidth</span>,oDlg:<span style=\"color: #000000;\">nHeight</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 /><br /><span style=\"color: #00C800;\">FUNCTION</span> KGetDlgCode<span style=\"color: #000000;\">&#40;</span> nLastKey <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> <span style=\"color: #00C800;\">Self</span> := HB_QSelf<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nLastKey</span> := nLastKey<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span> != <span style=\"color: #00C800;\">NIL</span> .and. <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TFOLDER\"</span> &nbsp; <span style=\"color: #000000;\">&#41;</span> .or. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TFOLDEREX\"</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> DLGC_WANTALLKEYS<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> nLastKey == VK_ESCAPE .and. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span> != <span style=\"color: #00C800;\">NIL</span> .and. <span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TWINDOW\"</span> <span style=\"color: #000000;\">&#41;</span> .and. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TDIALOG\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> DLGC_WANTALLKEYS<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDCASE</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:2cs2mlwh]\nMuchisimas gracias. Estamos a la orden.\nSaludos.", "time": "17:29", "topic": "ButtonBmp + Escape", "username": "FranciscoA" } ]
ButtonBmp + Escape
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Francisco, gracias por el arreglo\n\nlo otro, si utilizas la clase TSBROWSE, y te posisionas en cualquier columna y presionas la tecla ESC este se sale del dialogo dejando todo abierto", "time": "21:03", "topic": "ButtonBmp + Escape", "username": "Patricio Avalos Aguirre" } ]
ButtonBmp + Escape
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Patricio.\nNo he usado la TSBROWSE. Sin embargo, si me envías un ejemplo autocontenido, y todos los componentes de la classe, podría intentarlo.\nSaludos.", "time": "22:38", "topic": "ButtonBmp + Escape", "username": "FranciscoA" } ]
ButtonBmp + Escape
[ { "date": "2010-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Ja so long that I had the problem with buttons ButtonBmp skins using Codejock.\nWhen passing the mouse over the button bitmaps were not shown, after times could solve this.\nIn mousemove method must be called again display, however, this only if the button has Tooltip.\nThe changes are below:\n\nIn class TButtonBmp\n\n METHOD MouseMove( nRow, nCol, nFlags ) INLINE Super:MouseMove( nRow, nCol, nFlags ),;\n \t\t ::oWnd:SetMsg( ::cMsg ), ::Refresh() ,;\n \t\t If(SetSkins() .and. !Empty(::cToolTip), ::Display(), Nil)\n\n <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "16:22", "topic": "ButtonBmp + Skins CodeJock Solved", "username": "Giovany Vecchi" } ]
ButtonBmp + Skins CodeJock Solved
[ { "date": "2012-12-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Friends all,\nI have a small issue with the BUTTONBMP buttons and the ESCAPE key in MDI environment using embedded NOWAIT MdiChilds dialogs.\nI conditioned the output (oDlg and Child) by GetKeyState (VK_ESCAPE) and it works correctly.\nNow if the focus are on any object other than ButtonBmp, the condition works well. But if the user clicks on any ButtonBmp and release the mouse button outside the button, leaving the focus on this, and then press escape, shoots the the escape key action and only closes the dialog, leaving the child active. That is, if any BUTTONBMP has focus and you press the escape key, the given condition with GetKeyState (VK_ESCAPE) is not respected, and only closes the dialog.\n\nHave any of you experienced this problem? Do you have a solution?\nI appreciate any comment. I use Fwh1204-xHarbour-PellesC\n\nGreetings.", "time": "17:53", "topic": "ButtonBmp - Escape", "username": "FranciscoA" } ]
ButtonBmp - Escape
[ { "date": "2012-12-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Francisco,\nYes without < oDlg:bKeyDown >, on Btn-focus, the ESC-key didn't work.\n\nYou can add :\n\n[color=#FF0000:396rx0op][b:396rx0op]oDlg:bKeyDown := { | nKey, nFlags | iif( nKey == VK_ESCAPE, oDlg:End(), ) }[/b:396rx0op][/color:396rx0op]\n\nA sample \nMDI- window => MDI-child => Dialog from MDI-Child ( NOWAIT ) => Dialog from Dialog\n\n[code=fw:396rx0op]<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: #00D7D7;\">#define</span> COLOR_BTNFACE   <span style=\"color: #000000;\">15</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDIChilds\"</span> <span style=\"color: #0000ff;\">MDI</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//( Child(), MsgInfo( oWnd:oWndClient:aWnd[ 1 ]:cCaption ) )</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">maximized</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oDlg, oBtn1, oBtn2, oBtn3<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 ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">6</span>;<br /><span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W\"</span> ;<br />BORDER NONE  NOMAXIMIZE NOMINIMIZE <span style=\"color: #B900B9;\">// prevent resizing</span><br /><br />oWndChild:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">600</span> ;<br /><span style=\"color: #0000ff;\">OF</span> oWndChild <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog from Child- Window\"</span> <span style=\"color: #0000ff;\">PIXEL</span>  TRANSPARENT <br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn1 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span>  <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Child\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> DChild<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span> <br />oBtn1:<span style=\"color: #000000;\">lTransparent</span> = .t.   <br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />oBtn2:<span style=\"color: #000000;\">lTransparent</span> = .t.                      <br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn3 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBtn3:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br />oDlg:<span style=\"color: #000000;\">bKeyDown</span> := <span style=\"color: #000000;\">&#123;</span> | nKey, nFlags | iif<span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE, oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</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;\">//---------------------------------------</span><br /><br /><span style=\"color: #00C800;\">function</span> DChild<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oDlg1, oBtn4, oBtn5, oBtn6<br />   <br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg1 <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">550</span>, <span style=\"color: #000000;\">750</span>  <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Chilf from Dialog \"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span>  TRANSPARENT <br /> <br />@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg1  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span> <br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn5 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg1  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span> <br />oBtn5:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn6 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg1  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> oDlg1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBtn6:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg1 <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:396rx0op]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "21:44", "topic": "ButtonBmp - Escape", "username": "ukoenig" } ]
ButtonBmp - Escape
[ { "date": "2012-12-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Uwe,\nYour sample works fine, but I had referred to BUTTONBMP, not BTNBMP.\nPlease take a look at fallowing code.\nIf a BUTTONBMP has the focus and we press ESCAPE, the dialog closes, but the MDICHILD still open.\n\nI think this behavior comes from the TButton class since TButtonBmp is inherited from that.\n\nWith BTNBMP all works fine.\n\n[code=fw:fhuh9gec]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//PRUEBA 4 MDI + MDICHILD + DIALOG NOWAIT INCRUSTADO + ESCAPE</span><br /><span style=\"color: #B900B9;\">//-------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> COLOR_BTNFACE   <span style=\"color: #000000;\">15</span><br /><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 /><span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDIChilds\"</span> <span style=\"color: #0000ff;\">MDI</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">maximized</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWndChild, oDlg, oBtn1, oBtn2, oBtn3, oBtn4<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 ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">6</span>;<br /><span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W\"</span> ;<br />BORDER NONE  NOMAXIMIZE NOMINIMIZE <span style=\"color: #B900B9;\">// prevent resizing</span><br /><br />oWndChild:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">STYLE</span> WS_CHILD ;<br /><span style=\"color: #0000ff;\">OF</span> oWndChild <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog from Child- Window\"</span> <span style=\"color: #0000ff;\">PIXEL</span>  TRANSPARENT <br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBUTTONBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn1 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Prueba de Focus\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Test\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn2 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBTNBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn3 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />oBtn3:<span style=\"color: #000000;\">lTransparent</span> = .t.                      <br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />    <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>!GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_ESCAPE<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span>, .F.<span style=\"color: #000000;\">&#41;</span> ;<br />    <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild ;<br />    <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oWndChild:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">nWidth</span>,oDlg:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:fhuh9gec]\n\nBest regards.", "time": "23:45", "topic": "ButtonBmp - Escape", "username": "FranciscoA" } ]
ButtonBmp - Escape
[ { "date": "2012-12-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Francisco,\n\nI will check it and tell You the result\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "23:53", "topic": "ButtonBmp - Escape", "username": "ukoenig" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\nThanks for your attention.\n\nRegards.", "time": "00:16", "topic": "ButtonBmp - Escape", "username": "FranciscoA" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Francisco,\nIt works with the changed VALID\n\nACTIVATE DIALOG oDlg NOWAIT ;\n[color=#0000FF:1vfpqsuz][b:1vfpqsuz]VALID ( oWndChild:End(), .t. ) ;[/b:1vfpqsuz][/color:1vfpqsuz]\nON INIT oDlg:Move(0,0) \n\n[color=#FF0000:1vfpqsuz]// VALID if(!GetKeyState(VK_ESCAPE), ( oWndChild:End(), .t. ), .F.) [/color:1vfpqsuz]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "00:38", "topic": "ButtonBmp - Escape", "username": "ukoenig" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\nYes, but the fact is that I want the user can not leave if he uses the key escape.\n\nBest regards.", "time": "00:47", "topic": "ButtonBmp - Escape", "username": "FranciscoA" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Francisco,\n\nsomewhere in the forum there is a function\nYou can enable / disable the esc-key.\n\nfound maybe useful for You :\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=9202&start=0&hilit=disable+esc\">viewtopic.php?f=3&t=9202&start=0&hilit=disable+esc</a><!-- l -->\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "00:51", "topic": "ButtonBmp - Escape", "username": "ukoenig" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\nThanks. Right now I'm reading the post you say.\nMeanwhile, check this out:\n<!-- l --><a class=\"postlink-local\" href=\"http://fivetechsupport.com/forums/viewtopic.php?f=6&t=17845&hilit=escape#p131289\">viewtopic.php?f=6&t=17845&hilit=escape#p131289</a><!-- l -->\nRegards.", "time": "01:01", "topic": "ButtonBmp - Escape", "username": "FranciscoA" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Uwe,\nI think I found out the solution. Please make the below changes in TButton Class and try the sample.\nPlease let me know if it is the right way.\n\n[code=fw:24iriula]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> GetDlgCode<span style=\"color: #000000;\">&#40;</span> nLastKey <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TButton<br /><br />   ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">nLastKey</span> := nLastKey<br /><br /><span style=\"color: #B900B9;\">/*<br />   if ::oWnd:oWnd != nil .and. ( ::oWnd:oWnd:IsKindOf( \"TFOLDER\" ) .or. ;   //Original<br />                                 ::oWnd:oWnd:IsKindOf( \"TFOLDEREX\" ) )<br />       return DLGC_WANTALLKEYS<br />   endif<br />*/</span><br /><br />  <span style=\"color: #B900B9;\">//FranciscoA 21/12/2012</span><br />  <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span> != <span style=\"color: #00C800;\">nil</span> <br />      <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TFOLDER\"</span> <span style=\"color: #000000;\">&#41;</span> .or. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TFOLDEREX\"</span> <span style=\"color: #000000;\">&#41;</span> <br />         <span style=\"color: #00C800;\">return</span> DLGC_WANTALLKEYS<br />      <span style=\"color: #00C800;\">endif</span><br /><br />      <span style=\"color: #00C800;\">if</span> nLastKey == VK_ESCAPE    <br />         <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"TDIALOG\"</span> <span style=\"color: #000000;\">&#41;</span> <br />            <span style=\"color: #00C800;\">return</span> DLGC_WANTALLKEYS<br />         <span style=\"color: #00C800;\">endif</span><br />      <span style=\"color: #00C800;\">endif</span><br />  <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:24iriula]\n\n[code=fw:24iriula]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//PRUEBA 4 MDI + MDICHILD + DIALOG NOWAIT INCRUSTADO + ESCAPE</span><br /><span style=\"color: #B900B9;\">//-------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> COLOR_BTNFACE   <span style=\"color: #000000;\">15</span><br /><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 /><span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDIChilds\"</span> <span style=\"color: #0000ff;\">MDI</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">maximized</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWndChild, oDlg, oBtn1, oBtn2, oBtn3, oBtn4<br /><span style=\"color: #00C800;\">local</span> bExit<br /><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 ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">6</span>;<br /><span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W\"</span> ;<br />BORDER NONE  NOMAXIMIZE NOMINIMIZE <span style=\"color: #B900B9;\">// prevent resizing</span><br /><br />oWndChild:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">STYLE</span> WS_CHILD ;<br /><span style=\"color: #0000ff;\">OF</span> oWndChild <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog from Child- Window\"</span> <span style=\"color: #0000ff;\">PIXEL</span>  TRANSPARENT <br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBUTTONBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn1 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Prueba de Focus\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Test\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn2 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />         <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBTNBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn3 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />oBtn3:<span style=\"color: #000000;\">lTransparent</span> = .t.                      <br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br />bExit := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Hello...!!! Do you like music?\"</span>+CRLF+;<br />             <span style=\"color: #ff0000;\">\"Voyage at the bottom of the bath (The Shadows)\"</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;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />    <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>!GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_ESCAPE<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span>, .F.<span style=\"color: #000000;\">&#41;</span> ;     <span style=\"color: #B900B9;\">//with the tbutton changes, if you not use getkeystate(), valid clause works as normal escape.</span><br />    <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <br /><br />oWndChild:<span style=\"color: #000000;\">bPostEnd</span> := <span style=\"color: #000000;\">&#123;</span>|| Eval<span style=\"color: #000000;\">&#40;</span>bExit<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> .T. ;       <span style=\"color: #B900B9;\">//if(!GetKeyState(VK_ESCAPE),(MsgInfo(\"I go home.\"), .t.), .F.) ;</span><br />    <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oWndChild:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">nWidth</span>,oDlg:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:24iriula]", "time": "17:01", "topic": "ButtonBmp - Escape", "username": "FranciscoA" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Francisco,\n\nI tested Your changes.\nIt just disables the ESC-key of the [color=#FF0000:1fm5kgs2]Child-dialog[/color:1fm5kgs2].\nOpening a normal Dialog from the Buttonbar or another Dialog \nfrom the Child, the ESC-key still works.\n\n[img:1fm5kgs2]http&#58;//www&#46;pflegeplus&#46;com/pictures/dlgesc1&#46;jpg[/img:1fm5kgs2]\n\nAdded :\n\n[code=fw:1fm5kgs2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// a 2. Bar-button</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> Dchild<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// a new Child-button</span><br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn1 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;<span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" &nbsp;&Dialog 2\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> DChild<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span> <br />oBtn1:<span style=\"color: #000000;\">lTransparent</span> = .t. &nbsp; <br /><br /><span style=\"color: #B900B9;\">//------- 2. Dialog --------------------------------</span><br /><br /><span style=\"color: #00C800;\">function</span> DChild<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oDlg1, oBtn4, oBtn5, oBtn6<br />&nbsp; &nbsp;<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg1 <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">550</span>, <span style=\"color: #000000;\">750</span> &nbsp;<span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Chilf from Dialog \"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> &nbsp;TRANSPARENT <br />&nbsp;<br />@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg1 &nbsp;<span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" &nbsp;&Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span> <br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t. &nbsp; &nbsp;<br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn5 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg1 &nbsp;<span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" &nbsp;&Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span> <br />oBtn5:<span style=\"color: #000000;\">lTransparent</span> = .t. &nbsp; &nbsp;<br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn6 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg1 &nbsp;<span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\" &nbsp;&Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> oDlg1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBtn6:<span style=\"color: #000000;\">lTransparent</span> = .t. &nbsp; &nbsp;<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg1 <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:1fm5kgs2]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "18:16", "topic": "ButtonBmp - Escape", "username": "ukoenig" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\nThe goal is to solve why when a ButtonBmp has the focus, the escape key is triggered.\nWhat I mean, is that the goal is not to disable fully the escape key, only somewhere in the code of a program.\nNow, about the sample, if you add to your code If (GetKeyState () in the valid clause of the dialog to prevent exiting out, then it will work as we wants.\n\n[code=fw:oy87qgp6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//PRUEBA 4 MDI + MDICHILD + DIALOG NOWAIT INCRUSTADO + ESCAPE</span><br /><span style=\"color: #B900B9;\">//-------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> COLOR_BTNFACE   <span style=\"color: #000000;\">15</span><br /><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 /><span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDIChilds\"</span> <span style=\"color: #0000ff;\">MDI</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> Dchild<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">maximized</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Child<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWndChild, oDlg, oBtn0, oBtn1, oBtn2, oBtn3, oBtn4<br /><span style=\"color: #00C800;\">local</span> bExit<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 ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">6</span>;<br /><span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W\"</span> ;<br />BORDER NONE  NOMAXIMIZE NOMINIMIZE <span style=\"color: #B900B9;\">// prevent resizing</span><br /><br />oWndChild:<span style=\"color: #000000;\">bGotFocus</span>  = <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">STYLE</span> WS_CHILD ;<br /><span style=\"color: #0000ff;\">OF</span> oWndChild <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog from Child- Window\"</span> <span style=\"color: #0000ff;\">PIXEL</span>  TRANSPARENT <br /><br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn0 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span>  <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Dialog 2\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> DChild<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span> <br />oBtn0:<span style=\"color: #000000;\">lTransparent</span> = .t.<br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBUTTONBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn1 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Prueba de Focus\"</span> <span style=\"color: #000000;\">&#41;</span> ;<br />         <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Test\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">10</span> BUTTONBMP oBtn2 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />         <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> TEXTRIGHT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /><br />@ <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"CLASS TBTNBMP\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn3 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span>  <br />oBtn3:<span style=\"color: #000000;\">lTransparent</span> = .t.                      <br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">150</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br /><br /><br />bExit := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Hello...!!! Do you like music?\"</span>+CRLF+;<br />             <span style=\"color: #ff0000;\">\"Voyage at the bottom of the bath (The Shadows)\"</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;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />    <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>!GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_ESCAPE<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> oWndChild:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span>, .F.<span style=\"color: #000000;\">&#41;</span> ;<br />    <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <br /><br />oWndChild:<span style=\"color: #000000;\">bPostEnd</span> := <span style=\"color: #000000;\">&#123;</span>|| Eval<span style=\"color: #000000;\">&#40;</span>bExit<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> .T. ;    <span style=\"color: #B900B9;\">//if(!GetKeyState(VK_ESCAPE),(MsgInfo(\"I go home.\"), .t.), .F.) ;</span><br />    <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oWndChild:<span style=\"color: #000000;\">SetSize</span><span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">nWidth</span>,oDlg:<span style=\"color: #000000;\">nHeight</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;\">//------- 2. Dialog --------------------------------</span><br /><br /><span style=\"color: #00C800;\">function</span> DChild<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oDlg1, oBtn4, oBtn5, oBtn6<br />   <br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg1 <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">550</span>, <span style=\"color: #000000;\">750</span>  <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Chilf from Dialog \"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span>  TRANSPARENT <br /> <br />@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn4 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg1  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span> <br />oBtn4:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn5 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg1  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Focus-test\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Focus-test\"</span>, <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #000000;\">&#41;</span> <br />oBtn5:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br />@ <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn6 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg1  <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"  &Exit\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span>  oDlg1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />oBtn6:<span style=\"color: #000000;\">lTransparent</span> = .t.    <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg1 ;<br />   <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>!GetKeyState<span style=\"color: #000000;\">&#40;</span>VK_ESCAPE<span style=\"color: #000000;\">&#41;</span>, .T., .F.<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">//<----- here...</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:oy87qgp6]\nGreetings.", "time": "20:30", "topic": "ButtonBmp - Escape", "username": "FranciscoA" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\nI forgot, here's another possible solution\n<!-- l --><a class=\"postlink-local\" href=\"http://fivetechsupport.com/forums/viewtopic.php?f=6&t=25386#p138280\">viewtopic.php?f=6&t=25386#p138280</a><!-- l -->\n\nBest regards.", "time": "20:45", "topic": "ButtonBmp - Escape", "username": "FranciscoA" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Francisco,\n\ntested the valid with some of my tools.\nModal-wnd with dialog-calls\nDialog ( no Window ) with dialog-call\nalso tested with empty dialogs\n\nI couldn't find any problem and the dialogs with the valid have been blocked of closing, using the ESC-key.\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "22:38", "topic": "ButtonBmp - Escape", "username": "ukoenig" } ]
ButtonBmp - Escape
[ { "date": "2012-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\nMany thanks for your time .\n\nBest regards.", "time": "22:45", "topic": "ButtonBmp - Escape", "username": "FranciscoA" } ]
ButtonBmp - Escape
[ { "date": "2024-01-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi, \n\nHow I can change buttonbmp status to TABSTOP or not TABSTOP in execution program?\n\nThanks in advance.", "time": "19:38", "topic": "ButtonBmp TABSTOP", "username": "wartiaga" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:2b7shumc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><br /><span style=\"color: #00D7D7;\">#define</span> WS_CHILD                 <span style=\"color: #000000;\">1073741824</span>  <span style=\"color: #B900B9;\">// 0x40000000L</span><br /><span style=\"color: #00D7D7;\">#define</span> WS_VISIBLE               <span style=\"color: #000000;\">268435456</span>   <span style=\"color: #B900B9;\">// 0x10000000L</span><br /><span style=\"color: #B900B9;\">//#define WS_TABSTOP               65536       // 0x00010000L</span><br /><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <br /><br />    @ <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">30</span> BUTTONBMP 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;\">\"&One\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"One\"</span><span style=\"color: #000000;\">&#41;</span><br />    @ <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">90</span> BUTTONBMP 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;\">\"&Two\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Two - without TabStop\"</span><span style=\"color: #000000;\">&#41;</span><br />    @ <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">150</span> BUTTONBMP 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;\">\"&Three\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Three\"</span><span style=\"color: #000000;\">&#41;</span><br />     <br />      oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nStyle</span>:= nOR<span style=\"color: #000000;\">&#40;</span>WS_CHILD, WS_VISIBLE<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 /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:2b7shumc]", "time": "21:02", "topic": "ButtonBmp TABSTOP", "username": "Cgallegoa" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Cgallegoa\":pc9yfa0o][code=fw:pc9yfa0o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><br /><span style=\"color: #00D7D7;\">#define</span> WS_CHILD                 <span style=\"color: #000000;\">1073741824</span>  <span style=\"color: #B900B9;\">// 0x40000000L</span><br /><span style=\"color: #00D7D7;\">#define</span> WS_VISIBLE               <span style=\"color: #000000;\">268435456</span>   <span style=\"color: #B900B9;\">// 0x10000000L</span><br /><span style=\"color: #B900B9;\">//#define WS_TABSTOP               65536       // 0x00010000L</span><br /><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL <br /><br />    @ <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">30</span> BUTTONBMP 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;\">\"&One\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"One\"</span><span style=\"color: #000000;\">&#41;</span><br />    @ <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">90</span> BUTTONBMP 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;\">\"&Two\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Two - without TabStop\"</span><span style=\"color: #000000;\">&#41;</span><br />    @ <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">150</span> BUTTONBMP 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;\">\"&Three\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Three\"</span><span style=\"color: #000000;\">&#41;</span><br />     <br />      oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nStyle</span>:= nOR<span style=\"color: #000000;\">&#40;</span>WS_CHILD, WS_VISIBLE<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 /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:pc9yfa0o][/quote:pc9yfa0o]\n\nHi Carlos,\nYour example works great but if i put this solution (I use pelles c .res file) not work. See the line above. Thank you!\n\nREDEFINE BUTTONBMP botaonfs ID 4031 of Folder1:aDialogs[2] Bitmap \"DIGNOTAS\" TRANSPARENT TOOLTIP \"Informar Nfe(s)\" cancel action CadNfs()\nbotaonfs:nStyle:= nOR(WS_CHILD, WS_VISIBLE)", "time": "00:39", "topic": "ButtonBmp TABSTOP", "username": "wartiaga" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nTestBmp.prg\n[code=fw:7930q6kz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TEST\"</span><br /><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&One\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">201</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"One\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Two\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">202</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Two - Without TabStop\"</span><span style=\"color: #000000;\">&#41;</span> <br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Three\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">203</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Three\"</span><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 /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:7930q6kz]\n\nTestBmp.rc\n[code=fw:7930q6kz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">TEST <span style=\"color: #0000ff;\">DIALOG</span> DISCARDABLE <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">223</span>, <span style=\"color: #000000;\">66</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br />CAPTION <span style=\"color: #ff0000;\">\"TXBrowse demo\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />  CONTROL <span style=\"color: #ff0000;\">\"&One\"</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span><br />  CONTROL <span style=\"color: #ff0000;\">\"&Two\"</span>, <span style=\"color: #000000;\">202</span>, <span style=\"color: #ff0000;\">\"Button\"</span>, 0x00000000, <span style=\"color: #000000;\">72</span>, <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span>         <span style=\"color: #B900B9;\">//  <== Look this line for No TabStop</span><br />  CONTROL <span style=\"color: #ff0000;\">\"&Three\"</span>, <span style=\"color: #000000;\">203</span>, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">129</span>, <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span><br /><span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:7930q6kz]\n\nWorking fine too.", "time": "01:25", "topic": "ButtonBmp TABSTOP", "username": "Cgallegoa" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Cgallegoa\":2g3xjsn4]Hi,\n\nTestBmp.prg\n[code=fw:2g3xjsn4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TEST\"</span><br /><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&One\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">201</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"One\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Two\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">202</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Two - Without TabStop\"</span><span style=\"color: #000000;\">&#41;</span> <br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Three\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">203</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Three\"</span><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 /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:2g3xjsn4]\n\nTestBmp.rc\n[code=fw:2g3xjsn4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">TEST <span style=\"color: #0000ff;\">DIALOG</span> DISCARDABLE <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">223</span>, <span style=\"color: #000000;\">66</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br />CAPTION <span style=\"color: #ff0000;\">\"TXBrowse demo\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />  CONTROL <span style=\"color: #ff0000;\">\"&One\"</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span><br />  CONTROL <span style=\"color: #ff0000;\">\"&Two\"</span>, <span style=\"color: #000000;\">202</span>, <span style=\"color: #ff0000;\">\"Button\"</span>, 0x00000000, <span style=\"color: #000000;\">72</span>, <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span>         <span style=\"color: #B900B9;\">//  <== Look this line for No TabStop</span><br />  CONTROL <span style=\"color: #ff0000;\">\"&Three\"</span>, <span style=\"color: #000000;\">203</span>, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">129</span>, <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span><br /><span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:2g3xjsn4]\n\nWorking fine too.[/quote:2g3xjsn4]\n\nI think I wasn't very clear, in the .res file I put it as a tabstop but as I use the same dialog for 2 different options in the system I would like to set via program whether the button would use the tabstop or not, this is all to avoid creating two dialogs different. Only the tabstop option for this button changes in the 2 options on my system.\nThanks!", "time": "04:23", "topic": "ButtonBmp TABSTOP", "username": "wartiaga" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:1fpa7k9f]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">? oBtn:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP <span style=\"color: #000000;\">&#41;</span> --> lActive<br />oBtn:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP, &nbsp;.T. &nbsp;<span style=\"color: #000000;\">&#40;</span>or<span style=\"color: #000000;\">&#41;</span> .F. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Enable/Disable the TabStop style</span></div>[/code:1fpa7k9f]", "time": "10:57", "topic": "ButtonBmp TABSTOP", "username": "nageswaragunupudi" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":1qs3g93u][code=fw:1qs3g93u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">? oBtn:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP <span style=\"color: #000000;\">&#41;</span> --> lActive<br />oBtn:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP,  .T.  <span style=\"color: #000000;\">&#40;</span>or<span style=\"color: #000000;\">&#41;</span> .F. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Enable/Disable the TabStop style</span></div>[/code:1qs3g93u][/quote:1qs3g93u]\n\nMr. Nages\n\nDesn't work. In the TABSTOP option of the button in Pelles c I set it to YES but when I use oBtn:WinStyle( WS_TABSTOP, .F. ) it it still continues obeying the initial TABSTOP.\n\nThank you!", "time": "14:43", "topic": "ButtonBmp TABSTOP", "username": "wartiaga" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "wartiaga, explique em português o que você realmente quer fazer no segundo botão, você quer ligar/desligar depois de uma ação do programa(ACTION)? é isso? Qual a razão de ligar/desligar o TABSTOP de um botão? Sinceramente não entendi qual o objetivo disto!\n\nSDS,\n\nRegards, saludos.", "time": "15:04", "topic": "ButtonBmp TABSTOP", "username": "karinha" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Veja como eu façco em COMPRAS.PRG para o módulo de COMPRAS() saber o que fazer com o mesmo Botão:\n\n[code=fw:1l2ise0j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//-> ESTA EM C:\\GERAL GERAL.EXE - HENNING LEGAL. GOSTEI</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Pedidos de Compras(Cliente) \"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"ESTOQUE17\"</span> COLORRIGHT CLR_HBLUE BOLD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> COMPRAS<span style=\"color: #000000;\">&#40;</span> DeOndeVem := <span style=\"color: #000000;\">&#91;</span>CLIENTES<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Manutenção dos Pedidos de Compras \"</span>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Por Cliente. \"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//-> ESTA EM C:\\GERAL GERAL.EXE - HENNING LEGAL. GOSTEI</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Pedidos de Compras(Fornec.) \"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"ESTOQUE18\"</span> COLORRIGHT CLR_HBLUE BOLD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> COMPRAS<span style=\"color: #000000;\">&#40;</span> DeOndeVem := <span style=\"color: #000000;\">&#91;</span>FORNECE<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Manutenção dos Pedidos de Compras \"</span>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Por Fornecedor.\"</span><br />&nbsp;</div>[/code:1l2ise0j]\n\nRegards, saludos.", "time": "16:09", "topic": "ButtonBmp TABSTOP", "username": "karinha" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"karinha\":3rnps9lz]wartiaga, explique em português o que você realmente quer fazer no segundo botão, você quer ligar/desligar depois de uma ação do programa(ACTION)? é isso? Qual a razão de ligar/desligar o TABSTOP de um botão? Sinceramente não entendi qual o objetivo disto!\n\nSDS,\n\nRegards, saludos.[/quote:3rnps9lz]\n\nOi Karinha tudo bem?\n\nVeja só, tenho uma dialog criada em um .res no pelles c ok? Tenho 2 opções no meu sistema que utiliza essa mesma dialog. Em uma das opções eu quero que esse botão não tenha o tabstop e na outra tenha. Isso é para não criar uma outra dialog só por conta do tabstop do botão entendeu? Como é uma dialog que contém muitos objetos não faz sentido eu criar uma nova igual mudando o comportamento no pelles c do tabstop do referido botão. \n\nObrigado.", "time": "15:24", "topic": "ButtonBmp TABSTOP", "username": "wartiaga" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:3uxh89n3]Tenho 2 opções no meu sistema que utiliza essa mesma dialog.[/quote:3uxh89n3]\n\nLOCAL DeOndeVem \n\nDispara do MENU com DeOndeVem e controla na função.\n\nComo você parte(DeOndeVem) do Menu? \n\n[code=fw:3uxh89n3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   <span style=\"color: #00C800;\">IF</span> DeOndeVem = <span style=\"color: #ff0000;\">\"OPCAO1\"</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span>... <span style=\"color: #0000ff;\">WHEN</span><span style=\"color: #000000;\">&#40;</span>..<span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Hide/Enable()/Disable(), etc.</span><br />   <span style=\"color: #00C800;\">ELSE</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> ... <span style=\"color: #0000ff;\">WHEN</span><span style=\"color: #000000;\">&#40;</span>..<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br /> </div>[/code:3uxh89n3]\n\nSds.\n\nRegards, saludos.", "time": "15:31", "topic": "ButtonBmp TABSTOP", "username": "karinha" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "E posso controlar qualquer controle(ID) do diálogo, disparar para a função que eu quiser; Ligar/Desligar qualquer controle(ID), etc.\n\n\n[code=fw:3unieh3i]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> COMPRAS<span style=\"color: #000000;\">&#40;</span> DeOndeVem <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> DeOndeVem = <span style=\"color: #000000;\">&#91;</span>FORNECE<span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> SENSITIVE <span style=\"color: #0000ff;\">SAY</span> aSayCliente <span style=\"color: #0000ff;\">VAR</span> oSayFornece <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">403</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_CYAN <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #0000ff;\">FONT</span> oFnt TRANSPARENT<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//-> Codigo do Fornecedor - XCODFORNE</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> XCODFORNE <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@K 999999999999\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">22</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFnt <span style=\"color: #0000ff;\">UPDATE</span> BITMAP <span style=\"color: #ff0000;\">\"BUSCAR\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">243</span>, <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> MOSTRAR_FORNECEDOR<span style=\"color: #000000;\">&#40;</span> XCODFORNE, aGet, DbCompras, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbClientes, DbFornece, DbEstoque, DbObserva <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> PESQUISA_FORNECEDOR<span style=\"color: #000000;\">&#40;</span> XCODFORNE, aGet, DbCompras, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbClientes, DbFornece, DbEstoque, DbObserva <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">WHEN</span><span style=\"color: #000000;\">&#40;</span> lCodFornece <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">lBtnTransparent</span> := .T. &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// transparent button</span><br />&nbsp; &nbsp; &nbsp; aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bKeyDown</span> := <span style=\"color: #000000;\">&#123;</span> |nKey| <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_F7, Eval<span style=\"color: #000000;\">&#40;</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bAction</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 />&nbsp; &nbsp; &nbsp; aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">cToolTip</span> := OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Digite o C¢digo do Fornecedor \"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> DeOndeVem = <span style=\"color: #000000;\">&#91;</span>CLIENTES<span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> SENSITIVE <span style=\"color: #0000ff;\">SAY</span> aSayCliente <span style=\"color: #0000ff;\">VAR</span> oSayCliente <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">403</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_CYAN <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #0000ff;\">FONT</span> oFnt TRANSPARENT<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//-> Codigo do Fornecedor - XCODFORNE</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> XCODFORNE <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@K 999999999999\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">22</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFnt <span style=\"color: #0000ff;\">UPDATE</span> BITMAP &nbsp; <span style=\"color: #ff0000;\">\"BUSCAR\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">243</span>, <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> PESQUISA_CLIENTES<span style=\"color: #000000;\">&#40;</span> XCODFORNE, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aGet, DbCompras, DbClientes, DbFornece, DbEstoque, DbObserva <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> MOSTRAR_CLIENTES<span style=\"color: #000000;\">&#40;</span> XCODFORNE, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aGet, DbCompras, DbClientes, DbFornece, DbEstoque, DbObserva <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">WHEN</span><span style=\"color: #000000;\">&#40;</span> lCodFornece <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">lBtnTransparent</span> := .T. &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// transparent button</span><br />&nbsp; &nbsp; &nbsp; aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bKeyDown</span> := <span style=\"color: #000000;\">&#123;</span> |nKey| <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_F7, Eval<span style=\"color: #000000;\">&#40;</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bAction</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 />&nbsp; &nbsp; &nbsp; aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">cToolTip</span> := OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Digite o C¢digo do Fornecedor \"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;</div>[/code:3unieh3i]\n\nRegards, saludos.", "time": "16:14", "topic": "ButtonBmp TABSTOP", "username": "karinha" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"karinha\":2kcg4pdx][quote:2kcg4pdx]Tenho 2 opções no meu sistema que utiliza essa mesma dialog.[/quote:2kcg4pdx]\n\nLOCAL DeOndeVem \n\nDispara do MENU com DeOndeVem e controla na função.\n\nComo você parte(DeOndeVem) do Menu? \n\n[code=fw:2kcg4pdx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   <span style=\"color: #00C800;\">IF</span> DeOndeVem = <span style=\"color: #ff0000;\">\"OPCAO1\"</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span>... <span style=\"color: #0000ff;\">WHEN</span><span style=\"color: #000000;\">&#40;</span>..<span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Hide/Enable()/Disable(), etc.</span><br />   <span style=\"color: #00C800;\">ELSE</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> ... <span style=\"color: #0000ff;\">WHEN</span><span style=\"color: #000000;\">&#40;</span>..<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br /> </div>[/code:2kcg4pdx]\n\nSds.\n\nRegards, saludos.[/quote:2kcg4pdx]\n\nVeja só, não quero desabilitar o botão ele tem que permanecer cliclável só não pode receber o foco quando der o tab ou o enter entendeu? Em um prg usando essa dialog ele tem que pular o botão com o enter e em outro ele que que receber o foco, só isso. Valeu!", "time": "16:20", "topic": "ButtonBmp TABSTOP", "username": "wartiaga" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Quando PARTIR do MENU com a OPCAO, no ON INIT do DIALOGO, use o XFOCUS() e ponha o FOCO no botão que você quiser.\n\nRegards, saludos.", "time": "16:25", "topic": "ButtonBmp TABSTOP", "username": "karinha" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:318619pc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lAppend &nbsp;<span style=\"color: #B900B9;\">// SE FOR UMA INCLUSAO DE PROPOSTA, ENTRAR AQUI.</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span><span style=\"color: #000000;\">&#40;</span> XFOCUS<span style=\"color: #000000;\">&#40;</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">VALID</span><span style=\"color: #000000;\">&#40;</span> !GETKEYSTATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">27</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span> &nbsp;<span style=\"color: #B900B9;\">// ALTERACAO DE PROPOSTA, ENTRAR AQUI.</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp; &nbsp; ACTIVATE DIALOG oDlg CENTERED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ON INIT( XFOCUS( aGet[3] ) )<br />&nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span> &nbsp; &nbsp; ; &nbsp;<span style=\"color: #B900B9;\">// MDI pedido pela LEDA.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span><span style=\"color: #000000;\">&#40;</span> XFOCUS<span style=\"color: #000000;\">&#40;</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ; &nbsp;<span style=\"color: #B900B9;\">// 3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">VALID</span><span style=\"color: #000000;\">&#40;</span> !GETKEYSTATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">27</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndChild<br />&nbsp;</div>[/code:318619pc]\n\nRegards, saludos.", "time": "16:31", "topic": "ButtonBmp TABSTOP", "username": "karinha" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"wartiaga\":ebhog7hg][quote=\"nageswaragunupudi\":ebhog7hg][code=fw:ebhog7hg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">? oBtn:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP <span style=\"color: #000000;\">&#41;</span> --> lActive<br />oBtn:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP,  .T.  <span style=\"color: #000000;\">&#40;</span>or<span style=\"color: #000000;\">&#41;</span> .F. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Enable/Disable the TabStop style</span></div>[/code:ebhog7hg][/quote:ebhog7hg]\n\nMr. Nages\n\nDesn't work. In the TABSTOP option of the button in Pelles c I set it to YES but when I use oBtn:WinStyle( WS_TABSTOP, .F. ) it it still continues obeying the initial TABSTOP.\n\nThank you![/quote:ebhog7hg]\n\nNo.\n[u:ebhog7hg][b:ebhog7hg]This should work and in fact this works[/b:ebhog7hg].[/u:ebhog7hg]\n\nKeep this in ON INIT clause.\n\nIn the above example, according to the RC file, tabstop for oBtn[ 2 ] is inactive and tabstop for oBtn[ 1 ] and oBtn[ 2 ] are active.\n\nPlease try this program. Here we enable tabstop for the second button and disable tabstop for the 3rd button.\n[code=fw:ebhog7hg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TEST\"</span><br /><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&One\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">201</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"One\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Two\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">202</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Two - Without TabStop\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Three\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">203</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Three\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />    oDlg:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span> || oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP, .T. <span style=\"color: #000000;\">&#41;</span>, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP, .F. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:ebhog7hg]", "time": "17:47", "topic": "ButtonBmp TABSTOP", "username": "nageswaragunupudi" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:2l91fcre]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TEST\"</span><br /><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Active TS\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">201</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span>WS_TABSTOP,.T.<span style=\"color: #000000;\">&#41;</span>, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<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: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Two\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">202</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Two - Without TabStop\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Disabe TS\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">203</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span>WS_TABSTOP,.F.<span style=\"color: #000000;\">&#41;</span>, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<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 /> <br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:2l91fcre]", "time": "22:10", "topic": "ButtonBmp TABSTOP", "username": "Cgallegoa" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-07", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":1mlrno2b][quote=\"wartiaga\":1mlrno2b][quote=\"nageswaragunupudi\":1mlrno2b][code=fw:1mlrno2b]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">? oBtn:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP <span style=\"color: #000000;\">&#41;</span> --> lActive<br />oBtn:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP,  .T.  <span style=\"color: #000000;\">&#40;</span>or<span style=\"color: #000000;\">&#41;</span> .F. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Enable/Disable the TabStop style</span></div>[/code:1mlrno2b][/quote:1mlrno2b]\n\nMr. Nages\n\nDesn't work. In the TABSTOP option of the button in Pelles c I set it to YES but when I use oBtn:WinStyle( WS_TABSTOP, .F. ) it it still continues obeying the initial TABSTOP.\n\nThank you![/quote:1mlrno2b]\n\nNo.\n[u:1mlrno2b][b:1mlrno2b]This should work and in fact this works[/b:1mlrno2b].[/u:1mlrno2b]\n\nKeep this in ON INIT clause.\n\nIn the above example, according to the RC file, tabstop for oBtn[ 2 ] is inactive and tabstop for oBtn[ 1 ] and oBtn[ 2 ] are active.\n\nPlease try this program. Here we enable tabstop for the second button and disable tabstop for the 3rd button.\n[code=fw:1mlrno2b]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TEST\"</span><br /><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&One\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">201</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"One\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Two\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">202</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Two - Without TabStop\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP 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;\">\"&Three\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">203</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Three\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />    oDlg:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span> || oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP, .T. <span style=\"color: #000000;\">&#41;</span>, oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">WinStyle</span><span style=\"color: #000000;\">&#40;</span> WS_TABSTOP, .F. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:1mlrno2b][/quote:1mlrno2b]\n\nThank you Nages for the help look:\n\nMy button line:\n\nREDEFINE BUTTONBMP botaonfs ID 4031 of Folder1:aDialogs[2] Bitmap \"DIGNOTAS\" TRANSPARENT TOOLTIP \"Informar Nfe(s)\";\ncancel action CadNfs()\n\nFolder1:aDialogs[2]:bInit := { || botaonfs:WinStyle( WS_TABSTOP, .F. ) } // This is correct? If Yes dont work.", "time": "18:20", "topic": "ButtonBmp TABSTOP", "username": "wartiaga" } ]
ButtonBmp TABSTOP
[ { "date": "2024-01-07", "forum": "FiveWin for Harbour/xHarbour", "text": "I tested with a sample posted earlier in this thread it is working.\nIf it is not working in another program, please post your code which is not working for you along with your rc file.", "time": "18:23", "topic": "ButtonBmp TABSTOP", "username": "nageswaragunupudi" } ]
ButtonBmp TABSTOP
[ { "date": "2008-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nWhen we will have?", "time": "23:54", "topic": "ButtonBmp and 2007 look", "username": "vilian" } ]
ButtonBmp and 2007 look
[ { "date": "2008-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Take TSBUTTON an you have it.\nRegards,\nOtto", "time": "07:05", "topic": "ButtonBmp and 2007 look", "username": "Otto" } ]
ButtonBmp and 2007 look
[ { "date": "2008-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nThanks, but I would exactly like to continue using buttonbmp.", "time": "20:38", "topic": "ButtonBmp and 2007 look", "username": "vilian" } ]
ButtonBmp and 2007 look
[ { "date": "2008-04-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Vilian,\n\nWe are going to provide the Office 2007 look for the buttons probably for next FWH build (8.05)", "time": "08:01", "topic": "ButtonBmp and 2007 look", "username": "Antonio Linares" } ]
ButtonBmp and 2007 look
[ { "date": "2008-04-10", "forum": "FiveWin for Harbour/xHarbour", "text": "<!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n <!-- s:x --><img src=\"{SMILIES_PATH}/icon_mad.gif\" alt=\":x\" title=\"Mad\" /><!-- s:x --> <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "16:00", "topic": "ButtonBmp and 2007 look", "username": "Silvio" } ]
ButtonBmp and 2007 look