messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2008-09-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe,\r\n\r\nThis is the code for the arrow:\r\n[code:2thd7xxj]\nstatic far BYTE rarrow[] = {\n0x42, 0x4D, 0xE6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x28, 0x00,\n0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,\n0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x80,\n0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x80,\n0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0xC0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF,\n0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0xFF,\n0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0xFF,\n0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0x0F, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0x00,\n0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x0F, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0x00,\n0x00, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x0F, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0x00,\n0x00, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x0F, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0x00,\n0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0x0F, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xF0, 0xFF,\n0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0xFF, 0xFF,\n0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00 };\n\nCLIPPER FWRARROW( PARAMS ) // --> hBitmap\n{\n _retnl( ( LONG ) CreateMemBitmap( ( HDC ) 0, rarrow ) );\n}\n[/code:2thd7xxj]\r\nWe get that array of bytes using Borland Resources Workshop (reviewing a bitmap as an array of bytes)",
"time": "16:33",
"topic": "Bitmap-Format of Record-selector in xBrowse ?",
"username": "Antonio Linares"
}
] |
Bitmap-Format of Record-selector in xBrowse ?
|
[
{
"date": "2008-09-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You can create your own FWRARROW() that just loads a bitmap from your resources or from a bitmap file.",
"time": "16:34",
"topic": "Bitmap-Format of Record-selector in xBrowse ?",
"username": "Antonio Linares"
}
] |
Bitmap-Format of Record-selector in xBrowse ?
|
[
{
"date": "2010-06-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear all,\n\nHow to get the bitmap/icon for certain file?\n\nsay I want to get the bitmap/icon for file .doc or .xls.. or .pdf?\n\n[img:13tw2u3e]http://i208.photobucket.com/albums/bb82/fraxzi/getbitmap.png[/img:13tw2u3e]\n\nHow to do it in FW/xHarbour?\n\n\nBest regards,\nFrances",
"time": "03:36",
"topic": "Bitmap/Icon associated with certain file",
"username": "fraxzi"
}
] |
Bitmap/Icon associated with certain file
|
[
{
"date": "2010-06-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello fraxzi\n\n\nlook here: [url:3374mqjf]http://forums.fivetechsupport.com/viewtopic.php?p=91422#p91422[/url:3374mqjf]",
"time": "04:10",
"topic": "Bitmap/Icon associated with certain file",
"username": "Daniel Garcia-Gil"
}
] |
Bitmap/Icon associated with certain file
|
[
{
"date": "2010-06-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Daniel,\n\nThank you so much! I'll start working with this.. I just want to display the icon/bitmap to column when user select file so associated icon/bitmap is displayed.\n\nI will work on it.\n\n\nThank you and regards,\nFrances",
"time": "05:43",
"topic": "Bitmap/Icon associated with certain file",
"username": "fraxzi"
}
] |
Bitmap/Icon associated with certain file
|
[
{
"date": "2006-01-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Do you like them ? Do you want them for FW ?\n\nBuilt with the upcoming FWH 2.7 February build:\n\n[url=http://imageshack.us:24n5yjex][img:24n5yjex]http://img227.imageshack.us/img227/1041/image15lv.png[/img:24n5yjex][/url:24n5yjex]",
"time": "15:59",
"topic": "Bitmaped and transparent dialogs",
"username": "Antonio Linares"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-01-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Great!\n\nEMG",
"time": "17:40",
"topic": "Bitmaped and transparent dialogs",
"username": "Enrico Maria Giordano"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-01-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Looks Great !!!\n\nRick Lipkin\nSC Dept of Health, USA",
"time": "17:44",
"topic": "Bitmaped and transparent dialogs",
"username": "Rick Lipkin"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-01-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nDid you figure out how to make the SAYs transparent without REDEFINING them all?\n\nJames",
"time": "18:45",
"topic": "Bitmaped and transparent dialogs",
"username": "James Bott"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-01-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio you can create also dialogs with folder trasparent ?\nI'd like see the source code here...",
"time": "19:39",
"topic": "Bitmaped and transparent dialogs",
"username": "Silvio"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-01-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nyes. We have implemented a C function that does it automatically. No need to REDEFINE the SAYs.",
"time": "00:45",
"topic": "Bitmaped and transparent dialogs",
"username": "Antonio Linares"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-01-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Good news, and congratulations on solving that!\n\nJames",
"time": "00:55",
"topic": "Bitmaped and transparent dialogs",
"username": "James Bott"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-01-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Antonio, \nI hope you insert it on new release of fwh...\n\n...and for a dialog with folders",
"time": "01:21",
"topic": "Bitmaped and transparent dialogs",
"username": "Silvio"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-01-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Work in progress...\n\n[url=http://imageshack.us:1gjilzla][img:1gjilzla]http://img212.imageshack.us/img212/8904/image14gm.png[/img:1gjilzla][/url:1gjilzla]",
"time": "01:52",
"topic": "Bitmaped and transparent dialogs",
"username": "Antonio Linares"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-01-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "gooooood mr guru Antonio",
"time": "01:57",
"topic": "Bitmaped and transparent dialogs",
"username": "Silvio"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Transparency using XP themes <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n[url=http://imageshack.us:28rrz6q7][img:28rrz6q7]http://img59.imageshack.us/img59/4643/image10gd.png[/img:28rrz6q7][/url:28rrz6q7]\n\nThanks to Brian Hays for his great help on this!",
"time": "09:34",
"topic": "Bitmaped and transparent dialogs",
"username": "Antonio Linares"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear my friend Antonio,\nCan I see the source code to make dialog and folder trasparent ?\n\nRegards\nSilvio",
"time": "10:18",
"topic": "Bitmaped and transparent dialogs",
"username": "Silvio"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nThere are many changes. FWH 2.7 February build will provide them.",
"time": "10:19",
"topic": "Bitmaped and transparent dialogs",
"username": "Antonio Linares"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear antonio,\nI wrote you on privete email.\nI hope you help me ..",
"time": "10:37",
"topic": "Bitmaped and transparent dialogs",
"username": "Silvio"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nThis is excellent. I have been looking for this since Fivewin 1.8.\n\nMany years ago I hired several artists to make my applications look especially \"pretty\". I experimented with this concept, but ran into difficulties.\n\nOne problem I had was \"re-using\" a dialog. I could get it to display correctly the 1st time, but, if I ::end() the dialog and save the dialog object to an array to re-call at a later time, the dialog background would be \"invisible\" and the Windows desktop would bleed through on subsequent ::activate() commands.\n\nIs it possible for you to test this and let me know the result.\n\nAs always, thanks much. I really appreciate the work you have done for all of us.",
"time": "05:48",
"topic": "Bitmaped and transparent dialogs",
"username": "don lowenstein"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "If you issue oDlg:End() then you will have to recreate the DIALOG (DEFINE DIALOG etc.) again. You can't reuse an ended DIALOG.\n\nEMG",
"time": "08:44",
"topic": "Bitmaped and transparent dialogs",
"username": "Enrico Maria Giordano"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have done this in the past. Each control needed to be \"refreshed\" in the initialization of the ::activate()\n\nThe reason I did this was due to many controls / folder pages, etc, which were created from data driven applications. The computers were much slower ( 386 speed ) and this saved lots of overhead.\n\nUpon 're-activation' the controls worked fine, but, my dialog's background was \"transparent\". \n\nNot an issue anymore - computers are much faster and no problem saving data-driven parms in an array and define / activate each time needed.\n\nThings have come a long way, haven't they?",
"time": "18:16",
"topic": "Bitmaped and transparent dialogs",
"username": "don lowenstein"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I think it is not correct to reuse an ended DIALOG. You can hide it instead.\n\nEMG",
"time": "18:22",
"topic": "Bitmaped and transparent dialogs",
"username": "Enrico Maria Giordano"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nI agree, but I think he is just saying that he is storing the parameters in an array, then reusing the parameters to define and acitvate the dialog each time. I guess this would be no different than rereading them from a resource file.\n\nDon, am I right?\n\nJames",
"time": "18:38",
"topic": "Bitmaped and transparent dialogs",
"username": "James Bott"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Exactly - \n\nFor me, easier to store dialog parms in a database and build dynamically vs. create resource, manually code controls to variables. etc. Using a data dictionary for me, is cleaner - only one input program, only one browse/update program, etc.",
"time": "19:53",
"topic": "Bitmaped and transparent dialogs",
"username": "don lowenstein"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Don,\n\nI am curious as to how you design the dialogs in the first place. Do you design them in Workshop or other, then read the resource file to create your database, or how?\n\nJames",
"time": "20:05",
"topic": "Bitmaped and transparent dialogs",
"username": "James Bott"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"James Bott\":2japoaec]Enrico,\n\nI agree, but I think he is just saying that he is storing the parameters in an array, then reusing the parameters to define and acitvate the dialog each time. I guess this would be no different than rereading them from a resource file.\n\nDon, am I right?\n\nJames[/quote:2japoaec]\n\nIt is still not correct. Ending a dialog means that the DialogBox Windows object is released and you can't use its handle anymore. If you want to use the dialog again you have to instantiate a new TDialog object.\n\nEMG",
"time": "20:09",
"topic": "Bitmaped and transparent dialogs",
"username": "Enrico Maria Giordano"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2006-02-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"don lowenstein\":1y10n8s4]Exactly - \n\nFor me, easier to store dialog parms in a database and build dynamically vs. create resource, manually code controls to variables. etc. Using a data dictionary for me, is cleaner - only one input program, only one browse/update program, etc.[/quote:1y10n8s4]\n\nAre you saying that you issued DEFINE DIALOG etc. again with the same parameter of the first one? If yes then it's ok to do so. What you can't do is to end a dialog and then activate it again without defining it.\n\nRegarding your main problem, try to build a reduced and self-contained sample.\n\nEMG",
"time": "20:14",
"topic": "Bitmaped and transparent dialogs",
"username": "Enrico Maria Giordano"
}
] |
Bitmaped and transparent dialogs
|
[
{
"date": "2014-08-15",
"forum": "EasyReport, EasyDialog and EasyPreview",
"text": "We need help to find why the bitmapped buttons on all the dialogs look wrong\n\nThanks!",
"time": "10:56",
"topic": "Bitmapped buttons on dialogs",
"username": "Antonio Linares"
}
] |
Bitmapped buttons on dialogs
|
[
{
"date": "2008-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello to all \r\n\r\n hBmp := { ReadBitmap( 0, oPub:wPathBmp + \"ABERTO.BMP\" ),;\r\n ReadBitmap( 0, oPub:wPathBmp + \"BAIXADO.BMP\" ),;\r\n ReadBitmap( 0, oPub:wPathBmp + \"DEVOLV.BMP\" ),;\r\n ReadBitmap( 0, oPub:wPathBmp + \"PENDE.BMP\" ) }\r\n\r\n\r\n\r\n \r\nWhich of the classes would the correct be to turn off the created bmps in the way above?\r\n\r\n DeleteObject( hBmp ) \r\n or \r\n ReleaseDC( hBmp )\r\n or\r\n AEval( aHBitmaps, { | hBmp | DeleteObject( hBmp ) } )",
"time": "23:07",
"topic": "Bitmaps",
"username": "marca"
}
] |
Bitmaps
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This is the correct way, assuming hBmp is the name of your array of bitmaps handles:\r\n\r\n[code:3eiz801k]AEval( hBmp, { | hBmp | DeleteObject( hBmp ) } )[/code:3eiz801k]\r\n\r\nEMG",
"time": "11:31",
"topic": "Bitmaps",
"username": "Enrico Maria Giordano"
}
] |
Bitmaps
|
[
{
"date": "2008-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ok Enrico tanks",
"time": "14:20",
"topic": "Bitmaps",
"username": "marca"
}
] |
Bitmaps
|
[
{
"date": "2017-08-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nis it possible to draw on a bitmap without showing the bitmap on the screen.\n\nI mean only in memory and then save the changed bitmap.\n\nThanks in advance\n\nOtto",
"time": "22:16",
"topic": "Bitmaps - change bitmaps in memory",
"username": "Otto"
}
] |
Bitmaps - change bitmaps in memory
|
[
{
"date": "2009-06-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I know there have been changes regarding bitmaps and buttonbars. I did a search but could not find topics on the changes. Here are my questions:\n\n1) Is there a thread or two that discusses the newer capability of higher resolution, or alpha bitmap, button bars ?\n\n2) What would be a good file in the samples folder of these capabilities\n\nThanks ... I'm using 9.05.",
"time": "02:26",
"topic": "Bitmaps and Button bars",
"username": "TimStone"
}
] |
Bitmaps and Button bars
|
[
{
"date": "2009-06-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Tim,\n\nThe example shows any Window-Background and a Buttonbar on Top.\nJust define the Image ( Alpha-Blended BMP ) for the Buttonbar => FILE c_path + \"\\system\\format.bmp\"\n\nI started with the Bar-Tools ( comes close to the Button-Tools ) there it is possible, to test\nthe Bar-Size and included BMP's, how they look together on a defined Window-Background.\nSome nice Button-Sets will be included as well.\n\n[img:1l1ss546]http://www.pflegeplus.com/pictures/ButtonbNew1.jpg[/img:1l1ss546]\n\n[code=fw:1l1ss546]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> oWnd, oBar, oImage, oBrush<br /><span style=\"color: #00C800;\">LOCAL</span> oBButt1,oBButt2,oBButt3,oBButt4,oBButt5<br /><span style=\"color: #00C800;\">LOCAL</span> oBButt6,oBButt7,oBButt8,oBButt9<br /><br />c_path := CURDRIVE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\":<span style=\"color: #000000;\">\\\"</span> + GETCURDIR() + \"</span>\\<span style=\"color: #ff0000;\">\"<br /><br />DEFINE CURSOR oCursorHand HAND<br />SetBalloon( .T. ) // Balloon shape required for tooltips<br /><br />W_LOGO := \"</span>Background2.jpg<span style=\"color: #ff0000;\">\"<br />W_BRUSH := \"</span>Gray.bmp<span style=\"color: #ff0000;\">\"<br />W_COLOR1 := 14853684 <br />W_COLOR2 := 16314573 <br />W_MOVE := 0.50 // Gradient 2. Color-Position<br />W_DIRECT := .T. // Horizontal<br /><br />nDESKTOP := 1<br /><br />// Desktop 1 = Image<br />// Desktop 2 = Image-Brush<br />// Desktop 3 = Gradient<br />// Desktop 4 = Color<br />// Desktop 5 = Style<br /><br />// Color<br />// -------<br />IF nDESKTOP = 4<br /> DEFINE BRUSH oBrush COLOR W_COLOR1<br />ENDIF<br /><br />// Style<br />// -------<br />IF nDESKTOP = 5<br /> IF W_STYLE = \"</span>BRICKS<span style=\"color: #ff0000;\">\" <br /> DEFINE BRUSH oBrush STYLE \"</span>BRICKS<span style=\"color: #ff0000;\">\"<br /> ENDIF<br /> IF W_STYLE = \"</span>BORLAND<span style=\"color: #ff0000;\">\" <br /> DEFINE BRUSH oBrush STYLE \"</span>BORLAND<span style=\"color: #ff0000;\">\"<br /> ENDIF<br /> IF W_STYLE = \"</span>TILED<span style=\"color: #ff0000;\">\" <br /> DEFINE BRUSH oBrush STYLE \"</span>TILED<span style=\"color: #ff0000;\">\"<br /> ENDIF<br />ENDIF<br /><br />// Brush<br />// -------<br />IF nDESKTOP = 2<br /> DEFINE BRUSH oBrush FILE c_path + \"</span>\\project\\<span style=\"color: #ff0000;\">\" + W_BRUSH<br />ENDIF<br /><br />IF nDESKTOP = 1 .or. nDESKTOP = 3<br /> DEFINE WINDOW oWnd TITLE \"</span>Test<span style=\"color: #ff0000;\">\" ;<br /> MDI MENU TMenu():New() <br />ENDIF<br />IF nDESKTOP = 2 .or. nDESKTOP = 4 .or. nDESKTOP = 5<br /> DEFINE WINDOW oWnd TITLE \"</span>Test<span style=\"color: #ff0000;\">\" ;<br /> MDI MENU TMenu():New() BRUSH oBrush<br />ENDIF<br /><br />DEFINE BUTTONBAR oBar OF oWnd SIZE 95, 70 2007 TOP<br /><br />// Some Buttons ......<br /><br />DEFINE BUTTON oBButt1 OF oBar FILE c_path + \"</span>\\system\\format.bmp<span style=\"color: #ff0000;\">\" MESSAGE \"</span>Color-Background<span style=\"color: #ff0000;\">\" ;<br /> ACTION ( nSTYLE := 1, ;<br /> PROMPT \"</span>Color-<span style=\"color: #0000ff;\">Select</span><span style=\"color: #ff0000;\">\" <br /><br />oBButt1:cToolTip := { \"</span> <span style=\"color: #ff0000;\">\" + CRLF + ;<br /> \"</span>Color-Background selected.<span style=\"color: #ff0000;\">\" + CRLF + ;<br /> \"</span>Please aktivate all Previews<span style=\"color: #ff0000;\">\" + CRLF + ;<br /> \"</span>with <span style=\"color: #0000ff;\">Button</span> < Show All >, or<span style=\"color: #ff0000;\">\" + CRLF + ;<br /> \"</span><span style=\"color: #0000ff;\">select</span> a single <span style=\"color: #0000ff;\">Dialog</span> <span style=\"color: #0000ff;\">from</span> the<span style=\"color: #ff0000;\">\" + CRLF + ;<br /> \"</span><span style=\"color: #0000ff;\">right</span> <span style=\"color: #0000ff;\">Buttonbar</span><span style=\"color: #ff0000;\">\", \"</span>C o l o r - Background <span style=\"color: #ff0000;\">\", 1, 0, 128 }<br /><br />DEFINE BUTTON oBButt2 OF oBar FILE c_path + \"</span>\\system\\format.bmp<span style=\"color: #ff0000;\">\" MESSAGE \"</span>Gradient-Background<span style=\"color: #ff0000;\">\" ;<br /> ACTION ( nSTYLE := 2, ;<br /> PROMPT \"</span>Gradient-<span style=\"color: #0000ff;\">Select</span><span style=\"color: #ff0000;\">\" <br /><br />oBButt2:cToolTip := { \"</span> <span style=\"color: #ff0000;\">\" + CRLF + ; <br /> \"</span>Gradient-Background selected.<span style=\"color: #ff0000;\">\" + CRLF + ;<br /> \"</span>Please aktivate all Previews<span style=\"color: #ff0000;\">\" + CRLF + ;<br /> \"</span>with <span style=\"color: #0000ff;\">Button</span> < Show All >, or<span style=\"color: #ff0000;\">\" + CRLF + ;<br /> \"</span><span style=\"color: #0000ff;\">select</span> a single <span style=\"color: #0000ff;\">Dialog</span> <span style=\"color: #0000ff;\">from</span> the<span style=\"color: #ff0000;\">\" + CRLF + ;<br /> \"</span><span style=\"color: #0000ff;\">right</span> <span style=\"color: #0000ff;\">Buttonbar</span><span style=\"color: #ff0000;\">\", \"</span>G r a d i e n t - Background<span style=\"color: #ff0000;\">\", 1, 0, 128 }<br /><br />...<br />...<br />...<br /><br />// Show Hand-Cursor on Caption<br />AEval( oBar:aControls, { | o | o:oCursor := oCursorHand } )<br /><br />SET MESSAGE OF oWnd TO \"</span>Button-Test<span style=\"color: #ff0000;\">\" ;<br />CENTERED CLOCK KEYBOARD 2007<br /><br />ACTIVATE WINDOW oWnd MAXIMIZED ;<br />ON PAINT ( IIF( nDESKTOP = 1, WI_LOGO( oWnd, hDC ), NIL ), ; // Image<br /> IIF( nDESKTOP = 3, W_GRAD( oWnd, hDC ), NIL ) ) // Gradient<br /><br />RETURN NIL<br /><br />//--------- 1 ) W - LOGO ------------------------ <br /><br />STATIC FUNCTION WI_LOGO( oWnd, hDC ) <br />LOCAL oImage1<br />LOCAL nWidth := oWnd:nWidth()<br />LOCAL nHeight := oWnd:nHeight()<br /><br />DEFINE IMAGE oImage1 FILE c_path + \"</span>\\project\\<span style=\"color: #ff0000;\">\" + W_LOGO <br />PalBmpDraw( hDC, 0, 0, oImage1:hBitmap, , nWIDTH, nHEIGHT, , .T. ) <br />oWnd:ReleaseDC()<br /><br />RETURN NIL<br /><br />// --------- 3 ) GRADIENT -----------------------<br /><br />STATIC FUNCTION W_GRAD( oWnd, hDC )<br />LOCAL nWidth := oWnd:nWidth()<br />LOCAL nHeight := oWnd:nHeight()<br /><br />aGrad := { { W_MOVE, W_COLOR1, W_COLOR2 }, ; <br /> { W_MOVE, W_COLOR2, W_COLOR1 } } <br /><br />IF W_DIRECT = .T.<br /> GradientFill( hDC, 0, 0, nHeight, nWidth, aGrad, .T. )<br />ENDIF<br />IF W_DIRECT = .F.<br /> GradientFill( hDC, 0, 0, nHeight, nWidth, aGrad, .F. )<br />ENDIF<br />oWnd:ReleaseDC()<br /><br />RETURN NIL<br /><br /></span></div>[/code:1l1ss546]",
"time": "08:14",
"topic": "Bitmaps and Button bars",
"username": "ukoenig"
}
] |
Bitmaps and Button bars
|
[
{
"date": "2009-06-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nAlpha channel bitmaps are automatically detected and used from FWH.\nAll you have to do is to create an alpha channel bitmap and use it as you use other bitmaps.\n\nYou can find some alpha channel bitmaps in c:\\FWH\\bitmaps\\AlphaBmp\\*.bmp",
"time": "11:42",
"topic": "Bitmaps and Button bars",
"username": "Antonio Linares"
}
] |
Bitmaps and Button bars
|
[
{
"date": "2009-06-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Working on the Tools, I noticed after changing the Gradient, Style 2007 gets lost ?\n\nNormal Buttonbar with Style 2007 and no Gradient change :\n\nDEFINE BUTTONBAR oBar1 OF oWnd1 SIZE D_BUTTONH, D_BUTTONV 3DLOOK 2007 TOP\noBar1:SetColor( D_TCOLOR )\n\n[img:10f6vzh1]http://www.pflegeplus.com/pictures/BBartest1.jpg[/img:10f6vzh1]\n\nThe same Buttonbar with Style 2007 and defined Gradient :\n\nDEFINE BUTTONBAR oBar1 OF oWnd1 SIZE D_BUTTONH, D_BUTTONV 3DLOOK 2007 TOP\noBar1:SetColor( D_TCOLOR )\noBar1:bClrGrad = { || { { D_MOVE, D_COLOR1, D_COLOR2 },;\n { D_MOVE, D_COLOR2, D_COLOR1 } } }\n\n[img:10f6vzh1]http://www.pflegeplus.com/pictures/BBartest2.jpg[/img:10f6vzh1]\n\nStyle 2007 gets lost with the new Gradient-Define ?\n\nRBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "15:13",
"topic": "Bitmaps and Button bars",
"username": "ukoenig"
}
] |
Bitmaps and Button bars
|
[
{
"date": "2009-06-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for the replies. I'm also reviewing the \"whats new\" notes ...",
"time": "16:18",
"topic": "Bitmaps and Button bars",
"username": "TimStone"
}
] |
Bitmaps and Button bars
|
[
{
"date": "2009-06-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nTesting all possible Solutions I still found a wrong Position of the Buttonbar with :\n\nDEFINE BUTTONBAR oBar1 OF oWnd1 SIZE D_BUTTONH, D_BUTTONV 3DLOOK 2007 [color=#FF0000:17s3ckf7]BOTTOM[/color:17s3ckf7]\n\nThe Bottom of the Buttonbar is covered with the Messagebar.\nBottom Buttonbar must be Top Messagebar.\n\n[img:17s3ckf7]http://www.pflegeplus.com/pictures/BBartest3.jpg[/img:17s3ckf7]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "18:22",
"topic": "Bitmaps and Button bars",
"username": "ukoenig"
}
] |
Bitmaps and Button bars
|
[
{
"date": "2012-01-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Holas a todos..\n\nTengo un BMP de 50 * 250\nLo incorpore a mi RC, en las propiedades, tambien tiene 50 * 250\nCree un Bitmap dentro de un dialogo, sus medidas tambien son de 50 * 250\n\nPero al mostrarlo en el dialogo ocupa el cuarto del tamaño asignado. ¿ PORQUE ?\n\nSi le pongo la clausula ADJUST me llena el tamaño completo, pero se distorsiona... \n\nAlgun consejo... tip o algo por el estilo.\n\nOcupo Pelles C como editor y compilador de RC\n\nGracias de Antemano\n\nDesde Chile\nAdolfo",
"time": "22:40",
"topic": "Bitmaps desde Recursos",
"username": "Adolfo"
}
] |
Bitmaps desde Recursos
|
[
{
"date": "2012-01-06",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Adolfo:\n\nTube un problema similar en mi anterior proyecto y encontre una clase que es modificación de la TImage: se llama tZoomImage, te dejo el fuente y el CH para que lo pruebes... Por cierto que es de la autoría de Jaime Irurzun.\n\nzImage.Prg\n[code=fw:3qpc00mj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />**<br />* PROYECTO ...: <span style=\"color: #000000;\">Clase</span> tZoomImage<br />* COPYRIGHT ..: <span style=\"color: #000000;\"><span style=\"color: #000000;\">(</span>c</span><span style=\"color: #000000;\">)</span> Jaime Irurzun<br />**<br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TZoomImage <span style=\"color: #0000ff;\">FROM</span> TImage<br /><br /> CLASSDATA lRegistered AS LOGICAL<br /><br /> <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">PAINT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">/*_____________________________________________________________________________*/</span><br /><br /><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> TZoomImage<br /><br /> <span style=\"color: #B900B9;\">// jaime 17.10.04</span><br /> <span style=\"color: #00C800;\">LOCAL</span> nWBmp := nBmpWidth<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> nHBmp := nBmpHeight<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> aRect := GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> nWidth := aRect<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span> - aRect<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span><br /> <span style=\"color: #00C800;\">LOCAL</span> nHeight := aRect<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> - aRect<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><br /> <span style=\"color: #B900B9;\">// fin jaime</span><br /><br /> <span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> .and. ! EMPTY<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">cBmpFile</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">LoadBmp</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">cBmpFile</span> <span style=\"color: #000000;\">)</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;\">hBitmap</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">bPainted</span> != <span style=\"color: #00C800;\">nil</span><br /> EVAL<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bPainted</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #B900B9;\">// jaime 17.10.04</span><br /> <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">lStretch</span><br /> PALBMPDraw<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, ::<span style=\"color: #000000;\">nX</span>, ::<span style=\"color: #000000;\">nY</span>, ::<span style=\"color: #000000;\">hBitmap</span>, ::<span style=\"color: #000000;\">hPalette</span>,;<br /> nWidth, nHeight,, ::<span style=\"color: #000000;\">lTransparent</span>, ::<span style=\"color: #000000;\">nClrPane</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// (nClrPane) Added by RRR 23/04/01 07:58</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">nZoom</span> > <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">IF</span> nHBmp > nHeight .OR. nWBmp > nWidth<br /> <span style=\"color: #B900B9;\">// si es más alta que ancha (o son iguales)</span><br /> <span style=\"color: #00C800;\">IF</span> nHBmp >= nWBmp<br /> nWBmp := <span style=\"color: #000000;\">(</span> nWBmp * nHeight <span style=\"color: #000000;\">)</span> / nHBmp<br /> nHBmp := nHeight<br /> <span style=\"color: #B900B9;\">// si el lado contrario ha quedado más grande, reajusto</span><br /> <span style=\"color: #00C800;\">IF</span> nWBmp > nWidth<br /> nHBmp := <span style=\"color: #000000;\">(</span> nHBmp * nWidth <span style=\"color: #000000;\">)</span> / nWBmp<br /> nWBmp := nWidth<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> PALBMPDraw<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, ::<span style=\"color: #000000;\">nX</span>, ::<span style=\"color: #000000;\">nY</span>, ::<span style=\"color: #000000;\">hBitmap</span>, ::<span style=\"color: #000000;\">hPalette</span>,;<br /> nWBmp, nHBmp,, ::<span style=\"color: #000000;\">lTransparent</span>, ::<span style=\"color: #000000;\">nClrPane</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// (nClrPane) Added by RRR 23/04/01 07:58</span><br /> <span style=\"color: #B900B9;\">// si es más ancha que alta</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> nHBmp := <span style=\"color: #000000;\">(</span> nHBmp * nWidth <span style=\"color: #000000;\">)</span> / nWBmp<br /> nWBmp := nWidth<br /> <span style=\"color: #B900B9;\">// si el lado contrario ha quedado más grande, reajusto</span><br /> <span style=\"color: #00C800;\">IF</span> nHBmp > nHeight<br /> nWBmp := <span style=\"color: #000000;\">(</span> nWBmp * nHeight <span style=\"color: #000000;\">)</span> / nHBmp<br /> nHBmp := nHeight<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> PALBMPDraw<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, ::<span style=\"color: #000000;\">nX</span>, ::<span style=\"color: #000000;\">nY</span>, ::<span style=\"color: #000000;\">hBitmap</span>, ::<span style=\"color: #000000;\">hPalette</span>,;<br /> nWBmp, nHBmp,, ::<span style=\"color: #000000;\">lTransparent</span>, ::<span style=\"color: #000000;\">nClrPane</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// (nClrPane) Added by RRR 23/04/01 07:58</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> PALBMPDraw<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, ::<span style=\"color: #000000;\">nX</span>, ::<span style=\"color: #000000;\">nY</span>, ::<span style=\"color: #000000;\">hBitmap</span>, ::<span style=\"color: #000000;\">hPalette</span>,;<br /> nWBmp, nHBmp,, ::<span style=\"color: #000000;\">lTransparent</span>, ::<span style=\"color: #000000;\">nClrPane</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// (nClrPane) Added by RRR 23/04/01 07:58</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: #B900B9;\">// fin jaime</span><br /><br /> <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">bPainted</span> != <span style=\"color: #00C800;\">nil</span><br /> EVAL<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bPainted</span>, ::<span style=\"color: #000000;\">hDC</span> <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><br /> </div>[/code:3qpc00mj]\n\ny el archivo de Cabecera ZIMAGE.CH\n\n[code=fw:3qpc00mj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/*----------------------------------------------------------------------------//<br />!short: ZoomImage */</span><br /><br />#xcommand <span style=\"color: #0000ff;\">REDEFINE</span> ZoomImage <span style=\"color: #000000;\">[</span> <oBmp> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">ID</span> <nId> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <of: <span style=\"color: #0000ff;\">OF</span>, <span style=\"color: #0000ff;\">WINDOW</span>, DIALOG> <oWnd> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <resource: <span style=\"color: #0000ff;\">NAME</span>, <span style=\"color: #0000ff;\">RESNAME</span>, RESOURCE> <cResName> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <file: <span style=\"color: #000000;\">FILE</span>, FILENAME, DISK> <cBmpFile> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <lClick: <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">ClICK</span>, <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">LEFT</span> CLICK> <uLClick> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <rClick: <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">RIGHT</span> CLICK> <uRClick> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <scroll: <span style=\"color: #000000;\">SCROLL</span>> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <adjust: <span style=\"color: #000000;\">ADJUST</span>> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">CURSOR</span> <oCursor> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">MESSAGE</span> <cMsg> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <update: <span style=\"color: #000000;\">UPDATE</span>> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">WHEN</span> <uWhen> <span style=\"color: #000000;\">]</span> ;<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">VALID</span> <uValid> <span style=\"color: #000000;\">]</span> ;<br /> => ;<br /> <span style=\"color: #000000;\">[</span> <oBmp> := <span style=\"color: #000000;\">]</span> TZoomImage<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">(</span> <nId>, <cResName>, <cBmpFile>,;<br /> <oWnd>, <span style=\"color: #000000;\">[</span>\\<span style=\"color: #000000;\">{</span> |nRow,nCol,nKeyFlags| <uLClick> \\<span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">]</span>,;<br /> <span style=\"color: #000000;\">[</span>\\<span style=\"color: #000000;\">{</span> |nRow,nCol,nKeyFlags| <uRClick> \\<span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">]</span>,;<br /> <.<span style=\"color: #0000ff;\">scroll</span>.>, <.<span style=\"color: #0000ff;\">adjust</span>.>, <oCursor>, <cMsg>, <.<span style=\"color: #0000ff;\">update</span>.>,;<br /> <<span style=\"color: #000000;\">{</span>uWhen<span style=\"color: #000000;\">}</span>>, <<span style=\"color: #000000;\">{</span>uValid<span style=\"color: #000000;\">}</span>> <span style=\"color: #000000;\">)</span><br /> </div>[/code:3qpc00mj]\n\ndentro de tu prg inclulles la definición a ZImage\n\n[code=fw:3qpc00mj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FIVEWIN.CH\"</span><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"ZIMAGE.CH\"</span><br />...<br />...<br /><span style=\"color: #00C800;\">Local</span> oBmp<br /><span style=\"color: #0000ff;\">REDEFINE</span> ZOOMIMAGE oBmp <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">120</span> <span style=\"color: #0000ff;\">OF</span> oDlg FILENAME <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\L</span>LAVE.BMP\"</span> <span style=\"color: #B900B9;\">//Resource \"LLAVE\"</span><br /> </div>[/code:3qpc00mj]\n\nY dentro del Pelles C creas un nuevo control personalizado llamado \"TZoomImage\" con estilo de Ventana \"0x50000000\" y estilo de Ventana Extendido \"0x00000000\" y listo, no se si haya sido de tu ayuda, pero espero te funcione...\n\nSaludos. <!-- s:mrgreen: --><img src=\"{SMILIES_PATH}/icon_mrgreen.gif\" alt=\":mrgreen:\" title=\"Mr. Green\" /><!-- s:mrgreen: --> <!-- s:mrgreen: --><img src=\"{SMILIES_PATH}/icon_mrgreen.gif\" alt=\":mrgreen:\" title=\"Mr. Green\" /><!-- s:mrgreen: -->",
"time": "04:51",
"topic": "Bitmaps desde Recursos",
"username": "cuatecatl82"
}
] |
Bitmaps desde Recursos
|
[
{
"date": "2012-01-06",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias Cuatecatl82 \n\nPruebo y te comento...\n\nPero igual tengo la duda... porque la tbitmap no es capaz de mostrarlo como se debe, el tamaño de la imagen es identica a la del recurso, deberia cuadrar sin problemas...o no ?\nAntonio.. algo tengo mal ?\n\n\nSaludos y comento mis experiecias.\n\nDesde Chile\nAdolfo",
"time": "12:23",
"topic": "Bitmaps desde Recursos",
"username": "Adolfo"
}
] |
Bitmaps desde Recursos
|
[
{
"date": "2012-01-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Cuatecatl82...\n\nPues no me resulto, sigue igual, y ademas con la clausula ADJUST. el Bitmap se ve deforme.\n\nAntonio, Daniel, hay algun metodo para convertir el tamaño real de la imagen al tamaño que posee el recurso bitmap definido en el RC.\n\nHasta el momento voy probando medidas para ver si se ajustan, pero es un problema.\n\nRepito la inquietud, Si el tamaño del Recurso es igual al del bitmap ( en pixeles ) Porque no se muestra completo ?\n\n\nDesde Chile \nAdolfo\n\nPD: Recien cambiado completamente a HARBOUR 3 + BCC 5.8.2 + FWH 11.5 + Pelles C",
"time": "18:16",
"topic": "Bitmaps desde Recursos",
"username": "Adolfo"
}
] |
Bitmaps desde Recursos
|
[
{
"date": "2012-01-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola\n\nEl tamano del recurso que ves en el pelles no esta en pixeles (son dpi), si quiers obtener le tamano en pixles tendras que modificarlo desde codigo\n\nte dejo un ejemplo sencillo y para que compruebes lo que te comento, \n\n[code=fw:2dyptiuz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span> <br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oBmp1<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Test\"</span> <br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> BITMAP oBmp1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BMPTEST\"</span> <br /> <br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">XBrowse</span><span style=\"color: #000000;\">(</span> GetClientRect<span style=\"color: #000000;\">(</span> oBmp1:<span style=\"color: #000000;\">hWnd</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 <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oBmp1:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> , , nBmpWidth<span style=\"color: #000000;\">(</span> oBmp1:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span>, nBmpHeight<span style=\"color: #000000;\">(</span> oBmp1:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:2dyptiuz]\n\nRC\n\n[code=fw:2dyptiuz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// RESOURCE SCRIPT generated by \"Pelles C for Windows, version 6.00\".</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <commctrl.h><br /><span style=\"color: #00D7D7;\">#include</span> <richedit.h><br /><br />LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US<br /><br />TEST <span style=\"color: #0000ff;\">DIALOG</span> DISCARDABLE <span style=\"color: #000000;\">17</span>, <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">239</span>, <span style=\"color: #000000;\">284</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br />CAPTION <span style=\"color: #ff0000;\">\"Test\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span><br /><span style=\"color: #000000;\">{</span><br /> CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">110</span>, <span style=\"color: #ff0000;\">\"TBitmap\"</span>, 0x00000000, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">239</span><br /> CONTROL <span style=\"color: #ff0000;\">\"Button\"</span>, <span style=\"color: #000000;\">111</span>, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">244</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">14</span><br /><span style=\"color: #000000;\">}</span><br /><br />BMPTEST BITMAP <span style=\"color: #ff0000;\">\"007.bmp\"</span><br /><br /> </div>[/code:2dyptiuz]",
"time": "21:39",
"topic": "Bitmaps desde Recursos",
"username": "Daniel Garcia-Gil"
}
] |
Bitmaps desde Recursos
|
[
{
"date": "2012-01-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Daniel..\n\nGracias por tu respuesta, ahora ya me queda mas claro...\n\nMira Aqui \n[url:3nfviyet]http://tiporama.com/tools/pixels_inches.html[/url:3nfviyet]\n\nEso solo para empezar, asi que la cosa es un poco mas dificil, depende de la calidad del monitor, tamaño etc etc.\n\nAsi que modifique los 3 tipos de bitmaps que usaba a tamaños \"standard\" para saber que tamaño usar en el RC.\n\nGracias, algo mas aprendi hoy.\n\nSaludos\nDesde Chile\nAdolfo",
"time": "01:47",
"topic": "Bitmaps desde Recursos",
"username": "Adolfo"
}
] |
Bitmaps desde Recursos
|
[
{
"date": "2012-01-10",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Adolfo prueba asi\n\n\n REDEFINE IMAGE oBmp ID 200 OF odlg1 Resource \"imagen UPDATE\n\n\n oBmp:lTransparent:=.T.\n \n\nACTIVATE DIALOG oDlg1 Centered ON PAINT;\n (DrawBitmap(oDlg1:hDC,oBmp:hBitmap,0,0,oDlg1:nWidth,oDlg1:nHeight),;\n HollowText(oDlg1,5,200,\"\",oFont1,CLR_BLUE,2));\n\nsaludos",
"time": "02:58",
"topic": "Bitmaps desde Recursos",
"username": "jbrita"
}
] |
Bitmaps desde Recursos
|
[
{
"date": "2012-01-10",
"forum": "FiveWin para Harbour/xHarbour",
"text": "JBrita\n\nGracias, pruebo y te comento\n\nDesde Chile\nAdolfo",
"time": "15:26",
"topic": "Bitmaps desde Recursos",
"username": "Adolfo"
}
] |
Bitmaps desde Recursos
|
[
{
"date": "2007-11-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola a todos del foro\n\nComo puedo poner bitmaps en el header del twbrowse de hernan, es que no tengo ningun ejemplo sobre ello.\nQuiero que en una columna aparesca un bitmap con una señal que indique que esta ordenado por esa columna y si cambio de columna, el de la primera aparesca el bitmap desactivado, y la otra activado.\n\nGracias\n\nSalu2",
"time": "23:36",
"topic": "Bitmaps en Header del TWBrowse",
"username": "Francis"
}
] |
Bitmaps en Header del TWBrowse
|
[
{
"date": "2007-11-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Francis\naqui la respuesta por RF\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=151&highlight=\">http://fivetechsoft.com/forums/viewtopi ... highlight=</a><!-- m -->\nsalu2\npaco",
"time": "18:02",
"topic": "Bitmaps en Header del TWBrowse",
"username": "Francisco Horta"
}
] |
Bitmaps en Header del TWBrowse
|
[
{
"date": "2007-11-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola a todos del foro\n\nGracias Paco, eso era lo que estaba buscando, y la verdad no recordaba en que parte del foro estaba.\nMil gracias nuevamente...\n\nSalu2\n\nFrancis",
"time": "17:16",
"topic": "Bitmaps en Header del TWBrowse",
"username": "Francis"
}
] |
Bitmaps en Header del TWBrowse
|
[
{
"date": "2006-06-28",
"forum": "FiveWin para Pocket PC",
"text": "Hola amigos\n¿Es posible incorporar botones con bitmaps en Menu's ?\n\nAquí tienen un ejemplo de una demo de programa que usa este sistema.\n[img:31a8k1ol]http://hyperupload.com/download/02293ced80/Dibujo.JPG.html[/img:31a8k1ol]\n\nSaludos\nToni Sales",
"time": "08:51",
"topic": "Bitmaps en Menus. ¿Es posible?",
"username": "tsales"
}
] |
Bitmaps en Menus. ¿Es posible?
|
[
{
"date": "2006-06-28",
"forum": "FiveWin para Pocket PC",
"text": "Toni,\n\nAún no lo hemos implementado en FWPPC.",
"time": "09:09",
"topic": "Bitmaps en Menus. ¿Es posible?",
"username": "Antonio Linares"
}
] |
Bitmaps en Menus. ¿Es posible?
|
[
{
"date": "2007-09-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "hola amigos del foro.\n\nno logro poner un bitmaps en la TXBrowse cuando la muestro la informacion desde un array..\n\npor favor alguien, tiene alguna idea de como hacerlo\n\nDirecto de la DBF, Funciona correctamente. \n\n::oBrw := TXBrowse():New( ::oWnd ) \n::oBrw:cAlias := DBF_GIRBAN:cAlias \n::oCol := Array( 01 ) \n::oCol[01] := ::oBrw:AddCol() \n::oCol[01]:cHeader := \"Conciliado\" \n::oCol[01]:AddResource( \"CHECK_SI\" ) \n::oCol[01]:AddResource( \"CHECK_NO\" ) \n::oCol[01]:bBmpData := { || IF( DBF_GIRBAN:ESTGIR == .T. , 1, 2) } \n::oCol[01]:BStrData := { || \"\" } \n::oCol[01]:nWidth := 60 \n::oBrw:CreateFromCode() \n.... \n.... \nDesde un Array, NO muestra el BMP \n\nWITH OBJECT ::oBrw \n:SetArray( AR_DATOS, .T. ) \nWITH OBJECT :aCols[ ESTADO ] \n:cHeader := \"Conciliado\" \n:AddResource( \"CHECK_SI\" ) \n:AddResource( \"CHECK_NO\" ) \n:bBmpData := { || IF(Len(AR_DATOS) >0, (IF ( AR_DATOS[::oBrw:nArrayAt][ESTGIR] == .T. , 1, 2) ), NIL) } \n:bStrData := { || \"\"} \n:nWidth := 40 \nEND \nEND \n... \n... \n\ngracias\n\nsalu2\n\nMauro",
"time": "15:45",
"topic": "Bitmaps en TXbrowse, como funciona...",
"username": "un_jeepero"
}
] |
Bitmaps en TXbrowse, como funciona...
|
[
{
"date": "2010-12-18",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Saludos.\n\nEn cuestion de la clase de Mster. M. Mercado, tengo un detalle que no he podido resolver:\n\nEn un boton envio 2 bitmaps para que cambie al recibir el foco, pero ello solo con el mouse, que podre hacer para que al tener el foco cambie al segundo bitmap, sin uso del mouse. Mi fuente es:\n\n#define COLOR_ACEPTA {|oBtn|If(oBtn:lMouseOver.or.oBtn:lFocused,COLOR_MAGENTA,If(oBtn:lPressed,COLOR_BLANCO,aCOLOR(10)))}\n\n @ 0,nDer SBUTTON oBtn FILE 'LEVEL2.BMP','LEVEL1.BMP' OF oDLG SIZE 8,8;\n ACTION (...)\n COLOR COLOR_ACEPTA;\n PIXEL\nTengo antes de este boton una serie de gets, y al llegar al oBtn como puedo hacer para que cambie al bitmap 2.\n\nGracias.\n\nFwh 8.11, xH 1.1, bcc 5.5",
"time": "22:34",
"topic": "Bitmaps en TsButton: M. Mercado",
"username": "noe aburto"
}
] |
Bitmaps en TsButton: M. Mercado
|
[
{
"date": "2007-09-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Cuando hacemos una columna cuyo header solo contiene un bitmap, se pinta mal. Como ejemplo modifique el Testxbrw.prg, en el ejemplo de bitmaps, la columna que dice CLIP y pone un clip. Quité la palabra \"CLIP\" quedando oCol:cHeader:= \"\", y queda así:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.box.net/shared/y0fg7h9mq9\">http://www.box.net/shared/y0fg7h9mq9</a><!-- m -->\n\nLo he corregido cambiando el siguiente código ( en PaintHeader )\n\n[code:ya2iws5t]\n\n if nBmpNo > 0 .and. nBmpNo <= len( ::aBitmaps )\n aBitmap := ::aBitmaps[ nBmpNo ]\n // nWidth -= aBitmap[ BITMAP_WIDTH ] -> quité esto\n if Empty(cHeader)\n nBmpCol := nCol + ( ( nWidth - aBitmap[ BITMAP_WIDTH ] ) / 2 )\n elseif ::nHeadBmpAlign == AL_LEFT\n nWidth -= aBitmap[ BITMAP_WIDTH ] // Agregué esto\n nBmpCol := nCol\n nCol += aBitmap[ BITMAP_WIDTH ] + BMP_EXTRAWIDTH\n else\n nWidth -= aBitmap[ BITMAP_WIDTH ] // Agregué esto\n nBmpCol := nCol + nWidth\n endif\n nWidth -= BMP_EXTRAWIDTH\n nBmpRow := ( nHeight - aBitmap[ BITMAP_HEIGHT ] ) / 2 + 4\n PalBmpDraw( hDC, nBmpRow, nBmpCol,;\n aBitmap[ BITMAP_HANDLE ],;\n aBitmap[ BITMAP_PALETTE ],;\n aBitmap[ BITMAP_WIDTH ],;\n aBitmap[ BITMAP_HEIGHT ];\n ,, .t., aColors[ 2 ] )\n endif\n\n[/code:ya2iws5t]\n\nY asi funciona bien,\n\nSaludos",
"time": "12:43",
"topic": "Bitmaps en el header de XBrwColumn",
"username": "Carlos Mora"
}
] |
Bitmaps en el header de XBrwColumn
|
[
{
"date": "2007-09-13",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Carlos,\n\nGracias!",
"time": "07:26",
"topic": "Bitmaps en el header de XBrwColumn",
"username": "Antonio Linares"
}
] |
Bitmaps en el header de XBrwColumn
|
[
{
"date": "2006-01-23",
"forum": "FiveWin para Pocket PC",
"text": "Antonio,\n\nEste código:\n\n[code:2t9rv20o]@ 000, 000 IMAGE oBmp NAME \"LOGO\" OF oWnd[/code:2t9rv20o]\n\nMe da este error de compilación:\n\n[quote:2t9rv20o] Creating library globalpda.lib and object globalpda.exp\nglobalpda.obj : error LNK2001: unresolved external symbol \"void __cdecl HB_FUN_T\nIMAGE(void)\" (?HB_FUN_TIMAGE@@YAXXZ)\nglobalpda.exe : fatal error LNK1120: 1 unresolved externals\nEl sistema no puede hallar el archivo especificado.\n* Application successfully built[/quote:2t9rv20o]\n\nY este código:\n\n[code:2t9rv20o] @ 000, 000 BITMAP oBmp NAME \"LOGO\" OF oWnd[/code:2t9rv20o]\n\nMe da el mensaje en ejecución \"Not implemented yet: CreateDIBitmap\"\n\n¿Como puedo colocar un Bitmap (que está en recursos) a una Window?\n\nSaludos,\nJosé Luis Capel",
"time": "17:10",
"topic": "Bitmaps en una Window",
"username": "jlcapel"
}
] |
Bitmaps en una Window
|
[
{
"date": "2006-01-23",
"forum": "FiveWin para Pocket PC",
"text": "Jose Luis,\n\nDe momento hazlo como en el tutor11.prg. gracias.",
"time": "19:06",
"topic": "Bitmaps en una Window",
"username": "Antonio Linares"
}
] |
Bitmaps en una Window
|
[
{
"date": "2006-01-23",
"forum": "FiveWin para Pocket PC",
"text": "Antonio,\n\nGracias!! \n\nQuedo a la espera de la implementación de bitmaps por recursos.\n\nSaludos,\nJosé Luis Capel",
"time": "19:18",
"topic": "Bitmaps en una Window",
"username": "jlcapel"
}
] |
Bitmaps en una Window
|
[
{
"date": "2006-01-23",
"forum": "FiveWin para Pocket PC",
"text": "Jose Luis,\n\nDe momento, desde recursos puedes usar botones TBtnBmp con imágenes desde recursos. Revisa el ejemplo samples\\TestBmp.prg.",
"time": "19:30",
"topic": "Bitmaps en una Window",
"username": "Antonio Linares"
}
] |
Bitmaps en una Window
|
[
{
"date": "2010-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Quizá esto sea muy sencillo, o ya esté en el foro, pero no pude encontrarlo.....\n\nLo que quiero es en un xbrowse una columna donde dependiendo del valor contenido en otra me presente un bmp diferente, vale decir, tengo 4 bmps, uno rojo, uno verde, uno amarillo y uno transparente.\n\nQuiero colocar en la primer celda de cada línea un bmp que será verde, amarillo y rojo, dependiendo de un valor en otra celda de la misma línea si una variable estática ldesp está en .t., pero... si está en .f. no debe presentar nada o presentar un bmp transparente.\n\nHe estado trabajando para hacerlo, pero no me ha sido posible.... <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> \n\nSi alguien puede ayudarme en esto sería de gran valor, porque llevo varios días preparando esta consulta y es el único detalle que no sale. <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: --> \n\nGracias desde ya por la ayuda que puedan brindarme <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "20:35",
"topic": "Bitmaps en una columna de xbrowse",
"username": "jose_murugosa"
}
] |
Bitmaps en una columna de xbrowse
|
[
{
"date": "2010-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "José:\n\nTe voy a mostrar un código que yo uso con un recordset pero la idea es la misma para DBFs\n\n[code=fw:2c1z74g7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:= oBrw:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"SI\"</span><span style=\"color: #000000;\">)</span><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"NO\"</span><span style=\"color: #000000;\">)</span><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">cHeader</span> := <span style=\"color: #ff0000;\">\"Aut\"</span><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bBmpData</span> := <span style=\"color: #000000;\">{</span> || <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span>oRsPro:<span style=\"color: #000000;\">BOF</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> .AND. oRsPro:<span style=\"color: #000000;\">EOF</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">2</span>,IIF<span style=\"color: #000000;\">(</span>oRsPro:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PRO_AUT\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nDataBmpAlign</span> := AL_RIGHT<br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">25</span><br /> </div>[/code:2c1z74g7]\n\nLo destacable de este código es la parte donde se agregan los BMPs\n[code=fw:2c1z74g7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"SI\"</span><span style=\"color: #000000;\">)</span><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"NO\"</span><span style=\"color: #000000;\">)</span><br /> </div>[/code:2c1z74g7]\n\nque en tu caso debería ser\n\n[code=fw:2c1z74g7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Verde\"</span><span style=\"color: #000000;\">)</span><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Amarillo\"</span><span style=\"color: #000000;\">)</span><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Rojo\"</span><span style=\"color: #000000;\">)</span><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Transparente\"</span><span style=\"color: #000000;\">)</span><br /> </div>[/code:2c1z74g7]\n\ny la prte donde se define cual BMP se debe presentar \n\n[code=fw:2c1z74g7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bBmpData</span> := <span style=\"color: #000000;\">{</span> || <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span>oRsPro:<span style=\"color: #000000;\">BOF</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> .AND. oRsPro:<span style=\"color: #000000;\">EOF</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">2</span>,IIF<span style=\"color: #000000;\">(</span>oRsPro:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PRO_AUT\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">Value</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> </div>[/code:2c1z74g7]\n\nMe parece que te conviene usar una función que te devuelva el número BMP a mostrar\ny te quedaría así:\n\n[code=fw:2c1z74g7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aCol<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bBmpData</span> := <span style=\"color: #000000;\">{</span> || <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span>oRsPro:<span style=\"color: #000000;\">BOF</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> .AND. oRsPro:<span style=\"color: #000000;\">EOF</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">2</span>,CualBmp<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> </div>[/code:2c1z74g7]\n\nY la función CualBmp() debería ser + - así\n\n[code=fw:2c1z74g7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> CualBmp<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">LOCAL</span> nBmp := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br /> <span style=\"color: #00C800;\">CASE</span> Algo<br /> nBmp := <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// Verde</span><br /> <span style=\"color: #00C800;\">CASE</span> Algomas<br /> nBmp := <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// Amarillo</span><br /> <span style=\"color: #00C800;\">CASE</span> Algomasmas<br /> nBmp := <span style=\"color: #000000;\">3</span> <span style=\"color: #B900B9;\">// Rojo</span><br /> OTHERWHISE<br /> nBmp := <span style=\"color: #000000;\">4</span> <span style=\"color: #B900B9;\">// Transparente</span><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>nBmp<span style=\"color: #000000;\">)</span><br /> </div>[/code:2c1z74g7]\nSaludos",
"time": "21:16",
"topic": "Bitmaps en una columna de xbrowse",
"username": "Armando"
}
] |
Bitmaps en una columna de xbrowse
|
[
{
"date": "2010-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias Armando,\n\nLo pruebo y te comento el lunes!!!!!!!! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "21:33",
"topic": "Bitmaps en una columna de xbrowse",
"username": "jose_murugosa"
}
] |
Bitmaps en una columna de xbrowse
|
[
{
"date": "2010-07-19",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Tal como lo dijeras, con unos pequeños retoques ha funcionado de maravillas!!!! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\n\nMuchas Gracias!!!!!! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "11:45",
"topic": "Bitmaps en una columna de xbrowse",
"username": "jose_murugosa"
}
] |
Bitmaps en una columna de xbrowse
|
[
{
"date": "2009-06-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nI'm converting a listbox that used to contain bitmaps to an xBrowse.\n\nBefore, i used to create an array of bitmaps \n\n[code=fw:2vyp6xuc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #00C800;\">PUBLIC</span> aPics := <span style=\"color: #000000;\">{</span> ;<br /> LoadBitmap<span style=\"color: #000000;\">(</span> GetResources<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , <span style=\"color: #ff0000;\">\"CHECKOFF\"</span> <span style=\"color: #000000;\">)</span> , ;<br /> LoadBitmap<span style=\"color: #000000;\">(</span> GetResources<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , <span style=\"color: #ff0000;\">\"CONFIRMED\"</span><span style=\"color: #000000;\">)</span> , ;<br /> LoadBitmap<span style=\"color: #000000;\">(</span> GetResources<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , <span style=\"color: #ff0000;\">\"CHECKON\"</span> <span style=\"color: #000000;\">)</span> , ;<br /> LoadBitmap<span style=\"color: #000000;\">(</span> GetResources<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , <span style=\"color: #ff0000;\">\"TRAXSENT\"</span> <span style=\"color: #000000;\">)</span> , ;<br /> LoadBitmap<span style=\"color: #000000;\">(</span> GetResources<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , <span style=\"color: #ff0000;\">\"TRAXFAIL\"</span> <span style=\"color: #000000;\">)</span> , ;<br /> LoadBitmap<span style=\"color: #000000;\">(</span> GetResources<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , <span style=\"color: #ff0000;\">\"TICKED\"</span> <span style=\"color: #000000;\">)</span> , ;<br /> LoadBitmap<span style=\"color: #000000;\">(</span> GetResources<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , <span style=\"color: #ff0000;\">\"NOTTICKED\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> </div>[/code:2vyp6xuc]\n\nand then just have a field in the listbox that called a function like this:\n\n[code=fw:2vyp6xuc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> MdiConfirmed<span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> aPics<span style=\"color: #000000;\">[</span><span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span>&cAlias.->CONFIRMED,<span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">]</span><br /> </div>[/code:2vyp6xuc]\n\nI'm now trying to replicate this in an xBrowse, but all i get is a number appearing. The added problem i have, is that i give my customers the ability to define what appears and where it appears in the browse, so i can't hardcode that column 1 will be the bitmap\n\nThanks in advance\n\nPete",
"time": "12:31",
"topic": "Bitmaps in Xbrowse",
"username": "PeterHarmes"
}
] |
Bitmaps in Xbrowse
|
[
{
"date": "2009-06-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In XBrowse:\n\noBrw:aCols[ n ]:LoadResource( 'CHECKON' )\noBrw:aCols[ n ]:LoadResource( 'CHECKOFF' )\netc....\n\nthen\n\noBrw:aCols[n]:bBmpData := { || If( (oBrw:cAlias)->CONFIRMED, 1, 2 ) }",
"time": "13:05",
"topic": "Bitmaps in Xbrowse",
"username": "nageswaragunupudi"
}
] |
Bitmaps in Xbrowse
|
[
{
"date": "2009-06-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Still getting a number i'm afraid\n\nPete",
"time": "14:26",
"topic": "Bitmaps in Xbrowse",
"username": "PeterHarmes"
}
] |
Bitmaps in Xbrowse
|
[
{
"date": "2009-06-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here is a working sample where my bitmaps are resources compiled in the .exe :\n\n[code=fw:2s62bdjn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg1 <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"PCASIMPT\"</span> ;<br /> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W\"</span> ;<br /> <span style=\"color: #0000ff;\">TITLE</span> cTITLE ;<br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">xBROWSE</span> oLbx1 ;<br /> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span> <span style=\"color: #0000ff;\">of</span> oDlg1 ;<br /> RECORDSET oRsImport ;<br /> COLUMNS <span style=\"color: #ff0000;\">'load_row'</span>, ;<br /> <span style=\"color: #ff0000;\">'name'</span>, ;<br /> <span style=\"color: #ff0000;\">'pcas_date'</span>, ;<br /> <span style=\"color: #ff0000;\">'clinic'</span>, ;<br /> <span style=\"color: #ff0000;\">'location'</span>, ;<br /> <span style=\"color: #ff0000;\">'program'</span>, ;<br /> <span style=\"color: #ff0000;\">'activity'</span>, ;<br /> <span style=\"color: #ff0000;\">'starttime'</span>, ;<br /> <span style=\"color: #ff0000;\">'endtime'</span>, ;<br /> <span style=\"color: #ff0000;\">'hours'</span>, ;<br /> <span style=\"color: #ff0000;\">'service_type'</span>, ;<br /> <span style=\"color: #ff0000;\">'rectype'</span>, ;<br /> <span style=\"color: #ff0000;\">'unitid'</span>, ;<br /> <span style=\"color: #ff0000;\">'system'</span> ;<br /> COLSIZES <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">125</span>,<span style=\"color: #000000;\">75</span>,<span style=\"color: #000000;\">90</span>,<span style=\"color: #000000;\">47</span>,<span style=\"color: #000000;\">47</span>,<span style=\"color: #000000;\">47</span>,<span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">70</span>,<span style=\"color: #000000;\">70</span>,<span style=\"color: #000000;\">70</span>,<span style=\"color: #000000;\">70</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">'Load_row'</span>, ;<br /> <span style=\"color: #ff0000;\">'Name'</span>, ;<br /> <span style=\"color: #ff0000;\">'Service Date'</span>, ;<br /> <span style=\"color: #ff0000;\">'Clinic'</span>, ;<br /> <span style=\"color: #ff0000;\">'Location'</span>, ;<br /> <span style=\"color: #ff0000;\">'Program'</span>, ;<br /> <span style=\"color: #ff0000;\">'Activity'</span>, ;<br /> <span style=\"color: #ff0000;\">'Start'</span>, ;<br /> <span style=\"color: #ff0000;\">'End '</span>, ;<br /> <span style=\"color: #ff0000;\">'Hours'</span>, ;<br /> <span style=\"color: #ff0000;\">'Service Type'</span>, ;<br /> <span style=\"color: #ff0000;\">'Record Type'</span>, ;<br /> <span style=\"color: #ff0000;\">'Unit Type'</span>, ;<br /> <span style=\"color: #ff0000;\">'System'</span> ;<br /> <span style=\"color: #0000ff;\">ON</span> dblclick<span style=\"color: #000000;\">(</span> _Recalc<span style=\"color: #000000;\">(</span>oRsImport, oLbx1<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> AUTOSORT <span style=\"color: #0000ff;\">AUTOCOLS</span> FOOTERS LINES CELL<br /><br /> oLbx1:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Hours\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">nTOTAL</span> := nHOURS<br /> oLbx1:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Hours\"</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #000000;\">lTOTAL</span> := .t.<br /> <br /> <span style=\"color: #00C800;\">if</span> .not. Empty<span style=\"color: #000000;\">(</span> oCol := oLbx1:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Load_row\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> oCol:<span style=\"color: #000000;\">SetCheck</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"CHECKON\"</span>, <span style=\"color: #ff0000;\">\"CHECKOFF\"</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /> oCol:<span style=\"color: #000000;\">cSortOrder</span> := <span style=\"color: #00C800;\">nil</span><br /> oCol:<span style=\"color: #000000;\">nEditType</span> := EDIT_GET<br /> <span style=\"color: #B900B9;\">// oCol:lBmpStretch = .T.</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBTN1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">112</span> <span style=\"color: #0000ff;\">of</span> oDLG1 ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> _Loadum<span style=\"color: #000000;\">(</span> oRsImport, oDlg1, oBtn3, cMODE <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #00C800;\">DEFAULT</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBTN2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">118</span> <span style=\"color: #0000ff;\">of</span> oDLG1 ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> oDlg1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</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> oDlg1 ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span><span style=\"color: #000000;\">(</span> oLbx1:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, .F. <span style=\"color: #000000;\">)</span><br /><br /> </div>[/code:2s62bdjn]",
"time": "14:35",
"topic": "Bitmaps in Xbrowse",
"username": "Rick Lipkin"
}
] |
Bitmaps in Xbrowse
|
[
{
"date": "2009-06-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This is the code i'm using to build the columns:\n\n[code=fw:3u4p3kqb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /> oBrw := TXBrowse<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> oWndBrw <span style=\"color: #000000;\">)</span><br /> ReBuildSched<span style=\"color: #000000;\">(</span>.F., oBrw, oWndBrw, <span style=\"color: #00C800;\">Self</span><span style=\"color: #000000;\">)</span><br /> oBrw:<span style=\"color: #000000;\">bPopup</span> := <span style=\"color: #000000;\">{</span> || SchedPopup<span style=\"color: #000000;\">(</span>oBrw, ::<span style=\"color: #000000;\">cScedAlias</span>, <span style=\"color: #00C800;\">Self</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">IF</span> Alltrim<span style=\"color: #000000;\">(</span>Upper<span style=\"color: #000000;\">(</span>GetIwsSysIni<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"System Info\"</span>, <span style=\"color: #ff0000;\">\"Browse 2007 Style\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <> <span style=\"color: #ff0000;\">\"NO\"</span><br /> oBrw:<span style=\"color: #000000;\">l2007</span> := .T. <span style=\"color: #B900B9;\">//2007 Style</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> oBrw:<span style=\"color: #000000;\">l2007</span> := .F.<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span> := MARQSTYLE_HIGHLROWMS <span style=\"color: #B900B9;\">//Ticking Style</span><br /> <br /> <span style=\"color: #00C800;\">IF</span> !Empty<span style=\"color: #000000;\">(</span>GetIwsSysIni<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"System Info\"</span>, <span style=\"color: #ff0000;\">\"Browse Column Dividers\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> nColStyle := Val<span style=\"color: #000000;\">(</span>GetIwsSysIni<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"System Info\"</span>, <span style=\"color: #ff0000;\">\"Browse Column Dividers\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">IF</span> nColStyle > <span style=\"color: #000000;\">0</span><br /> oBrw:<span style=\"color: #000000;\">lColDividerComplete</span> := .T.<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> oBrw:<span style=\"color: #000000;\">nColDividerStyle</span> := nColStyle<br /> <span style=\"color: #00C800;\">IF</span> !Empty<span style=\"color: #000000;\">(</span>GetIwsSysIni<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"System Info\"</span>, <span style=\"color: #ff0000;\">\"Browse Row Dividers\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> nRowStyle := Val<span style=\"color: #000000;\">(</span> GetIwsSysIni<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"System Info\"</span>, <span style=\"color: #ff0000;\">\"Browse Row Dividers\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> oBrw:<span style=\"color: #000000;\">nRowDividerStyle</span> := nRowStyle<br /> <br /> <span style=\"color: #B900B9;\">// Select a Drag cursor </span><br /> oBrw:<span style=\"color: #000000;\">oDragCursor</span> := oCursor <br /> <span style=\"color: #B900B9;\">// Start the dragging operations from the listbox </span><br /> oBrw:<span style=\"color: #000000;\">bDragBegin</span> := <span style=\"color: #000000;\">{</span> | nRow, nCol, nKeyFlags | ;<br /> <span style=\"color: #000000;\">(</span>SetDropInfo<span style=\"color: #000000;\">(</span> STR<span style=\"color: #000000;\">(</span>&ScedAlias.->SITE_ID,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span>+STR<span style=\"color: #000000;\">(</span>&ScedAlias.->OR_TICKNBR,<span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #B900B9;\">// Set a DropOver action for the ListBox</span><br /> oBrw:<span style=\"color: #000000;\">bDropOver</span> := <span style=\"color: #000000;\">{</span> | uDropInfo, nRow, nCol, nKeyFlags | ;<br /> ::<span style=\"color: #000000;\">MoveTicket</span><span style=\"color: #000000;\">(</span>uDropInfo<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">IF</span> !Empty<span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">cMessage</span><span style=\"color: #000000;\">)</span><br /> oBrw:<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">{</span> || MdiMessage<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">cMessage</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> ::<span style=\"color: #000000;\">oBrw</span> := oBrw<br /> <br /> oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /> oWndBrw:<span style=\"color: #000000;\">oClient</span> := oBrw<br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ReBuildSched<span style=\"color: #000000;\">(</span>lDelete, oBrw, oWnd, oSchedule<span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">LOCAL</span> nLines := <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #00C800;\">IF</span> lDelete<br /> DeletexBrowse<span style=\"color: #000000;\">(</span>oBrw<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <br /> <span style=\"color: #B900B9;\">//Go top to bottom of database to read in what columns should appear</span><br /> SCHEDETS-><span style=\"color: #000000;\">(</span>DBGOTOP<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> !SCHEDETS-><span style=\"color: #000000;\">(</span>EOF<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> SCHEDETS->SCHED_SEQ <> <span style=\"color: #ff0000;\">\"ZZ\"</span> <br /> nLines := <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">(</span>nLines, numat<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"CHR(13)\"</span>, UPPER<span style=\"color: #000000;\">(</span>SCHEDETS->SCHED_COL<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> <br /> cCol := Alltrim<span style=\"color: #000000;\">(</span>SCHEDETS->SCHED_COL<span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #B900B9;\">//This swaps database names to the aliases used</span><br /> cCol := UpdateSced<span style=\"color: #000000;\">(</span>cCol, <span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"CUSTOMER\"</span>, <span style=\"color: #ff0000;\">\"ORDERS\"</span>, <span style=\"color: #ff0000;\">\"CONTCAT\"</span>, <span style=\"color: #ff0000;\">\"SCHEDULE\"</span>, <span style=\"color: #ff0000;\">\"OrdConfirmed()\"</span>, <span style=\"color: #ff0000;\">\"Printed()\"</span>, <span style=\"color: #ff0000;\">\"OBCStatus()\"</span>,<span style=\"color: #ff0000;\">\"SITEADDR\"</span><span style=\"color: #000000;\">}</span>, <span style=\"color: #000000;\">{</span>oSchedule:<span style=\"color: #000000;\">cCustAlias</span>, oSchedule:<span style=\"color: #000000;\">cOrdAlias</span>, oSchedule:<span style=\"color: #000000;\">cContAlias</span>, oSchedule:<span style=\"color: #000000;\">cOrdAlias</span>, <span style=\"color: #ff0000;\">\"MdiConfirmed('\"</span> + oSchedule:<span style=\"color: #000000;\">cOrdAlias</span> + <span style=\"color: #ff0000;\">\"')\"</span>, <span style=\"color: #ff0000;\">\"ScedPrinted()\"</span>, <span style=\"color: #ff0000;\">\"ScedOBCStatus()\"</span>, oSchedule:<span style=\"color: #000000;\">cSiteAlias</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> oCol := oBrw:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #B900B9;\">//This is the function that i used to use to display the bitmap</span><br /> <span style=\"color: #00C800;\">IF</span> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span>cCol, <span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"MdiConfirmed(\"</span> <br /> oCol:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CONFIRMED\"</span> <span style=\"color: #000000;\">)</span><br /> oCol:<span style=\"color: #000000;\">AddResource</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"NOTTICKED\"</span> <span style=\"color: #000000;\">)</span><br /> oCol:<span style=\"color: #000000;\">bBmpData</span> := <span style=\"color: #000000;\">{</span> || <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> &OrdAlias.->CONFIRMED, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">ELSE</span> <br /> oCol:<span style=\"color: #000000;\">bStrData</span> := GenbStrData<span style=\"color: #000000;\">(</span> cCol <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> oCol:<span style=\"color: #000000;\">cHeader</span> := SCHEDETS->SCHED_HEAD<br /> <br /> oCol:<span style=\"color: #000000;\">nWidth</span> := SCHEDETS->SCHED_SIZE<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> SCHEDETS-><span style=\"color: #000000;\">(</span>DBSKIP<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDDO</span><br /> oBrw:<span style=\"color: #000000;\">nDataLines</span> := nLines<br /> oBrw:<span style=\"color: #000000;\">nRowHeight</span> := <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">18</span> + <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>nLines - <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> * <span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> lDelete<br /> oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GenbStrData<span style=\"color: #000000;\">(</span> cCol <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">{</span> || &<span style=\"color: #000000;\">(</span>cCol<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> </div>[/code:3u4p3kqb]",
"time": "15:13",
"topic": "Bitmaps in Xbrowse",
"username": "PeterHarmes"
}
] |
Bitmaps in Xbrowse
|
[
{
"date": "2009-06-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Anyone find any problems with the ReBuildSched function above?\n\nRegards,\n\nPete",
"time": "09:15",
"topic": "Bitmaps in Xbrowse",
"username": "PeterHarmes"
}
] |
Bitmaps in Xbrowse
|
[
{
"date": "2009-06-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "If you can provide a small self contained sample, which we can compile and run at our end, we could come up with some solution for you",
"time": "14:07",
"topic": "Bitmaps in Xbrowse",
"username": "nageswaragunupudi"
}
] |
Bitmaps in Xbrowse
|
[
{
"date": "2009-06-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Found the problem, it was my mistake <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> \n\nPete",
"time": "15:46",
"topic": "Bitmaps in Xbrowse",
"username": "PeterHarmes"
}
] |
Bitmaps in Xbrowse
|
[
{
"date": "2011-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, linking with the latest lib emailed to me causes the images in my buttonbar seems to be shifted up. It became from this,\n\n[img:3t19h4vn]http://img713.imageshack.us/img713/5618/barok.jpg[/img:3t19h4vn]\n\nto this,\n\n[img:3t19h4vn]http://img37.imageshack.us/img37/1627/barnotok.jpg[/img:3t19h4vn]\n\nWindowsXP.Manifest was linked-in and BUTTONBAR was using neither 2007 nor 2010 clause.\n\nSnippet of buttonbar creation[code=fw:3t19h4vn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #0000ff;\">define</span> <span style=\"color: #0000ff;\">buttonbar</span> oBar <span style=\"color: #0000ff;\">of</span> oWnd <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">33</span> 3dlook<br /> oBar:<span style=\"color: #000000;\">setBrush</span><span style=\"color: #000000;\">(</span>oBrush1<span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnB_Xtract <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"EXTRACT\"</span> <span style=\"color: #0000ff;\">OF</span> oBar ;<br /> TOOLTIP <span style=\"color: #ff0000;\">\"Xtract\"</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> ;<br /> lExtract := <span style=\"color: #00C800;\">TRUE</span>, ;<br /> <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span> cStat == STAT_DISP, ;<br /> <span style=\"color: #000000;\">(</span> ;<br /> EVAL<span style=\"color: #000000;\">(</span> oBtnB_Add:<span style=\"color: #000000;\">bAction</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #000000;\">)</span>, ;<br /> <span style=\"color: #000000;\">)</span>, ;<br /> I_Xtract<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #000000;\">)</span> </div>[/code:3t19h4vn]\n\nPlease tell me how to fix this.\n\nTIA\np.s. I could've sworn I've read something similar in the past but couldn't find the thread",
"time": "03:38",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "hua"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hua,\n\nPlease add this function to your main PRG:\n\n[code=fw:21vcycsj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> IsAppThemed<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> .F.</div>[/code:21vcycsj]",
"time": "06:27",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "Antonio Linares"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hua,\n\nThis is the right fix to apply:\n\n[img:3ng0c37o]http://img707.imageshack.us/img707/1860/capturesoq.png[/img:3ng0c37o]",
"time": "06:47",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "Antonio Linares"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Antonio. Changed btnbmp.prg and the bitmaps position is now ok but the buttons seems kinda \"flat\", as though they're in pressed state\n\nNow,\n[img:1sa2tk9n]http://img594.imageshack.us/img594/235/buttonflat.jpg[/img:1sa2tk9n]\n\n\nWith FWH11.8 31st Aug\n[img:1sa2tk9n]http://img713.imageshack.us/img713/5618/barok.jpg[/img:1sa2tk9n]\n\n* edited *",
"time": "07:44",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "hua"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hua,\n\nI missed that painting effect, please revert the previous change and apply this one, thanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[img:397xox8m]http://img856.imageshack.us/img856/7682/capturetf.png[/img:397xox8m]",
"time": "09:24",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "Antonio Linares"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Antonio, with the latest fwbmp.c compiled and updated to fivehgc.lib, I got this error message\n[code=fw:2co0biob]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Error: <span style=\"color: #000000;\">Unresolved</span> external <span style=\"color: #ff0000;\">'_HB_ISCHAR'</span> referenced <span style=\"color: #0000ff;\">from</span> J:\\HARBOUR\\FWH\\LIB\\FIVEHC.LIB|fwbmp</div>[/code:2co0biob]",
"time": "02:47",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "hua"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Resolved by adding to fwbmp.c[code=fw:7l27x909]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />#ifndef HB_ISCHAR<br /> <span style=\"color: #00D7D7;\">#define</span> HB_ISCHAR<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">(</span> hb_param<span style=\"color: #000000;\">(</span> n, HB_IT_STRING <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">)</span><br />#endif </div>[/code:7l27x909] \n\nThis issue is now resolved <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->",
"time": "03:04",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "hua"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hua,\n\nHB_ISCHAR() is defined in hbapi.h, so you just need to add #include <hbapi.h> <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "08:07",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "Antonio Linares"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I see, thanks for the clarification. I guess the error arise as I'm still using a very old version of xHarbour (rev 6406) due to some bugs making my hbapi.h outdated.",
"time": "08:14",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "hua"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n FYI, I tried compiling fwbmp.c using MinGW + Harbour 17053. To get the obj file I compile using my [color=#4000FF:2w0tw925][b:2w0tw925]-.bat[/b:2w0tw925][/color:2w0tw925] which contain this[code=fw:2w0tw925]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />hbmk2 %<span style=\"color: #000000;\">1</span> %<span style=\"color: #000000;\">2</span> xhb.hbc j:\\harbour\\fwh\\fwh.hbc</div>[/code:2w0tw925]\n\n Amidst the warnings there are 2 errors as below (I'm using hbmk2's -clipper switch so it'll compile up to obj only and produces no exe)[code=fw:2w0tw925]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />J:\\harbour\\fwh\\samples>- fwbmp.c -clipper<br />hbmk2 fwbmp.c -clipper xhb.hbc j:\\harbour\\fwh\\fwh.hbc<br />fwbmp.c: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'HB_FUN_PALBMPLOAD'</span>:<br /><span style=\"color: #000000;\">fwbmp</span>.c:<span style=\"color: #000000;\">344</span>:<span style=\"color: #000000;\">11</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">too</span> many arguments <span style=\"color: #0000ff;\">to</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'hb_stornl'</span><br />C:/downloads/Harbour/trunk/harbour/include/hbapi.h:<span style=\"color: #000000;\">754</span>:<span style=\"color: #000000;\">25</span>: <span style=\"color: #000000;\">note</span>: <span style=\"color: #000000;\">declared</span> here<br />fwbmp.c:<span style=\"color: #000000;\">345</span>:<span style=\"color: #000000;\">11</span>: <span style=\"color: #000000;\">error</span>: <span style=\"color: #000000;\">too</span> many arguments <span style=\"color: #0000ff;\">to</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'hb_stornl'</span><br />C:/downloads/Harbour/trunk/harbour/include/hbapi.h:<span style=\"color: #000000;\">754</span>:<span style=\"color: #000000;\">25</span>: <span style=\"color: #000000;\">note</span>: <span style=\"color: #000000;\">declared</span> here<br />fwbmp.c: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'hPalBitmapDraw'</span>:<br /><span style=\"color: #000000;\">fwbmp</span>.c:<span style=\"color: #000000;\">387</span>:<span style=\"color: #000000;\">15</span>: <span style=\"color: #000000;\">warning</span>: <span style=\"color: #000000;\">unused</span> variable <span style=\"color: #ff0000;\">'cZeroZeroColor'</span> <span style=\"color: #000000;\">[</span>-Wunused-variable<span style=\"color: #000000;\">]</span><br />fwbmp.c:<span style=\"color: #000000;\">385</span>:<span style=\"color: #000000;\">21</span>: <span style=\"color: #000000;\">warning</span>: <span style=\"color: #000000;\">unused</span> variable <span style=\"color: #ff0000;\">'nCol'</span> <span style=\"color: #000000;\">[</span>-Wunused-variable<span style=\"color: #000000;\">]</span><br />fwbmp.c:<span style=\"color: #000000;\">385</span>:<span style=\"color: #000000;\">15</span>: <span style=\"color: #000000;\">warning</span>: <span style=\"color: #000000;\">unused</span> variable <span style=\"color: #ff0000;\">'nRow'</span> <span style=\"color: #000000;\">[</span>-Wunused-variable<span style=\"color: #000000;\">]</span><br />fwbmp.c: <span style=\"color: #000000;\">In</span> <span style=\"color: #00C800;\">function</span> <span style=\"color: #ff0000;\">'HB_FUN_PALBTNPAINT'</span>:<br /><span style=\"color: #000000;\">fwbmp</span>.c:<span style=\"color: #000000;\">654</span>:<span style=\"color: #000000;\">10</span>: <span style=\"color: #000000;\">warning</span>: <span style=\"color: #000000;\">suggest</span> explicit braces <span style=\"color: #0000ff;\">to</span> avoid ambiguous <span style=\"color: #ff0000;\">'else'</span> <span style=\"color: #000000;\">[</span>-Wparentheses<span style=\"color: #000000;\">]</span><br />fwbmp.c:<span style=\"color: #000000;\">706</span>:<span style=\"color: #000000;\">16</span>: <span style=\"color: #000000;\">warning</span>: <span style=\"color: #000000;\">suggest</span> explicit braces <span style=\"color: #0000ff;\">to</span> avoid ambiguous <span style=\"color: #ff0000;\">'else'</span> <span style=\"color: #000000;\">[</span>-Wparentheses<span style=\"color: #000000;\">]</span><br />fwbmp.c:<span style=\"color: #000000;\">754</span>:<span style=\"color: #000000;\">16</span>: <span style=\"color: #000000;\">warning</span>: <span style=\"color: #000000;\">suggest</span> explicit braces <span style=\"color: #0000ff;\">to</span> avoid ambiguous <span style=\"color: #ff0000;\">'else'</span> <span style=\"color: #000000;\">[</span>-Wparentheses<span style=\"color: #000000;\">]</span><br />fwbmp.c:<span style=\"color: #000000;\">583</span>:<span style=\"color: #000000;\">16</span>: <span style=\"color: #000000;\">warning</span>: <span style=\"color: #000000;\">unused</span> variable <span style=\"color: #ff0000;\">'tm'</span> <span style=\"color: #000000;\">[</span>-Wunused-variable<span style=\"color: #000000;\">]</span><br />hbmk2: <span style=\"color: #000000;\">Error</span>: <span style=\"color: #000000;\">Running</span> C/C++ compiler. <span style=\"color: #000000;\">1</span><br />gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -W -Wall -ofwbmp.o -IC:/downloads/Harbour/trunk/harbour/include -IC:/download<br />s/Harbour/trunk/harbour/contrib/xhb -IC:/downloads/Harbour/trunk/harbour/contrib/hbct -IC:/downloads/Harbour/trunk/harbour/contrib/hbtip -IC:/<span style=\"color: #00C800;\">do</span><br />wnloads/Harbour/trunk/harbour/contrib/hbwin -IC:/downloads/Harbour/trunk/harbour/contrib/hbfship -IC:/downloads/Harbour/trunk/harbour/contrib/hb<br />xpp -Ij:/harbour/fwh/include fwbmp.c</div>[/code:2w0tw925]",
"time": "09:30",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "hua"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hua,\n\nPlease check how hb_stornl() is defined in your used hbapi.h and copy it here, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "09:45",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "Antonio Linares"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2011-09-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here you go[code=fw:xbcr1xw6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />extern HB_EXPORT int hb_stornl<span style=\"color: #000000;\">(</span> long lValue, int iParam <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">/* stores a long on a variable by reference */</span><br />#ifndef HB_LONG_LONG_OFF<br />extern HB_EXPORT int hb_stornll<span style=\"color: #000000;\">(</span> HB_LONGLONG llValue, int iParam <span style=\"color: #000000;\">)</span>; <span style=\"color: #B900B9;\">/* stores a long long on a variable by reference */</span><br />#endif</div>[/code:xbcr1xw6]",
"time": "12:22",
"topic": "Bitmaps in buttonbar got shifted up",
"username": "hua"
}
] |
Bitmaps in buttonbar got shifted up
|
[
{
"date": "2005-10-29",
"forum": "FiveWin for Pocket PC",
"text": "Dear Antonio, have you found the time to examine the issue I sent you some days ago?\n\nEMG",
"time": "13:24",
"topic": "Bitmaps limitation",
"username": "Enrico Maria Giordano"
}
] |
Bitmaps limitation
|
[
{
"date": "2005-10-29",
"forum": "FiveWin for Pocket PC",
"text": "Enrico,\n\nNot yet. Its on the to-do list",
"time": "14:10",
"topic": "Bitmaps limitation",
"username": "Antonio Linares"
}
] |
Bitmaps limitation
|
[
{
"date": "2005-10-29",
"forum": "FiveWin for Pocket PC",
"text": "Thank you!\n\nEMG",
"time": "18:15",
"topic": "Bitmaps limitation",
"username": "Enrico Maria Giordano"
}
] |
Bitmaps limitation
|
[
{
"date": "2009-07-07",
"forum": "FiveWin for Pocket PC",
"text": "I cannot see the bitmaps \n\nwhy ?\n\n[code=fw:2tfw9cic]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FWCE.ch\"</span><br /><br /><br /><span style=\"color: #00D7D7;\">#Define</span> EVENT_SIP <span style=\"color: #000000;\">224</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">Static</span> lsave:=.f.<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> oDlgClient , oTabs<br /><span style=\"color: #00C800;\">local</span> oLbx<br /><span style=\"color: #00C800;\">local</span> cVar<br /><span style=\"color: #00C800;\">local</span> aHBitMaps:=Array<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> n<br /><br /><br />aHBitMaps:= <span style=\"color: #000000;\">{</span> ReadBitmap<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> +<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>evel1.bmp\"</span> <span style=\"color: #000000;\">)</span>, ; <span style=\"color: #B900B9;\">// BitMaps de 10x10</span><br /> ReadBitmap<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> +<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>evel2.bmp\"</span> <span style=\"color: #000000;\">)</span>, ;<br /> ReadBitmap<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> +<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>evel3.bmp\"</span> <span style=\"color: #000000;\">)</span>, ;<br /> ReadBitmap<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> +<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>evel4.bmp\"</span> <span style=\"color: #000000;\">)</span>,;<br /> ReadBitmap<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> +<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\L</span>evel5.bmp\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br />USE <span style=\"color: #000000;\">(</span> CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\C</span>lientes\"</span> <span style=\"color: #000000;\">)</span> VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /><br /><br /><span style=\"color: #00C800;\">if</span> RecCount<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> == <span style=\"color: #000000;\">0</span><br />APPEND BLANK<br /><span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">if</span> ! File<span style=\"color: #000000;\">(</span> CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\C</span>liName.CDX\"</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> Clientes->Nombre <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">(</span> CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\C</span>liName\"</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">endif</span><br />Clientes-><span style=\"color: #000000;\">(</span>DbSetIndex<span style=\"color: #000000;\">(</span> CurDir<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\C</span>liName\"</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />Clientes-><span style=\"color: #000000;\">(</span> OrdSetFocus<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"CliName\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br />Clientes-><span style=\"color: #000000;\">(</span> DbGoTop<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgClient <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Clients\"</span><br /><br />@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0.2</span> <span style=\"color: #0000ff;\">LISTBOX</span> oLbx FIELDS aHBitmaps<span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span>, Clientes->Nivel <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">]</span>,;<br /> Clientes->Nombre, AllTrim<span style=\"color: #000000;\">(</span> Clientes->Direccion <span style=\"color: #000000;\">)</span>,;<br /> Clientes->Telefono,;<br /> Str<span style=\"color: #000000;\">(</span> Clientes->Edad, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">)</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"L\"</span>, <span style=\"color: #ff0000;\">\"Name\"</span>, <span style=\"color: #ff0000;\">\"Address\"</span>, <span style=\"color: #ff0000;\">\"Phone\"</span>, <span style=\"color: #ff0000;\">\"Age\"</span> ;<br /> FIELDSIZES <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">222</span>, <span style=\"color: #000000;\">213</span>, <span style=\"color: #000000;\">58</span>, <span style=\"color: #000000;\">24</span> ;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">118</span>, <span style=\"color: #000000;\">132</span> <span style=\"color: #0000ff;\">OF</span> oDlgClient<br /><br /><br /><br />oLbx:<span style=\"color: #000000;\">nClrPane</span> := <span style=\"color: #000000;\">{</span> || <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> OrdKeyNo<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> % <span style=\"color: #000000;\">2</span> == <span style=\"color: #000000;\">0</span>, RGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">230</span><span style=\"color: #000000;\">)</span>, RGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">190</span>, <span style=\"color: #000000;\">215</span>, <span style=\"color: #000000;\">190</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br />oLbx:<span style=\"color: #000000;\">nClrForeHead</span>:=CLR_BLUE<br /><br />*oLbx::<span style=\"color: #000000;\">bKeyDown</span> :=<span style=\"color: #000000;\">{</span>|nKey| Val_nKey<span style=\"color: #000000;\">(</span>nKey,oDlg<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span><br /><br />oDlgClient:<span style=\"color: #000000;\">bSettingChange</span> := <span style=\"color: #000000;\">{</span>|uVal|PocketEvent<span style=\"color: #000000;\">(</span> uVal,oDlgClient,olbx <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgClient;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span> SetOKButton<span style=\"color: #000000;\">(</span> oDlgClient:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>,;<br />DlgFullScreen<span style=\"color: #000000;\">(</span> oDlgClient:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ;<br />oDlgClient:<span style=\"color: #000000;\">SetMenu</span><span style=\"color: #000000;\">(</span> DialogBar<span style=\"color: #000000;\">(</span>oDlgClient,oLbx<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /><br /><br />AEval<span style=\"color: #000000;\">(</span> aHBitmaps, <span style=\"color: #000000;\">{</span> | hBmp | DeleteObject<span style=\"color: #000000;\">(</span> hBmp <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br />Clientes-><span style=\"color: #000000;\">(</span>DbCloseArea<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />RETU <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:2tfw9cic]",
"time": "11:07",
"topic": "Bitmaps on listbox",
"username": "Silvio"
}
] |
Bitmaps on listbox
|
[
{
"date": "2006-07-11",
"forum": "FiveWin para Pocket PC",
"text": "Hola,\n\nHe intentado mostrar un bitmap transparente y da error en el método paint.\n\n oBitmap:lTransparent := .T. después de definirlo\n\n\n¿ No se puede poner transparente en una pocket ?\n\nUn Saludo,\nJoaquín",
"time": "18:43",
"topic": "Bitmaps transparentes",
"username": "jmartial"
}
] |
Bitmaps transparentes
|
[
{
"date": "2006-07-11",
"forum": "FiveWin para Pocket PC",
"text": "Joaquín,\n\nPuedes publicar un pequeño ejemplo autocontenido de cómo lo has probado ? gracias",
"time": "18:48",
"topic": "Bitmaps transparentes",
"username": "Antonio Linares"
}
] |
Bitmaps transparentes
|
[
{
"date": "2006-07-11",
"forum": "FiveWin para Pocket PC",
"text": "Antonio,\n\nREDEFINE BITMAP ::oBitmap ID 200;\n OF ::oDlg;\n RESOURCE \"MIBITMAP\"\n\n::oBitmap:lTransparent := .T.\n\nEsto sí me funciona en FWH.\n\n\nUn Saludo,\nJoaquín",
"time": "18:53",
"topic": "Bitmaps transparentes",
"username": "jmartial"
}
] |
Bitmaps transparentes
|
[
{
"date": "2006-07-14",
"forum": "FiveWin para Pocket PC",
"text": "Antonio,\n\n¿ Alguna noticia sobre esto de las transparencias ?\n\n\nUn Saludo,\nJoaquín",
"time": "18:23",
"topic": "Bitmaps transparentes",
"username": "jmartial"
}
] |
Bitmaps transparentes
|
[
{
"date": "2006-07-14",
"forum": "FiveWin para Pocket PC",
"text": "Joaquín,\n\nPodemos proporcionar soporte técnico más rapidamente cuando se nos proporciona un ejemplo completo, pequeño y autocontenido, que podamos probar rapidamente.",
"time": "23:02",
"topic": "Bitmaps transparentes",
"username": "Antonio Linares"
}
] |
Bitmaps transparentes
|
[
{
"date": "2015-08-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola a todos <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\nQuería pedir a Uds. sugerencias sobre como hacer para almacenar en una tabla de bitácora todos los tipos de movimientos, terminal y usuario que los realizó, tengo que hacer una modificación para implementar esto en mis aplicaciones y he estado viendo el modo, pero me pareció bueno comentarlo, y quizá recibir algun feedback de quienes ya lo han hecho, y de lo que a vuestro criterio podría ser la solución más adecuada.\n\nGracias desde ya <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->",
"time": "16:44",
"topic": "Bitácora de Sistema",
"username": "jose_murugosa"
}
] |
Bitácora de Sistema
|
[
{
"date": "2015-08-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Jose:\n\nLo que hago es que cada usuario tiene un nombre y contrañesa para poder saber quien entra al sistema y hacer movimientos, cada usuario tiene ciertos niveles y privilegios a funciones dentro del sistema y permisos ya sea para crear nuevos registros, borrarlos, modificarlos o consultar en pantalla o imprimirlos:\n\n[img:k6no2pw1]http://s21.postimg.org/pfy0tknw7/sisa0010.png[/img:k6no2pw1]\n\nEn una base de datos guardo cada acción que hacen para luego consultar, sle llamo Auditoria a Usuarios:\n\nEjemplo y una imagen de como lo tengo en uno de mis sistemas..\n[code=fw:k6no2pw1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Function</span> Auditor<span style=\"color: #000000;\">(</span>cUser, cAcción,cTime,dDate<span style=\"color: #000000;\">)</span><br /> </div>[/code:k6no2pw1]\n[img:k6no2pw1]http://s21.postimg.org/5mlx0vaif/sisa0044.png[/img:k6no2pw1]\n\nEs lo más facil, lo liado es poner la función en cada accion o procedimiento dentro de tu aplicación..\n\nEspero te de una ayuda..",
"time": "17:05",
"topic": "Bitácora de Sistema",
"username": "cuatecatl82"
}
] |
Bitácora de Sistema
|
[
{
"date": "2015-08-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Saludos\n\nPodrian poner un ejemplo de auditar un usuario que realize una insercion de datos a una tabla?",
"time": "23:21",
"topic": "Bitácora de Sistema",
"username": "Compuin"
}
] |
Bitácora de Sistema
|
[
{
"date": "2015-08-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Muy bello trabajo,\n\nGracias por tu ayuda, ya me ha dado algunas ideas que combinaré con otras que ya tengo, MUUUUUCHAS GRACIAS <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\nSi alguien más quisiera poner su granito de harena lo agradeceré <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\nUn fuerte abrazo!!",
"time": "11:24",
"topic": "Bitácora de Sistema",
"username": "jose_murugosa"
}
] |
Bitácora de Sistema
|
[
{
"date": "2015-08-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Si estas usando algo diferente a MySQL, puedes hacer como lo que dice el colega, llamas una funcion al momento de agregar, modificar, elimina o hasta de imprimir datos, que en mi caso tambien la llamo bitacora de usuario y alli dependiendo de lo que haga, creo un registro que contiene..COD.USER, COD.DEL MODULO, COD.SI A.M.E.R.(Agrego,Modifico,Elimino,Reporte), FECHA y HORA. Si usas MySql, MAriaBD o algo parecido, puedes usar disparadores(trigger) en tus tablas que haga lo antes mencionado, espero te de algunas ideas, gracias, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->",
"time": "01:15",
"topic": "Bitácora de Sistema",
"username": "joseluisysturiz"
}
] |
Bitácora de Sistema
|
[
{
"date": "2015-08-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "José, mira si estos trozos de codigo ayudan en algo. Servirían para controlar accesos desde el menú principal.\n[code=fw:3vpms87v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">static</span> aAMB := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">//control niveles de acceso</span><br /><span style=\"color: #00C800;\">static</span> oWnd<br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"WINC\"</span><br /> oWnd:<span style=\"color: #000000;\">SetMenu</span><span style=\"color: #000000;\">(</span> oMenu:=BuildMenu<span style=\"color: #000000;\">(</span>oBar<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//MENUINFO 2</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">Function</span> BuildMenu<span style=\"color: #000000;\">(</span>oBar<span style=\"color: #000000;\">)</span><br />...<br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Comprobantes\"</span><br /> <span style=\"color: #0000ff;\">MENU</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Grabar \"</span> <span style=\"color: #0000ff;\">ACTION</span> Comprobante<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">WHEN</span> aAMB<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> <br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Modificar\"</span> <span style=\"color: #0000ff;\">ACTION</span> Comprobante<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">WHEN</span> aAMB<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> <br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Consultar\"</span> <span style=\"color: #0000ff;\">ACTION</span> ConsulDoc<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Anular/Borrar \"</span> <span style=\"color: #0000ff;\">ACTION</span> BorrAnulDoc<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">WHEN</span> aAMB<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> <br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br />/----------------------------------<br /><span style=\"color: #00C800;\">Function</span> lAutorizado<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> oDlg,oBt1,oBt2, oIco, oCbx, oPw, cItems:=<span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>,cVar, cPw, lOK:=.f., lAutoriza:=.f.<br /><span style=\"color: #00C800;\">LOCAL</span> cPath:=GetPvProfString<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"config\"</span>,<span style=\"color: #ff0000;\">\"DrivDirUsers\"</span>,<span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\\"</span>,cIniFile)<br /><br />SET DELETED ON<br /><br />dbUseArea(.t.,,cPath+\"</span>\\Usuarios<span style=\"color: #ff0000;\">\",\"</span>Usuarios<span style=\"color: #ff0000;\">\",.t.)<br />usuarios->(dbgotop())<br /><br />if Usuarios->(bof()) // Si no hay permisos, acceso es total por defecto.<br /> cUsuario:=\"</span> <span style=\"color: #ff0000;\">\"<br /> cNombUser:=\"</span>No users<span style=\"color: #ff0000;\">\"<br /> cPermiso:=\"</span>T<span style=\"color: #ff0000;\">\" <br /> aAMB:={.T.,.T.,.T.}<br /> usuarios->(dbCloseArea())<br /> return .t.<br />endif<br /><br />While Usuarios->(!eof())<br /> aadd(cItems,Usuarios->nombre)<br /> usuarios->(dbskip())<br />Enddo<br /><br />cPw:=space(len(usuarios->codigo))<br />cVar:=cItems[1]<br />DEFINE DIALOG oDLG RESOURCE \"</span>USUARIOS<span style=\"color: #ff0000;\">\" TRANSPARENT<br />REDEFINE ICON oIco ID 400 OF oDlg RESOURCE \"</span>USUARIOS<span style=\"color: #ff0000;\">\" <br />REDEFINE SAY ID 101 OF oDlg<br />REDEFINE SAY ID 102 OF oDlg<br />REDEFINE ComboBox oCbx VAR cVar ID 103 OF oDLG ITEMS cItems ON CHANGE (oCbx:GotFocus(),oCbx:Refresh())<br />REDEFINE GET oPw VAR cPw ID 202 OF oDLG<br />REDEFINE BUTTONBMP oBt1 ID 312 OF oDLG BITMAP \"</span>ACEPTAR<span style=\"color: #ff0000;\">\" TEXTRIGHT ACTION (lOK:=.t.,oDlg:End())<br />REDEFINE BUTTONBMP oBt2 ID 313 OF oDLG BITMAP \"</span>CANCELAR<span style=\"color: #ff0000;\">\" TEXTRIGHT ACTION (lOK:=.f.,oDlg:End())<br />ACTIVATE DIALOG oDlg CENTERED <br />if lOK<br /> usuarios->(dbgotop())<br /> locate for ALLTRIM(usuarios->codigo)+ALLTRIM(usuarios->nombre) = ALLTRIM(Encrypt(cPw,\"</span>oleaje<span style=\"color: #ff0000;\">\"))+ alltrim(cVar)<br /> IF found()<br /> if upper(Usuarios->Administ)=\"</span>T<span style=\"color: #ff0000;\">\" //acceso total<br /> lAutoriza:=.t.<br /> cUsuario:=usuarios->codigo<br /> cNombUser:=cVar<br /> cPermiso:=usuarios->administ<br /> elseif upper(Usuarios->Administ)<>\"</span>T<span style=\"color: #ff0000;\">\" .and. Usuarios->CONTAB=.t.<br /> lAutoriza:=.t.<br /> cUsuario:=usuarios->codigo<br /> cNombUser:=cVar<br /> cPermiso:=usuarios->administ<br /> elseif upper(Usuarios->Administ)<>\"</span>T<span style=\"color: #ff0000;\">\" .and. Usuarios->CONTAB !=.t.<br /> lAutoriza:=.f.<br /> MsgStop(\"</span>No tiene autorizacion para este modulo.<span style=\"color: #ff0000;\">\",\"</span>Alto<span style=\"color: #ff0000;\">\")<br /> endif<br /><br /> //[A]gregar,[M]odificar,[B]orrarAnular<br /> aAMB := {} //static para controlar nivel de acceso<br /> aadd(aAMB,usuarios->Grabar)<br /> aadd(aAMB,usuarios->Modifi)<br /> aadd(aAMB,usuarios->AnuBor)<br /><br /> ELSE<br /> MsgStop(\"</span>Acceso Denegado.<span style=\"color: #ff0000;\">\",\"</span>Alto<span style=\"color: #ff0000;\">\")<br /> ENDIF<br />endif<br />usuarios->(dbCloseArea())<br />return lAutoriza<br /></span></div>[/code:3vpms87v]\nSaludos.",
"time": "18:43",
"topic": "Bitácora de Sistema",
"username": "FranciscoA"
}
] |
Bitácora de Sistema
|
[
{
"date": "2015-08-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"FranciscoA\":26xql6ux]José, mira si estos trozos de codigo ayudan en algo. Servirían para controlar accesos desde el menú principal.\n[code=fw:26xql6ux]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">static</span> aAMB := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">//control niveles de acceso</span><br /><span style=\"color: #00C800;\">static</span> oWnd<br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"WINC\"</span><br /> oWnd:<span style=\"color: #000000;\">SetMenu</span><span style=\"color: #000000;\">(</span> oMenu:=BuildMenu<span style=\"color: #000000;\">(</span>oBar<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">//MENUINFO 2</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">Function</span> BuildMenu<span style=\"color: #000000;\">(</span>oBar<span style=\"color: #000000;\">)</span><br />...<br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Comprobantes\"</span><br /> <span style=\"color: #0000ff;\">MENU</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Grabar \"</span> <span style=\"color: #0000ff;\">ACTION</span> Comprobante<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">WHEN</span> aAMB<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> <br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Modificar\"</span> <span style=\"color: #0000ff;\">ACTION</span> Comprobante<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">WHEN</span> aAMB<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> <br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Consultar\"</span> <span style=\"color: #0000ff;\">ACTION</span> ConsulDoc<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Anular/Borrar \"</span> <span style=\"color: #0000ff;\">ACTION</span> BorrAnulDoc<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">WHEN</span> aAMB<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> <br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br />/----------------------------------<br /><span style=\"color: #00C800;\">Function</span> lAutorizado<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> oDlg,oBt1,oBt2, oIco, oCbx, oPw, cItems:=<span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>,cVar, cPw, lOK:=.f., lAutoriza:=.f.<br /><span style=\"color: #00C800;\">LOCAL</span> cPath:=GetPvProfString<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"config\"</span>,<span style=\"color: #ff0000;\">\"DrivDirUsers\"</span>,<span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\\"</span>,cIniFile)<br /><br />SET DELETED ON<br /><br />dbUseArea(.t.,,cPath+\"</span>\\Usuarios<span style=\"color: #ff0000;\">\",\"</span>Usuarios<span style=\"color: #ff0000;\">\",.t.)<br />usuarios->(dbgotop())<br /><br />if Usuarios->(bof()) // Si no hay permisos, acceso es total por defecto.<br /> cUsuario:=\"</span> <span style=\"color: #ff0000;\">\"<br /> cNombUser:=\"</span>No users<span style=\"color: #ff0000;\">\"<br /> cPermiso:=\"</span>T<span style=\"color: #ff0000;\">\" <br /> aAMB:={.T.,.T.,.T.}<br /> usuarios->(dbCloseArea())<br /> return .t.<br />endif<br /><br />While Usuarios->(!eof())<br /> aadd(cItems,Usuarios->nombre)<br /> usuarios->(dbskip())<br />Enddo<br /><br />cPw:=space(len(usuarios->codigo))<br />cVar:=cItems[1]<br />DEFINE DIALOG oDLG RESOURCE \"</span>USUARIOS<span style=\"color: #ff0000;\">\" TRANSPARENT<br />REDEFINE ICON oIco ID 400 OF oDlg RESOURCE \"</span>USUARIOS<span style=\"color: #ff0000;\">\" <br />REDEFINE SAY ID 101 OF oDlg<br />REDEFINE SAY ID 102 OF oDlg<br />REDEFINE ComboBox oCbx VAR cVar ID 103 OF oDLG ITEMS cItems ON CHANGE (oCbx:GotFocus(),oCbx:Refresh())<br />REDEFINE GET oPw VAR cPw ID 202 OF oDLG<br />REDEFINE BUTTONBMP oBt1 ID 312 OF oDLG BITMAP \"</span>ACEPTAR<span style=\"color: #ff0000;\">\" TEXTRIGHT ACTION (lOK:=.t.,oDlg:End())<br />REDEFINE BUTTONBMP oBt2 ID 313 OF oDLG BITMAP \"</span>CANCELAR<span style=\"color: #ff0000;\">\" TEXTRIGHT ACTION (lOK:=.f.,oDlg:End())<br />ACTIVATE DIALOG oDlg CENTERED <br />if lOK<br /> usuarios->(dbgotop())<br /> locate for ALLTRIM(usuarios->codigo)+ALLTRIM(usuarios->nombre) = ALLTRIM(Encrypt(cPw,\"</span>oleaje<span style=\"color: #ff0000;\">\"))+ alltrim(cVar)<br /> IF found()<br /> if upper(Usuarios->Administ)=\"</span>T<span style=\"color: #ff0000;\">\" //acceso total<br /> lAutoriza:=.t.<br /> cUsuario:=usuarios->codigo<br /> cNombUser:=cVar<br /> cPermiso:=usuarios->administ<br /> elseif upper(Usuarios->Administ)<>\"</span>T<span style=\"color: #ff0000;\">\" .and. Usuarios->CONTAB=.t.<br /> lAutoriza:=.t.<br /> cUsuario:=usuarios->codigo<br /> cNombUser:=cVar<br /> cPermiso:=usuarios->administ<br /> elseif upper(Usuarios->Administ)<>\"</span>T<span style=\"color: #ff0000;\">\" .and. Usuarios->CONTAB !=.t.<br /> lAutoriza:=.f.<br /> MsgStop(\"</span>No tiene autorizacion para este modulo.<span style=\"color: #ff0000;\">\",\"</span>Alto<span style=\"color: #ff0000;\">\")<br /> endif<br /><br /> //[A]gregar,[M]odificar,[B]orrarAnular<br /> aAMB := {} //static para controlar nivel de acceso<br /> aadd(aAMB,usuarios->Grabar)<br /> aadd(aAMB,usuarios->Modifi)<br /> aadd(aAMB,usuarios->AnuBor)<br /><br /> ELSE<br /> MsgStop(\"</span>Acceso Denegado.<span style=\"color: #ff0000;\">\",\"</span>Alto<span style=\"color: #ff0000;\">\")<br /> ENDIF<br />endif<br />usuarios->(dbCloseArea())<br />return lAutoriza<br /></span></div>[/code:26xql6ux]\nSaludos.[/quote:26xql6ux]\n\nFrancisco, aprovechando lo que publicas, por casualidad tendras la creacion del MENU pero dinamicamente, es decir, dependiendo del nivel del usuario, entonces se agreguen unas opciones y otras no, estas ya creadas en una TABLA o DBF..? gracias, saludos..\n\nEn relacion a lo que necesita el colega, es guardar las acciones del usuario durante su estadia en el sistema, algo como un diario, lo que le llamamos..BITACORA DE USUARIO...",
"time": "20:35",
"topic": "Bitácora de Sistema",
"username": "joseluisysturiz"
}
] |
Bitácora de Sistema
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.