messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2014-05-30",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nthank you. Unfortunately the result is... ugly! <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "13:43",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-05-30",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nI am testing FWH\\samples\\testbtnb.prg and it looks fine.\n\nWhat example are you testing ?",
"time": "15:37",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-05-30",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "[img:t0nj2xm9]http://i57.tinypic.com/90aots.jpg[/img:t0nj2xm9]",
"time": "15:39",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-05-30",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\n[quote=\"Antonio Linares\":3fjrnfvv]Enrico,\n\nI am testing FWH\\samples\\testbtnb.prg and it looks fine.\n\nWhat example are you testing ?[/quote:3fjrnfvv]\n\nThe simple one that I've already reported:\n\n[code=fw:3fjrnfvv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">600</span><br /><br /> @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span>;<br /> FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\o</span>pen.bmp\"</span>;<br /> <span style=\"color: #0000ff;\">ADJUST</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br /> <span style=\"color: #0000ff;\">CENTER</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:3fjrnfvv]\n\nEMG",
"time": "15:42",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-05-30",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\n[quote=\"Antonio Linares\":3cm1eqmj][img:3cm1eqmj]http://i57.tinypic.com/90aots.jpg[/img:3cm1eqmj][/quote:3cm1eqmj]\n\nAs you can see, there is no border anymore (it was there using the previous FWH release). <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "15:43",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-05-30",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nI have a proposal: why not to revert back to the previous btnbmp.prg that used to work very well? What was the reason behind the new changes?\n\nEMG",
"time": "16:14",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-05-30",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nThe btnbmp source code is an old class (it comes with FWH since the very early beginning) and have been experiencing many transformations, so from time to time, we try to simplify and reorganice the code.\n\nRecently Rao worked on it to simplify it, but it seems that still it is not ok. So yes, in the meantime, you could use the previous version and everything should work fine <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "18:56",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-21",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\n[quote:2tjgl204]* Fix: There was a painting error in Class TBtnBmp due to recent changes in \n Class TBtnBmp. Now it is ok.\n[/quote:2tjgl204]\n\nUnfortunately it is not properly fixed. I had to revert to the previous btnbmp.prg again. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "15:46",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-22",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nI tested them on a ButtonBar and also on GET ... ACTION ... and seemed ok.\n\nIf I remember properly you provided here an example, I am going to review it.\n\nthanks",
"time": "01:26",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-22",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nI did my tests on FWH\\samples\\testbtnb.prg. I have just tested it again and seems fine.\n\nCould you please run that example and see if it is fine there for you ? thanks",
"time": "01:29",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-22",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nI just sent you an image showing the problem:\n\n1. There is a black border that wasn't there before\n\n2. The bitmap is not centered in the button anymore\n\nEMG",
"time": "11:38",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-23",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nThe black border is painted from here (Class TBtnBmp Method Paint()):\n\n[code=fw:iqphwtrd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lBorder</span><br /> WndBox<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">1</span>, ::<span style=\"color: #000000;\">nWidth</span> - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span></div>[/code:iqphwtrd]\n\nIf you do oBtn:lBorder := .F. then you will avoid it (at least for a temporary solution)\n\nPlease try it and lets see if the paiting improves, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "06:13",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-23",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nno, sorry. The border went away, but:\n\n1. it goes back when the mouse is over the button\n2. the bitmap is still not centered\n3. there is no 3D effect on the button anymore\n\n<!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "08:51",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "[quote=\"Enrico Maria Giordano\":17ecxo5y]Antonio,\n\nno, sorry. The border went away, but:\n\n1. it goes back when the mouse is over the button\n2. the bitmap is still not centered\n3. there is no 3D effect on the button anymore\n\n<!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG[/quote:17ecxo5y]\n\nAntonio, a mi me ocurre lo mismo\nAntonio, I so do I",
"time": "09:57",
"topic": "Bug in TBtnBmp [Solved]",
"username": "cnavarro"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico, Cristobal,\n\nThe source code for Class TBtnBmp Method Paint() has been evolving along the years and actually is quite messy.\n\nSo this morning I decided to reorganize it, to properly structure it and I have found this:\n\nIf you replace Method Paint() with this code:\n\n[code=fw:nzqr2zzo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #B900B9;\">// local aInfo := ::DispBegin()</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lTransparent</span><br /> SetBrushOrgEx<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nBmpWidth<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> - ::<span style=\"color: #000000;\">nLeft</span>,;<br /> nBmpHeight<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> - ::<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">)</span><br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bClrGrad</span> <span style=\"color: #000000;\">)</span><br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">aGrad</span> != <span style=\"color: #00C800;\">nil</span><br /> GradientFill<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">nHeight</span>, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">aGrad</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #B900B9;\">// ::DispEnd( aInfo )</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:nzqr2zzo]\n\nThis way the background is properly filled. Now if you uncomment the calls to DispBegin() and DispEnd() an unexpected border appears at the top and at the left.\n\nSo in order to properly fix its painting we first need to know where this is coming from. Please test it and lets try to find why that is happening. Thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "14:06",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\ncan you send me the modified btnbmp.prg, please?\n\nEMG",
"time": "15:08",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "I don't keep a copy of my changes today, sorry.\n\nBut just replace the Method Paint() in Class TBtnBmp and you will see what I mean.\n\nWe need to solve this before moving on and reorganize Method Paint()\n\nMy plan is to replace it with a much more structured code.",
"time": "15:31",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Ok, can you send me the original btnbmp.prg? I replaced it with the working one. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "15:42",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nI already have the new btnbmp.prg! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "15:49",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\n[quote=\"Antonio Linares\":2944vih9]This way the background is properly filled. Now if you uncomment the calls to DispBegin() and DispEnd() an unexpected border appears at the top and at the left.[/quote:2944vih9]\n\nI just tried but I don't see any border, with or without the two calls. And, by the way, I don't see the bitmap too, of course.\n\nEMG",
"time": "15:54",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nQuite curious, now I tested here again and its fine <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nPlease test this Class TBtnBmp Method Paint() (warning to other users: this is for testing only, don't use this code yet)\n\n[code=fw:i0i7q3br]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #00C800;\">local</span> aInfo := ::<span style=\"color: #000000;\">DispBegin</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> hBmp := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap2</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">hBitmap4</span>, ::<span style=\"color: #000000;\">hBitmap1</span> <span style=\"color: #000000;\">)</span>,;<br /> ::<span style=\"color: #000000;\">hBitmap2</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! IsWindowEnabled<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap3</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">hBitmap3</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">hBitmap4</span>, ::<span style=\"color: #000000;\">hBitmap1</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> nBtn := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap2</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! IsWindowEnabled<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span> .and. ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap3</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #000000;\">3</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lTransparent</span><br /> SetBrushOrgEx<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nBmpWidth<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> - ::<span style=\"color: #000000;\">nLeft</span>,;<br /> nBmpHeight<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> - ::<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">)</span><br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bClrGrad</span> <span style=\"color: #000000;\">)</span><br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">aGrad</span> != <span style=\"color: #00C800;\">nil</span><br /> GradientFill<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">nHeight</span>, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">aGrad</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lBmpTransparent</span><br /> <span style=\"color: #00C800;\">if</span> SetAlpha<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> .and. ::<span style=\"color: #000000;\">aAlpha</span><span style=\"color: #000000;\">[</span> nBtn <span style=\"color: #000000;\">]</span><br /> ABPaint<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> hBmp, ::<span style=\"color: #000000;\">nAlphaLevel</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> DrawTransBmp<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, hBmp, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">else</span><br /> DrawTransBmp<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, hBmp, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> ::<span style=\"color: #000000;\">DispEnd</span><span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:i0i7q3br]",
"time": "22:50",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nThe same one modified as there is no need to call DrawTransBmp() when the bitmap is not going to be used in transparent mode:\n\n[code=fw:waheld9z]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #00C800;\">local</span> aInfo := ::<span style=\"color: #000000;\">DispBegin</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> hBmp := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap2</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">hBitmap4</span>, ::<span style=\"color: #000000;\">hBitmap1</span> <span style=\"color: #000000;\">)</span>,;<br /> ::<span style=\"color: #000000;\">hBitmap2</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! IsWindowEnabled<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap3</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">hBitmap3</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">hBitmap4</span>, ::<span style=\"color: #000000;\">hBitmap1</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> nBtn := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap2</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! IsWindowEnabled<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span> .and. ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap3</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #000000;\">3</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lTransparent</span><br /> SetBrushOrgEx<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nBmpWidth<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> - ::<span style=\"color: #000000;\">nLeft</span>,;<br /> nBmpHeight<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> - ::<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">)</span><br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bClrGrad</span> <span style=\"color: #000000;\">)</span><br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">aGrad</span> != <span style=\"color: #00C800;\">nil</span><br /> GradientFill<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">nHeight</span>, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">aGrad</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lBmpTransparent</span><br /> <span style=\"color: #00C800;\">if</span> SetAlpha<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> .and. ::<span style=\"color: #000000;\">aAlpha</span><span style=\"color: #000000;\">[</span> nBtn <span style=\"color: #000000;\">]</span><br /> ABPaint<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> hBmp, ::<span style=\"color: #000000;\">nAlphaLevel</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> DrawTransBmp<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, hBmp, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">else</span><br /> DrawBitmap<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, hBmp, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> ::<span style=\"color: #000000;\">DispEnd</span><span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:waheld9z]",
"time": "22:54",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nno, it doesn't work fine, sorry:\n\n- the bitmap is expanded to fill all the button\n- there is no 3d effect\n- the bitmap is not centered\n\nEMG",
"time": "22:58",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nThe above method Paint() works fine here on a window:\n\n[img:31504bxy]https://bitbucket.org/fivetech/screenshots/downloads/enrico_btnbmp_support.jpg[/img:31504bxy]",
"time": "22:59",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nYes I know it, its only a test. Its not completed yet. Now I am going to use it from a dialog and there the differences start (and that is what I don't want).\n\nthanks for your testings <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "23:01",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-06-29",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Now, on a dialog the differences begin:\n\nNow searching why that inset border appears\n\n[img:2csqxur2]https://bitbucket.org/fivetech/screenshots/downloads/enrico_btnbmp_support2.jpg[/img:2csqxur2]",
"time": "23:12",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-02",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nCould you please test this Class TBtnBmp Method Paint() (warning: it is not finished yet) and let me know if the results are getting better for you ? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nthanks\n\n[code=fw:2fp3qzrt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #00C800;\">local</span> aInfo := ::<span style=\"color: #000000;\">DispBegin</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> nTop, nLeft<br /><br /> <span style=\"color: #00C800;\">local</span> hBmp := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap2</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">hBitmap4</span>, ::<span style=\"color: #000000;\">hBitmap1</span> <span style=\"color: #000000;\">)</span>,;<br /> ::<span style=\"color: #000000;\">hBitmap2</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! IsWindowEnabled<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap3</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">hBitmap3</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">hBitmap4</span>, ::<span style=\"color: #000000;\">hBitmap1</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> nBtn := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap2</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ;<br /> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! IsWindowEnabled<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span> .and. ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap3</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #000000;\">3</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap4</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lTransparent</span><br /> SetBrushOrgEx<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nBmpWidth<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> - ::<span style=\"color: #000000;\">nLeft</span>,;<br /> nBmpHeight<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> - ::<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">)</span><br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bClrGrad</span> <span style=\"color: #000000;\">)</span><br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">aGrad</span> != <span style=\"color: #00C800;\">nil</span><br /> GradientFill<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">nHeight</span>, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">aGrad</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span><br /><br /> nTop = <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">nHeight</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">(</span> nBmpHeight<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span><br /> nLeft = <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">nWidth</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> - <span style=\"color: #000000;\">(</span> nBmpWidth<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lBmpTransparent</span><br /> <span style=\"color: #00C800;\">if</span> SetAlpha<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> .and. ::<span style=\"color: #000000;\">aAlpha</span><span style=\"color: #000000;\">[</span> nBtn <span style=\"color: #000000;\">]</span><br /> ABPaint<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nTop + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> nLeft + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>, hBmp, ::<span style=\"color: #000000;\">nAlphaLevel</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> DrawTransBmp<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, hBmp, nTop + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> nLeft + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>, nBmpWidth<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span>,;<br /> nBmpHeight<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">else</span><br /> DrawBitmap<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, hBmp, nTop + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> nLeft + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lPressed</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>, nBmpWidth<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span>,;<br /> nBmpHeight<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> ::<span style=\"color: #000000;\">DispEnd</span><span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:2fp3qzrt]",
"time": "06:18",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-02",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nyes it getting better but:\n\n- bitmaps are not painted transparently\n- 3D effect is missing\n- bitmaps (on dialogs) are not centered\n\nEMG",
"time": "08:48",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-10",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nI have finally reorganized Class TBtnBmp Method Paint() and now see how it looks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[code=fw:ox63rc1x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #00C800;\">local</span> aInfo := ::<span style=\"color: #000000;\">DispBegin</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #000000;\">GetBmp</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">l2007</span> .or. ::<span style=\"color: #000000;\">l2010</span><br /> ::<span style=\"color: #000000;\">PaintBackGroundAs20072010</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span> <br /> ::<span style=\"color: #000000;\">PaintBackGroundStandard</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span> <br /><br /> ::<span style=\"color: #000000;\">PaintBitmap</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #000000;\">PaintCaption</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> ::<span style=\"color: #000000;\">PaintBorder</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oPopup</span> != <span style=\"color: #00C800;\">nil</span><br /> ::<span style=\"color: #000000;\">PaintPopupSection</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span> <br /><br /> ::<span style=\"color: #000000;\">DispEnd</span><span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:ox63rc1x]\n\nI am sending it to you by email, in case you want to try it. Still it may miss some changes, thus I appreciate your feedback, thanks!",
"time": "05:22",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-10",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nit looks better but:\n\n- 3D effect is missing\n- bitmaps (on dialogs) are not centered\n\nEMG",
"time": "08:55",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-10",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nDo you mean 3D effect for buttons on dialogs ?",
"time": "14:45",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-10",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nyes, Sir, exactly! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "15:19",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-11",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nThey look like \"inset\", right ?\n\nLike this one, right ?\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=161582#p161582\">viewtopic.php?p=161582#p161582</a><!-- l -->",
"time": "00:11",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-11",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nno, the other way around. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nI can send you an image, if you need it.\n\nEMG",
"time": "09:09",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-12",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nYes, please post a screenshot, thanks",
"time": "10:44",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-07-12",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nsent to your private email.\n\nEMG",
"time": "11:15",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-02",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Any news? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "10:26",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-03",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nI just answered your latest email about it, that I missed",
"time": "04:27",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-03",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nI have modified Class TBtnBmp Method PaintBorder(), now your example seems ok.\n\nI am emailing you the most recent Class TBtnBmp and wait for your feedback, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "18:19",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-03",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nit's getting better, but the raised effect vanishes when the mouse is over the button.\n\nAlmost done! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "20:53",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-03",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nIn your btn.prg example, it keeps the 3d border here when the mouse is over",
"time": "23:57",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-04",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nI checked again and the 3d border goes aways when the mouse is over.\n\n <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? --> \n\nEMG",
"time": "09:23",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-04",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nHave you tried it with FWH 14.07 ?",
"time": "11:44",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-04",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nyes, just tried: no 3d border when mouse is over. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "14:04",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-04",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nPlease try this EXE, thanks:\n\n[url:mxdavv37]https://bitbucket.org/fivetech/fivewin-contributions/downloads/btn.exe[/url:mxdavv37]",
"time": "15:29",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-04",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nyour exe works fine. Can you send me the exact PRG and RC you are using?\n\nWhat am I missing?\n\nEMG",
"time": "16:27",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-04",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nI just modified this:\n\n[code=fw:qoqwhiw3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BTNBMP</span>;<br /> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TEST\"</span> NOROUND</div>[/code:qoqwhiw3]\n\nPlease try it",
"time": "16:59",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-04",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\ntried: no change. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "19:00",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-05",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nAre you already using FWH 14.07 ?",
"time": "00:33",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-05",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nyes. I'm very confused...\n\nEMG",
"time": "08:40",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-05",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nI sent you several modified Class TBtnBmp, maybe you are still linking one of them ?",
"time": "14:53",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-05",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nno, I'm using clean latest FWH. Can you try using the downloaded FWH package? Maybe you have changed something in the last minute?\n\nEMG",
"time": "15:57",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-05",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nI just downloaded FWH 14.07, went to samples folder, did a buildh btn, and the EXE is working fine.\n\nReally strange. Could you test it on another computer ?",
"time": "18:04",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-05",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nthe raised effect doesn't go away if I comment out this refresh:\n\n[code=fw:3stpisqw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> MouseMove<span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lMOver</span><br /> ::<span style=\"color: #000000;\">lMOver</span> = .T.<br /><span style=\"color: #B900B9;\">// ::Refresh()</span><br /> <span style=\"color: #00C800;\">endif</span><br /> </div>[/code:3stpisqw]\n\nIs it a clue?\n\nEMG",
"time": "19:00",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-06",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nThats no a solution, as you are avoiding the repainting of the control.\n\nDo you have virtualbox ? if you don't have another PC at hand, you may use one virtual and try it there.",
"time": "07:20",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-06",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nyour EXE works fine here too so what's the point to test mine on another PC? Anyway, I just tried on my old XP machine: no change. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "09:04",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-07",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\nthe problem seems to be located here:\n\n[code=fw:2rnb4ddq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> PaintBorder<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #00C800;\">local</span> nAdjustBorder := <span style=\"color: #000000;\">0</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">l2007</span> .or. ::<span style=\"color: #000000;\">l2010</span><br /> nAdjustBorder = <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lBorder</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lBarBtn</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ::<span style=\"color: #000000;\">lBoxSelect</span><br /> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lRound</span> .and. ! ::<span style=\"color: #000000;\">lEllipse</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">l2007</span> .or. ::<span style=\"color: #000000;\">l2010</span><br /> WndBox2007<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nAdjustBorder, nAdjustBorder,;<br /> ::<span style=\"color: #000000;\">nHeight</span> - nAdjustBorder - <span style=\"color: #000000;\">1</span>, ::<span style=\"color: #000000;\">nWidth</span> - nAdjustBorder - <span style=\"color: #000000;\">1</span>,;<br /> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">221</span>, <span style=\"color: #000000;\">207</span>, <span style=\"color: #000000;\">155</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lPressed</span><br /> WndRaised<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> WndInset<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lEllipse</span><br /> ::<span style=\"color: #000000;\">DrawEllipse</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">221</span>, <span style=\"color: #000000;\">207</span>, <span style=\"color: #000000;\">155</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lRound</span><br /> RoundBox<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span>, ::<span style=\"color: #000000;\">nWidth</span> - <span style=\"color: #000000;\">3</span>, ::<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">6</span>,;<br /> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">221</span>, <span style=\"color: #000000;\">207</span>, <span style=\"color: #000000;\">155</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span> <br /> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lPressed</span><br /> WndRaised<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> WndInset<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span></div>[/code:2rnb4ddq]\n\nAs you can see, in the case of ::lRound = .T. (that is the default) we don't have a raised border. With NOROUND clause it works fine.\n\nEMG",
"time": "19:04",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-07",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nok, thats what I told you: thst only using NOROUND was working fine.\n\nNow the question is: why lRound is set to .T. by default ?\n\nTry to set it .F. by default and then it should work fine.",
"time": "20:10",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-07",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nPlease place this MsgBeep() calls that I used here:\n\n[code=fw:38m9xi4j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> PaintBorder<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #00C800;\">local</span> nAdjustBorder := <span style=\"color: #000000;\">0</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">l2007</span> .or. ::<span style=\"color: #000000;\">l2010</span><br /> nAdjustBorder = <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lBorder</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lBarBtn</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ::<span style=\"color: #000000;\">lBoxSelect</span><br /> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lRound</span> .and. ! ::<span style=\"color: #000000;\">lEllipse</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">l2007</span> .or. ::<span style=\"color: #000000;\">l2010</span><br /> WndBox2007<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nAdjustBorder, nAdjustBorder,;<br /> ::<span style=\"color: #000000;\">nHeight</span> - nAdjustBorder - <span style=\"color: #000000;\">1</span>, ::<span style=\"color: #000000;\">nWidth</span> - nAdjustBorder - <span style=\"color: #000000;\">1</span>,;<br /> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">221</span>, <span style=\"color: #000000;\">207</span>, <span style=\"color: #000000;\">155</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> MsgBeep<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lPressed</span><br /> WndRaised<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> WndInset<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lEllipse</span><br /> ::<span style=\"color: #000000;\">DrawEllipse</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">221</span>, <span style=\"color: #000000;\">207</span>, <span style=\"color: #000000;\">155</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lRound</span><br /> RoundBox<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span>, ::<span style=\"color: #000000;\">nWidth</span> - <span style=\"color: #000000;\">3</span>, ::<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">6</span>,;<br /> nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">221</span>, <span style=\"color: #000000;\">207</span>, <span style=\"color: #000000;\">155</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span> <br /> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lPressed</span><br /> WndRaised<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> WndInset<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lBorder</span><br /> MsgBeep<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lPressed</span><br /> <span style=\"color: #00C800;\">if</span> ! <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">l2007</span> .or. ::<span style=\"color: #000000;\">l2010</span> <span style=\"color: #000000;\">)</span><br /> WndRaised<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">else</span> <br /> WndInset<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:38m9xi4j]\n\nHere I hear a beep when the mouse comes over the button and again when the mouse goes away from the button. Please check if you get the same beeps, thanks",
"time": "20:26",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-07",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\n[quote=\"Antonio Linares\":35wkamty]Enrico,\n\nok, thats what I told you: thst only using NOROUND was working fine.\n\nNow the question is: why lRound is set to .T. by default ?\n\nTry to set it .F. by default and then it should work fine.[/quote:35wkamty]\n\nThis prints .T. no matter how I set lRound (INIT and redefine method default). Why?\n\n[code=fw:35wkamty]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> PaintBorder<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #00C800;\">local</span> nAdjustBorder := <span style=\"color: #000000;\">0</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">l2007</span> .or. ::<span style=\"color: #000000;\">l2010</span><br /> nAdjustBorder = <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lBorder</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lBarBtn</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lMOver</span> .and. ::<span style=\"color: #000000;\">lBoxSelect</span><br />? ::<span style=\"color: #000000;\">lRound</span><br /> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lRound</span> .and. ! ::<span style=\"color: #000000;\">lEllipse</span></div>[/code:35wkamty]\n\nEMG",
"time": "22:50",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-08",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nPlease help me to locate the error, I am very busy with EasyReport, sorry, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "15:15",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-08",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "[quote=\"Antonio Linares\":2z3wtfpd]Enrico,\n\nPlease help me to locate the error, I am very busy with EasyReport, sorry, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:2z3wtfpd]\n\nOk. lRound is .T. because the REDEFINE BTNBMP command instructs so (NOROUND clause set lRound to .F.). Solved adding clause NOROUND. Now it seems to work fine.\n\nThere is one more difference, though: on click, the bitmap goes down but the prompt don't. Is this what you want?\n\nEMG",
"time": "16:31",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-09",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Enrico,\n\nNow the caption also moves <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[code=fw:1w49qndo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> PaintCaption<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TBtnBmp<br /><br /> <span style=\"color: #00C800;\">local</span> nStyle, nClr<br /> <span style=\"color: #00C800;\">local</span> hOldFont, aRect, lMultiline, cWord, cWord2<br /> <span style=\"color: #00C800;\">local</span> nOffset, nMaxWidth, nLine<br /> <span style=\"color: #00C800;\">local</span> nTxtTop := <span style=\"color: #000000;\">0</span>, nTxtLeft := <span style=\"color: #000000;\">6</span>, nTxtRight := ::<span style=\"color: #000000;\">nWidth</span> - <span style=\"color: #000000;\">6</span><br /> <span style=\"color: #00C800;\">local</span> nTxtHeight, nAdjust := <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">local</span> nLayOut := ::<span style=\"color: #000000;\">nLayOut</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oPopup</span> != <span style=\"color: #00C800;\">nil</span><br /> nTxtRight -= <span style=\"color: #000000;\">12</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">cCaption</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oFont</span> == <span style=\"color: #00C800;\">nil</span><br /> ::<span style=\"color: #000000;\">GetFont</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> lMultiLine = ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">cCaption</span> <span style=\"color: #000000;\">)</span> .and. CRLF $ ::<span style=\"color: #000000;\">cCaption</span><br /><br /> <span style=\"color: #00C800;\">if</span> lMultiLine<br /> cWord = cStrWord<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">cCaption</span>, nOffset, CRLF <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">while</span> nOffset < Len<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">cCaption</span> <span style=\"color: #000000;\">)</span><br /> nMaxWidth = <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">(</span> nMaxWidth,;<br /> Len<span style=\"color: #000000;\">(</span> cWord2 := cStrWord<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">cCaption</span>, @nOffset, CRLF <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> Len<span style=\"color: #000000;\">(</span> cWord <span style=\"color: #000000;\">)</span> < nMaxWidth<br /> cWord = cWord2<br /> <span style=\"color: #00C800;\">endif</span><br /> end<br /><br /> nLine = MLCount<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">cCaption</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> cWord = ::<span style=\"color: #000000;\">cCaption</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> nStyle = nOr<span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">nLayOut</span> == <span style=\"color: #000000;\">0</span>, DT_CENTER, nLayOut <span style=\"color: #000000;\">)</span>, DT_WORDBREAK ,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">nLayOut</span> % <span style=\"color: #000000;\">2</span> == <span style=\"color: #000000;\">0</span>, DT_VCENTER, DT_TOP <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> nClr = <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> IsWindowEnabled<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">nClrText</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lDisColor</span>, CLR_HGRAY, ::<span style=\"color: #000000;\">nClrTextDis</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> SetTextColor<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ValType<span style=\"color: #000000;\">(</span> nClr <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"B\"</span>, Eval<span style=\"color: #000000;\">(</span> nClr, ::<span style=\"color: #000000;\">lMOver</span> <span style=\"color: #000000;\">)</span>, nClr <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> SetBkMode<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oFont</span> != <span style=\"color: #00C800;\">nil</span> .or. ::<span style=\"color: #000000;\">oFont</span> != <span style=\"color: #00C800;\">nil</span><br /> hOldFont = SelectObject<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">hFont</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> aRect = <span style=\"color: #000000;\">{</span> nTxtTop + nAdjust, nTxtLeft + nAdjust, ::<span style=\"color: #000000;\">nHeight</span> + nAdjust - <span style=\"color: #000000;\">4</span>,;<br /> nTxtRight + nAdjust <span style=\"color: #000000;\">}</span><br /> lMultiLine = <span style=\"color: #000000;\">(</span> nTxtHeight := DrawText<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, ::<span style=\"color: #000000;\">cCaption</span>, aRect,;<br /> nOr<span style=\"color: #000000;\">(</span> DT_WORDBREAK, DT_CALCRECT <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> > ;<br /> DrawText<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, ::<span style=\"color: #000000;\">cCaption</span>, aRect, nOr<span style=\"color: #000000;\">(</span> DT_SINGLELINE, DT_CALCRECT <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">nLayOut</span> == <span style=\"color: #000000;\">1</span><br /> nStyle = nOr<span style=\"color: #000000;\">(</span> DT_CENTER, DT_WORDBREAK <span style=\"color: #000000;\">)</span><br /> aRect<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> = aRect<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> - nTxtHeight<br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">nLayOut</span> == <span style=\"color: #000000;\">3</span><br /> aRect<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #000000;\">2</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lPressed</span><br /> aRect<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>++<br /> aRect<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>++<br /> aRect<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>++<br /> aRect<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">]</span>++<br /> <span style=\"color: #00C800;\">endif</span> <br /><br /> DrawText<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, ::<span style=\"color: #000000;\">cCaption</span>, aRect, nStyle <span style=\"color: #000000;\">)</span><br /><br /> SelectObject<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, hOldFont <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:1w49qndo]",
"time": "19:31",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2014-08-09",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Antonio,\n\ngreat! Now btnbmp seems to work like the old version.\n\nThank you! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "19:52",
"topic": "Bug in TBtnBmp [Solved]",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp [Solved]
|
[
{
"date": "2007-12-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In the following sample, please place the mouse pointer over the button and try to close the dialog using ALT-F4. It will not close.\n\n[code:h3yhbgap]#include \"Fivewin.ch\"\n\n\nFUNCTION MAIN()\n\n LOCAL oDlg\n\n DEFINE DIALOG oDlg\n\n @ 1, 1 BTNBMP;\n FILE \"C:\\FWH\\BITMAPS\\OPEN.BMP\";\n NOBORDER\n\n ACTIVATE DIALOG oDlg;\n CENTER\n\n RETURN NIL[/code:h3yhbgap]\n\nEMG",
"time": "10:48",
"topic": "Bug in TBtnBmp and dialogs",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp and dialogs
|
[
{
"date": "2007-12-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Any news? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "10:10",
"topic": "Bug in TBtnBmp and dialogs",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp and dialogs
|
[
{
"date": "2007-12-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nFixed <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nPlease add this code to Class TDialog:\n[code:1h6axnqv]\nMETHOD SysCommand( nWParam, nLParam ) CLASS TDialog\n\n if nWParam == SC_CLOSE .and. ::lModal\n if GetCapture() != 0 // New !\n ReleaseCapture() // New !\n endif // New !\n return .f.\n endif\n\n ...\n[/code:1h6axnqv]",
"time": "12:15",
"topic": "Bug in TBtnBmp and dialogs",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp and dialogs
|
[
{
"date": "2007-12-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Is it possible that the problem doesn't occur when creating dialogs from resources ?\n\nI don't have the problem in my application.\n\nThanks.",
"time": "13:03",
"topic": "Bug in TBtnBmp and dialogs",
"username": "driessen"
}
] |
Bug in TBtnBmp and dialogs
|
[
{
"date": "2007-12-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Michel,\n\nHave you tested with FWH 7.12 ?",
"time": "13:23",
"topic": "Bug in TBtnBmp and dialogs",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp and dialogs
|
[
{
"date": "2007-12-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":14i2456p]Enrico,\n\nFixed <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nPlease add this code to Class TDialog:[/quote:14i2456p]\n\nThank you!\n\nEMG",
"time": "14:28",
"topic": "Bug in TBtnBmp and dialogs",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp and dialogs
|
[
{
"date": "2007-12-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "antonio, this is for 7.11 or 7.12 or too?",
"time": "15:04",
"topic": "Bug in TBtnBmp and dialogs",
"username": "norberto"
}
] |
Bug in TBtnBmp and dialogs
|
[
{
"date": "2007-12-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Norberto,\n\nFor both and previous versions too",
"time": "15:26",
"topic": "Bug in TBtnBmp and dialogs",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp and dialogs
|
[
{
"date": "2007-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In the following sample the prompt is not splitted across two lines and two little squares are displayed instead:\n\n[code:33f79spz]#include \"Fivewin.ch\"\n\n\nFUNCTION MAIN()\n\n LOCAL oWnd, oBar\n\n DEFINE WINDOW oWnd\n\n DEFINE BUTTONBAR oBar OF oWnd 2007;\n SIZE 50, 70\n\n DEFINE BUTTON OF oBar;\n ACTION oWnd:End();\n PROMPT \"Close\" + CRLF + \"Window\"\n\n ACTIVATE WINDOW oWnd\n\n RETURN NIL[/code:33f79spz]\n\nEMG",
"time": "10:17",
"topic": "Bug in TBtnBmp prompt",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nIn Class TBtnBmp please replace:\n[code:3h9j3ah8]\n ::Say( 2 * ( ::nHeight / 3 ) + If( ::lPressed, 1, 0 ),;\n ( ::nWidth / 2 ) - ( GetTextWidth( ::hDC, ::cCaption,;\n ::oWnd:oFont:hFont ) / 2 ) + If( ::lPressed, 1, 0 ),;\n ::cCaption, nClr,, ::oWnd:oFont, .T., .T. )\n[/code:3h9j3ah8]\nwith\n[code:3h9j3ah8]\n nTop = 2 * ( ::nHeight / 3 ) + If( ::lPressed, 1, 0 ) + If( At( CRLF, ::cCaption ) == 0, 5, 0 ) \n SetBkMode( ::hDC, 1 )\n hOldFont = SelectObject( ::hDC, ::oWnd:oFont:hFont ) \n DrawText( ::hDC, ::cCaption,;\n { nTop - 5, If( ::lPressed, 1, 0 ), nTop + ::nHeight / 3, ::nWidth + If( ::lPressed, 1, 0 ) },;\n nOr( DT_VCENTER, DT_CENTER, DT_WORDBREAK ) )\n SelectObject( ::hDC, hOldFont ) \n[/code:3h9j3ah8]\nYou need these defines:\n[code:3h9j3ah8]\n#define DT_CENTER 1\n#define DT_VCENTER 4\n#define DT_WORDBREAK 16\n[/code:3h9j3ah8]\n[url=http://imageshack.us:3h9j3ah8][img:3h9j3ah8]http://img48.imageshack.us/img48/6335/enricoeq8.png[/img:3h9j3ah8][/url:3h9j3ah8]\nThanks!",
"time": "18:04",
"topic": "Bug in TBtnBmp prompt",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I can wait for the new FWH release, thank you. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "20:01",
"topic": "Bug in TBtnBmp prompt",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nIt will be available by early December <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "20:02",
"topic": "Bug in TBtnBmp prompt",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Great! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "23:30",
"topic": "Bug in TBtnBmp prompt",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\nHave you modify msgitem ( clock and date ) on msgbar ?",
"time": "00:33",
"topic": "Bug in TBtnBmp prompt",
"username": "Silvio"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nNo, not yet",
"time": "09:30",
"topic": "Bug in TBtnBmp prompt",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, I don't found this code in my BtnBmp.prg... My version is FWH 7.1 and I have this problem, when I use CRLF to \"break\" the text in more than 1 line text is displayed in same line and CRLF turn into a square character.\n\nThanks!\nMaurilio",
"time": "16:15",
"topic": "Bug in TBtnBmp prompt",
"username": "Maurilio Viana"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maurilio,\n\nBasically the function used to paint the text has to be (Window's) DrawText() instead of TextOut().\n\nThe published patch is for FWH 7.11. We have to build another for 7.01",
"time": "17:17",
"topic": "Bug in TBtnBmp prompt",
"username": "Antonio Linares"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This modification is working for 2007 style only. For non 2007 style both lines of text are painted in the middle of the bitmap\n\n[url=http://img220.imageshack.us/my.php?image=tbmpoz9.png:1awif05t][img:1awif05t]http://img220.imageshack.us/img220/3185/tbmpoz9.th.png[/img:1awif05t][/url:1awif05t]",
"time": "17:58",
"topic": "Bug in TBtnBmp prompt",
"username": "nageswaragunupudi"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2007-11-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr Antonio\n\nCan a fix be made available for multi-line prompts for tbar without 2007 style please?",
"time": "14:36",
"topic": "Bug in TBtnBmp prompt",
"username": "nageswaragunupudi"
}
] |
Bug in TBtnBmp prompt
|
[
{
"date": "2011-02-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "What is the reason for these lines in TBtnBmp:LostFocus() method?\n\n[code=fw:3tk9d4jg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lPressed</span><br /> ::<span style=\"color: #000000;\">lPressed</span> := .f.<br /> ::<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span></div>[/code:3tk9d4jg]\n\nA negative effect is that a pressed button (using GoDown() method) switch to non-pressed status on lostfocus.\n\nCan I remove the above lines without side effects?\n\nEMG",
"time": "12:30",
"topic": "Bug in TBtnBmp?",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2011-02-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I just tried to comment out those lines and now the problem seems to be fixed. I can't see any side effects. Can I apply this fix in the FWH SVN?\n\nEMG",
"time": "23:24",
"topic": "Bug in TBtnBmp?",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2011-03-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio?\n\nEMG",
"time": "22:36",
"topic": "Bug in TBtnBmp?",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2011-03-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Bumped up for Daniel",
"time": "04:26",
"topic": "Bug in TBtnBmp?",
"username": "TimStone"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2011-03-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Enrico\n\nalready fixed and updated to SVN",
"time": "05:21",
"topic": "Bug in TBtnBmp?",
"username": "Daniel Garcia-Gil"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2011-03-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you Daniel! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "09:48",
"topic": "Bug in TBtnBmp?",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2013-08-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In the sample below, please click on the \"Test\" button and you will see the BtnBmp doesn't go away (while if you try with the Bitmap all is fine).\n\n[code=fw:23yjezqs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oCtl<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">600</span><br /><br /><span style=\"color: #B900B9;\">// @ 1, 1 BITMAP oCtl</span><br /> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BTNBMP</span> oCtl<br /><br /> @ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> oCtl:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br /> <span style=\"color: #0000ff;\">CENTER</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:23yjezqs]\n\nEMG",
"time": "22:30",
"topic": "Bug in TBtnBmp?",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2013-08-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\nYes, it seems.\n[code=fw:2aok4sdu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oCtl<br /><br /> <span style=\"color: #00C800;\">LOCAL</span> cVar := <span style=\"color: #ff0000;\">\"Hola\"</span><br /> <span style=\"color: #00C800;\">LOCAL</span> nVar := <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lVar := .t.<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">600</span><br /><br /><span style=\"color: #B900B9;\">// @ 1, 1 BITMAP oCtl //yes</span><br /> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BTNBMP</span> oCtl <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"BtnBmp\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">14</span> <span style=\"color: #B900B9;\">//NO</span><br /><span style=\"color: #B900B9;\">// @ 1, 1 BUTTON oCtl PROMPT \"Button\" //yes</span><br /><span style=\"color: #B900B9;\">// @ 1, 1 SAY oCtl PROMPT \"HOLA\" //yes</span><br /><span style=\"color: #B900B9;\">// @ 1, 1 CHECKBOX oCtl VAR lVar //yes</span><br /><span style=\"color: #B900B9;\">// @ 1, 1 RADIO oCtl VAR nVar ITEMS \"&One\", \"&Two\" SIZE 150, 25 //yes</span><br /><span style=\"color: #B900B9;\">// @ 1, 1 GET oCtl VAR cVAR SIZE 40,12 //yes</span><br /><span style=\"color: #B900B9;\">// @ 1, 1 COMBOBOX oCtl VAR nVar ITEMS {\"1\",\"2\",\"3\"} //yes</span><br /><br /><br /> @ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> oCtl:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br /> <span style=\"color: #0000ff;\">CENTER</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:2aok4sdu]",
"time": "03:04",
"topic": "Bug in TBtnBmp?",
"username": "FranciscoA"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2013-08-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Any ideas? I think the problem is inside Destroy() method.\n\nEMG",
"time": "15:17",
"topic": "Bug in TBtnBmp?",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2013-08-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code=fw:209bmlio]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oDlg, oCtl<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">600</span><br /><br /> <span style=\"color: #B900B9;\">// @ 1, 1 BITMAP oCtl</span><br /> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BTNBMP</span> oCtl <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Visible\"</span><br /><br /> <span style=\"color: #B900B9;\">/* // error<br /> @ 7, 1 BUTTON \"Test\";<br /> ACTION oCtl:End()<br /> */</span><br /><br /> <span style=\"color: #B900B9;\">// Invisible</span><br /> @ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Hide\"</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">(</span> oCtl:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">// Visible</span><br /> @ <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Show\"</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">(</span> oCtl:<span style=\"color: #000000;\">Show</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> CANCEL <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTER</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:209bmlio]",
"time": "19:02",
"topic": "Bug in TBtnBmp?",
"username": "karinha"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2013-08-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "João,\n\nThank you, but I'd want to End() it, not to just hide it.\n\nEMG",
"time": "19:16",
"topic": "Bug in TBtnBmp?",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2013-08-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code=fw:2r4bxfe7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oDlg, oCtl<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>, <span style=\"color: #000000;\">600</span><br /><br /> <span style=\"color: #B900B9;\">// @ 1, 1 BITMAP oCtl</span><br /> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BTNBMP</span> oCtl <span style=\"color: #0000ff;\">PROMPt</span> <span style=\"color: #ff0000;\">\"Visible\"</span><br /><br /> @ <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test1\"</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">(</span> oCtl:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">UpDate</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test2\"</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">(</span> oCtl:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oCtl:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">UpDate</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">// Invisible</span><br /> @ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Hide\"</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">(</span> oCtl:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">// Visible</span><br /> @ <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Show\"</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">(</span> oCtl:<span style=\"color: #000000;\">Show</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> CANCEL <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTER</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:2r4bxfe7]\n \n\u001a",
"time": "20:54",
"topic": "Bug in TBtnBmp?",
"username": "karinha"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2013-08-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "João,\n\nyou missed the point: there is a problem in TBtmBmp Destroy() method that prevents the control to End(). It needs to be fixed.\n\nEMG",
"time": "21:38",
"topic": "Bug in TBtnBmp?",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnBmp?
|
[
{
"date": "2023-05-16",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "In tbtnclr.prg there is a public function called PickColor that is already defined in pickcolor.prg.",
"time": "15:13",
"topic": "Bug in TBtnClr",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnClr
|
[
{
"date": "2023-05-19",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Dear Enrico,\n\ntbtnclr.prg modified as:\n\nstatic Function PickColor(nColor,oControl)\n\nmany thanks for your feedback",
"time": "07:52",
"topic": "Bug in TBtnClr",
"username": "Antonio Linares"
}
] |
Bug in TBtnClr
|
[
{
"date": "2023-05-19",
"forum": "Bugs report & fixes / Informe de errores y arreglos",
"text": "Thank you.",
"time": "09:31",
"topic": "Bug in TBtnClr",
"username": "Enrico Maria Giordano"
}
] |
Bug in TBtnClr
|
[
{
"date": "2006-02-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "The following sample shows the problem. Try to put any character in the GET and then hit ALT-C. You will see that the DIALOG won't close. On the contrary, if you click on the button the DIALOG will close.\n\n[code:2ybzy861]#include \"Fivewin.ch\"\n\n\nFUNCTION MAIN()\n\n LOCAL oDlg\n\n LOCAL cVar := SPACE( 20 )\n\n DEFINE DIALOG oDlg\n\n @ 1, 1 GET cVar;\n VALID !EMPTY( cVar )\n\n @ 3, 1 BUTTON \"&Close\";\n ACTION oDlg:End()\n\n ACTIVATE DIALOG oDlg;\n CENTER\n\n RETURN NIL[/code:2ybzy861]\n\nEMG",
"time": "16:41",
"topic": "Bug in TButton",
"username": "Enrico Maria Giordano"
}
] |
Bug in TButton
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.