topic
stringlengths
1
63
text
stringlengths
1
577k
BTNBMP COLOR GRAD
for the version 2007 I made this type of gradient Local bClrGrad := { | lPressed | If( ! lPressed,; { { 1, nRGB( 253, 254, 255 ), nRGB( 179, 217, 255 ) } },; { { 1, nRGB( 179, 217, 255 ), nRGB( 253, 254, 255 ) } } ) } but now I wish have a 2010 effect ...how I can modify the clrgrad ?
BTNBMP COLOR GRAD
Try this: (following your code) [code=fw:1smo3sxr]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Local</span> bClrGrad := <span style="color: #000000;">&#123;</span> | lPressed | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lPressed,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</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: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:1smo3sxr]
BTNBMP COLOR GRAD
thanks run ok
BTNBMP ( transparent ) doesn't work on Img.-Background ?
Hello, It is a old Problem, I posted already a few Month ago : Using < BTNBMP > transparent doesn't work on Image-Background. Is there any Solution found in the meantime, to solve this Problem ? [img:33hk917a]http&#58;//www&#46;pflegeplus&#46;com/pictures/Btntransp1&#46;jpg[/img:33hk917a] // ----- [color=#FF0000:33hk917a]Transparent NOBORDER [/color:33hk917a] on Image-Background --------- @ 22, 4 BTNBMP oBtn1 OF oDlg1 ; SIZE 150, 80 NOBORDER ; FILENAME c_path + "\project\" + D_BUTTON1 ; ACTION MsgAlert( "Button-Click", "Button 1" ) ; PROMPT "But.1" ; FONT oButtFont ; RIGHT [color=#FF0000:33hk917a]oBtn1:lTransparent := .t. [/color:33hk917a] oBtn1:cTooltip := "Button1" oBtn1:SetColor( 0, ) All other Backgrounds like Color, Gradient and Brush are working. [img:33hk917a]http&#58;//www&#46;pflegeplus&#46;com/pictures/Btntransp2&#46;jpg[/img:33hk917a] Best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
BTNBMP - CANCEL não funciona
Sr. Antonio,Porque a CLAUSULA CANCEL não funciona com BTNBMP?, porém, usando BUTTONBMP funciona perfeitamente!ex:REDEFINE GET oget VAR nVAL OF ODLG valid (.f.)REDEFINE BTNBMP ID 1000 OF ODLG ACTION(MSGINFO("TESTE")) RESOURCE "TOUCH" CANCEL -> NÃO FUNCIONA <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->---REDEFINE BUTTONBMP ID 1000 OF ODLG ACTION(MSGINFO("TESTE")) BITMAP "TOUCH" CANCEL -> FUNCIONA <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
BTNBMP - CANCEL não funciona
<!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=53">http://www.fivewin.com.br/exibedicas.asp?id=53</a><!-- m -->
BTNBMP - CANCEL não funciona
Obrigado Karinha.
BTNBMP - CANCEL não funciona
REDEFINE BTNBMP oBtn ID 1000 OF ODLG ACTION(MSGINFO("TESTE")) RESOURCE "TOUCH" oBtn:lCancel := .T.
BTNBMP - CANCEL não funciona
Obrigado Sr. Antonio.
BTNBMP - PARA LOS EXPERTS- Solucionado !
- Yo tenho un BTNBMP criado pelo Workshop con una image BMP. Gostaria que ao pressionar lo BTNBMP la image contenida redimensionasse para maior ou menor . Seria possible ? Yo necessito para utilizar em minha funcion DISPLAY, para redimensionamento de tela en qualquer resolucion. Mas quando redimensiono lo BTNBMP la imagen contenida en lo button non acompanha lo redimensionamento. Muchas Gracias William Adami
BTNBMP - PARA LOS EXPERTS- Solucionado !
yo creo que Lo caminho seja Retirar lo Objeto BMP del button , Redimensioná-lo y enton retornar la imagen en lo BTNBMP. Algun exemplo de como fazer ? Muchas Gracias William
BTNBMP - PARA LOS EXPERTS- Solucionado !
Yo resolvi da seguinte forma: #include "fivewin.ch" function main local odlg,ob define dialog odlg resource "DIALOG" redefine btnbmp ob id 120 of odlg resource "figura" action muda(ob) activate dialog odlg return nil function muda( bt ) o=bt:hbitmap1 o:=resizebmp(o,100,100) // o bmp original era 48 X 48 // vai redimensionar para 100 X 100 bt:hbitmap1:=o bt:refresh() return nil Agora en la funcion DISPLAY posso redimensionar los btnbmp juntamente con la imagene contenida . Muchas Gracias William Adami
BTNBMP - oBtn:l2007=.t.
Hello Antonio, is there oBtn:l2007=.t. available for BtnBmp? @ x,y BTNBMP oBtn FILENAME ".\bitmaps2\test.bmp" SIZE 60, 60 PROMPT "TimeLox" ACTION msginfo("test") OF oDlg oBtn:l2007 = .T. Regards, Otto
BTNBMP - oBtn:l2007=.t.
Otto, No, Class TBtnBmp does not provide a DATA l2007. A TBtnBmp object checks if its container is a buttonbar and if it has its l2007 as .T. You could easily modify class TBtnBmp and add that DATA and change its painting behavior if you need it
BTNBMP - oBtn:l2007=.t.
Hello Antonio, To get the painting I placed 2 buttonBars (TOP and BOTTOM) on 1 Dialog. It seems that these to BtnBars are working correctly. Is it save to use 2 or more BtnBars on one Dialog? Regards, Otto [img:al0qlzwv]http&#58;//www&#46;atzwanger&#46;com/fw/2btnbars&#46;jpg[/img:al0qlzwv]
BTNBMP - oBtn:l2007=.t.
Otto, > Is it save to use 2 or more BtnBars on one Dialog? Yes, it should be ok <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
BTNBMP 16.04 : Translucent buttons Textured buttons HGrad
[b:qgeslw2k]Translucent Buttons [/b:qgeslw2k] Using Alpha Color Fills [url=https&#58;//imageshack&#46;com/i/pmnRs49Tp:qgeslw2k][img:qgeslw2k]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/922/nRs49T&#46;png[/img:qgeslw2k][/url:qgeslw2k] [i:qgeslw2k]Mouse Over is on top button [/i:qgeslw2k] Code: [code=fw:qgeslw2k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> BtnTest<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBtn, oBrush, oFont, n<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;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-20</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\s</span>ea.bmp"</span> RESIZE <span style="color: #B900B9;">//"penguins.jpg" RESIZE</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">420</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">BRUSH</span> oBrush ;<br />      <span style="color: #0000ff;">TITLE</span> FWVERSION + <span style="color: #ff0000;">" : TRANSLUCENT BUTTONS"</span><br /><br />   @ <span style="color: #000000;">040</span>,<span style="color: #000000;">060</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">" Translucent"</span> + CRLF + <span style="color: #ff0000;">"Buttons "</span>;<br />      FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\i</span>chat.bmp"</span> ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">LEFT</span> <span style="color: #000000;">2007</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">COLOR</span> CLR_WHITE,CLR_BLACK<br />     oBtn:<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, 0x60FFA54A, nARGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">64</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   @ <span style="color: #000000;">220</span>,<span style="color: #000000;">060</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Alpha Color Fills"</span> ;<br />      FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\p</span>ngs<span style="color: #000000;">\i</span>mage8.png"</span> ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">090</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TOP <span style="color: #000000;">2007</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">COLOR</span> CLR_YELLOW,CLR_BLACK<br />   oBtn:<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, 0x80FFA54A, nARGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">54</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:qgeslw2k] [b:qgeslw2k]Texured Buttons [/b:qgeslw2k] [url=https&#58;//imageshack&#46;com/i/pn5BVWn7p:qgeslw2k][img:qgeslw2k]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/923/5BVWn7&#46;png[/img:qgeslw2k][/url:qgeslw2k] [i:qgeslw2k]Mouse Over is on Right Button[/i:qgeslw2k] Code: [code=fw:qgeslw2k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> BtnTest2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBtn, aBru<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> aBru<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\w</span>ood.bmp"</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> aBru<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ackgrnd<span style="color: #000000;">\r</span>ainbow.bmp"</span> <span style="color: #B900B9;">//stucco.bmp"</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;">480</span>,<span style="color: #000000;">240</span> <span style="color: #0000ff;">PIXEL</span><br /><br />   @  <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\c</span>alendar.bmp"</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">96</span>,<span style="color: #000000;">96</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #000000;">2007</span><br />   oBtn:<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, aBru<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hBrush</span>, aBru<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBtn:<span style="color: #000000;">lEllipse</span> := .t.<br /><br />   @  <span style="color: #000000;">10</span>,<span style="color: #000000;">120</span> <span style="color: #0000ff;">BTNBMP</span> oBtn FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\c</span>alendar.bmp"</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">96</span>,<span style="color: #000000;">96</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #000000;">2007</span><br />   oBtn:<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, aBru<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hBrush</span>, aBru<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oBtn:<span style="color: #000000;">lEllipse</span> := .t.<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;">BRUSH</span> aBru<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBru<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:qgeslw2k] [b:qgeslw2k]Horizontal Gradients [/b:qgeslw2k] [url=https&#58;//imageshack&#46;com/i/poilLwJNp:qgeslw2k][img:qgeslw2k]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/924/ilLwJN&#46;png[/img:qgeslw2k][/url:qgeslw2k] [i:qgeslw2k]Mouse Over is on bottom button[/i:qgeslw2k] [code=fw:qgeslw2k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> BtnTest3<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBtn, oFont<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;">-24</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;">260</span>,<span style="color: #000000;">250</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />   @  <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>ascade.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Horizontal Gradients"</span> <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">110</span>,<span style="color: #000000;">48</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #000000;">2007</span><br />   oBtn:<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, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, METRO_MAGENTA, METRO_YELLOW <span style="color: #000000;">&#125;</span>, ;<br />                                               <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, METRO_YELLOW, METRO_MAGENTA <span style="color: #000000;">&#125;</span>, ;<br />                                               .f. <span style="color: #000000;">&#125;</span>, ;<br />                                             <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, CLR_GREEN, CLR_HGREEN <span style="color: #000000;">&#125;</span>, ;<br />                                               <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, CLR_HGREEN, CLR_GREEN <span style="color: #000000;">&#125;</span>, ;<br />                                               .f. <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   @  <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\c</span>ascade.bmp"</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Horizontal Gradients"</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">110</span>,<span style="color: #000000;">48</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #000000;">2007</span><br />   oBtn:<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, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, METRO_MAGENTA, METRO_YELLOW <span style="color: #000000;">&#125;</span>, ;<br />                                               <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, METRO_YELLOW, METRO_MAGENTA <span style="color: #000000;">&#125;</span>, ;<br />                                               .f. <span style="color: #000000;">&#125;</span>, ;<br />                                             <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, CLR_GREEN, CLR_HGREEN <span style="color: #000000;">&#125;</span>, ;<br />                                               <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, CLR_HGREEN, CLR_GREEN <span style="color: #000000;">&#125;</span>, ;<br />                                               .f. <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:qgeslw2k] In FWH 16.04, greater flexibility is provided for specifying bClrGrad of TBtnBmp. As in earlier versions, we can assign out own bClrGrad overriding the default bClrGrad provided by default for styles 2007 to 2015. Once we provide our own bClrGrad, it does not matter if the style is 2007 ... 2015. But in the earlier versions, the codeblock should return a valid Gradient Array. bClrGrad is evaluated with 2 params lMouseOver, oBtnObject. Now the bClrGrad can return a Gradient Array or an RGB color or an ARGB color ( Alpha Color ) or a Brush Handle or a GDI+ Brush Object. This facility provides us unlimited possibilities for designing the buttons. Small note on ARGB: RGB is a 24 bit number. When expressed in Hex : "BBGGRR" ARGB is a 32 bit number. Expressed in Hex: "AARRGGBB" For quick usage FWH provides nARGB() function Usage: nARGB( nAlpha, nRed, nGreen, nBlue ) or nARGB( nAlpha, nRGBColor ) Extensions to Gradient Array: A valid Gradient array is a multi-dimensional Array, each element being an array defining a single gradient. Now, it is possible to optionally specify last element as a Logical Value. .T. indicates Vertical Gradient and .F. indicates Horizontal gradient.
BTNBMP 16.04 : Translucent buttons Textured buttons HGrad
Mr Rao can you make a test for use LMover data because here make me error pls see the last message at <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=34150&start=0">viewtopic.php?f=3&t=34150&start=0</a><!-- l -->
BTNBMP : Different Releases
I've seen controls behave differently in the same source code on the left it was compiled in 2018 on the right in 2023 how is this possible? [img:2qalkhve]https&#58;//i&#46;postimg&#46;cc/DyWGLxs8/ffffff&#46;jpg[/img:2qalkhve] I mean for the color of border and for the gradient when I move the mouse look this videos [b:2qalkhve]2018[/b:2qalkhve] [img:2qalkhve]https&#58;//i&#46;postimg&#46;cc/Vv2WnpkW/2018&#46;gif[/img:2qalkhve] [b:2qalkhve]2023[/b:2qalkhve] [img:2qalkhve]https&#58;//i&#46;postimg&#46;cc/vHRP1xxF/2023&#46;gif[/img:2qalkhve] the source code is the same [code=fw:2qalkhve]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp;<br /><br />@ nRow,ncol <span style="color: #0000ff;">BTNBMP</span> aBtnEle<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILENAME aElements<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">220</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">PIXEL</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FLAT <span style="color: #0000ff;">RIGHT</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> aElements<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oElements &nbsp;<span style="color: #0000ff;">action</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBtnEle<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ocursor</span>:= oHand<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBtnEle<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nClrBorder</span> := <span style="color: #000000;">&#123;</span> |obtn| <span style="color: #000000;">&#40;</span>IIF<span style="color: #000000;">&#40;</span>obtn:<span style="color: #000000;">lMOver</span>,CLR_BLUE,CLR_HGRAY<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBtnEle<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_WHITE, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>,<span style="color: #000000;">241</span>,<span style="color: #000000;">251</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>,<span style="color: #000000;">241</span>,<span style="color: #000000;">251</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 />&nbsp;</div>[/code:2qalkhve]
BTNBMP : Different Releases
Do you happen to use a modified BTNBMP.PRG class? ¿Utiliza una clase BTNBMP.PRG modificada? Regards, saludos.
BTNBMP : Different Releases
No
BTNBMP AND POPUP
I have a list of btnbmp and I wish open a popup when the final user click on a btnbmp the problem is the nitem is the same [code=fw:2wxfx8z0]<div class="fw" id="{CB}" style="font-family: monospace;">RA-><span style="color: #000000;">&#40;</span>dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> ! Ra-><span style="color: #000000;">&#40;</span>eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br />      @ nrow,ncol <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">of</span> oGrid:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> ;<br />                  <span style="color: #0000ff;">SIZE</span> nsizeW,nsizeh <span style="color: #0000ff;">PIXEL</span> TRANSPARENT ;<br />                  <span style="color: #0000ff;">Prompt</span> <span style="color: #000000;">&#40;</span>alltrim<span style="color: #000000;">&#40;</span>Ra->Radesc<span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">" "</span><span style="color: #000000;">&#41;</span>  ;<br />                  NOBORDER ;<br />                  Filename aBmp<span style="color: #000000;">&#91;</span>RA->RACOLORE<span style="color: #000000;">&#93;</span>   ;<br />                  <span style="color: #0000ff;">CENTER</span><br /><br />               oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Item "</span>+str<span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />     <br />       ncol:= ncol+nsizeW<span style="color: #000000;">+5</span><br />       n:=n<span style="color: #000000;">+1</span><br /><br />       k++<br /><br />       <span style="color: #00C800;">IF</span> k = <span style="color: #000000;">11</span><br />          nRow += nsizeh<span style="color: #000000;">+10</span><br />          ncol := <span style="color: #000000;">10</span><br />          k:= <span style="color: #000000;">1</span><br />       <span style="color: #00C800;">Endif</span><br /><br />       RA-><span style="color: #000000;">&#40;</span>dbSkip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">Enddo</span><br /><br /> </div>[/code:2wxfx8z0] give me allway item 30 and the same caption because there are 30 items How I cam open a popup and give to popup the number of button and the caption ?
BTNBMP AND POPUP
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=188264#p188264">viewtopic.php?p=188264#p188264</a><!-- l -->
BTNBMP AND POPUP
Antonio, I saw I tried but not run !! [b:38qfc8z9]Test.prg[/b:38qfc8z9] [code=fw:38qfc8z9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br />EXTERNAL ORDKEYNO,ORDKEYCOUNT,ORDCREATE,ORDKEYGOTO<br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oDlgTest,oGrid<br />&nbsp;<span style="color: #00C800;">Local</span> &nbsp;aPrompts:=<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"faldone 1"</span><span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp;nBottom &nbsp; := <span style="color: #000000;">29.2</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp;nRight &nbsp; &nbsp;:= &nbsp;<span style="color: #000000;">58</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp;nWidth &nbsp; &nbsp;:= &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp;nHeight &nbsp; := &nbsp;nBottom * DLG_CHARPIX_H<br /><br />&nbsp; &nbsp;RddSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SetHandleCount<span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgTest &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> nWidth, nHeight &nbsp; <span style="color: #0000ff;">PIXEL</span> &nbsp;; &nbsp; &nbsp;<span style="color: #B900B9;">//TRUEPIXEL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"test"</span> &nbsp;TRANSPARENT<br /><br /><br /><br />&nbsp; &nbsp;oGrid := TFolderex<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> , , , , oDlgTest, , ,, aPrompts<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oGrid:<span style="color: #000000;">nTop</span> &nbsp; &nbsp;:= <span style="color: #000000;">00</span><br />&nbsp; &nbsp;oGrid:<span style="color: #000000;">nLeft</span> &nbsp; := <span style="color: #000000;">00</span><br />&nbsp; &nbsp;oGrid:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">200</span><br />&nbsp; &nbsp;oGrid:<span style="color: #000000;">nRight</span> &nbsp;:= <span style="color: #000000;">300</span> <br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgTest ;<br />&nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> Show_raccoglitori<span style="color: #000000;">&#40;</span>oGrid<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br />&nbsp;<span style="color: #00C800;">function</span> &nbsp;Show_raccoglitori<span style="color: #000000;">&#40;</span>oGrid<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> &nbsp;oFontsmall:= TFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Tahoma"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span>,,.F. <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cCursor:= TCursor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span>,<span style="color: #ff0000;">'HAND'</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> nRow := <span style="color: #000000;">10</span><br /><span style="color: #00C800;">local</span> ncol := <span style="color: #000000;">10</span><br /><br /><span style="color: #B900B9;">//per i faldoni</span><br /><span style="color: #00C800;">Local</span> nsizeW:= <span style="color: #000000;">84</span><br /><span style="color: #00C800;">Local</span> nsizeh:= <span style="color: #000000;">240</span><br /><br /><br /><span style="color: #00C800;">local</span> aBmp:= <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>ipo1.png"</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>ipo2.png"</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>ipo3.png"</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>ipo4.png"</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\t</span>ipo5.png"</span> &nbsp; <span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00C800;">local</span> n:= <span style="color: #000000;">1</span><br /><span style="color: #00C800;">local</span> oBtn,oBasket2<br /><br />Create_Faldoni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />USE FALDONI <span style="color: #0000ff;">ALIAS</span> RA<br /><br /><br />nCount:=RA-><span style="color: #000000;">&#40;</span>OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />nNumeroPerLinea:= <span style="color: #000000;">15</span><span style="color: #000000;">+1</span><br />oBtn:= array<span style="color: #000000;">&#40;</span>nCount<span style="color: #000000;">&#41;</span><br />&nbsp;k:= <span style="color: #000000;">1</span><br />RA-><span style="color: #000000;">&#40;</span>dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> ! Ra-><span style="color: #000000;">&#40;</span>eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp;nCode:= Ra->racodice<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCaption:=Ra->Radesc<br /><br />&nbsp; &nbsp; &nbsp; @ nrow,ncol <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">of</span> oGrid:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> nsizeW,nsizeh <span style="color: #0000ff;">PIXEL</span> TRANSPARENT ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">Prompt</span> str2lines<span style="color: #000000;">&#40;</span>alltrim<span style="color: #000000;">&#40;</span>Ra->Radesc<span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">" "</span><span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NOBORDER ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Filename aBmp<span style="color: #000000;">&#91;</span>RA->RACOLORE<span style="color: #000000;">&#93;</span> &nbsp; ; <span style="color: #B900B9;">// ACTION bEjecutaBoton(nrow,ncol,n,alltrim(Ra->Radesc),obtn);</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">CENTER</span><br /><br />&nbsp; &nbsp; &nbsp; * oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lTransparent</span>:=.T.<br />&nbsp; &nbsp; &nbsp; oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oCursor</span>:= cCursor<br />&nbsp; &nbsp; &nbsp; oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lBorder</span> := .F.<br />&nbsp; &nbsp; &nbsp; oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := bEjecutaBoton<span style="color: #000000;">&#40;</span>nrow,ncol,n,oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>, nCaption<span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;ncol:= ncol+nsizeW<span style="color: #000000;">+5</span><br />&nbsp; &nbsp; &nbsp; &nbsp;n:=n<span style="color: #000000;">+1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;k++<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> k = nNumeroPerLinea<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nRow += nsizeh<span style="color: #000000;">+10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ncol := <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; k:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;RA-><span style="color: #000000;">&#40;</span>dbSkip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Enddo</span><br /><br /><br /><br /><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><br />&nbsp;<span style="color: #00C800;">function</span> bEjecutaBoton<span style="color: #000000;">&#40;</span>nrow,ncol,n,oControl, nCaption<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span> |n| Menu_popup<span style="color: #000000;">&#40;</span>nrow,ncol,n,oControl, nCaption<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Function</span> Menu_popup<span style="color: #000000;">&#40;</span>nrow,ncol,n,oControl, nCaption<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Local</span> oMenuPop<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenuPop <span style="color: #0000ff;">POPUP</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Apri "</span>+ nCaption<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"WWW"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oMenuPop <span style="color: #0000ff;">OF</span> oControl <span style="color: #00C800;">AT</span> nrow,ncol<br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><br />&nbsp;<span style="color: #00C800;">Function</span> Create_Faldoni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Local</span> cDir:=<span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; DbCreate<span style="color: #000000;">&#40;</span>cDir+<span style="color: #ff0000;">'RA'</span>, &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"RACODICE"</span> &nbsp;, <span style="color: #ff0000;">"C"</span>, &nbsp; &nbsp; <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"RADESC &nbsp;"</span> &nbsp;, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">25</span>, &nbsp; &nbsp;<span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"RACOLORE"</span> &nbsp;, <span style="color: #ff0000;">"N"</span>, &nbsp; &nbsp; <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> , <span style="color: #ff0000;">'DBFCDX'</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; close all<br />&nbsp; &nbsp; &nbsp; use &<span style="color: #000000;">&#40;</span>cDir+<span style="color: #ff0000;">'RA'</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">new</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">select</span> RA<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> FILE<span style="color: #000000;">&#40;</span>cDir+<span style="color: #ff0000;">'FALDONI.DBF'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;delete file &<span style="color: #000000;">&#40;</span>cdir+<span style="color: #ff0000;">'FALDONI.cdx'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;append <span style="color: #0000ff;">from</span> &<span style="color: #000000;">&#40;</span>cdir+<span style="color: #ff0000;">'FALDONI'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dbcommitall<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;close all<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;delete file &<span style="color: #000000;">&#40;</span>cdir+<span style="color: #ff0000;">'FALDONI.dbf'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; close all<br />&nbsp; &nbsp; &nbsp; rename &<span style="color: #000000;">&#40;</span>cdir+<span style="color: #ff0000;">'RA.dbf'</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">to</span> &<span style="color: #000000;">&#40;</span>cdir+<span style="color: #ff0000;">'FALDONI.dbf'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br />&nbsp; <span style="color: #00C800;">FUNCTION</span> Str2Lines<span style="color: #000000;">&#40;</span> string, parser <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cStrLines:= CRLF+<span style="color: #ff0000;">""</span>, nLenPar:= Len<span style="color: #000000;">&#40;</span> parser <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> commapos := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> parser == <span style="color: #00C800;">NIL</span> .OR. parser == <span style="color: #ff0000;">"e"</span><br />&nbsp; &nbsp; &nbsp;parser := <span style="color: #ff0000;">" "</span><br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> Len<span style="color: #000000;">&#40;</span> string <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; commapos := <span style="color: #00C800;">at</span><span style="color: #000000;">&#40;</span> parser, string <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> commapos > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cStrLines+= <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> string, commapos - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + CRLF + <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;string := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> string, commapos + Len<span style="color: #000000;">&#40;</span> parser <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cStrLines+= string<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;string := <span style="color: #ff0000;">''</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; <span style="color: #00C800;">ENDDO</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> cStrLines <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------//</span><br /><br /><br /><br /><br /><br /><br /><br /><br />&nbsp;</div>[/code:38qfc8z9] [img:38qfc8z9]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/03/btnbmperr&#46;bmp[/img:38qfc8z9] I saw if we use @ btnbmp -- action ... it run the function of the baction if we use [b:38qfc8z9]oBtn[n]:bAction := bEjecutaBoton(n,nrow,ncol, nCode,nCaption,obtn[n])[/b:38qfc8z9] the control draw a border arround the control btnbmp and at right draw a triangule and the popupup menu is far from btnbmp why ?
BTNBMP AND POPUP
Silvio, Silvio wrote : [i:3g0witle]if we use oBtn[n]:bAction := bEjecutaBoton(n,[b:3g0witle][color=#FF0000:3g0witle]nrow,ncol[/b:3g0witle], [/color:3g0witle]nCode,nCaption,obtn[n]) the control draw a border[/i:3g0witle] don't use nrow,ncol !! oBtn[n]:bAction := bEjecutaBoton(n,[b:3g0witle][color=#0000FF:3g0witle]0, 0[/color:3g0witle][/b:3g0witle] ,nCode,nCaption,obtn[n]) will display the popup on top / left of the button oBtn[n]:bAction := bEjecutaBoton(n, [color=#0000FF:3g0witle][b:3g0witle]0, oBtn[n]:nRight[/b:3g0witle][/color:3g0witle] ,nCode,nCaption,obtn[n]) will display the popup on top / right of the button best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
BTNBMP AND POPUP
Hi, [code=fw:sfajic4b]<div class="fw" id="{CB}" style="font-family: monospace;"><br />..<br />oMesa := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">40</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FOR</span> nCont := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span><br />          <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> oMesa<span style="color: #000000;">&#91;</span>nCont<span style="color: #000000;">&#93;</span> ;<br />                   <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span><Actions>, MenuMesa<span style="color: #000000;">&#40;</span> oMesa<span style="color: #000000;">&#91;</span>::<span style="color: #000000;">nId</span><span style="color: #000000;">-100</span><span style="color: #000000;">&#93;</span>, ::<span style="color: #000000;">nId</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;    <br />                   <span style="color: #0000ff;">FONT</span> oFont1 ;<br />                   <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> + nCont <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #00C800;">NEXT</span> nCont<br />..<br />..<br /><span style="color: #B900B9;">//---------------------------------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> MenuMesa<span style="color: #000000;">&#40;</span>oObj, nId<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nOption, nTopR, nLeftR, oMenu<br /><br />nOption := <span style="color: #000000;">0</span><br />nTopR   := oObj:<span style="color: #000000;">nBottom</span>         <span style="color: #B900B9;">//nTop           // posicion del control que hizo la llamada</span><br />nLeftR  := oObj:<span style="color: #000000;">nRight</span>         <span style="color: #B900B9;">//nLeft</span><br /><br /><span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2007</span><br />  <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 1"</span> ;<br />     <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CALENDARIO1"</span> <span style="color: #0000ff;">ACTION</span> nOption := <span style="color: #000000;">1</span><br />  <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 2"</span> ;<br />     <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CALENDARIO1"</span> <span style="color: #0000ff;">ACTION</span> nOption := <span style="color: #000000;">2</span><br />  <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 3"</span> ;<br />     <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CALENDARIO1"</span> <span style="color: #0000ff;">ACTION</span> nOption := <span style="color: #000000;">3</span><br />  <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Opcion 4"</span> ;<br />     <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CALENDARIO1"</span> <span style="color: #0000ff;">ACTION</span> nOption := <span style="color: #000000;">4</span><br /><span style="color: #0000ff;">ENDMENU</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oMenu <span style="color: #00C800;">AT</span> nTopR , nLeftR + <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oObj<br /><br />? nOption, nId<br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">Nil</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:sfajic4b]
BTNBMP AND POPUP
please I tried your help but none run ok ..... can U publish a test sample ?
BTNBMP AND POPUP
Silvio Your running sample I used Your sample but shortend the code for my test without Your DBF, to show the main-logic You only want to show the popup on button-action ? It is possible to use a combination of < Action > and < oBtn[n]:bRclicked > [img:18e8hgld]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Popup&#46;jpg[/img:18e8hgld] [code=fw:18e8hgld]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> TEST<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oDlgTest,oGrid<br /><span style="color: #00C800;">Local</span>  aPrompts:=<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"faldone 1"</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">Local</span>  nBottom   := <span style="color: #000000;">29.2</span><br /><span style="color: #00C800;">Local</span>  nRight    :=  <span style="color: #000000;">58</span><br /><span style="color: #00C800;">Local</span>  nWidth    :=  <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span>  nHeight   :=  nBottom * DLG_CHARPIX_H<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgTest         ;<br /><span style="color: #0000ff;">SIZE</span> nWidth, nHeight   <span style="color: #0000ff;">PIXEL</span>  ;    <span style="color: #B900B9;">//TRUEPIXEL</span><br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test"</span>  TRANSPARENT<br /><br />oGrid := TFolderex<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> , , , , oDlgTest, , ,, aPrompts<span style="color: #000000;">&#41;</span><br />oGrid:<span style="color: #000000;">nTop</span>    := <span style="color: #000000;">00</span><br />oGrid:<span style="color: #000000;">nLeft</span>   := <span style="color: #000000;">00</span><br />oGrid:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">200</span><br />oGrid:<span style="color: #000000;">nRight</span>  := <span style="color: #000000;">300</span> <br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgTest ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> SHOW_RACCOGLITORI<span style="color: #000000;">&#40;</span>oGrid<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//----------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span>  SHOW_RACCOGLITORI<span style="color: #000000;">&#40;</span>oGrid<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span>  oFontsmall:= TFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Tahoma"</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">-9</span>,,.F. <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> cCursor:= TCursor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span>,<span style="color: #ff0000;">'HAND'</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> nRow := <span style="color: #000000;">10</span><br /><span style="color: #00C800;">Local</span> ncol := <span style="color: #000000;">10</span><br /><br /><span style="color: #00C800;">Local</span> nsizeW:= <span style="color: #000000;">84</span><br /><span style="color: #00C800;">Local</span> nsizeh:= <span style="color: #000000;">240</span><br /><br /><span style="color: #00C800;">Local</span> n:= <span style="color: #000000;">1</span><br /><span style="color: #00C800;">Local</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>,oBasket2<br /><br />nNumeroPerLinea:= <span style="color: #000000;">15</span><span style="color: #000000;">+1</span><br />k:= <span style="color: #000000;">1</span><br />i := <span style="color: #000000;">1</span><br />nCaption := <span style="color: #000000;">1</span><br /><br /><span style="color: #00C800;">FOR</span> I := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">4</span><br />    cPrompt := ALLTRIM<span style="color: #000000;">&#40;</span> STR<span style="color: #000000;">&#40;</span> I <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />    @ nrow, ncol <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">of</span> oGrid:<span style="color: #000000;">adialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> ;<br />                  <span style="color: #0000ff;">SIZE</span> nsizeW, nsizeh <span style="color: #0000ff;">PIXEL</span> <span style="color: #000000;">2007</span> ;<br />                  <span style="color: #0000ff;">Prompt</span> cPrompt  ; <span style="color: #B900B9;">// optional use ACTION ..... and oBtn[n]:bRclicked </span><br />                  NOBORDER ;<br />                  <span style="color: #0000ff;">CENTER</span><br /><br />    oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oCursor</span>:= cCursor<br />    oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lBorder</span> := .F.  <span style="color: #B900B9;">// display Top / Right</span><br />    oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := bEjecutaBoton<span style="color: #000000;">&#40;</span>   <span style="color: #000000;">0</span>, oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span>,  n,oBtn<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span>, nCaption<span style="color: #000000;">&#41;</span><br />    <span style="color: #B900B9;">// Action works using</span><br />    <span style="color: #B900B9;">// oBtn[n]:bRclicked := bEjecutaBoton(   0, oBtn[n]:nWidth,  n,oBtn[n], nCaption)</span><br />    <span style="color: #B900B9;">// use a Tooltip to tell the user about this option </span><br /><br />    ncol:= ncol+nsizeW<span style="color: #000000;">+5</span><br />    n:=n<span style="color: #000000;">+1</span><br /><br />    k++<br /><br />    <span style="color: #00C800;">IF</span> k = nNumeroPerLinea<br />        nRow += nsizeh<span style="color: #000000;">+10</span><br />        ncol := <span style="color: #000000;">10</span><br />        k:= <span style="color: #000000;">1</span><br />    <span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//--------------------- </span><br /><br /><span style="color: #00C800;">FUNCTION</span> BEJECUTABOTON<span style="color: #000000;">&#40;</span> nrow, ncol, n, oControl <span style="color: #000000;">&#41;</span><br />        <br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#123;</span> |n| Menu_popup<span style="color: #000000;">&#40;</span> nrow, ncol, n, oControl <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//-------------------- </span><br /><br /><span style="color: #00C800;">FUNCTION</span> MENU_POPUP<span style="color: #000000;">&#40;</span> nrow, ncol, n, oControl <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oMenuPop<br /><br /><span style="color: #0000ff;">MENU</span> oMenuPop <span style="color: #0000ff;">POPUP</span><br />          <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Apri "</span> <br />          <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"WWW"</span><br /><span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #B900B9;">// optional</span><br /><span style="color: #B900B9;">// oMenuPop:Activate( nrow, ncol, oControl, .T.) </span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oMenuPop <span style="color: #0000ff;">OF</span> oControl <span style="color: #00C800;">AT</span> nrow, ncol<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:18e8hgld] best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
BTNBMP AND POPUP
is there no possibility to not show the arrow and show only the popmenu near the button when the user press on it ?
BTNBMP AND POPUP
Try with this [code=fw:17o7v3rf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />......<br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Nuevo"</span>  NOBORDER <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ID</span> <span style="color: #000000;">112</span> ;<br />                 TOOLTIP <span style="color: #ff0000;">"Nueva solicitud <Ins>"</span> ;<br />                  <span style="color: #0000ff;">ACTION</span> MenuPop <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>  <span style="color: #000000;">&#41;</span><br /><br />......<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> MenuPop<span style="color: #000000;">&#40;</span> oBtn <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br />   <span style="color: #00C800;">Local</span> oMenu, aRect<br /><br />   aRect := GetClientRect<span style="color: #000000;">&#40;</span> oBtn:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Caja Chica"</span>                    <span style="color: #0000ff;">ACTION</span>   solicitud <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"new"</span>, <span style="color: #ff0000;">"caja"</span> <span style="color: #000000;">&#41;</span>        <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"cbx_cajachica"</span><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Cargo a Rendición "</span>            <span style="color: #0000ff;">ACTION</span>   solicitud <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"new"</span>, <span style="color: #ff0000;">"cargo"</span> <span style="color: #000000;">&#41;</span>       <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"cbx_rendicion"</span><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Viáticos y Estipendios"</span>        <span style="color: #0000ff;">ACTION</span>   solicitud <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"new"</span>, <span style="color: #ff0000;">"viaticos"</span> <span style="color: #000000;">&#41;</span>    <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"cbx_viaticos"</span><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Pago a proveedores y terceros"</span> <span style="color: #0000ff;">ACTION</span>   solicitud <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"new"</span>, <span style="color: #ff0000;">"proveedores"</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"cbx_proveedores"</span><br />   <span style="color: #0000ff;">ENDMENU</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oMenu <span style="color: #00C800;">AT</span> aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBtn<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:17o7v3rf]
BTNBMP AND POPUP
IT IS THE SAME!!!!!! I see also the border and the arrow
BTNBMP AND POPUP
Yes, this is strange because we don't define menu option in btnbmp, then try with this change [code=fw:2hpf0gym]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oMenu <span style="color: #00C800;">AT</span> aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBtn:<span style="color: #000000;">oWnd</span><br /><br />&nbsp;</div>[/code:2hpf0gym] you will need to calculate new values for offset saludos Marcelo
BTNBMP AND POPUP
Just add a button-refresh The arrow is only visible during executing the popup STATIC FUNCTION MENUPOP( oBtn ) Local oMenu, aRect aRect := GetClientRect( oBtn:hWnd ) MENU oMenu POPUP 2010 MENUITEM "Caja Chica" ACTION MsgAlert( "1" ) MENUITEM "Cargo a Rendición " ACTION MsgAlert( "2" ) BOLD MENUITEM "Viáticos y Estipendios" ACTION MsgAlert( "3" ) MENUITEM "Pago a proveedores y terceros" ACTION MsgAlert( "4" ) ENDMENU ACTIVATE POPUP oMenu AT aRect[ 3 ] + 1, aRect[ 2 ] OF oBtn [color=#0000FF:2g34afab][b:2g34afab]oBtn:Refresh()[/b:2g34afab][/color:2g34afab] RETURN NIL best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
BTNBMP AND POPUP
thanks
BTNBMP Estilo 2010 desde Recursos
Hola a todos Estoy queriendo actualizar el interfaz de mis aplicaciones ya que estoy con la FWH13.06, pero al tomar el consejo de siempre usar la clausula de 2007 y agregando GRADIENT bGrad [url:1a1m4dme]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=23315&p=125730&hilit=BUTTON+2010#p125730[/url:1a1m4dme] Consultado el archivo include FiveWin.ch en REDEFINE BTNBMP no incluye la clausula GRADIENT. ¿Habra alguna manera de hacerlo? Gracias de antemano
BTNBMP Estilo 2010 desde Recursos
Hola a todos Contestandome a mi mismo, y de la forma que se critico antes, cambie la clase BTNBMP, y solo modifique el arreglo de Gradient, en el metodo ReDefine. <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> Saludos
BTNBMP Estilo 2010 desde Recursos
Oscar, Puedes mostrarnos como lo has modificado ? Asi lo incluimos en FWH para próximas versiones, gracias REDEFINE BTNBMP ... GRADIENT bGrad ?
BTNBMP Estilo 2010 desde Recursos
Maestro No no hice nada complicado, solo cambie el color por defecto del Gradient, un tanto soso, para no cambiar el codigo de mis programas. [code=fw:312tw1oe]<div class="fw" id="{CB}" style="font-family: monospace;">   <br /><span style="color: #00C800;">DEFAULT</span> ::<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>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">253</span>, <span style="color: #000000;">222</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">231</span>, <span style="color: #000000;">151</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />           <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>/<span style="color: #000000;">3</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">215</span>,  <span style="color: #000000;">84</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">162</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  ;<br />         <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>/<span style="color: #000000;">2</span>, nRGB<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>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">207</span><span style="color: #000000;">-50</span>, <span style="color: #000000;">221</span><span style="color: #000000;">-25</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />           <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>/<span style="color: #000000;">2</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">201</span><span style="color: #000000;">-50</span>, <span style="color: #000000;">217</span><span style="color: #000000;">-25</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, nRGB<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>  ;<br />         <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /> </div>[/code:312tw1oe]
BTNBMP Estilo 2010 desde Recursos
Añadida la claúsula GRADIENT al commando REDEFINE BTNBMP ... GRADIENT ... en FWH 13.07 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
BTNBMP Estilo 2010 desde Recursos
Gracias Antonio A recoger ahorros para estar actualizado <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
BTNBMP FONT
Hello everyone, I am using BTNBMP to show a set of buttons but I have already modified the FONT several times and it does not change. I can even set the font but I can't increase the size Do any of you know any solutions? [code=fw:e9jyeawq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> ButQST<span style="color: #000000;">&#91;</span>nContST<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> nIDST <span style="color: #0000ff;">OF</span> oStObj <span style="color: #0000ff;">FONT</span> oFont13 <span style="color: #0000ff;">PROMPT</span> ALLTRIM<span style="color: #000000;">&#40;</span>STR<span style="color: #000000;">&#40;</span>nContST,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> PIXELS ;<br />FILE <span style="color: #ff0000;">"H:<span style="color: #000000;">\L</span>SOFT<span style="color: #000000;">\B</span>INGO<span style="color: #000000;">\F</span>IGURAS<span style="color: #000000;">\B</span>OLAQD.PNG"</span> <span style="color: #0000ff;">ADJUST</span> <span style="color: #0000ff;">CENTER</span> NOBORDER TRANSPARENT<br /><br />ButQST<span style="color: #000000;">&#91;</span>nContST<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SETCOLOR</span><span style="color: #000000;">&#40;</span> NRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">180</span>,<span style="color: #000000;">180</span>,<span style="color: #000000;">180</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  </div>[/code:e9jyeawq] Thank you!
BTNBMP FONT
You can change font, size everything. Let us know how you tried and what is not working for you.
BTNBMP FONT
I change the size of the FONT but it remains with a defined size ... [code=fw:1ivvvfnq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2000 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL ROUNDED MT BOLD"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> BOLD<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2000 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL ROUNDED MT BOLD"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-18</span> BOLD<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2000 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL ROUNDED MT BOLD"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-32</span> BOLD<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2000 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL ROUNDED MT BOLD"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-46</span> BOLD<br /> </div>[/code:1ivvvfnq] I changed for all these sizes but it hasn't changed
BTNBMP FONT
If you want to change the font of BtnBmp (or any control, window, dialog) DEFINE oNewFont NAME .................... and then oBtn:SetFont( oNewFont ) RELEASE FONT oNewFont
BTNBMP FONT
Yes i already tried this... [code=fw:2c5vfzz2]<div class="fw" id="{CB}" style="font-family: monospace;">ButQST<span style="color: #000000;">&#91;</span>nContST<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SETFONT</span><span style="color: #000000;">&#40;</span>oFont2000<span style="color: #000000;">&#41;</span></div>[/code:2c5vfzz2] just like this ... [code=fw:2c5vfzz2]<div class="fw" id="{CB}" style="font-family: monospace;">ButQST<span style="color: #000000;">&#91;</span>nContST<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oFontBold</span> := oFont2000</div>[/code:2c5vfzz2] and I didn't get any results I think you are at REDEFINE this problem because using @ it seems that it works
BTNBMP FONT
[quote:xangpfim]I think you are at REDEFINE this problem because using @ it seems that it works [/quote:xangpfim] No. It is because you are not doing it correctly. Please try this program: [code=fw:xangpfim]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, aBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oFont1, oFont2<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Main"</span> <span style="color: #0000ff;">FONT</span> oFont1<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> aBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Change"</span> + CRLF + <span style="color: #ff0000;">"Font"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">110</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">CENTER</span><br />&nbsp; &nbsp;aBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <||<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span> BOLD<br />&nbsp; &nbsp; &nbsp; AEval<span style="color: #000000;">&#40;</span> aBtn, <span style="color: #000000;">&#123;</span> |oBtn| oBtn:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont2 <span style="color: #000000;">&#41;</span>, oBtn:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont2<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> aBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Multi"</span> + CRLF + <span style="color: #ff0000;">"Line"</span> &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">120</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> AEval<span style="color: #000000;">&#40;</span> aBtn, <span style="color: #000000;">&#123;</span> |oBtn| oBtn:<span style="color: #000000;">oFontBold</span> := oFont1, oBtn:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> aBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Old"</span> + CRLF + <span style="color: #ff0000;">"Font"</span> &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">130</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> AEval<span style="color: #000000;">&#40;</span> aBtn, <span style="color: #000000;">&#123;</span> |oBtn| oBtn:<span style="color: #000000;">oFontBold</span> := <span style="color: #00C800;">nil</span>, oBtn:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont1 <span style="color: #000000;">&#41;</span>, oBtn:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont1<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:xangpfim] rc file: [code=fw:xangpfim]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>nclude<span style="color: #000000;">\W</span>inApi.ch"</span><br /><br />main <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">67</span>, <span style="color: #000000;">162</span>, <span style="color: #000000;">76</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"FiveWin Class TBtnBmp"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">12</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">110</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">9</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">43</span>, <span style="color: #000000;">21</span><br />&nbsp;CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">120</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">60</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">43</span>, <span style="color: #000000;">21</span><br />&nbsp;CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">130</span>, <span style="color: #ff0000;">"TBtnBmp"</span>, <span style="color: #000000;">0</span> | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style="color: #000000;">110</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">43</span>, <span style="color: #000000;">21</span><br /><span style="color: #000000;">&#125;</span></div>[/code:xangpfim] [url=https&#58;//imageshack&#46;com/i/pmZLX0MCg:xangpfim][img:xangpfim]https&#58;//imagizer&#46;imageshack&#46;com/img922/5426/ZLX0MC&#46;gif[/img:xangpfim][/url:xangpfim]
BTNBMP FONT
Thanks G. N. Rao.!
BTNBMP NOT TRASPARENT :WHY ?
[img:1h26swj3]http&#58;//img43&#46;imageshack&#46;us/img43/8476/errbtn&#46;jpg[/img:1h26swj3] THE CODE [code=fw:1h26swj3]<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 />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBmp,oBmp1<br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> BITMAP oBmp <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Five'</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TESTBTN"</span><br /><br />@ <span style="color: #000000;">06</span>, <span style="color: #000000;">001</span> <span style="color: #0000ff;">BTNBMP</span> oBmp1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"OROLOGIO"</span> NOBORDER<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBmp1:<span style="color: #000000;">lTransparent</span> = .t.<br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> oWnd:<span style="color: #000000;">SayBitmap</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">45</span>, <span style="color: #000000;">10</span>, oBmp <span style="color: #000000;">&#41;</span></div>[/code:1h26swj3]
BTNBMP NOT TRASPARENT :WHY ?
Hello Sylvio, To paint another BMP on a Window-Image-Background, You need a Alpha-Blended-BMP. [code=fw:3juru2fp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />.....<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> WIN_IMAGE<span style="color: #000000;">&#40;</span> oWnd, hDC <span style="color: #000000;">&#41;</span>, ; <br />ABPaint<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">20</span>, <span style="color: #000000;">20</span>, oBmp1:<span style="color: #000000;">hBitmap</span>, <span style="color: #000000;">220</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// The defined Alpha-Splash-Logo</span><br /><br /><span style="color: #B900B9;">//--------- IMAGE - LOGO ------------------------ </span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> WIN_IMAGE<span style="color: #000000;">&#40;</span> oWnd, hDC <span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">LOCAL</span> oImage1<br /><span style="color: #00C800;">LOCAL</span> nWidth  := oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> nHeight := oWnd:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// Selected Image</span><br /><span style="color: #B900B9;">// --------------------</span><br />cNEWLOGO := <span style="color: #ff0000;">"&c_path<span style="color: #000000;">\I</span>MAGES<span style="color: #000000;">\"</span> + ALLTRIM(WIN_IMAGE) // Window-Background<br />IF File( "</span>&cNEWLOGO<span style="color: #ff0000;">" )<br />DEFINE IMAGE oImage1 FILENAME "</span>&cNEWLOGO<span style="color: #ff0000;">" <br />   PalBmpDraw( hDC, 0, 0, oImage1:hBitmap, , nWIDTH, nHEIGHT, , .T. ) <br />ELSE<br />MsgAlert( "</span>Cannot load : <span style="color: #ff0000;">" + CRLF + ;<br />   cNEWLOGO, "</span>Error<span style="color: #ff0000;">" )             <br />ENDIF<br /><br />RETURN NIL<br /></span></div>[/code:3juru2fp] Today I will finish, my new Window-Background Tester. The working of Alpha-Blended-BMP-Logos on any Screen -Position, is easy to test as well. The Application will be for Download. Besr Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
BTNBMP NOT TRASPARENT :WHY ?
UWE I insert this message wrong into this forum the message and the error is for FWPPC AND NOT FWH I already call Antonio for this error
BTNBMP NOT TRASPARENT :WHY ?
Silvio, Use TransBmp() to paint the bitmap. Next FWPPC build provides AlphaChannel support too <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
BTNBMP Question
I realize there are two threads going on the buttons, but this didn't necessarily fit in either so I'm trying a new one. I moving a lot of existing FUNCTION code into classes, as METHODs to be far more efficient. In doing so, I'm seeing a consistent behavior. Please consider the following two sections of a METHOD. The ::invnum is a field in a database object which is opened within the class. REDEFINE BTNBMP RESOURCE "HROK" ID 2101 OF oDpw3 TOOLTIP "Use part" PROMPT "Use"; ACTION ( retval := ::invnum, oDpw3:end() ) NOBORDER TRANSPARENT REDEFINE XBROWSE oLpa ID 2100 OF oDpw3 ON DBLCLICK( retval := ::invnum, oDpw3:end() ) This is a lookup list. Note the ACTION and DBLCLICK code is identical. If I click on the Bitmap, the program stops working ( no clear error message ). If I double click on an item, it successfully returns the value to the calling program. Both of these sections are in the exact same method. This is built with FWH 13.08, Harbour, and Microsoft Visual Studio 2013. If I have the same calls in a FUNCTION by the same name, it works. In a CLASS METHOD, however, the error occurs. I'd love some thoughts on this. Tim
BTNBMP Question
At the beginning of the METHOD creating the BTNBMP, please declare a local [code=fw:21f7ocbb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">local</span> oSelf := <span style="color: #00C800;">Self</span></div>[/code:21f7ocbb] .... Then modify the BTNBMP's action clause Instead of [code=fw:21f7ocbb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> retval := ::<span style="color: #000000;">invnum</span>, oDpw3:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:21f7ocbb] modify as [code=fw:21f7ocbb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> retval := oSelf:<span style="color: #000000;">invnum</span>, oDpw3:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:21f7ocbb] First please test this change and I am sure it will work, You want to know the reason. The way the command translate of BTNBMP is written ::invnum is translated by the preprocessor as Self:invnum. But this Self is the button object, not "OUR" object. I too learnt these lessons the hard way years back. So I invariably declare a local in every method creating FW objets local oSelf := Self Whether necessary or not, I use oSelf:myvariable instead of ::myvairable in the ACTION clauses of any FW control. May be this is not necessary in all cases and I may be over-cautious. But this saves lot of time and headaches.
BTNBMP Question
Thank you. That makes sense and it does work. Tim
BTNBMP Text Color ?
Thanks you. Antonio How are you the low which the BTNBMP increases then? [code:angoe7xj] @ 170, 31 BTNBMP oBut RESOURCE "button" CENTER PROMPT "00&#58;00&#58;00" FONT oFont2 SIZE 136, 130 ; ACTION oWnd&#58;End&#40;&#41; OF oWnd NOBORDER // ? TextColor // ? Font [/code:angoe7xj] FWH USer...........
BTNBMP Text Color ?
Sorry, I don't understand what you mean. Do you want to show the running time on the button ?
BTNBMP Text Color ?
[quote="Antonio Linares":1lje5ec7]Sorry, I don't understand what you mean. Do you want to show the running time on the button ?[/quote:1lje5ec7] [code:1lje5ec7] @ 0,0 BTNBMP oBut RESOURCE "start" CENTER PROMPT "Text Caption " SIZE 101, 39 ACTION start&#40;&#41; OF oWnd NOBORDER [/code:1lje5ec7] We change 'Text Caption' Color.
BTNBMP Text Color ?
oBut:SetColor( "GR+/B" ) or oBut:SetColor( CLR_..., CLR_... ) or oBut:SetColor( nRGB( ..., ..., ... ), nRGB( ..., ..., ... ) )
BTNBMP default button
Dear Damiano, Could you post a small example complete to test here ? many thanks
BTNBMP default button
hi, how can I assign DEFAULT to oBtnbmp BTNBMP inside a DIALOG ? [code=fw:32ahsef0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1300</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">FONT</span> oFont<br />    <span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, ;<br />              WS_MAXIMIZEBOX, WS_MINIMIZEBOX, WS_THICKFRAME <span style="color: #000000;">&#41;</span><br />...<br />...<br />    @ <span style="color: #000000;">320</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtnbmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">28</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"search"</span> <span style="color: #000000;">2007</span><br />               TOOLTIP <span style="color: #ff0000;">"OK"</span> ;<br />                <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>doFunc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />    @ <span style="color: #000000;">320</span>,<span style="color: #000000;">70</span> <span style="color: #0000ff;">BTNBMP</span> oBtnbmp1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">28</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"search"</span> <span style="color: #000000;">2007</span><br />               TOOLTIP <span style="color: #ff0000;">"SEARCH"</span> ;<br />                <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>doOther<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:32ahsef0] I would like that when I press ENTER start doFunc() thanks
BTNBMP default button
Hi, [code=fw:1ed2oaml]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1300</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">FONT</span> oFont<br />    <span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, ;<br />              WS_MAXIMIZEBOX, WS_MINIMIZEBOX, WS_THICKFRAME <span style="color: #000000;">&#41;</span><br /><br />   oDlg:<span style="color: #000000;">bInit</span>:= <span style="color: #000000;">&#123;</span>|| oBtnBmp:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>      <span style="color: #B900B9;">// <<<<<<<<<<<---------------------</span><br />...<br />...<br />    @ <span style="color: #000000;">320</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtnbmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">28</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"search"</span> <span style="color: #000000;">2007</span><br />               TOOLTIP <span style="color: #ff0000;">"OK"</span> ;<br />                <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>doFunc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />    @ <span style="color: #000000;">320</span>,<span style="color: #000000;">70</span> <span style="color: #0000ff;">BTNBMP</span> oBtnbmp1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">28</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"search"</span> <span style="color: #000000;">2007</span><br />               TOOLTIP <span style="color: #ff0000;">"SEARCH"</span> ;<br />                <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>doOther<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1ed2oaml] Regards
BTNBMP default button
hi thank you, into dialog there are a lot of get and button and I would like that when I press RETURN inside any GET or button start ACTION(doFunc())
BTNBMP default button
Hi, no solution? inside Fivewin.ch BUTTON, BUTTONBMP AND FLATBTN have DEFAULT option but BTNBPM no, is there any update, how can I to solve it? thank you
BTNBMP default button
Damiano, Try this: #define BM_SETSTYLE 244 oDlg:bInit := { || oBtnBmp:SendMsg( BM_SETSTYLE, BS_DEFPUSHBUTTON, 1 ) } or oDlg:bInit := { || oBtnBmp:PostMsg( BM_SETSTYLE, BS_DEFPUSHBUTTON, 1 ) }
BTNBMP default button
hi Antonio, it doesn't work in any way. Return key go on to the next GET field but not active BTNBMP in others PGM I use REDEFINE DIALOG from resource and it works because obtnbmp has ID = IDOK (I use Pelles C) but in this case I don't want to use REDEFINE.
BTNBMP default button
hi Antonio, [code=fw:1img4he1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">70</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">local</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">70</span><span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">local</span> oFont, oFontU<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontU <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span> UNDERLINE<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1300</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">FONT</span> oFont;<br /><span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, ;<br />          WS_MAXIMIZEBOX, WS_MINIMIZEBOX, WS_THICKFRAME <span style="color: #000000;">&#41;</span> ; <br />          <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Interrogazione distinta base"</span><br /><br />    @ <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">GET</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> NOBORDER <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ !"</span>  <br /><br />    @ <span style="color: #000000;">10</span>, <span style="color: #000000;">45</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tipo Interrogazione"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span><br />    @ <span style="color: #000000;">20</span>, <span style="color: #000000;">45</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"ESPLOSIONE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>    <span style="color: #0000ff;">FONT</span> oFontU<br />    @ <span style="color: #000000;">28</span>, <span style="color: #000000;">45</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"1 - a singolo livello"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> <br />    @ <span style="color: #000000;">36</span>, <span style="color: #000000;">45</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"2 - scalare"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>   <br />    @ <span style="color: #000000;">44</span>, <span style="color: #000000;">45</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"4 - ai materiali di base"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>  <br /><br />    @ <span style="color: #000000;">20</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"IMPLOSIONE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">FONT</span> oFontU           <br />    @ <span style="color: #000000;">28</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"5 - a singolo livello"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>    <br />    @ <span style="color: #000000;">36</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"6 - scalare"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>  <br />    @ <span style="color: #000000;">44</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"8 - ai prodotti finiti"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>       <br /><br />    @ <span style="color: #000000;">10</span>, <span style="color: #000000;">210</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Articolo"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> <br />    @ <span style="color: #000000;">10</span>, <span style="color: #000000;">243</span> <span style="color: #0000ff;">GET</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!!!!!!!!!!!!!!!"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> NOBORDER <span style="color: #0000ff;">pixel</span> ;<br />        <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"VALID"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <br />    @ <span style="color: #000000;">10</span>, <span style="color: #000000;">305</span> <span style="color: #0000ff;">GET</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> NOBORDER <span style="color: #0000ff;">COLOR</span>  ;<br />    <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"</span>  <br /><br />    @ <span style="color: #000000;">23</span>, <span style="color: #000000;">210</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> hb_OemToAnsi<span style="color: #000000;">&#40;</span> hb_utf8tostr<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Validità"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>   <br />    @ <span style="color: #000000;">23</span>, <span style="color: #000000;">243</span> <span style="color: #0000ff;">GET</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> NOBORDER <span style="color: #0000ff;">COLOR</span>  ;<br />    <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@   /  /    "</span><br />    <br />    @ <span style="color: #000000;">23</span>, <span style="color: #000000;">305</span> <span style="color: #0000ff;">SAY</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">06</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">06</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span><br /><br />    @ <span style="color: #000000;">36</span>, <span style="color: #000000;">210</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> hb_OemToAnsi<span style="color: #000000;">&#40;</span> hb_utf8tostr<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Quantità"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>       <br />    @ <span style="color: #000000;">36</span>, <span style="color: #000000;">243</span> <span style="color: #0000ff;">GET</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> NOBORDER <span style="color: #0000ff;">RIGHT</span>  ;<br />    <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ZE 99999.999999"</span>  <br /><br />    @ <span style="color: #000000;">63</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-45</span> <span style="color: #0000ff;">PIXEL</span> ;<br />    RECORDSET M_GET<span style="color: #000000;">&#91;</span><span style="color: #000000;">21</span><span style="color: #000000;">&#93;</span> <span style="color: #B900B9;">/* AdoDb object */</span>;<br />    COLUMNS <span style="color: #ff0000;">"LIVELLO"</span> ;<br />    COLSIZES <span style="color: #000000;">70</span>  ;<br />    HEADERS  <span style="color: #ff0000;">"LIV."</span> ;<br />    <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ !!!!!!!!!!!!!!"</span> ;<br />    <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> LINES NOBORDER ;<br />    <span style="color: #0000ff;">ON</span> DBLCLICK<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"dblclick"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>    <br /><br />    oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <br />    WITH OBJECT oBrw<br />        :<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    :<span style="color: #000000;">lHScroll</span>            := .T.<br />        :<span style="color: #000000;">lVScroll</span>            := .T.<br />        :<span style="color: #000000;">lRecordSelector</span>     := .t.<br />        :<span style="color: #000000;">nColDividerStyle</span>    := LINESTYLE_BLACK<br />        :<span style="color: #000000;">nRowDividerStyle</span>    := LINESTYLE_BLACK<br />        :<span style="color: #000000;">lColDividerComplete</span> := .T. <br />        :<span style="color: #000000;">bClrSelFocus</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> <span style="color: #000000;">16777215</span>, <span style="color: #000000;">15512898</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>   <br />        :<span style="color: #000000;">bClrSel</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> <span style="color: #000000;">16777215</span>, <span style="color: #000000;">15512898</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />    END     <br /><br />    @ <span style="color: #000000;">10</span>,<span style="color: #000000;">460</span> <span style="color: #0000ff;">BTNBMP</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">51</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">28</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"search"</span> <span style="color: #000000;">2007</span>          ;<br />    <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"find"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />    @ <span style="color: #000000;">320</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">61</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ok"</span> <span style="color: #000000;">2007</span>        ;<br />    TOOLTIP <span style="color: #ff0000;">"CONFERMA"</span> ;<br />    <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ok"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>  <br /><br />    @ <span style="color: #000000;">320</span>,<span style="color: #000000;">70</span> <span style="color: #0000ff;">BTNBMP</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">62</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"chiudi"</span>  <span style="color: #000000;">2007</span>         ;<br />    TOOLTIP <span style="color: #ff0000;">"ESCI"</span> ;<br />    <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"exit"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <br />    @ <span style="color: #000000;">320</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">BTNBMP</span> o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">63</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"excel"</span>  <span style="color: #000000;">2007</span>         ;<br />    TOOLTIP <span style="color: #ff0000;">"Esporta in"</span>+CRLF+<span style="color: #ff0000;">"Excel"</span> ;<br />    <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"excel"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>   <br /><br />    <span style="color: #00C800;">if</span> ExcelObj<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #00C800;">NIL</span><br />        o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">63</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">endif</span><br />    <br />    m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bResized</span> := <span style="color: #000000;">&#123;</span> || ;<br />    oRect           := m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />    o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">61</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span>  := oRect:<span style="color: #000000;">nBottom</span>  <span style="color: #000000;">-60</span>, ;<br />    o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">61</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nLeft</span> := oRect:<span style="color: #000000;">nLeft</span>   <span style="color: #000000;">+10</span>, ;<br />    o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">62</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span>  := oRect:<span style="color: #000000;">nBottom</span>  <span style="color: #000000;">-60</span>, ;<br />    o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">62</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nLeft</span> := oRect:<span style="color: #000000;">nLeft</span>   <span style="color: #000000;">+135</span>, ;<br />    o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">63</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nTop</span>  := oRect:<span style="color: #000000;">nBottom</span>  <span style="color: #000000;">-60</span>, ;<br />    o_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">63</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nLeft</span> := oRect:<span style="color: #000000;">nLeft</span>   <span style="color: #000000;">+260</span> ;         <br />    <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> m_get<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> ;<br />    <span style="color: #0000ff;">CENTERED</span><br /> </div>[/code:1img4he1]
BTNBMP default button
[quote="damianodec":2sfwz5tx]hi, how can I assign DEFAULT to oBtnbmp BTNBMP inside a DIALOG ? [code=fw:2sfwz5tx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1300</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">FONT</span> oFont<br />    <span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, ;<br />              WS_MAXIMIZEBOX, WS_MINIMIZEBOX, WS_THICKFRAME <span style="color: #000000;">&#41;</span><br />...<br />...<br />    @ <span style="color: #000000;">320</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtnbmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">28</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"search"</span> <span style="color: #000000;">2007</span><br />               TOOLTIP <span style="color: #ff0000;">"OK"</span> ;<br />                <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>doFunc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />    @ <span style="color: #000000;">320</span>,<span style="color: #000000;">70</span> <span style="color: #0000ff;">BTNBMP</span> oBtnbmp1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">28</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"search"</span> <span style="color: #000000;">2007</span><br />               TOOLTIP <span style="color: #ff0000;">"SEARCH"</span> ;<br />                <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>doOther<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2sfwz5tx] I would like that when I press ENTER start doFunc() thanks[/quote:2sfwz5tx] Please add the line: [code=fw:2sfwz5tx]<div class="fw" id="{CB}" style="font-family: monospace;">oBtnBmp:<span style="color: #000000;">nID</span> := <span style="color: #000000;">1</span></div>[/code:2sfwz5tx] after creating the button. Like this: [code=fw:2sfwz5tx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">1300</span>,<span style="color: #000000;">700</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WS_MAXIMIZEBOX, WS_MINIMIZEBOX, WS_THICKFRAME <span style="color: #000000;">&#41;</span><br />...<br />...<br />&nbsp; &nbsp; @ <span style="color: #000000;">320</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtnbmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">28</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"search"</span> <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOOLTIP <span style="color: #ff0000;">"OK"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>doFunc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBtnBmp:<span style="color: #000000;">nId</span> := <span style="color: #000000;">1</span> &nbsp;<span style="color: #B900B9;">// New: Insert this here to make oBtnBmp as DEFAULT</span><br />&nbsp;<br />&nbsp;<br />&nbsp; &nbsp; @ <span style="color: #000000;">320</span>,<span style="color: #000000;">70</span> <span style="color: #0000ff;">BTNBMP</span> oBtnbmp1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">28</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"search"</span> <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOOLTIP <span style="color: #ff0000;">"SEARCH"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span>doOther<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2sfwz5tx]
BTNBMP default button
hi Mr. Rao, it works, thank you!
BTNBMP design ?
Antonio, a classe BTNBMP não conta com a opção DESIGN? Obrigado
BTNBMP design ?
oBtnBmp:lDrag := .T.
BTNBMP design ?
Grato Antonio
BTNBMP design ?
Antonio, é possível executar uma ação em um objeto SAY (design) depois de clicar sobre o mesmo e arrastar, ou seja, ao soltar o botão do mouse? Acontece que tenho que dar um refresh no objeto depois de arrastar! Obrigado
BTNBMP design ?
Prueba a usar oSay:bLButtonUp = { || ... }
BTNBMP design ?
Obrigado Antonio, mais não funcionou! for i:=1 to len(PoBtc) @ lin,col say PoBtc[i] OF oWndp DESIGN PIXEL SIZE 100,20 BORDER PoBtc[i]:bLButtonUp = { || PoBtc[i]:refresh(),msg("aqui") } next Grato
BTNBMP design ?
Asi no lo puedes hacer. Tienes que usar "detached locals": [code:2dimuw6f] for i&#58;=1 to len&#40;PoBtc&#41; @ lin,col say PoBtc&#91;i&#93; OF oWndp DESIGN PIXEL SIZE 100,20 BORDER PoBtc&#91;i&#93;&#58;bLButtonUp = GenBlock&#40; PoBtc, i &#41; next &#46;&#46;&#46; static function GenBlock&#40; PoBtc, i &#41; return &#123; || PoBtc&#91; i &#93;&#58;Refresh&#40;&#41;, MsgInfo&#40; "aqui" &#41; &#125; [/code:2dimuw6f]
BTNBMP design ?
desculpe Antonio mais também não funciona! Obrigado
BTNBMP design ?
Pruébalo así: [code:hcqwtbzg] for i&#58;=1 to len&#40;PoBtc&#41; @ lin,col say PoBtc&#91;i&#93; PROMPT "say" OF oWndp DESIGN PIXEL SIZE 100,20 BORDER PoBtc&#91;i&#93;&#58;bLButtonUp = GenBlock&#40; PoBtc, i &#41; PoBtc&#91;i&#93;&#58;lWantClick = &#46;T&#46; next &#46;&#46;&#46; static function GenBlock&#40; PoBtc, i &#41; return &#123; || PoBtc&#91; i &#93;&#58;Refresh&#40;&#41;, MsgInfo&#40; "aqui" &#41; &#125; [/code:hcqwtbzg]
BTNBMP design ?
Mais uma vez me desculpe, ainda não funciona! Acredito que seja algo com o objeto say. Obrigado!
BTNBMP design ?
Tienes que hacer una modificación en la Clase TControl para poder procesar bLButtonUp estando en modo diseño: [code:2sru0f0q] METHOD LButtonUp&#40; nRow, nCol, nKeyFlags &#41; CLASS TControl &#46;&#46;&#46; if GetFocus&#40;&#41; != &#58;&#58;hWnd SetFocus&#40; &#58;&#58;hWnd &#41; endif if ! Empty&#40; &#58;&#58;bLButtonUp &#41; // Nuevo! Eval&#40; &#58;&#58;bLButtonUp, nRow, nCol, nKeyFlags, Self &#41; // Nuevo! endif // Nuevo! return 0 &#46;&#46;&#46; [/code:2sru0f0q]
BTNBMP design ?
Perfeito Antonio... Funcionou perfeitamente! Estas correções já estão na nova versão do FW? Muito Obrigado!
BTNBMP design ?
Olá Antonio, No meu caso, uso assim e funciona perfeitamente. [code:17mjlki6] &#46;&#46;&#46; if GetFocus&#40;&#41; != &#58;&#58;hWnd SetFocus&#40; &#58;&#58;hWnd &#41; endif ** return 0 <<-- Tirar esta linha endif return Super&#58;LButtonUp&#40; nRow, nCol, nKeyFlags &#41; [/code:17mjlki6] Isto estaria correto também ? Abraços, Rossine.
BTNBMP design ?
Rossine, > Isto estaria correto também ? No, porque en la Clase TWindow se vuelve a evaluar. Por eso hay que usar return 0, para que no se llame a Super:LButtonUp
BTNBMP design ?
OK Antonio <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Obrigado pela explicação. Rossine.
BTNBMP disable se ve algo grotesco con W7
Hola Antonio... Estoy utilizando Windows 7 y al igual que wn Windows Vista los botones de la clase BTNBMP, cuando estan en modo disable() se ven algo grotescos... alguna manera de definirlos con mejos aspecto?? Salu2 <!-- m --><a class="postlink" href="http://www.servidor-imagenes.com/show-image.php?id=83e65bbf35150b20c1dad062d8faf037">http://www.servidor-imagenes.com/show-i ... 62d8faf037</a><!-- m -->
BTNBMP disable se ve algo grotesco con W7
Has probado usarlos transparente o si seria posible usarlo con 2 bitmaps, 1 cuando esta activo y otro disable..? nose, es una idea que se me viene a mente, lo que no se es si permite eso, al igual que en programacion web que se puede poner hasta 3 imagenes, 1 activo, 1 disable y 1 pulsada, asi se emula un efecto, esperemos que dice A.L. saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
BTNBMP disable se ve algo grotesco con W7
Willi, Que versión de Windows usabas anteriormente y como se veian en ella ? Coincido contigo en que deberian verse en una escala de grises y no tan planos
BTNBMP disable se ve algo grotesco con W7
Willi, no es solo en W7 también en Vista y XP Se tiene que tener 4 imagenes, o repetir alguna [code=fw:215mm9eb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;@<span style="color: #000000;">15</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Bot_Enable"</span>,<span style="color: #ff0000;">"Bot_Presionado"</span>,<span style="color: #ff0000;">"Bot_Disable"</span>,<span style="color: #ff0000;">"Bot_MouseOver"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> NOBORDER <span style="color: #0000ff;">ACTION</span> Funcion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">When</span> lPuede<br />&nbsp;</div>[/code:215mm9eb] Con PROMPT funciona perfecto Saludos Adhemar
BTNBMP disable se ve algo grotesco con W7
HOla Antonio,,,, Antes usaba Windows XP, ahora tengo W7 en la portatil,,, probe en otra con XP y los botones se ven asi: <!-- m --><a class="postlink" href="http://www.servidor-imagenes.com/show-image.php?id=8c96a8d21d76b22fdb895e531a0eb217">http://www.servidor-imagenes.com/show-i ... 531a0eb217</a><!-- m --> como observaran, se puede leer el texto y la imagen en si es mas definida Salu2
BTNBMP disable se ve algo grotesco con W7
Hola Adhemar, Tome tu sugerencia , puse 4 bitmaps (repeti una imagen) y el resultado con el boton disabled() es el siguiente: (RESOURCE "CAMA0", "CAMA0", "CAMA0", "CAMA0" TOP NOBORDER) <!-- m --><a class="postlink" href="http://www.servidor-imagenes.com/show-image.php?id=5c1e75a5821213c9a4e0ca31b892bff2">http://www.servidor-imagenes.com/show-i ... 31b892bff2</a><!-- m --> lo que va en gris es solo el texto (PROMPT) la imagen sigue a color,,, Salu2
BTNBMP disable se ve algo grotesco con W7
Willi El Fivewin hasta la version 9.04 tenia una falla en el Fivewin.ch, fue descubierta por Manuel Mercado, en las versiones superior ya está corregido por Antonio. Tiene que estar asi: [code=fw:1e0bv7sf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#xcommand <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #000000;">&#91;</span><oBtn><span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">ID</span> <nId> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <bar: <span style="color: #0000ff;">OF</span>, <span style="color: #0000ff;">BUTTONBAR</span> > <oBar> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <resource: <span style="color: #0000ff;">NAME</span>, <span style="color: #0000ff;">RESNAME</span>, RESOURCE> <cResName1> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span>,<cResName2><span style="color: #000000;">&#91;</span>,<cResName3><span style="color: #000000;">&#91;</span>,<cResName4><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span>; &nbsp; <span style="color: #B900B9;">//Aqui tenía la falla</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <file: <span style="color: #000000;">FILE</span>, FILENAME, DISK> <cBmpFile1> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span>,<cBmpFile2><span style="color: #000000;">&#91;</span>,<cBmpFile3><span style="color: #000000;">&#91;</span>,<cBmpFile4><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <action:<span style="color: #0000ff;">ACTION</span>,EXEC,<span style="color: #0000ff;">ON</span> CLICK> <uAction,...> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">MESSAGE</span> <cMsg> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <adjust: <span style="color: #0000ff;">ADJUST</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">WHEN</span> <uWhen> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lUpdate: <span style="color: #000000;">UPDATE</span>> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> TOOLTIP <cToolTip> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">PROMPT</span> <cPrompt> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lNoBorder: <span style="color: #000000;">NOBORDER</span>> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <layout: <span style="color: #0000ff;">CENTER</span>, TOP, <span style="color: #0000ff;">LEFT</span>, BOTTOM, RIGHT> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <l2007: <span style="color: #000000;">2007</span>> <span style="color: #000000;">&#93;</span> ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lTrans: <span style="color: #000000;">TRANSPARENT</span>> <span style="color: #000000;">&#93;</span> ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; => ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <oBtn> := <span style="color: #000000;">&#93;</span> TBtnBmp<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>, <cResName1>, <cResName2>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <cBmpFile1>, <cBmpFile2>, <cMsg>, <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#123;</span>|Self|<uAction><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <oBar>, <.<span style="color: #0000ff;">adjust</span>.>, <<span style="color: #000000;">&#123;</span>uWhen<span style="color: #000000;">&#125;</span>>, <.lUpdate.>, <cToolTip>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <cPrompt>, <oFont>, <span style="color: #000000;">&#91;</span><cResName3><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><cBmpFile3><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span>!<.lNoBorder.><span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span> Upper<span style="color: #000000;">&#40;</span><<span style="color: #000000;">&#40;</span>layout<span style="color: #000000;">&#41;</span>><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>, <.l2007.>,<span style="color: #000000;">&#91;</span><cResName4><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><cBmpFile4><span style="color: #000000;">&#93;</span>, <.lTrans.> <span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp;</div>[/code:1e0bv7sf] Saludos Adhemar
BTNBMP disabled
Hola, Antonio: EL siguiente código en Delphi puede ser de utilidad para que tBtnBmp dibuje los botones deshabilitados, sin necesidad de tener que crear imágenes adicionales. Fuente: <!-- m --><a class="postlink" href="http://www.scalabium.com/faq/dct0137.htm">http://www.scalabium.com/faq/dct0137.htm</a><!-- m --> [quote:1qaj0872][/quote:1qaj0872] You can use the next my CreateDisabledBitmap procedure where such "disabled" bitmap (Destination parameter) will be created from your original bitmap (Source). procedure CreateDisabledBitmap(Source, Destination: TBitmap); const ROP_DSPDxax = $00E20746; var DDB, MonoBmp: TBitmap; IWidth, IHeight: Integer; IRect: TRect; begin IWidth := Source.Width; IHeight := Source.Height; Destination.Width := IWidth; Destination.Height := IHeight; IRect := Rect(0, 0, IWidth, IHeight); Destination.Canvas.Brush.Color := clBtnFace; Destination.Palette := CopyPalette(Source.Palette); MonoBmp := nil; DDB := nil; try MonoBmp := TBitmap.Create; DDB := TBitmap.Create; DDB.Assign(Source); DDB.HandleType := bmDDB; { Create a disabled version } with MonoBmp do begin Assign(Source); HandleType := bmDDB; Canvas.Brush.Color := clBlack; Width := IWidth; if Monochrome then begin Canvas.Font.Color := clWhite; Monochrome := False; Canvas.Brush.Color := clWhite; end; Monochrome := True; end; with Destination.Canvas do begin Brush.Color := clBtnFace; FillRect(IRect); Brush.Color := clBtnHighlight; SetTextColor(Handle, clBlack); SetBkColor(Handle, clWhite); BitBlt(Handle, 1, 1, IWidth, IHeight, MonoBmp.Canvas.Handle, 0, 0, ROP_DSPDxax); Brush.Color := clBtnShadow; SetTextColor(Handle, clBlack); SetBkColor(Handle, clWhite); BitBlt(Handle, 0, 0, IWidth, IHeight, MonoBmp.Canvas.Handle, 0, 0, ROP_DSPDxax); end; finally DDB.Free; MonoBmp.Free; end; Source.Dormant; end; Sample of use: procedure TfrmMain.ButtonClick(Sender: TObject); var Destination: TBitmap; begin Destination := TBitmap.Create; try CreateDisabledBitmap(Image1.Picture.Bitmap, Destination); Image2.Picture.Bitmap.Assign(Destination); finally Destination.Free end end; where Image1 is TImage where you have an original bitmap and TImage2 will a container for created disabled bitmap [quote:1qaj0872][/quote:1qaj0872]
BTNBMP disabled
Cesar, FWH proporciona las siguientes funciones: DRAWGRAYED( hDC, hBitmap, nRow, nCol ) // dibuja el bitmap en gris entramado DRAWGRAY( hDC, hBitmap, nRow, nCol ) // dibuja el bitmap en tonos de grises
BTNBMP e BUTTONBMP nTop - nLeft ???
Antonio, utilizei a classe BTNBMP para colocar varios botões em uma WINDOW, e criei um segundo PRG, onde o usuário poderá desenhar a posição dos botões. Para isso utilizo a clausula DESIGN. Porém, acontece que a classe BTNBMP não aceita DESIGN, sendo assim tive que usar a classe BUTTONBMP para desenhar, ficou perfeito, a não pelas coordenadas (ntop,nleft,nWidth,nHeight) que parece ser diferentes em ambas as classes, resultando em diferenças de posicionamento. Grato Antonio Aoki
BTNBMP error
[code=fw:8xwxnkym]<div class="fw" id="{CB}" style="font-family: monospace;">Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> &nbsp;Metodo non disponibile: <span style="color: #000000;">END</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> END<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">SHOWPOPUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2083</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\spiaggia\PSpiaggia.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>LOAD_BEACH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">427</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">705</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">991</span> <span style="color: #000000;">&#41;</span></div>[/code:8xwxnkym] I had already found this error and sent it to Nages and Antonio but it is evident that in the new fwh package the error was not corrected ... why ?
BTNBMP error
So far we never noticed this error with any of our own programs. Can you post a sample with a single button to reproduce this error?
BTNBMP error
Nages, I notices you on 27/07/2019 with a sample test , you told me that you had found the error and you would have sent the change, but I never knew anything again and on 07/10/2019 I sent Antonio the changes for the showpopup method. I was hoping that the changes had been included in the new package so by compiling the application I was sure that the error did not come out, instead yesterday evening the error came out inexplicably and then after I checked the tbtnbmp class and I realized that the changes were not been inserted. I can't insert a minimal test here because for a number of things the problem probably comes up sometimes. I sent you a rar compress file via wetransfer on 28 july 2019 with some src Perhaps I can found the test or I must recreate it for you
BTNBMP error
Silvio, Please try to disable the button after the user clicks on it to avoid duplicated clicking
BTNBMP error
with disable/ enable ? on menupopup ? I think it is impossible to do the error sometimes go out no always
BTNBMP from resource missing command COLOR ?
In bGradient, we can specify solid colors also like: bClrGrad := { |lMouseOver| If( lMouseOver, CLR_HRED, { { 1, CLR_BLUE, CLR_WHITE } } ) }
BTNBMP from resource missing command COLOR ?
Hello, why there is no [color=#0000FF:1fl1kupt][b:1fl1kupt]COLOR[/b:1fl1kupt][/color:1fl1kupt] defined in BTNBMP from resource ? #xcommand REDEFINE BTNBMP [<oBtn>] ; ... .... [ GRADIENT <bGradColors> ]; [color=#FF0000:1fl1kupt]???????????[/color:1fl1kupt] [ <lGDIP: GDIP, GDIPLUS> ]; ------------------ #xcommand @ <nRow>, <nCol> BTNBMP [<oBtn>] ; [ GRADIENT <bGradColors> ]; [color=#0040FF:1fl1kupt][b:1fl1kupt][ COLOR <nClrFore> [,<nClrBack>] ] ;[/b:1fl1kupt][/color:1fl1kupt] [ <pixel: PIXEL> ] ; [ <design: DESIGN> ] ; [ <lGDIP: GDIP, GDIPLUS> ]; [b:1fl1kupt]Question 2[/b:1fl1kupt] how to change the color ( NO gradient ) on mouseover ? I couldn't find any sample. for gradient it works ( using vars from a dbf ) like GRADIENT { | lMouseOver | If( ! lMouseOver,; { { nBPos[5], nBColA1[5], nBColB1[5] }, ; { nBPos[5], nBColB1[5], nBColA1[5] } }, ; { { nBPos[5], nBColA2[5], nBColB2[5] }, ; { nBPos[5], nBColB2[5], nBColA2[5] } } ) } UPDATE I want a colorchange in buttonline 2 like for gradient in buttonline 1 ( define and adjusing colors of buttongroups ) ROUND only works with style 2007 ? for buttonline 2 I can use GRADIENT { | lMouseOver | If( ! lMouseOver,; with only 2 colors but maybe there is another solution. [img:1fl1kupt]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Btnbmp10&#46;jpg[/img:1fl1kupt] regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->