messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2007-10-03", "forum": "FiveWin para Harbour/xHarbour", "text": "aunque parezca mentira, sigo sin poder visualizar un buttonbmp como Dios manda. Tanto TEXT como BMP se pisan en el centro del Button y no consigo moverlos aun utilizando las 4 clausulas TEXTTOP, TEXT...\n\nLos bitmap son 32x32 y perfectamente se arman si utilizo un BTNBMP\nRevise los ejemplos de \\Samples.\n\nEn mi PRG: \nredefine Buttonbmp ob1 id 141 OF oDlg ACTION resumeag() bitmap 'Atencion' TEXTRIGHT PROMPT space(4)+\"avisos\" \nredefine Buttonbmp ob2 id 202 OF oDlg ACTION odlg:end()bitmap 'Salir' PROMPT \" Salir AHORA\" TEXTRIGHT \noB1:cTooltip:= \"Ver avisos pendientes\" \noB2:cTooltip:= \"Salir\" \n\nEn mi RC: \nPUSHBUTTON \"Button\", 141, 59, 270, 71, 44 \nPUSHBUTTON \"Button\", 202, 131, 270, 73, 42 \n\n\nUtilizo FWH2.7.... ¿hay problemas en esta versión con los buttonbmp?\n\nMil gracias.\nLORENZO", "time": "13:57", "topic": "ButtonBMP", "username": "Loren" } ]
ButtonBMP
[ { "date": "2007-10-03", "forum": "FiveWin para Harbour/xHarbour", "text": "REDEFINE BUTTONBMP obtn[5] PROMPT \"F5\"+CRLF+ \"Ex&trato\" ID 4015 OF pfDlg BITMAP \"PRINT\" TEXTTOP CANCEL\n\nEm PELLES :\n\nVert Alignment = TOP\n\n\nUso sem problemas \n\n\nAoki", "time": "14:16", "topic": "ButtonBMP", "username": "AOKISANTOS" } ]
ButtonBMP
[ { "date": "2006-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\ntengo el problema que con estos botones necesito hacer mas de una vez click con el raton sobre ellos para que se ejecute lo definido en ACTION, hay alguna solucion para ello?\n\nsaludos\n\nMarcelo", "time": "20:51", "topic": "ButtonBMP de Rossini", "username": "Marcelo Via Giglio" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Marcelo,\n\nTe enviamos por email la clase de FWH, modificada compatible con la de Rossine para que la pruebes. Gracias.", "time": "21:14", "topic": "ButtonBMP de Rossini", "username": "Antonio Linares" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio:\n\nSeria tabn amable de enviarme la clase Rosine a mi\ntambien.\n\nMuchas gracias.\n\nRuben Fernandez", "time": "21:23", "topic": "ButtonBMP de Rossini", "username": "RuFer" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":3hildpdw]Marcelo,\n\nTe enviamos por email la clase de FWH, modificada compatible con la de Rossine para que la pruebes. Gracias.[/quote:3hildpdw]\n\nGracia Antonio,\n\ncambie el prg respectivo, si bien no tengo problemas con hacer mas de un click para que se ejecute el ACTION, pero ahora ya no se muestran los BMPs del boton <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nsaludos\n\nMarcelo", "time": "22:04", "topic": "ButtonBMP de Rossini", "username": "Marcelo Via Giglio" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Te envio fivewin.ch por email", "time": "23:47", "topic": "ButtonBMP de Rossini", "username": "Antonio Linares" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio\nPodrías enviarmelas a mí tambien.\n\nGracias\nToni Sales", "time": "07:31", "topic": "ButtonBMP de Rossini", "username": "tsales" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Toni,\n\nEnviados,", "time": "07:58", "topic": "ButtonBMP de Rossini", "username": "Antonio Linares" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1nijd9gr]Te envio fivewin.ch por email[/quote:1nijd9gr]\n\nRecibido Antonio, pero te coimento que el comportamiento sigue igual, otra idea?\n\nsaludos\n\nMarcelo", "time": "13:42", "topic": "ButtonBMP de Rossini", "username": "Marcelo Via Giglio" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba este ejemplo. Aqui funciona correctamente:\n<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/0200ce8d51/testbubm.zip.html\">http://hyperupload.com/download/0200ce8 ... m.zip.html</a><!-- m -->", "time": "14:54", "topic": "ButtonBMP de Rossini", "username": "Antonio Linares" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":28h5c0hk]Prueba este ejemplo. Aqui funciona correctamente:\n<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/0200ce8d51/testbubm.zip.html\">http://hyperupload.com/download/0200ce8 ... m.zip.html</a><!-- m -->[/quote:28h5c0hk]\n\nAntonio,\n\ngracias, solucionado, reemplace el fivewin.ch y quite el buttonbmp.ch, este ultimo era el problema, ahora todo esta Ok, perdon por tu tiempo\n\nsaludos\n\nMarcelo", "time": "15:32", "topic": "ButtonBMP de Rossini", "username": "Marcelo Via Giglio" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio, podrías enviarme la clase a mí también por favor, y de ser posible el ejemplo, que de hecho ya no está disponible en el Hiperupload?\n\nGracias desde ya", "time": "16:36", "topic": "ButtonBMP de Rossini", "username": "jose_murugosa" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose,\n\nEnviada por email,", "time": "19:53", "topic": "ButtonBMP de Rossini", "username": "Antonio Linares" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio\n\n me la podria enviar tambien a mi por favor.\n\n\n\nSaludos\n\n Marco A. Delgado.", "time": "01:30", "topic": "ButtonBMP de Rossini", "username": "Marco A. Delgado" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Marco,\n\nVamos a publicarla dentro de pocos días en el build de Abril.", "time": "08:34", "topic": "ButtonBMP de Rossini", "username": "Antonio Linares" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Olá Antonio,\n\nGrande notícia <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> Toda comunidade será beneficiada com isto. Você pretende implementar as mudanças que eu fiz sobre a classe TFolder também ? \n\nEu realmente prefiro as próprias classe do fivewin do que as classes de terceiro, pois assim temos certeza da continuidade e evolução das mesmas.\n\nSaludos,\n\nRossine.", "time": "13:28", "topic": "ButtonBMP de Rossini", "username": "Rossine" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Rossine,\n\nSi, también publicaremos los cambios de TFolder. En la clase TButtonBmp hemos cambiado algunas cosas.\n\nGracias!", "time": "13:31", "topic": "ButtonBMP de Rossini", "username": "Antonio Linares" } ]
ButtonBMP de Rossini
[ { "date": "2006-03-31", "forum": "FiveWin para Harbour/xHarbour", "text": "OK Maestro <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nGracias, Saludos.\n\nRossine.", "time": "15:01", "topic": "ButtonBMP de Rossini", "username": "Rossine" } ]
ButtonBMP de Rossini
[ { "date": "2006-04-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Rossini podrias enviarme la clase a mi tambien por favor.\n\n\nsaludos.\nfernando sandoval ruiz", "time": "20:27", "topic": "ButtonBMP de Rossini", "username": "fsandoval" } ]
ButtonBMP de Rossini
[ { "date": "2006-06-23", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2ongwc5s]Marco,\n\nVamos a publicarla dentro de pocos días en el build de Abril.[/quote:2ongwc5s]\n\nEntonio,\nme prodrias enviar ese fuente a mi coreo por favor\nsaludos cordiales <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "16:25", "topic": "ButtonBMP de Rossini", "username": "Jose Luis Aguilar Solis" } ]
ButtonBMP de Rossini
[ { "date": "2006-06-23", "forum": "FiveWin para Harbour/xHarbour", "text": "me uno a la peticion", "time": "19:53", "topic": "ButtonBMP de Rossini", "username": "leandro" } ]
ButtonBMP de Rossini
[ { "date": "2006-08-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola compañeros del foro\ntengo problemas ya que tambien tengo que pulsar varias veces el el boton para que me responda\n\nojala y me puedan ayudar\nsaludos cordiales \njose Luis", "time": "18:40", "topic": "ButtonBMP de Rossini", "username": "Jose Luis Aguilar Solis" } ]
ButtonBMP de Rossini
[ { "date": "2015-05-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos:\n\nEstoy implementando mis programas con las buttonbar, y me pasa lo siguiente:\n\nCuando pasa del menú principal a un menú de opciones, no puedo conseguir que se mantenga la letra inicial. Esta es la barra de menú de menú Principal:\n\n[img:250e3suh]http&#58;//www&#46;colthop&#46;es/imagen01&#46;jpg[/img:250e3suh]\n\nY cuando entramos en una opción quito la BUTTONBAR con: \"oVentPrinc:oBar:End()\" y pongo la otra barra en la siguiente ventana y queda así:\n\n[img:250e3suh]http&#58;//www&#46;colthop&#46;es/imagen03&#46;jpg[/img:250e3suh]\n\nEn vez de quedar como desearía y es:\n\n[img:250e3suh]http&#58;//www&#46;colthop&#46;es/imagen02&#46;jpg[/img:250e3suh]\n\nEsto lo consigo gracias a que en vez de eliminar la BUTTONBAR la oculto con oBar:Hide(). Me gustaría saber si se sigue entrando en opciones se sigan creando nuevas BUTTONBAR estas usan cada vez mas memoria y objetos o cuando la ocultas y creas otra la anterior se elimina.\n\nUn saludo\n\nCarlos", "time": "20:35", "topic": "ButtonBar", "username": "colthop" } ]
ButtonBar
[ { "date": "2015-05-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Se me olvidaba:\n\nHe intentado quitar un botón de la ButtonBar con oBtn:End() y pese a que no funciona a partir de la instrucción no se quita la imagen de la pantalla y aparece como en segundo plano. Me podríais indicar coso se puede quitar.\n\nUn saludo y gracias.\n\nCarlos", "time": "21:06", "topic": "ButtonBar", "username": "colthop" } ]
ButtonBar
[ { "date": "2015-05-03", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"colthop\":o09daoay]Se me olvidaba:\n\nHe intentado quitar un botón de la ButtonBar con oBtn:End() y pese a que no funciona a partir de la instrucción no se quita la imagen de la pantalla y aparece como en segundo plano. Me podríais indicar coso se puede quitar.\n\nUn saludo y gracias.\n\nCarlos[/quote:o09daoay]\n\nPrueba a utilizar el Metodo: oBar:Del( nPos )", "time": "21:23", "topic": "ButtonBar", "username": "cnavarro" } ]
ButtonBar
[ { "date": "2015-05-03", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Cristóbal:\n\nAnte todo gracias por tu interés y en un principio parece que funciona pero pasa una cosa extraña después y es lo siguiente cuando tengo siete botones y quito por ejemplo el 3 todos se mueven uno a la izquierda pero cuando paso el ratón por el tercero (que antes era el cuarto) vuelve a mostrar el botón que he quitado y esto solo pasa con la posición que he quitado el resto si quedan bien.\n\nUn saludo\n\nCarlos", "time": "22:21", "topic": "ButtonBar", "username": "colthop" } ]
ButtonBar
[ { "date": "2015-05-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos,\n\nPuedes proporcionar un ejemplo para probarlo aqui ? gracias", "time": "09:53", "topic": "ButtonBar", "username": "Antonio Linares" } ]
ButtonBar
[ { "date": "2015-05-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio:\n\nMe es muy difícil en este momento ya que como no sabia como solucionarlo quite las dos BUTTONBAR y sus botones y lo estoy sustituyendo por RIBBONBAR.\n\nPero era muy sencillo de recrear era en una ventana inical con un menú y se creaba la BUTTONBAR \nPongamos:\n[code=fw:2hy4b68v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oVentPrinc <span style=\"color: #0000ff;\">MDI</span> <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;\">24</span>,<span style=\"color: #000000;\">80</span>;<br />        COLORS escri1, RGB <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span>;<br />        <span style=\"color: #0000ff;\">ICON</span> <span style=\"color: #ff0000;\">\"FyVWin.ico\"</span><br />        SET <span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #0000ff;\">OF</span> oVentPrinc <span style=\"color: #0000ff;\">TO</span> oFont<br />        SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oVentPrinc <span style=\"color: #0000ff;\">TO</span> LocaText<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">837</span><span style=\"color: #000000;\">&#41;</span> KEYBOARD CLOCK DATE <span style=\"color: #000000;\">2007</span><br />        oVentPrinc:<span style=\"color: #000000;\">oMenu</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oVentPrinc <span style=\"color: #0000ff;\">MAXIMIZED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> pintboto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">VALID</span> ! GetKeyState <span style=\"color: #000000;\">&#40;</span>VK_ESCAPE<span style=\"color: #000000;\">&#41;</span></div>[/code:2hy4b68v]\n\nEn un principio quito el menú y ejecuto \"PintBoto\" para colocar las cosas en un orden y no este saltando en la pantalla las cosas\n\n[code=fw:2hy4b68v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">PROCEDURE pintboto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oVentPrinc:<span style=\"color: #000000;\">SetMenu</span><span style=\"color: #000000;\">&#40;</span>MenuPrin<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">if</span> ! empty <span style=\"color: #000000;\">&#40;</span>oBar<span style=\"color: #000000;\">&#41;</span><br />  oVentPrinc:<span style=\"color: #000000;\">oBar</span>:<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;\">if</span> ! empty <span style=\"color: #000000;\">&#40;</span>oDlgwDat<span style=\"color: #000000;\">&#41;</span><br />  oDlgwDat:<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: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar  <span style=\"color: #0000ff;\">OF</span> oVentPrinc <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">80</span> <span style=\"color: #000000;\">2010</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> ...<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> ...<br /><br />pintabaj<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oBar:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><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></div>[/code:2hy4b68v]\n\nTodas las opciones del Menu llaman una función con dos variables Menu y Submenú para ejecuar lo deseado y antes poder poner la pantalla como quiero\n\n[code=fw:2hy4b68v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Procedure OpciMenu<span style=\"color: #000000;\">&#40;</span>men,sumen,xOpc<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">menu</span>    = men<br />submenu = sumen<br />oDlgwDat:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />aquí va una de estas dos lineas<br />oBar:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oVentPrinc:<span style=\"color: #000000;\">oBar</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />oVentPrinc:<span style=\"color: #000000;\">oMenu</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oVentPrinc:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oVentPrinc:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">if</span> xOpc = <span style=\"color: #000000;\">1</span><br />  oBar:<span style=\"color: #000000;\">nheight</span>:=<span style=\"color: #000000;\">20</span><br />  DatoSele<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">else</span><br />  oBar:<span style=\"color: #000000;\">nheight</span>:=<span style=\"color: #000000;\">50</span><br /><span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />   <span style=\"color: #00C800;\">case</span> <span style=\"color: #0000ff;\">menu</span> = <span style=\"color: #000000;\">1</span><br />       gestempr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />...<br /> </div>[/code:2hy4b68v]\n\nY una vez entrado en GestEmpr creaba una MDICHILD para su gestión y otra BUTTONBAR de la ventana principal y es aquí cuando se ponía la letra mal o no. Incluso después cuando volvia a la pantalla principal estaba mal la letra.\n\nMas o menos es así espero que sirva.\n\nUn saludo\n\nCarlos", "time": "10:25", "topic": "ButtonBar", "username": "colthop" } ]
ButtonBar
[ { "date": "2018-01-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello friends.\n\nIn ButtonBar is it possible to align all buttons from right to left?\n\nThank you", "time": "13:12", "topic": "ButtonBar", "username": "ctoas" } ]
ButtonBar
[ { "date": "2018-01-10", "forum": "FiveWin for Harbour/xHarbour", "text": "BtNRIGHT comand", "time": "13:17", "topic": "ButtonBar", "username": "Silvio.Falconi" } ]
ButtonBar
[ { "date": "2018-01-10", "forum": "FiveWin for Harbour/xHarbour", "text": "In case BTNRIGHT puts only the last button on the right, is it correct?", "time": "13:27", "topic": "ButtonBar", "username": "ctoas" } ]
ButtonBar
[ { "date": "2018-01-10", "forum": "FiveWin for Harbour/xHarbour", "text": "YES\nSAMPLE \nDEFINE BUTTONBAR obar _3D SIZE 100, 32 OF oAllegati 2015 GDIPLUS BOTTOM NOBORDER\n\n DEFINE BUTTON oScansiona OF obar ;\n RESOURCE \"SCANNER\" ;\n PROMPT \"Scansiona\" ;\n LEFT BTNRIGHT;\n ACTION MSGINFO()\n\n\nOR \ninsert where you want but then you must insert also a resize function \noScansiona:= TBtnBmp():NewBar(\"Scansiona\",,,,,, .F., obar, .F.,,, .F.,,,,,,,,,,,,, .F.,,, )\n oScansiona:nLeft:= obar:nWidth-120", "time": "16:05", "topic": "ButtonBar", "username": "Silvio.Falconi" } ]
ButtonBar
[ { "date": "2023-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nis it possible to add Combobox into ButtonBar / Toolbar under Fivewin <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nif yes how <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n[img:2sfo4x7f]https&#58;//i&#46;postimg&#46;cc/wTJ3sh4J/Toolbar-Controls&#46;jpg[/img:2sfo4x7f]", "time": "07:04", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "Jimmy" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Buttonbar is FWH's own control and we can, for sure, have other controls like combobox within buttonbar.", "time": "07:23", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "nageswaragunupudi" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao\n\nIs it possible to also add a GET control to BUTTONBAR ? \nCan you give an example please.", "time": "20:07", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "albeiroval" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-11", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"albeiroval\":26e9n6hh]Mr. Rao\n\nIs it possible to also add a GET control to BUTTONBAR ? \nCan you give an example please.[/quote:26e9n6hh]\n\nSample:\n[code=fw:26e9n6hh]<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> oWnd, oBar, oGet, oCbx<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nVar &nbsp;:= <span style=\"color: #000000;\">900</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cVar &nbsp;:= <span style=\"color: #ff0000;\">\"Three\"</span><br /><br />&nbsp; &nbsp;SetGetColorFocus<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>,<span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">2010</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;\">\"One\"</span> <span style=\"color: #0000ff;\">CENTER</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;\">\"Two\"</span> <span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">160</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> nVar <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"999\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #0000ff;\">OF</span> oBar ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> nVar <span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">240</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx <span style=\"color: #0000ff;\">VAR</span> cVar <span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"One\"</span>,<span style=\"color: #ff0000;\">\"Two\"</span>,<span style=\"color: #ff0000;\">\"Three\"</span> <span style=\"color: #000000;\">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">90</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oBar<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;\">\"Exit\"</span> &nbsp;<span style=\"color: #0000ff;\">CENTER</span> GROUP BTNRIGHT ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oWnd:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">700</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;? nVar, cVar<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:26e9n6hh]", "time": "18:18", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "nageswaragunupudi" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-11", "forum": "FiveWin for Harbour/xHarbour", "text": "GREAT \nthx for Sample", "time": "20:32", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "Jimmy" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Fine, thanks", "time": "15:01", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "albeiroval" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-12", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\ni have a Problem when place \"only\" 1 x GET into ButtonBar\n\nas it can not \"change\" to other Control it does not \"lostFocus\" -> no VALID -> no GOTO <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\nany Idea for a Workaround <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "20:45", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "Jimmy" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Example?\n\nRegards.", "time": "02:26", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "karinha" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Jimmy\":3r517zot]hi,\n\ni have a Problem when place \"only\" 1 x GET into ButtonBar\n\nas it can not \"change\" to other Control it does not \"lostFocus\" -> no VALID -> no GOTO <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\nany Idea for a Workaround <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->[/quote:3r517zot]\nYes.\nWe need to have atleast 2 controls.", "time": "03:01", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "nageswaragunupudi" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-13", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n[quote=\"nageswaragunupudi\":27l02pa4]We need to have atleast 2 controls.[/quote:27l02pa4]\nthx for Answer\n\ni will include a 2nd Control", "time": "07:00", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "Jimmy" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2023-04-13", "forum": "FiveWin for Harbour/xHarbour", "text": "In fact, it is the same situation when we have only one Get control on a dialog/window.", "time": "11:44", "topic": "ButtonBar / Toolbar + Combobox ?", "username": "nageswaragunupudi" } ]
ButtonBar / Toolbar + Combobox ?
[ { "date": "2007-12-18", "forum": "FiveWin for Harbour/xHarbour", "text": "On Buttonbars without 2007 look the buttons appear differently with lPressed := .t. or .f.. I was using this functionality.\n\nBut with 2007 style, there is no difference in the appearance whether lPessed := .t. or .f.\n\nAs a workaround, for the time being, i am using two bitmaps, but the Pressed look is more meaningful and clear to the user. Wish this can be provided", "time": "12:00", "topic": "ButtonBar 2007 - lPressed look", "username": "nageswaragunupudi" } ]
ButtonBar 2007 - lPressed look
[ { "date": "2007-12-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Just to serve as remainder in case this post unfortunately missed Mr. Antonio's attention please.", "time": "09:30", "topic": "ButtonBar 2007 - lPressed look", "username": "nageswaragunupudi" } ]
ButtonBar 2007 - lPressed look
[ { "date": "2007-12-20", "forum": "FiveWin for Harbour/xHarbour", "text": "NageswaraRao,\n\nIts on our todo list. Thanks,", "time": "09:59", "topic": "ButtonBar 2007 - lPressed look", "username": "Antonio Linares" } ]
ButtonBar 2007 - lPressed look
[ { "date": "2007-10-14", "forum": "FiveWin for Harbour/xHarbour", "text": "The new button bars with 2007 look great. For a while going back to the old 3d style button bars I noticed a small problem.\n\nIf we normally define a button bar as \"DEFINE BUTTONBAR oBar OF oWnd SIZE 60,60 3D\", it is working. But if we try the following code :\n[code:204fwugz]\nDEFINE BUTTONBAR oBar OF oWnd SIZE 60,60\noBar&#58;l3D &#58;= &#46;T&#46;\n[/code:204fwugz]\nI am getting this kind of appearance.\n\n[url=http&#58;//imageshack&#46;us:204fwugz][img:204fwugz]http&#58;//img87&#46;imageshack&#46;us/img87/5752/bar3diw7&#46;png[/img:204fwugz][/url:204fwugz]\n\nI noticed this when I was writing code for conditional use of 2007 style depending on the ColorsQty(). Though right now, I am getting what I want by coding in a different way, I feel that the button bars should paint correctly even for the above code", "time": "22:45", "topic": "ButtonBar 3D", "username": "nageswaragunupudi" } ]
ButtonBar 3D
[ { "date": "2007-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "You can not set that property later on. It has to be specified when you create the buttonbar:\n\noBar:l3D := .T.\n\nIf you want to use it or not, use two different sentences:\n\nif lWant3D\nDEFINE BUTTONBAR ... 3D\nelse\nDEFINE BUTTONBAR ...\nendif", "time": "00:46", "topic": "ButtonBar 3D", "username": "Antonio Linares" } ]
ButtonBar 3D
[ { "date": "2010-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "When button-bar is used without 2007 style, the bitmaps and prompts are getting mixed up. \nSample Source Code:\n[code=fw:16fsrwio]<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> ownd, oBar<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;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">64</span>,<span style=\"color: #000000;\">64</span> <span style=\"color: #B900B9;\">//2007</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\l</span>evel1.bmp'</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">'Level1'</span> TOP<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\l</span>evel2.bmp'</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">'Level2'</span> TOP<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\l</span>evel3.bmp'</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">'Level3'</span> TOP<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\l</span>evel4.bmp'</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">'Level4'</span> TOP<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:16fsrwio]\nResult\n[url=http&#58;//img696&#46;imageshack&#46;us/my&#46;php?image=bbar&#46;jpg:16fsrwio][img:16fsrwio]http&#58;//img696&#46;imageshack&#46;us/img696/5075/bbar&#46;jpg[/img:16fsrwio][/url:16fsrwio]\n\nIs there anything I am missing? Or is there a problem to be fixed in BtnBmp.Prg ?", "time": "07:16", "topic": "ButtonBar Non-2007 style Bitmap and Text Alignment", "username": "nageswaragunupudi" } ]
ButtonBar Non-2007 style Bitmap and Text Alignment
[ { "date": "2010-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear MR.Rao,\n\nHere is a trick. I am sure that this is not a good solution, it is only a work around. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\n[url=http&#58;//img704&#46;imageshack&#46;us/i/raom&#46;jpg/:ttcwu1c9][img:ttcwu1c9]http&#58;//img704&#46;imageshack&#46;us/img704/8773/raom&#46;jpg[/img:ttcwu1c9][/url:ttcwu1c9]\n\n[code=fw:ttcwu1c9]<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> ownd, oBar<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> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">64</span>,<span style=\"color: #000000;\">64</span> <span style=\"color: #B900B9;\">//2007</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\l</span>evel1.bmp'</span> <span style=\"color: #0000ff;\">PROMPT</span> CRLF+<span style=\"color: #ff0000;\">'Level1'</span> TOP<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\l</span>evel2.bmp'</span> <span style=\"color: #0000ff;\">PROMPT</span> CRLF+<span style=\"color: #ff0000;\">'Level2'</span> TOP<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\l</span>evel3.bmp'</span> <span style=\"color: #0000ff;\">PROMPT</span> CRLF+<span style=\"color: #ff0000;\">'Level3'</span> TOP<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar FILE <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\l</span>evel4.bmp'</span> <span style=\"color: #0000ff;\">PROMPT</span> CRLF+<span style=\"color: #ff0000;\">'Level4'</span> TOP<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:ttcwu1c9]\n\nRegards\nAnser", "time": "09:12", "topic": "ButtonBar Non-2007 style Bitmap and Text Alignment", "username": "anserkk" } ]
ButtonBar Non-2007 style Bitmap and Text Alignment
[ { "date": "2010-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "<!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->)\nThis was not the intention", "time": "14:24", "topic": "ButtonBar Non-2007 style Bitmap and Text Alignment", "username": "nageswaragunupudi" } ]
ButtonBar Non-2007 style Bitmap and Text Alignment
[ { "date": "2016-05-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Really nice <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "22:03", "topic": "ButtonBar Translucent", "username": "Antonio Linares" } ]
ButtonBar Translucent
[ { "date": "2016-05-18", "forum": "FiveWin for Harbour/xHarbour", "text": "[url=https&#58;//imageshack&#46;com/i/plE0gbaep:1i6vh3lu][img:1i6vh3lu]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/921/E0gbae&#46;png[/img:1i6vh3lu][/url:1i6vh3lu]", "time": "14:14", "topic": "ButtonBar Translucent", "username": "nageswaragunupudi" } ]
ButtonBar Translucent
[ { "date": "2016-05-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Show!!!!!! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "19:28", "topic": "ButtonBar Translucent", "username": "MGA" } ]
ButtonBar Translucent
[ { "date": "2016-05-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Awesome !", "time": "19:37", "topic": "ButtonBar Translucent", "username": "HunterEC" } ]
ButtonBar Translucent
[ { "date": "2016-12-30", "forum": "FiveWin for Harbour/xHarbour", "text": "how create it ?\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=32448\">viewtopic.php?f=3&t=32448</a><!-- l -->", "time": "12:25", "topic": "ButtonBar Translucent", "username": "Silvio.Falconi" } ]
ButtonBar Translucent
[ { "date": "2016-12-30", "forum": "FiveWin for Harbour/xHarbour", "text": "fwh\\samples\\bartrnsl.prg\n\nIn addition to the screnshot, the sample also has a transparency bar on msgbar to vary the degree of transparency.\n\nYou may also try \\fwh\\samples\\btntrns.prg\nThis shows creation of translucent buttons (btnbmp)", "time": "14:03", "topic": "ButtonBar Translucent", "username": "nageswaragunupudi" } ]
ButtonBar Translucent
[ { "date": "2016-12-30", "forum": "FiveWin for Harbour/xHarbour", "text": "thanks", "time": "16:50", "topic": "ButtonBar Translucent", "username": "Silvio.Falconi" } ]
ButtonBar Translucent
[ { "date": "2018-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "I wish Know if is possible make a modify on buttonbar .\nI explain you \nI wish have the possibilty to move some buttons at the right angle as this :\n\n[img:2gs42ij4]https&#58;//s13&#46;postimg&#46;org/6cvwfu9h3/image&#46;png[/img:2gs42ij4]\n\nthis picture is made with a oldest class ( not of fwh) now run bad.\n\n\nI tried with :\n\n oHelp:= TBtnBmp():NewBar(,, \"help.bmp\",,,, .F., obar, .F.,,, .F.,,,,,,,,,,,,, .F.,,, )\n oHelp:nWidth:=30\n oHelp:nLeft:= obar:nWidth-100\n\nBut I can fix the position and when I move the dialog it is allway on the same position", "time": "19:07", "topic": "ButtonBar and buttons", "username": "Silvio.Falconi" } ]
ButtonBar and buttons
[ { "date": "2018-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Use clause BTNRIGHT\n\n[quote:2y70z40j]\n\n DEFINE BUTTON OF oBarMdi PROMPT \"Exit\" ;\n FILE \"D:\\Fwh\\FwhTeam\\BmpsVS_32\\MappedTracepointDisable_32x_24.bmp\" ;\n ACTION ( oWnd:End() ) [b:2y70z40j]BTNRIGHT[/b:2y70z40j] ;\n GROUP LABEL \"Salir\" COLORS CLR_WHITE, METRO_OLIVE\n\n[/quote:2y70z40j]", "time": "19:20", "topic": "ButtonBar and buttons", "username": "cnavarro" } ]
ButtonBar and buttons
[ { "date": "2018-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "thanks run good\n\nI made \n\n [code=fw:1ilb9yoy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> obar ;<br />&nbsp; &nbsp; &nbsp;filename <span style=\"color: #ff0000;\">\"help.bmp\"</span> &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">LEFT</span> BTNRIGHT;<br />&nbsp; &nbsp; &nbsp; GROUP ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">action</span> oAllegati:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> obar ;<br />&nbsp; &nbsp; &nbsp;filename <span style=\"color: #ff0000;\">\"Chiudi.bmp\"</span> &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> &nbsp;<span style=\"color: #ff0000;\">\"Chiudi\"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">LEFT</span> ;<br />&nbsp; &nbsp; &nbsp; GROUP ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">action</span> oAllegati:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:1ilb9yoy]\n\nand this is the result \n[img:1ilb9yoy]https&#58;//s13&#46;postimg&#46;org/chs07d93b/bmio&#46;png[/img:1ilb9yoy]\n\nthe button help is too large also if not have the prompt \nthe button chiudi is not at the end of dialog\nany solution ?", "time": "19:31", "topic": "ButtonBar and buttons", "username": "Silvio.Falconi" } ]
ButtonBar and buttons
[ { "date": "2008-02-06", "forum": "FiveWin for Harbour/xHarbour", "text": "If a button in the buttonbar is also used to start drag operation by assigning a value to its data oDragCursor it is noticed that (1) the buttons bAction block is never executed, (2) mouse click on the button has no effect, (3) in case of 2007 style, when mouse is moved over the button, it is painted in orange color but even after mouse leaves the button the orange color stays till the end of the application (4) in case of non-2007 style the button is never hilighted when mouse is moved over the button. Only drag works.\n\nA sample code is given below for testing all the alternatives. For bitmaps any available bmp files may be used.\n[code:8jf739xv]\n#include 'fivewin&#46;ch'\n\nfunction Main&#40;&#41;\n\n local ownd,oBar\n local oBtn1, oBtn2, oBtn3, oBtn4, oBtn5\n\n DEFINE WINDOW oWnd\n DEFINE BUTTONBAR oBar OF oWnd SIZE 64,64 3D // 2007\n DEFINE BUTTON oBtn1 OF oBar FILE \"UP&#46;BMP\",\"DOWN&#46;BMP\" TOP PROMPT \"1\" FLAT ACTION oWnd&#58;Say&#40; 10, 5, \"Btn&#46;1\" &#41;\n DEFINE BUTTON oBtn2 OF oBar FILE \"UP&#46;BMP\",\"DOWN&#46;BMP\" TOP PROMPT \"2\" FLAT ACTION oWnd&#58;Say&#40; 10, 5, \"Btn&#46;2\" &#41;\n DEFINE BUTTON oBtn3 OF oBar FILE \"UP&#46;BMP\",\"DOWN&#46;BMP\" TOP PROMPT \"3\" FLAT ACTION oWnd&#58;Say&#40; 10, 5, \"Btn&#46;3\" &#41;\n DEFINE BUTTON oBtn4 OF oBar FILE \"UP&#46;BMP\",\"DOWN&#46;BMP\" TOP PROMPT \"4\" FLAT ACTION oWnd&#58;Say&#40; 10, 5, \"Btn&#46;4\" &#41;\n DEFINE BUTTON oBtn5 OF oBar FILE \"UP&#46;BMP\",\"DOWN&#46;BMP\" TOP PROMPT \"Q\" FLAT ACTION oWnd&#58;End&#40;&#41;\n\n oBtn3&#58;oDragCursor &#58;= TCursor&#40;&#41;&#58;New&#40;,'DRAG'&#41;\n oBtn3&#58;bDragBegin &#58;= &#123; |r,c,f| nil &#125;\n\n oWnd&#58;bDropOver &#58;= &#123; |u,r,c,f| MsgInfo&#40;\"Dropped\"&#41; &#125;\n\n ACTIVATE WINDOW oWnd\n\nreturn nil\n[/code:8jf739xv]\nIssues need to be fixed:\n\n1. In 2007 style, the button should be painted active ( orange color ) only when mouse is over the button and the color to be restored to normal when mouse moves away from the button.\n\n2. Non 2007 style: Button should be highlighted ( like other buttons ) when mouse is moved over the button.\n\n3. When mouse is clicked on the button, (a) second bitmap should be painted (b) button should be painted as clicked like other buttons (c) bAction should be executed if drag does not start.", "time": "18:05", "topic": "ButtonBar button with odragcursor problems", "username": "nageswaragunupudi" } ]
ButtonBar button with odragcursor problems
[ { "date": "2016-07-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Using a button bar, defined as:\n\tREDEFINE BUTTONBAR oBarCL ID 101 SIZE 60,60 OF oFldCSE:aDialogs[1] 2015\n\t oBarCL:bClrGrad := aPubGrad\n\nAnd a resource:\n CONTROL\t\"\", 101, \"TBar\", 0|WS_CHILD|WS_VISIBLE, 0,0, 645, 30\nIn a dialog, 650 wide\n\nThere are two problems:\n\n1) The bar does not extend past the last button. In the past, and in a window, it covers the full width of the screen.\n2) The background is a gradient. All buttons are Alpha Bitmaps. However, some buttons do not have the gradient background. It is missing. It might be one button, or 2 to 3 buttons in a row.\n\nThis behavior is happening on all BUTTONBAR controls used in dialogs.\n\nHelp ?", "time": "22:36", "topic": "ButtonBar display problems", "username": "TimStone" } ]
ButtonBar display problems
[ { "date": "2016-07-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim, modify with your gradient in this sample, try and post it\nSample:\n\n[code=fw:2nnbwecw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><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, oBar, oFont, oBrw<br /><br />   USE STATES<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"timbar\"</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"FWH 16.05 BUTTONBAR FROM RESOURCE\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />   <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: #000000;\">2015</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>     GROUP FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\A</span>lphaBmp<span style=\"color: #000000;\">\\d</span>own.bmp\"</span> <span style=\"color: #B900B9;\">//32x32\\new.bmp\"</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>    GROUP FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\A</span>lphaBmp<span style=\"color: #000000;\">\\G</span>Mail.bmp\"</span> <span style=\"color: #B900B9;\">//32x32\\edit.bmp\"</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>  GROUP FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\A</span>lphaBmp<span style=\"color: #000000;\">\\G</span>raphics.bmp\"</span> <span style=\"color: #B900B9;\">//delete.bmp\"</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>   GROUP FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\A</span>lphaBmp<span style=\"color: #000000;\">\\f</span>loppy.bmp\"</span> <span style=\"color: #B900B9;\">//print32.bmp\" </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>    GROUP FILE <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\A</span>lphaBmp<span style=\"color: #000000;\">\\q</span>uestion.bmp\"</span> <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> <span style=\"color: #B900B9;\">//32x32\\exit.bmp\" </span><br /><br /><br />   <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 />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /> </div>[/code:2nnbwecw]\n\n[code=fw:2nnbwecw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><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 />   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,   <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">480</span>, <span style=\"color: #000000;\">40</span><br />   DEFPUSHBUTTON   <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 />   PUSHBUTTON      <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 />   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 /> </div>[/code:2nnbwecw]", "time": "22:58", "topic": "ButtonBar display problems", "username": "cnavarro" } ]
ButtonBar display problems
[ { "date": "2016-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Here is the gradient.\n\n PUBLIC aPubGrad := { | lInvert | If( ! lInvert, { { 0.50,16776960,16777215 }, ;\n\t\t\t\t\t{ 0.50,16777215,16776960 } }, { { 0.50,128,16777215 }, { 0.50,16777215,128 } } ) }\n\nPlease note my bitmaps are in the .rc file so it's not \"the same\"\nAlso, in your example, your dialog is 400 wide and your bar is 480 wide.\n\nThe bar now has this behavior in every single dialog where one is used. There are NO exceptions. The gradient only applies to ( most ) buttons but not all, and the bar only extends to the end of the last button.", "time": "00:37", "topic": "ButtonBar display problems", "username": "TimStone" } ]
ButtonBar display problems
[ { "date": "2016-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok, I understand the differences\nI'll try with your instructions", "time": "02:08", "topic": "ButtonBar display problems", "username": "cnavarro" } ]
ButtonBar display problems
[ { "date": "2016-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nI added a buttonbar to my new sample\ninstead of a RC-file for images I used a DLL\nI cannot see any wrong paintings\nAll selected buttons are painted transparent.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Dlltest1.zip\">http://www.pflegeplus.com/DOWNLOADS/Dlltest1.zip</a><!-- m --> \n( still the part from RC / DLL is under construction )\n\n[quote:279amk0k]1) The bar does not extend past the last button. \nIn the past, and in a window, it covers the full width of the screen.\n2) The background is a gradient. All buttons are Alpha Bitmaps. \nHowever, some buttons do not have the gradient background. \nIt is missing. It might be one button, or 2 to 3 buttons in a row.[/quote:279amk0k]\n\n[img:279amk0k]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Btnbar3&#46;jpg[/img:279amk0k]\n\n[color=#0000FF:279amk0k]...\n...\naPubGrad := { | lInvert | If( ! lInvert, { { 0.50,16776960,16777215 }, ;\n{ 0.50,16777215,16776960 } }, { { 0.50,128,16777215 }, { 0.50,16777215,128 } } ) }\n\nfrom CODE\n\nDEFINE DIALOG oDlg1 TITLE \"Test folder from CODE\" SIZE 650, 550 PIXEL OF oWnd BRUSH oBrush0\n\nDEFINE BUTTONBAR oBar SIZE 60, 30 OF oDlg1 2015 \noBar:bClrGrad := aPubGrad\n\nDEFINE BUTTON OF oBar PROMPT \"Paint\"\tGROUP RESOURCE \"COLORS\" FONT oFont1 // bitmaps from DLL\nDEFINE BUTTON OF oBar PROMPT \"Edit\"\tGROUP RESOURCE \"CODE\" FONT oFont1\nDEFINE BUTTON OF oBar PROMPT \"View\"\tGROUP RESOURCE \"FONTS\" FONT oFont1\nDEFINE BUTTON OF oBar PROMPT \"Create\"\tGROUP RESOURCE \"RESOURCE\" FONT oFont1\nDEFINE BUTTON OF oBar PROMPT \"Quit\"\tGROUP RESOURCE \"EXIT\" ACTION oDlg1:End() FONT oFont1\n...\n...[/color:279amk0k]\n\n[color=#008000:279amk0k]from RESOURCE\n\nSetResources( hSave ) // RC-file\n\nDEFINE DIALOG oDlg2 RESOURCE \"DPainter\" BRUSH oBrush0 PIXEL ;\nFONT oFont1 TITLE \"Test folder from RESOURCES\" OF oWnd \n\nREDEFINE BUTTONBAR oBar ID 100 OF oDlg2 2015 \noBar:bClrGrad := aPubGrad\n...\n...\nSET RESOURCES TO c_path + \"SYSTEM.dll\" // select from DLL\n\nDEFINE BUTTON OF oBar PROMPT \"Paint\"\tGROUP RESOURCE \"COLORS\" FONT oFont1 // bitmaps from DLL\nDEFINE BUTTON OF oBar PROMPT \"Edit\"\t\tGROUP RESOURCE \"CODE\" FONT oFont1\nDEFINE BUTTON OF oBar PROMPT \"View\"\tGROUP RESOURCE \"FONTS\" FONT oFont1\nDEFINE BUTTON OF oBar PROMPT \"Create\"\tGROUP RESOURCE \"RESOURCE\" FONT oFont1\nDEFINE BUTTON OF oBar PROMPT \"Quit\"\tGROUP RESOURCE \"EXIT\" ACTION oDlg1:End() FONT oFont1\n...\n...\nSetResources( hSave ) // access from rc[/color:279amk0k]\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "10:01", "topic": "ButtonBar display problems", "username": "ukoenig" } ]
ButtonBar display problems
[ { "date": "2016-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Actual code:\n[code=fw:zquygtkb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> list01<br />    <span style=\"color: #B900B9;\">// Labor rates list01</span><br />    <span style=\"color: #B900B9;\">//  Updated:    7/28/2015 2:59:33 PM</span><br />    <br />    <span style=\"color: #00C800;\">LOCAL</span> oBarLst<br />    <span style=\"color: #00C800;\">PRIVATE</span> oDepartment, oEdit, lFirst := .F.<br />    <span style=\"color: #B900B9;\">// Open the labor rate reference database and index</span><br />    oLaborRate := tLaborRate<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 />    <span style=\"color: #00C800;\">IF</span> oLaborRate:<span style=\"color: #000000;\">reccount</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">0</span><br />        MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Adding a first record\"</span><span style=\"color: #000000;\">&#41;</span><br />        oLaborRate:<span style=\"color: #000000;\">append</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span><br />        oLaborRate:<span style=\"color: #000000;\">save</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span><br />        lFirst := .T.<br />    <span style=\"color: #00C800;\">ENDIF</span><br />    oLaborRate:<span style=\"color: #000000;\">gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oLaborRateR := TRecord<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">&#40;</span> oLaborRate <span style=\"color: #000000;\">&#41;</span><br />    oLaborRateR:<span style=\"color: #000000;\">load</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #B900B9;\">// Open the dialog using a resource from EMS.DLL</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;\">\"LISTS\"</span>  <span style=\"color: #0000ff;\">BRUSH</span> oBrush transparent <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Labor Rates\"</span> <br />    oDlg:<span style=\"color: #000000;\">nHelpID</span> := <span style=\"color: #000000;\">5</span><br />    <span style=\"color: #B900B9;\">// Build the edit controls</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSa1 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Charge\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4900</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />    <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oEdit <span style=\"color: #0000ff;\">VAR</span> oLaborRateR:<span style=\"color: #000000;\">charge</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">102</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"$99999.99\"</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"The charge for this service\"</span> <span style=\"color: #0000ff;\">UPDATE</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSa2 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Service\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4901</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />    <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oLaborRateR:<span style=\"color: #000000;\">servic</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">103</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"A description of the service type\"</span> <span style=\"color: #0000ff;\">UPDATE</span><br /><br />    <span style=\"color: #B900B9;\">// Create the BROWSE control</span><br />    <span style=\"color: #0000ff;\">REDEFINE</span>  <span style=\"color: #0000ff;\">XBROWSE</span> oLbx1 ;<br />      DATASOURCE oLaborRate ;<br />      HEADERS <span style=\"color: #ff0000;\">\" Charge \"</span>, <span style=\"color: #ff0000;\">\" Service \"</span>, <span style=\"color: #ff0000;\">\" \"</span> ;<br />      COLUMNS <span style=\"color: #ff0000;\">\"charge\"</span>, <span style=\"color: #ff0000;\">\"servic\"</span>, <span style=\"color: #ff0000;\">\" \"</span> ;<br />      <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> oLaborRateR:<span style=\"color: #000000;\">load</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">UPDATE</span> <br /><br />    <span style=\"color: #B900B9;\">// Provide the header gradient</span><br />    oLbx1:<span style=\"color: #000000;\">bClrGrad</span> := aPubGrad <br />    <span style=\"color: #B900B9;\">// Set the styles</span><br />    oLbx1:<span style=\"color: #000000;\">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<br />    oLbx1:<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_RAISED<br />    oLbx1:<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_RAISED<br />    oLbx1:<span style=\"color: #000000;\">nHeadStrAligns</span>  := AL_CENTER<br />    oLbx1:<span style=\"color: #000000;\">nStretchCol</span> := STRETCHCOL_LAST<br /><br />    <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBarLst <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">105</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #000000;\">2015</span><br />    oBarLst:<span style=\"color: #000000;\">bClrGrad</span> := aPubGrad<br />    <br />    <span style=\"color: #B900B9;\">// Build the button controls</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBarLst <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"HRADD\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Add\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Add a record\"</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oLbx1:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oLaborRate:<span style=\"color: #000000;\">append</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span>, oLaborRate:<span style=\"color: #000000;\">blank</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span>, oLbx1:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oLaborRateR:<span style=\"color: #000000;\">load</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />        oEdit:<span style=\"color: #000000;\">setfocus</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Add a new item\"</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBarLst <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"HRSAVE\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Save\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Save changes\"</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oLaborRateR:<span style=\"color: #000000;\">save</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span>, oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span>, oLbx1:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oLbx1:<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 />        <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Save any changes made to the current item\"</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBarLst <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"HRDELETE\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Delete\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Delete selected record\"</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> IIF<span style=\"color: #000000;\">&#40;</span> MsgYesNo<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Do you wish to delete this item ?\"</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> oLaborRate:<span style=\"color: #000000;\">delete</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />        oLaborRate:<span style=\"color: #000000;\">skip</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>, oLbx1:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oLaborRateR:<span style=\"color: #000000;\">load</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Delete the current item\"</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBarLst <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"HRHELP\"</span>  <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Help\"</span>   TOOLTIP <span style=\"color: #ff0000;\">\"Open OnLine Manual\"</span> ;<br />        <span style=\"color: #0000ff;\">ACTION</span> WinExec<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"hh asw9.chm\"</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> oBarLst <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"HREXIT\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Exit\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Exit this list\"</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> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Exit this list\"</span><br /><br />    <span style=\"color: #B900B9;\">// Activate the dialog screen</span><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oReBar:<span style=\"color: #000000;\">hide</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">CENTERED</span><br />    <span style=\"color: #B900B9;\">// Redisplay the bar</span><br />    oReBar:<span style=\"color: #000000;\">show</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #B900B9;\">// Close the file</span><br />    oLaborRate:<span style=\"color: #000000;\">close</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 /> </div>[/code:zquygtkb]\n\n.RC code, assembled into the .exe\n\n[code=fw:zquygtkb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />LISTS <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">660</span>, <span style=\"color: #000000;\">410</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP | WS_CAPTION<br />CAPTION <span style=\"color: #ff0000;\">\"List Editor\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />    CONTROL                 <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">105</span>, <span style=\"color: #ff0000;\">\"TBar\"</span>, <span style=\"color: #000000;\">0</span>|WS_CHILD|WS_VISIBLE, <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">660</span>, <span style=\"color: #000000;\">30</span><br />    CONTROL         <span style=\"color: #ff0000;\">\"\"</span>,<span style=\"color: #000000;\">101</span>,<span style=\"color: #ff0000;\">\"TxBrowse\"</span>,WS_BORDER | WS_VSCROLL | WS_TABSTOP,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">640</span>,<span style=\"color: #000000;\">310</span><br />    EDITTEXT        <span style=\"color: #000000;\">102</span>,<span style=\"color: #000000;\">110</span>,<span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">13</span><br />    EDITTEXT        <span style=\"color: #000000;\">103</span>,<span style=\"color: #000000;\">110</span>,<span style=\"color: #000000;\">55</span>,<span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">13</span><br />    LTEXT           <span style=\"color: #ff0000;\">\"\"</span>,<span style=\"color: #000000;\">4900</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">95</span>,<span style=\"color: #000000;\">13</span><br />    LTEXT           <span style=\"color: #ff0000;\">\"\"</span>,<span style=\"color: #000000;\">4901</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">55</span>,<span style=\"color: #000000;\">95</span>,<span style=\"color: #000000;\">13</span><br /><span style=\"color: #000000;\">&#125;</span><br /><br /> </div>[/code:zquygtkb]\n\nThe result:\n\n[img:zquygtkb]http&#58;//masterlinksoftware&#46;com/images/lists&#46;png[/img:zquygtkb]", "time": "18:31", "topic": "ButtonBar display problems", "username": "TimStone" } ]
ButtonBar display problems
[ { "date": "2016-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Here is another case:\n\n1) The same bmps ( all Alpha, 32x32 ) display correctly in other bars and then this one is a total mess. ( No gradients ) Compare this to the picture above using the same icons where the gradient is fine.\n2) The behavior is the same using Harbour / MSVC 2015 or using xHarbour ( .com )\n3) This is the latest FWH.\n\n[img:27puv08w]http&#58;//masterlinksoftware&#46;com/images/BadBar&#46;png[/img:27puv08w]", "time": "19:12", "topic": "ButtonBar display problems", "username": "TimStone" } ]
ButtonBar display problems
[ { "date": "2016-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim\nThe problem is the use of transparent clause in the definition of dialogue ( then BUTTONBAR show ok, also transparent )\n\n[quote:1xzi63rr]\nDEFINE DIALOG oDlg RESOURCE \"LISTS\" BRUSH oBrush [b:1xzi63rr]transparent[/b:1xzi63rr] OF oWnd TITLE \"Labor Rates\"\n[/quote:1xzi63rr]\n\nPlease try\n\n[code=fw:1xzi63rr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oBar:<span style=\"color: #000000;\">lTransparent</span> := .F. <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1xzi63rr]", "time": "21:01", "topic": "ButtonBar display problems", "username": "cnavarro" } ]
ButtonBar display problems
[ { "date": "2016-07-20", "forum": "FiveWin for Harbour/xHarbour", "text": "This would be convenient to have the default focus:\n\nON INIT ( oBar:lTransparent := .F., .T. )", "time": "23:27", "topic": "ButtonBar display problems", "username": "Antonio Linares" } ]
ButtonBar display problems
[ { "date": "2016-07-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Take a look at the last screen shot I provided.\n\nAdding this change, the bar extends the full width of the dialog, BUT the buttons you see without the gradient background still have no background.\n\nI discovered the problem on those finally. In the past, the bitmap buttons used the TRANSPARENT clause. I left that in place when I converted to putting the button bar inside the dialog. It worked fine until recently. Now it has become a problem. Removing the TRANSPARENT from the button commands fixes the problem.", "time": "00:25", "topic": "ButtonBar display problems", "username": "TimStone" } ]
ButtonBar display problems
[ { "date": "2007-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "I like to have two or more buttonbars ( tbar() ) in folders, so that the user can switch button bars by choosing the folder tab.\n\nWe can do with rebars and toolbars, but I like to do it with FWH buttonbars and folders. \n\nCan this be done easily ?", "time": "07:48", "topic": "ButtonBar in Folders", "username": "nageswaragunupudi" } ]
ButtonBar in Folders
[ { "date": "2007-12-16", "forum": "FiveWin for Harbour/xHarbour", "text": "NageswaraRao,\n\nPlease post a screenshot, thanks", "time": "07:48", "topic": "ButtonBar in Folders", "username": "Antonio Linares" } ]
ButtonBar in Folders
[ { "date": "2007-12-16", "forum": "FiveWin for Harbour/xHarbour", "text": "This is a part of the screen shot from rebars.prg. This is done thro rebars and toolbar.\n\nInstead I like to get similar functionality using FWH Buttonbar ( tbar() ) in FWH folders.\n\n[url=http&#58;//imageshack&#46;us:3ihavgo3][img:3ihavgo3]http&#58;//img227&#46;imageshack&#46;us/img227/3186/btnbarinfolderjx7&#46;png[/img:3ihavgo3][/url:3ihavgo3]\n\nIf can be done, this will have simpler functionality as officebar, without all that ornamentation and should be easier for development.", "time": "11:41", "topic": "ButtonBar in Folders", "username": "nageswaragunupudi" } ]
ButtonBar in Folders
[ { "date": "2007-12-16", "forum": "FiveWin for Harbour/xHarbour", "text": "NageswaraRao,\n\nDo you mean that you want to place a buttonbar on each dialog of a folder ?\n\nIf yes, then you can do it from the ON INIT clause of the main dialog:\n[code:1sk3qbxx]\nACTIVATE DIALOG oDlg ;\n ON INIT BuildBars&#40; oFolder &#41;\n\n&#46;&#46;&#46;\n\nfunction BuildBars&#40; oFolder &#41;\n\n local oBar\n\n DEFINE BUTTONBAR oBar OF oFolder&#58;aDialogs&#91; 1 &#93; 3D\n\n DEFINE BUTTON OF oBar &#46;&#46;&#46;\n\n &#46;&#46;&#46;\n\nreturn nil\n[/code:1sk3qbxx]", "time": "12:07", "topic": "ButtonBar in Folders", "username": "Antonio Linares" } ]
ButtonBar in Folders
[ { "date": "2020-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Please put little sample for tests", "time": "15:56", "topic": "ButtonBar in a specific location ( Solved )", "username": "cnavarro" } ]
ButtonBar in a specific location ( Solved )
[ { "date": "2020-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Friends...\n\nHow to create a ButtonBar in a specific location in the Window?\n\nThe wiki shows:\n  @ <nRow>, <nCol> BUTTONBAR [<oBar>];\n  [SIZE <nWidth>, <nHeight>];\n  [BUTTONSIZE <nBtnWidth>, <nBtnHeight>];\n  [3D | 3DLOOK | _3D | _3DLOOK];\n  [TOP | LEFT | RIGHT | BOTTOM | FLOAT];\n  [OF | WINDOW | DIALOG <oWnd>];\n  [CURSOR <oCursor>]\n\nBut give the following error in the compilation:\nError E0022 Invalid lvalue: 'Numeric'\n\nCan anyone help?\n\nThanks!", "time": "15:28", "topic": "ButtonBar in a specific location ( Solved )", "username": "ctoas" } ]
ButtonBar in a specific location ( Solved )
[ { "date": "2020-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks for responding C. Navarro\n\nI need to place the ButtonBar below the Title:\n[code=fw:3hfrdqjy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndAGENDA <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">600</span>,<span style=\"color: #000000;\">1041</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"GAM - AGENDA DE CONTATOS\"</span> COLORS nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">215</span>,<span style=\"color: #000000;\">243</span>,<span style=\"color: #000000;\">366</span><span style=\"color: #000000;\">&#41;</span>,nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">215</span>,<span style=\"color: #000000;\">215</span>,<span style=\"color: #000000;\">215</span><span style=\"color: #000000;\">&#41;</span> NO MAXIMIZE<br />    <br />        @ <span style=\"color: #000000;\">0000</span>,<span style=\"color: #000000;\">0000</span> <span style=\"color: #0000ff;\">TITLE</span> oTitle <span style=\"color: #0000ff;\">OF</span> oWndAGENDA <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1025</span>,<span style=\"color: #000000;\">0059</span> NOBORDER <span style=\"color: #0000ff;\">PIXEL</span><br />        oTitle:<span style=\"color: #000000;\">aGrdBack</span> := <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;\">150</span>,<span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">150</span><span style=\"color: #000000;\">&#41;</span>,nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">150</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br />        oTitle:<span style=\"color: #000000;\">nShadow</span>  := <span style=\"color: #000000;\">0</span><br />        <br />        @ <span style=\"color: #000000;\">0010</span>,<span style=\"color: #000000;\">0020</span> TITLEIMG <span style=\"color: #0000ff;\">OF</span> oTitle BITMAP <span style=\"color: #ff0000;\">\"TIT_AGENDA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0052</span>,<span style=\"color: #000000;\">0052</span>         <br />                                                                             <br />        @ <span style=\"color: #000000;\">0015</span>,<span style=\"color: #000000;\">0120</span> TITLETEXT <span style=\"color: #0000ff;\">OF</span> oTitle <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Agenda Telefônica\"</span> <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">FONT</span> ARIAL14B <br />        @ <span style=\"color: #000000;\">0040</span>,<span style=\"color: #000000;\">0120</span> TITLETEXT <span style=\"color: #0000ff;\">OF</span> oTitle <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"CONTATOS\"</span>          <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> <span style=\"color: #0000ff;\">FONT</span> ARIAL16B          <br />        <br />        <br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBarAGENDA 3DLOOK <span style=\"color: #0000ff;\">OF</span> oWndAGENDA <span style=\"color: #000000;\">2015</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0078</span>,<span style=\"color: #000000;\">0078</span><br />        <br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnADICIONAR  <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BAR_DLG_ADICIONAR\"</span>  <span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Adicionar\"</span>        <span style=\"color: #0000ff;\">FONT</span> ARIAL14B <br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnVISUALIZAR <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BAR_DLG_VISUALIZAR\"</span> <span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Visualizar\"</span>       <span style=\"color: #0000ff;\">FONT</span> ARIAL14B<br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnALTERAR    <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BAR_DLG_EDITAR\"</span>     <span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Editar\"</span>           <span style=\"color: #0000ff;\">FONT</span> ARIAL14B<br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnEXCLUIR    <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BAR_DLG_EXCLUIR\"</span>    <span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Excluir\"</span>          <span style=\"color: #0000ff;\">FONT</span> ARIAL14B <br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnRELATORIOS <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BAR_DLG_RELATORIOS\"</span> <span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Relatórios\"</span> GROUP <span style=\"color: #0000ff;\">FONT</span> ARIAL14B   <br />        <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnSAIR       <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BAR_DLG_SAIR\"</span>       <span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Sair\"</span>       GROUP <span style=\"color: #0000ff;\">FONT</span> ARIAL14B<br />        <br />        oBarAGENDA:<span style=\"color: #000000;\">nTOP</span> = <span style=\"color: #000000;\">200</span>                                                                                                                                   <br />    <br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndAGENDA <span style=\"color: #0000ff;\">CENTERED</span> <br /> </div>[/code:3hfrdqjy]\n\nI use it exactly in Dialogs, considering Dialog in ON INIT and it works perfectly.", "time": "16:07", "topic": "ButtonBar in a specific location ( Solved )", "username": "ctoas" } ]
ButtonBar in a specific location ( Solved )
[ { "date": "2020-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Christiano, try with this, and tell me ( my name is Cristobal )\n\n[code=fw:28amnv55]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"ttitle.ch\"</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oTitle<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBarAgenda<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWndAgenda<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnADICIONAR &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnVISUALIZAR <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnALTERAR &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnEXCLUIR &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnRELATORIOS <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnSAIR &nbsp; &nbsp; &nbsp; <br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndAGENDA <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">600</span>,<span style=\"color: #000000;\">1041</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"GAM - AGENDA DE CONTATOS\"</span> COLORS nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">215</span>,<span style=\"color: #000000;\">243</span>,<span style=\"color: #000000;\">366</span><span style=\"color: #000000;\">&#41;</span>,nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">215</span>,<span style=\"color: #000000;\">215</span>,<span style=\"color: #000000;\">215</span><span style=\"color: #000000;\">&#41;</span> NO MAXIMIZE<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0000</span>,<span style=\"color: #000000;\">0000</span> <span style=\"color: #0000ff;\">TITLE</span> oTitle <span style=\"color: #0000ff;\">OF</span> oWndAGENDA <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">1025</span>,<span style=\"color: #000000;\">0059</span> NOBORDER <span style=\"color: #B900B9;\">//PIXEL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oTitle:<span style=\"color: #000000;\">aGrdBack</span> := <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;\">150</span>,<span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">150</span><span style=\"color: #000000;\">&#41;</span>,nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">150</span>,<span style=\"color: #000000;\">150</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oTitle:<span style=\"color: #000000;\">nShadow</span> &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0010</span>,<span style=\"color: #000000;\">0020</span> TITLEIMG <span style=\"color: #0000ff;\">OF</span> oTitle BITMAP <span style=\"color: #ff0000;\">\"TIT_AGENDA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0052</span>,<span style=\"color: #000000;\">0052</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0015</span>,<span style=\"color: #000000;\">0120</span> TITLETEXT <span style=\"color: #0000ff;\">OF</span> oTitle <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"Agenda Telefônica\"</span> <span style=\"color: #0000ff;\">COLOR</span> nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">0040</span>,<span style=\"color: #000000;\">0120</span> TITLETEXT <span style=\"color: #0000ff;\">OF</span> oTitle <span style=\"color: #0000ff;\">TEXT</span> <span style=\"color: #ff0000;\">\"CONTATOS\"</span> &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><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBarAGENDA 3DLOOK <span style=\"color: #0000ff;\">OF</span> oWndAGENDA TOP <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0740</span>, <span style=\"color: #000000;\">0078</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; oBarAgenda:<span style=\"color: #000000;\">bRClicked</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oBarAgenda:<span style=\"color: #000000;\">l2015</span> &nbsp; &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; oBarAgenda:<span style=\"color: #000000;\">nBtnWidth</span> &nbsp;:= <span style=\"color: #000000;\">120</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oBarAgenda:<span style=\"color: #000000;\">nBtnHeight</span> := <span style=\"color: #000000;\">78</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnADICIONAR &nbsp; <span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Adicionar\"</span> &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnVISUALIZAR &nbsp;<span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Visualizar\"</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnALTERAR &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Editar\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnEXCLUIR &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Excluir\"</span> &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnRELATORIOS &nbsp;<span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Relatórios\"</span> GROUP &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnSAIR &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oBarAGENDA <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Sair\"</span> &nbsp; &nbsp; &nbsp; GROUP <span style=\"color: #0000ff;\">ACTION</span> oWndAgenda:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndAGENDA <span style=\"color: #0000ff;\">CENTERED</span><br />&nbsp;<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:28amnv55]", "time": "16:39", "topic": "ButtonBar in a specific location ( Solved )", "username": "cnavarro" } ]
ButtonBar in a specific location ( Solved )
[ { "date": "2020-03-30", "forum": "FiveWin for Harbour/xHarbour", "text": "It worked!\n\nThank you very much", "time": "16:48", "topic": "ButtonBar in a specific location ( Solved )", "username": "ctoas" } ]
ButtonBar in a specific location ( Solved )
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "I know how to create a Function with a button bar and bitmap buttons, then place it on a dialog. This requires me to have one function for the dialog and all its controls, and then a second one for the button bar and buttons which is then painted on the ACTIVATE command.\n\nThis works, but actually I want everything in one METHOD rather than two functions. So for now, I can use BTNBMPs in the Dialog for the controls, and in the resource files I use PUSHBUTTON controls. It works fine, except.\n\nUsing the 2 function method, I get a nice button bar background. However, without the bar, the Brush ( a graphic ) I use is also behind the buttons.\n\nSo, I would like to paint the area behind the buttons to simulate the button bar.\n\nOf course there are other issues, like the difficulty of having dynamic buttons, etc. With the old method, that is not a problem, but incorporating everything into one Method makes it difficult.\n\nHas anyone played with this ? Of course the easiest solution would be if the Button Bar / Bitmap buttons could be put into the same code as all of the other controls, but that only works for windows and not Dialogs.\n\nYour suggestions are appreciated.", "time": "02:01", "topic": "ButtonBar in resource ?", "username": "TimStone" } ]
ButtonBar in resource ?
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nThe problem with the buttonbar is that is a control that will hold other controls, and a standard resources editor does not allows to define controls that belong to other controls. Thats why we did not implement a Class TBar Method Redefine().\n\nAnyhow, I have implemented here for you and you will see that it works right, but there is no way to redefine the button, unless someone gets an idea of how to do it:\n\ntimbar.prg\n[code=fw:2vmcdytt]<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, oBar<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> <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: #000000;\">2007</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:2vmcdytt]\n\ntimbar.rc\n[code=fw:2vmcdytt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />test <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">186</span>, <span style=\"color: #000000;\">94</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 />   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 | WS_BORDER, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">40</span> <br />   DEFPUSHBUTTON   <span style=\"color: #ff0000;\">\"OK\"</span>, IDOK, <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">68</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">14</span>, WS_VISIBLE<br />   PUSHBUTTON      <span style=\"color: #ff0000;\">\"Cancel\"</span>, IDCANCEL, <span style=\"color: #000000;\">101</span>, <span style=\"color: #000000;\">68</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">14</span>, WS_VISIBLE<br />END</div>[/code:2vmcdytt]\n\nFiveWin.ch\n[code=fw:2vmcdytt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#xcommand <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> <span style=\"color: #000000;\">&#91;</span><oBar><span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ID</span> <nId> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <of: <span style=\"color: #0000ff;\">OF</span>, <span style=\"color: #0000ff;\">DIALOG</span>, WINDOW> <oWnd> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">SIZE</span> <nWidth>, <nHeight> <span style=\"color: #000000;\">&#93;</span>;               <br />             <span style=\"color: #000000;\">&#91;</span> <l2007: <span style=\"color: #000000;\">2007</span>, _2007> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <l2010: <span style=\"color: #000000;\">2010</span>, _2010> <span style=\"color: #000000;\">&#93;</span> ;<br />             <span style=\"color: #000000;\">&#91;</span> <l2013: <span style=\"color: #000000;\">2013</span>, _2013> <span style=\"color: #000000;\">&#93;</span> ;<br />      => ;<br />             <span style=\"color: #000000;\">&#91;</span> <oBar> := <span style=\"color: #000000;\">&#93;</span> TBar<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Redefine</span><span style=\"color: #000000;\">&#40;</span> <nId>, <oWnd>, <nWidth>, <nHeight>,;<br />                                                <.l2007.>, <.l2010.>, <.l2013.> <span style=\"color: #000000;\">&#41;</span>   </div>[/code:2vmcdytt]\n\nbar.prg\n[code=fw:2vmcdytt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Redefine</span><span style=\"color: #000000;\">&#40;</span> nId, oWnd, nWidth, nHeight, l2007, l2010, l2013 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TBar<br /><br />   ::<span style=\"color: #00C800;\">Super</span>:<span style=\"color: #0000ff;\">Redefine</span><span style=\"color: #000000;\">&#40;</span> nId, oWnd <span style=\"color: #000000;\">&#41;</span><br />   <br />   ::<span style=\"color: #000000;\">nBtnWidth</span>  = nWidth<br />   ::<span style=\"color: #000000;\">nBtnHeight</span> = nHeight<br />   ::<span style=\"color: #000000;\">l2007</span>      = l2007 <br />   ::<span style=\"color: #000000;\">l2010</span>      = l2010<br />   ::<span style=\"color: #000000;\">l2013</span>      = l2013<br /><br />   ::<span style=\"color: #000000;\">SetGradients</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;\">Self</span>  </div>[/code:2vmcdytt]\n\nand\n[code=fw:2vmcdytt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> SetGradients<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TBar<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;\">l2007</span><br />           ::<span style=\"color: #000000;\">bClrGrad</span> = <span style=\"color: #000000;\">&#123;</span> | lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ! lInvert,;<br />                                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.25</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">219</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">244</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">207</span>, <span style=\"color: #000000;\">221</span>, <span style=\"color: #000000;\">239</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                                          <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.75</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">201</span>, <span style=\"color: #000000;\">217</span>, <span style=\"color: #000000;\">237</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">242</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;\">0.25</span>, RGB<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>, RGB<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>, ;<br />                                          <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.75</span>, RGB<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>, RGB<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> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />      <span style=\"color: #00C800;\">case</span> ::<span style=\"color: #000000;\">l2010</span><br />           ::<span style=\"color: #000000;\">bClrGrad</span> = <span style=\"color: #000000;\">&#123;</span> | lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ! lInvert,;<br />                                        <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;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">229</span>, <span style=\"color: #000000;\">233</span>, <span style=\"color: #000000;\">238</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;\">2</span>/<span style=\"color: #000000;\">5</span>, RGB<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>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">147</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                                          <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>/<span style=\"color: #000000;\">5</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>,  <span style=\"color: #000000;\">86</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">153</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 />      <span style=\"color: #00C800;\">case</span> ::<span style=\"color: #000000;\">l2013</span><br />           ::<span style=\"color: #000000;\">bClrGrad</span> = <span style=\"color: #000000;\">&#123;</span> | lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ! lInvert,;<br />                                        <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;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</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>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">194</span>, <span style=\"color: #000000;\">213</span>, <span style=\"color: #000000;\">242</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">194</span>, <span style=\"color: #000000;\">213</span>, <span style=\"color: #000000;\">242</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;\">otherwise</span><br />           ::<span style=\"color: #000000;\">bClrGrad</span> = <span style=\"color: #000000;\">&#123;</span> | lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ! lInvert,;<br />                                        <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.25</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">219</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">244</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">207</span>, <span style=\"color: #000000;\">221</span>, <span style=\"color: #000000;\">239</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                                          <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.75</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">201</span>, <span style=\"color: #000000;\">217</span>, <span style=\"color: #000000;\">237</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">242</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;\">0.25</span>, RGB<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>, RGB<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>, ;<br />                                          <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.75</span>, RGB<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>, RGB<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> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">endcase</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:2vmcdytt]\n\n[img:2vmcdytt]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/timbar&#46;JPG[/img:2vmcdytt]", "time": "09:02", "topic": "ButtonBar in resource ?", "username": "Antonio Linares" } ]
ButtonBar in resource ?
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks. That does allow for the resource to be used.\n\nMaybe I'm missing something that may have been resolved in more recent versions. Use of DEFINE for the button bar and bitmap buttons would be fine IF I didn't have to create a separate function and then activate that when painting a dialog. \n\nIn other words, if ALL controls, including the button bar and bitmap buttons placed on it, could be combined in the same METHOD, that would be the optimum solution. Then it is easy to use dynamic buttons created by the program.\n\nAs an example:\n\nDEFINE DIALOG oDlg .... OF oWnd\n\nREDEFINE GET ....\nREDEFINE GET ....\n\nDEFINE BUTTONBAR oBar OF oDlg\nDEFINE BUTTON .... OF oBar\nDEFINE BUTTON ... OF oBar\n\nACTIVATE oDlg ....\n\nNow we have to define the button bar and buttons in a separate function and call it with an ON PAINT in the ACTIVATE command.\n\nWhy is this important ? The Method has many variables which may need to be present in the called proceedures from the buttons. Each variable would have to be passed to the button bar control when it's a separate function, and that can be a lot of variables. It would be much nicer to keep them local, and have the buttons in the same method so they are always available. It's easier to update and debug also.\n\nTim", "time": "18:16", "topic": "ButtonBar in resource ?", "username": "TimStone" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:22we5a2m]ON PAINT in the ACTIVATE command.[/quote:22we5a2m]\nShould be ON INIT in the ACTIVATE command. Not ON PAINT.", "time": "01:14", "topic": "ButtonBar in resource ?", "username": "nageswaragunupudi" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Actually it is, and it's been working fine that way for a long time ... just experimenting with ways to do it better with METHOD in a class ....\n\nTHE SOLUTION: I simply made both functions into METHODS in the same class, and now they work fine. \n\nMy goal has been to unify similar code and condense it, putting most procedures / functions into classes. It make the operation faster, easier to debug, and much easier to enhance. It's just a lot of work with such a large program. I'm condensing over 215 .prg files to under 100, and each will have a significant reduction in code.\n\nTim", "time": "01:49", "topic": "ButtonBar in resource ?", "username": "TimStone" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "So, you want to create buttonbar and its buttons in the same function/method in which you create the dialog and also use the local variables of that function/method.\n\nCan you please try this?\n[code=fw:302z19fe]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />#ifdef __XHARBOUR__<br />   #xtranslate BEGINBAR <span style=\"color: #0000ff;\">OF</span> <o> => <o>:<span style=\"color: #000000;\">bInit</span> := \\<||<br />   #xcommand   ENDBAR => \\><br />#else<br />   #xtranslate BEGINBAR <span style=\"color: #0000ff;\">OF</span> <o> => <o>:<span style=\"color: #000000;\">bInit</span> := \\<span style=\"color: #000000;\">&#123;</span>||<br />   #xcommand   ENDBAR <span style=\"color: #000000;\">&#91;</span><*x*><span style=\"color: #000000;\">&#93;</span> => <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span>; <span style=\"color: #000000;\">&#125;</span> <x><br />#endif<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oDlg, oBar, oFont, oBrw<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-16</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFont TRUEPIXEL<br /><br />   BEGINBAR <span style=\"color: #0000ff;\">OF</span> oDlg<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;\">32</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;\">\"Top\"</span>  <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">GoTop</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;\">\"Bott\"</span> <span style=\"color: #0000ff;\">ACTION</span> oBrw:<span style=\"color: #000000;\">GoBottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   ENDBAR<br /><br />   @ <span style=\"color: #000000;\">32</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-20</span>,<span style=\"color: #000000;\">-20</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      DATASOURCE <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#125;</span> NOBORDER<br /><br />   oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />   <span style=\"color: #B900B9;\">// do NOT use any ON INIT clause for this test</span><br /><br />   <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FOnt</span> oFont<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:302z19fe]\nFor this code to work, we need to make a small modification to dialog.prg.\nIn the method Activate, please locate the DEFAULT clause.\nAdd one more line DEFAULT bInit := ::bInit\nAfter modification the Activate method of dialog.prg looks like this:\n[code=fw:302z19fe]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Activate</span><span style=\"color: #000000;\">&#40;</span> bLClicked, bMoved, bPainted, lCentered, ;<br />                 bValid, lModal, bInit, bRClicked, bWhen, lResize16, ;<br />                 lCenterInWnd <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TDialog<br /><br />   <span style=\"color: #00C800;\">static</span> nDlgCount := <span style=\"color: #000000;\">0</span><br /><br />   <span style=\"color: #00C800;\">local</span> hActiveWnd, hWnd, bDlgProc<br /><br />   <span style=\"color: #00C800;\">DEFAULT</span> lCentered := .f., lModal := .t., ::<span style=\"color: #000000;\">hWnd</span> := <span style=\"color: #000000;\">0</span>, lResize16 := .f., lCenterInWnd := .f.<br />   <span style=\"color: #00C800;\">DEFAULT</span> bInit  := ::<span style=\"color: #000000;\">bInit</span>   <span style=\"color: #B900B9;\">// INSERTED NOW</span><br /> </div>[/code:302z19fe]\n\n[url=https&#58;//imageshack&#46;com/i/eyLVRxdtj:302z19fe][img:302z19fe]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/538/LVRxdt&#46;jpg[/img:302z19fe][/url:302z19fe]\nIf this approach works well then we can request Mr Antonio to consider making suitable modifications on these lines.", "time": "03:41", "topic": "ButtonBar in resource ?", "username": "nageswaragunupudi" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Whenever you need to pass lots of variables, you should be using an object. Then you only pass one object and you can use or change as many variables as you wish in the function or method you are passing to. Further, you don't need to return the object as any changes you make will exist in the object that was passed.\n\nI know you already know all this, but I thought little reminder might help (and help others).", "time": "14:55", "topic": "ButtonBar in resource ?", "username": "James Bott" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":6pqg15vu]Whenever you need to pass lots of variables, you should be using an object. Then you only pass one object and you can change as many variables as you wish in the function or method you are passing to.[/quote:6pqg15vu]\nMr James\n\nThere is no need to \"pass\" any variables. Lots or few, the code simply uses the local variables.", "time": "14:58", "topic": "ButtonBar in resource ?", "username": "nageswaragunupudi" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nYes, granted, not with your solution. However, I was answering his original question--and it applies to lots of other situations too.\n\nJames", "time": "15:07", "topic": "ButtonBar in resource ?", "username": "James Bott" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nHere is your example using an object.\n\n\n\n[code=fw:2kscabkr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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> oCustomer<br />   <span style=\"color: #00C800;\">Local</span> cCustNo:=<span style=\"color: #ff0000;\">\"1007\"</span><br />   <br />   oCustomer:= TCustomer<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">&#40;</span> cCustNo <span style=\"color: #000000;\">&#41;</span><br />   myFunction<span style=\"color: #000000;\">&#40;</span> oCustomer <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span> oCustomer:<span style=\"color: #000000;\">address</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: #00C800;\">FUNCTION</span> MyFunction<span style=\"color: #000000;\">&#40;</span> oCustomer <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg .... <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> .... oCustomer:<span style=\"color: #0000ff;\">name</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> .... oCustomer:<span style=\"color: #000000;\">address</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oDlg<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> oCustomer:<span style=\"color: #000000;\">save</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;\">ACTION</span> oCustomer:<span style=\"color: #000000;\">add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> oDlg ....<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:2kscabkr]", "time": "15:10", "topic": "ButtonBar in resource ?", "username": "James Bott" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr James\n\nIf at all your code works, it should work with or without object and with or without a database.\n\nThe point is we can not define a buttonbar of a dialog within the same function (or method) that defines the dialog itself, whether from resource or source. The buttonbar has to be defined in the INIT clause of the ACTIVATE DIALOG command. \n\nMay I request you to post fully working code after testing at your end first?", "time": "17:53", "topic": "ButtonBar in resource ?", "username": "nageswaragunupudi" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Good Afternoon,\n\nSorry for the delay. Rao I will work with your suggestion now and report back shortly.\n\nMicrosoft has a contest for Insiders that results in 2 days on campus meeting with senior staff. It requires a video explaining why we want to go. I just finished the recording and submitted my contest entry.\nIt would be a fun couple of days and very informative, but I expect there will be a lot of entries and only 10 people will be chosen.\n\nA couple of things. 1) If I use two methods in a class, it does work. 2) Remember these are bitmap buttons, not straight buttons.\n\nTim", "time": "22:19", "topic": "ButtonBar in resource ?", "username": "TimStone" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nI'm way beyond that. Now I'm working on a class for my Vendor editor. I have a class for the vendor database, and one for the transaction database. Now I have the full screen editor which incorporates the browse and edit fields. All routines are called by bitmap buttons. It all works, but the button bar has to be created in a separate method and called in the ACTIVATE command. Previously these were two functions ( dialog and button bar ), now they are two methods. The idea is to see if I can bring the two across into the one method. \n\nIt's working ... just seeking one more way to reduce the overhead ! BTW, your example is what I've done throughout the program when obtaining data ... and when sharing it \n\nTim", "time": "22:23", "topic": "ButtonBar in resource ?", "username": "TimStone" } ]
ButtonBar in resource ?
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nThat didn't work. First, the dialog and controls are from resources, and the buttons are bitmaps. That may play into this since \"create from code\" does not apply.\n\nWhen trying it, the program just stopped working, and shows no error message.\n\nTim", "time": "22:44", "topic": "ButtonBar in resource ?", "username": "TimStone" } ]
ButtonBar in resource ?
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Antonio\n\nThis is my feedback while testing the modified bar.prg for creating buttonbar from resource.\n\n1) Defining buttons on the buttonbar still need to be done in the ON INIT clause only. This is not an issue but for clarification only.\n\n2) While defining buttons, we get runtime errors because oBar:l3D, oBar:nBtnWidth and oBar:nBtnHeight remain nil. I suggest assigning suitable default values for l3D, nWith and nHeight in the method Redefine(). Because the bar is created from the resource, the height should be taken from the resource and should override whatever height the programmer defines in the command. \n\nCan you please suggest the changes?", "time": "03:25", "topic": "ButtonBar in resource ?", "username": "nageswaragunupudi" } ]
ButtonBar in resource ?
[ { "date": "2015-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\n[quote:eue2cx6q]The point is we can not define a buttonbar of a dialog within the same function (or method) that defines the dialog itself, whether from resource or source. The buttonbar has to be defined in the INIT clause of the ACTIVATE DIALOG command.[/quote:eue2cx6q]\n\nYes, I understand that was your point.\n\nMy point was to show that you do not need to pass lots of variables to a function if you use an object. My point was separate from yours, and I apologize if you thought I was being critical of your solution. I was just showing a way that Tim's variable passing problem could be solved with the use of an object.\n\n[quote:eue2cx6q]Tim said:\nEach variable would have to be passed to the button bar control when it's a separate function, and that can be a lot of variables.\n[/quote:eue2cx6q]\nThis can be solved this way:\n\nACTIVATE DIALOG oDlg ON INIT myFunction( oCustomer )\n\nJames", "time": "05:22", "topic": "ButtonBar in resource ?", "username": "James Bott" } ]
ButtonBar in resource ?
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "James, \n\nI should have said \"objects\". In an Edit dialog there may be multiple data objects involved, and other variables may be in play ( arrays, etc ). They may also be changing status during the use of the edit control. Yes, they can be passed, but it has the potential for being more complex. When everything is in the one method, it's just easier.\n\nTim", "time": "17:13", "topic": "ButtonBar in resource ?", "username": "TimStone" } ]
ButtonBar in resource ?
[ { "date": "2015-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok, you could create an object just to contain everything you want to pass.", "time": "18:33", "topic": "ButtonBar in resource ?", "username": "James Bott" } ]
ButtonBar in resource ?