messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2012-06-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Mr. Rao,\nI can't find out without changing the source code how to do this.\nI mean to enter a new text which is not inside the list.\nBest regards,\nOtto",
"time": "20:20",
"topic": "Combometro",
"username": "Otto"
}
] | Combometro |
[
{
"date": "2012-07-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Antonio,\nIs there another solution without changing the source of combom.prg?\nBest regards,\nOtto\n\n\n[quote:37wtwd6n]\nI can't find out without changing the source code how to do this.\nI mean to enter a new text which is not inside the list.\n[/quote:37wtwd6n]",
"time": "09:50",
"topic": "Combometro",
"username": "Otto"
}
] | Combometro |
[
{
"date": "2012-09-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Any news?\nBest regards,\nOtto",
"time": "09:41",
"topic": "Combometro",
"username": "Otto"
}
] | Combometro |
[
{
"date": "2012-09-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Antonio,\ndoes Fivewin provide in near future this features?\nThanks in advance\nOtto",
"time": "00:09",
"topic": "Combometro",
"username": "Otto"
}
] | Combometro |
[
{
"date": "2012-10-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Antonio,\ndo you think you can provide this Feature soon?\nPlease let me know. Otherwise I search for a workaround.\nBest regards,\nOtto",
"time": "15:49",
"topic": "Combometro",
"username": "Otto"
}
] | Combometro |
[
{
"date": "2012-10-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "It seems that beside me no one is using ComboMetro.\nFor my purpose I made a workaround: I create a comboMetro a get and a button\nWith hide, enable, disable and some changes in source I have now the same behavior as comboBox drop down but with metro like style.\n\nBest regards,\nOtto",
"time": "18:56",
"topic": "Combometro",
"username": "Otto"
}
] | Combometro |
[
{
"date": "2008-12-23",
"forum": "FiveWin para Pocket PC",
"text": "Buenos días foro, tengo un problema con combos desde código incrustado en un dialogo. El único ejemplo que hay en samples es combos.prg pero faltaba el combos.ch, he cogido un combos.ch que tenía por ahi con esta estructura:\r\n\r\n[code:2asu04fg]\n#define ID_SIMPLE 110\n#define ID_DROPDOWN 120\n#define ID_DROPDOWNLIST 130\n#define ID_SELECTION 140\n[/code:2asu04fg]\r\n\r\nsuponiendo que esto está bien, cuando compilo el combos.prg, los elementos de los combos NO me aparecen aunque si los selecciono si cambian.\r\n\r\nReitero si me podeis poner un ejemplo manejando combos en dialogos, pero NO desde recursos.\r\n\r\nMuchas Gracias a todos.",
"time": "10:58",
"topic": "Combos FWPPC 8.10",
"username": "Mike Serra"
}
] | Combos FWPPC 8.10 |
[
{
"date": "2008-12-23",
"forum": "FiveWin para Pocket PC",
"text": "Mike,\r\n\r\nAqui tienes un ejemplo:\r\n[code:3r3xpzyq]\n#include \"FWCE.ch\"\n\nfunction Main()\n\n local oDlg, cValue\n\n DEFINE DIALOG oDlg TITLE \"Combos\" ;\n SIZE 200, 100\n\n @ 1, 1 COMBOBOX cValue ITEMS { \"One\", \"Two\", \"Three\" } OF oDlg\n\n ACTIVATE DIALOG oDlg CENTERED\n\nreturn nil\n[/code:3r3xpzyq]",
"time": "12:25",
"topic": "Combos FWPPC 8.10",
"username": "Antonio Linares"
}
] | Combos FWPPC 8.10 |
[
{
"date": "2008-12-23",
"forum": "FiveWin para Pocket PC",
"text": "Ups! <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \r\n\r\nMe sale exactamente igual que en el ejemplo. Me pinta el combo se despliega pero está vacío\r\n\r\nEstoy compilando con FWPPC 8.10, este es mi buildce.bat\r\n\r\n[code:1j8732yz]\n@ECHO OFF\nCLS\nECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\nECHO ³ FiveWin for Pocket PC - October 2008 Harbour development power ³Ü\nECHO ³ (c) FiveTech, 1993-2008 for Microsoft Windows Pocket PC ³Û\nECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ\nECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß\n\nif A%1 == A GOTO :SINTAX\nif NOT EXIST %1.prg GOTO :NOEXIST\n\nECHO Compiling...\n\nIF \"%FWDIR%\" == \"\" set FWDIR=\"c:\\software\\fwppc810\\fwppc\"\n\nset hdir=c:\\software\\fwppc810\\harbour_ce\nset hdirc=%hdir%\\bin\nset hdirl=%hdir%\\lib\nset fwppc=c:\\software\\fwppc810\\fwppc\nset vcdir=c:\\software\\fwppc810\\vce\nset include=%vcdir%\\include\\arm;%hdir%\\include;%include%\nset lib=%vcdir%\\lib;%hdir%\\lib;%lib%\nset emulator_shared_folder=c:\\pocketpc\n\n%hdirc%\\harbour %1 /n /i..\\include;%hdir%\\include /p %2 %3 > clip.log\nIF ERRORLEVEL 1 GOTO COMPILEERROR\n@type clip.log\n\n%vcdir%\\bin\\clarm -W3 -c /DARM /DUNICODE /I%hdir%\\include /I%fwppc%\\include %1.c\n:ENDCOMPILE\n\nIF EXIST %1.rc %vcdir%\\bin\\rc -r -d_CE %1\n\necho %1.obj > msvc.tmp\n\necho %fwppc%\\lib\\FiveCE.lib %fwppc%\\lib\\FiveCEC.lib >> msvc.tmp\necho %hdirl%\\hbrtl.lib >> msvc.tmp\necho %hdirl%\\hbvm.lib >> msvc.tmp\necho %hdirl%\\gtgui.lib >> msvc.tmp\necho %hdirl%\\hblang.lib >> msvc.tmp\necho %hdirl%\\hbmacro.lib >> msvc.tmp\necho %hdirl%\\hbrdd.lib >> msvc.tmp\necho %hdirl%\\rddntx.lib >> msvc.tmp\necho %hdirl%\\rddcdx.lib >> msvc.tmp\necho %hdirl%\\rddfpt.lib >> msvc.tmp\necho %hdirl%\\hbsix.lib >> msvc.tmp\necho %hdirl%\\hbdebug.lib >> msvc.tmp\necho %hdirl%\\hbcommon.lib >> msvc.tmp\necho %hdirl%\\hbpp.lib >> msvc.tmp\necho %hdirl%\\hbcpage.lib >> msvc.tmp\necho %hdirl%\\hbw32.lib >> msvc.tmp\nrem echo %hdirl%\\tip.lib >> msvc.tmp\necho %hdirl%\\hbpcre.lib >> msvc.tmp\n\necho %vcdir%\\lib\\arm\\coredll.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\corelibc.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\aygshell.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\ws2.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\mfcce400.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\ole32.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\oleaut32.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\olece400.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\uuid.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\ceshell.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\commctrl.lib >> msvc.tmp\necho %vcdir%\\lib\\arm\\wininet.lib >> msvc.tmp\n\nIF EXIST %1.res echo %1.res >> msvc.tmp\n\n%vcdir%\\bin\\link @msvc.tmp /nologo /SUBSYSTEM:WINDOWSCE,4.20 /MACHINE:ARM /ARMPADCODE:NO\n\nIF ERRORLEVEL 1 GOTO LINKERROR\nECHO * Application successfully built *\ncopy %1.exe %emulator_shared_folder%\ncecopy %1.exe dev:\\samples\nGOTO EXIT\nECHO\n\nrem delete temporary files\n@del %1.c\n@del %1.obj\n@del %1.ppo\n@del msvc.tmp\n\n:COMPILEERROR\n@type clip.log\nECHO * Compile errors *\nGOTO EXIT\n\n:LINKERROR\nECHO * Linking errors *\nGOTO EXIT\n\n:SINTAX\nECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG\nECHO {-- Don't specify .PRG extension\nGOTO EXIT\n[/code:1j8732yz]\r\n\r\n¿Que puede ser?\r\n\r\nMuchas Gracias",
"time": "13:11",
"topic": "Combos FWPPC 8.10",
"username": "Mike Serra"
}
] | Combos FWPPC 8.10 |
[
{
"date": "2008-12-23",
"forum": "FiveWin para Pocket PC",
"text": "Mike,\r\n\r\nAñade esta clase entera al final de mi ejemplo y vuelve a construirlo, gracias\r\n\r\ncombobox.prg fwppc\r\n[code:rar4bpnn]\n// FWPPC Class TComboBox (C) FiveTech Software 2005\n\n#include \"FiveWin.ch\"\n#include \"Constant.ch\"\n\n#define GWL_STYLE -16\n\n#define COMBO_BASE 0x140\n\n#define CB_ADDSTRING ( COMBO_BASE + 3 )\n#define CB_DELETESTRING ( COMBO_BASE + 4 )\n#define CB_GETCURSEL ( COMBO_BASE + 7 )\n#define CB_INSERTSTRING ( COMBO_BASE + 10 )\n#define CB_RESETCONTENT ( COMBO_BASE + 11 )\n#define CB_FINDSTRING ( COMBO_BASE + 12 )\n#define CB_SETCURSEL ( COMBO_BASE + 14 )\n#define CB_SHOWDROPDOWN ( COMBO_BASE + 15 )\n#define CB_GETDROPPEDSTATE ( COMBO_BASE + 23 )\n#define CB_ERR -1\n\n#define CB_SETMINVISIBLE 5889 // 0x1701\n#define CB_GETMINVISIBLE 5890 // 0x1702\n\n#define SYS_COLOR_INDEX_FLAG 0x40000000\n\n#define COLOR_WINDOW nOr( 5, SYS_COLOR_INDEX_FLAG )\n#define COLOR_WINDOWTEXT nOr( 8, SYS_COLOR_INDEX_FLAG )\n\n#define MB_ICONEXCLAMATION 48 // 0x0030\n\n#define GW_CHILD 5\n#define GW_HWNDNEXT 2\n\n//----------------------------------------------------------------------------//\n\nCLASS TComboBox FROM TControl\n\n DATA aItems, aBitmaps\n DATA lOwnerDraw, nBmpHeight, nBmpWidth\n DATA nAt\n DATA bDrawItem, bCloseUp\n DATA cError AS String\n DATA oGet\n\n METHOD New( nRow, nCol, bSetGet, aItems, nWidth, nHeight, oWnd, nHelpId,;\n bChange, bValid, nClrText, nClrBack, lPixel, oFont,;\n cMsg, lUpdate, bWhen, lDesign, acBitmaps, bDrawItem, nStyle,;\n cPict, bEChange ) CONSTRUCTOR\n\n METHOD ReDefine( nId, bSetGet, aItems, oWnd, nHelpId, bValid, ;\n bChange, nClrText, nClrBack, cMsg, lUpdate,;\n bWhen, acBitmaps, bDrawItem, nStyle, cPict, bEChange ) CONSTRUCTOR\n\n METHOD Add( cItem, nAt )\n\n METHOD cToChar() INLINE Super:cToChar( \"COMBOBOX\" )\n\n METHOD Change()\n\n METHOD Close() INLINE ::SendMsg( CB_SHOWDROPDOWN, 0 )\n\n METHOD CloseUp() INLINE If( ::bCloseUp != nil, Eval( ::bCloseUp, Self ),)\n\n METHOD Default()\n\n METHOD DefControl( oControl )\n\n METHOD Del( nAt )\n\n METHOD Destroy()\n\n METHOD DrawItem( nIdCtl, nPStruct )\n\n METHOD FillMeasure( nPInfo ) INLINE LbxMeasure( nPInfo, ::nBmpHeight )\n\n METHOD FindString( cItem, nFrom ) INLINE ;\n nFrom := If( nFrom == nil, 0, nFrom ),;\n ::SendMsg( CB_FINDSTRING, nFrom, cItem ) + 1\n\n METHOD Find( cItem, nFrom ) INLINE ::FindString( cItem, nFrom ) != 0\n\n METHOD GetDlgCode( nLastKey )\n\n METHOD GetMinVisible() INLINE If( IsAppThemed(), ;\n ::SendMsg( CB_GETMINVISIBLE, 0, 0 ), 0 )\n\n METHOD Initiate( hDlg )\n\n METHOD Insert( cItem, nAt )\n\n METHOD KeyChar( nKey, nFlags )\n \n METHOD LostFocus()\n\n METHOD lValid()\n\n METHOD Modify( cItem, nAt )\n\n METHOD MouseMove( nRow, nCol, nKeyFlags )\n\n METHOD Open() INLINE ::SendMsg( CB_SHOWDROPDOWN, 1 )\n\n METHOD Refresh() INLINE ::Set( Eval( ::bSetGet ) ), Super:Refresh()\n\n METHOD Reset() INLINE Eval( ::bSetGet,;\n If( ValType( Eval( ::bSetGet ) ) == \"N\", 0, \"\" ) ),;\n ::nAt := 0, ::SendMsg( CB_RESETCONTENT ),;\n ::Change()\n\n METHOD Select( nItem ) INLINE ::nAt := nItem,;\n ::SendMsg( CB_SETCURSEL, Max( 0, nItem - 1 ), 0 )\n\n METHOD Set( cNewItem )\n\n METHOD SetBitmaps( acBitmaps )\n\n METHOD SetItems( aItems ) INLINE ::Reset(), ::aItems := aItems,;\n ::Default(), ::Change()\n\n // By default, 30 is the minimum number of visible items in XP Visual Themes\n #ifndef __CLIPPER__\n METHOD SetMinVisible( nItems ) INLINE ;\n If( IsAppThemed(), ( ::SendMsg( CB_SETMINVISIBLE, nItems, 0 ) == 1 ), .f. )\n #endif\n\n METHOD ShowToolTip()\n\n METHOD VarGet()\n METHOD State() INLINE ::SendMsg( CB_GETDROPPEDSTATE, 0 )\n METHOD IsClosed() INLINE ::State() == 0\n METHOD IsOpen() INLINE ::State() == 1\n\n METHOD LButtonDown() INLINE ::Open()\n\nENDCLASS\n\n//----------------------------------------------------------------------------//\n\nMETHOD New( nRow, nCol, bSetGet, aItems, nWidth, nHeight, oWnd, nHelpId,;\n bChange, bValid, nClrFore, nClrBack, lPixel, oFont,;\n cMsg, lUpdate, bWhen, lDesign, acBitmaps, bDrawItem, nStyle,;\n cPict, bEChange ) CLASS TComboBox\n\n if nClrFore == nil\n nClrBack := GetSysColor( COLOR_WINDOW )\n endif\n\n DEFAULT nRow := 0, nCol := 0, bSetGet := { || nil },;\n oWnd := GetWndDefault(),;\n oFont := oWnd:oFont,;\n aItems := {}, nWidth := 40, nHeight := 60,;\n nClrFore := GetSysColor( COLOR_WINDOWTEXT ),;\n lPixel := .f., lUpdate := .f., lDesign := .f.,;\n nStyle := CBS_DROPDOWNLIST\n\n ::cCaption = \"\"\n ::nTop = nRow * If( lPixel, 1, CMB_CHARPIX_H )\n ::nLeft = nCol * If( lPixel, 1, CMB_CHARPIX_W )\n ::nBottom = ::nTop + nHeight - 1\n ::nRight = ::nLeft + nWidth - 1\n ::nAt = 0\n ::aItems = aItems\n ::bChange = bChange\n ::bSetGet = bSetGet\n ::oWnd = oWnd\n ::oFont = oFont\n\n if acBitmaps != nil\n ::SetBitmaps( acBitmaps )\n else\n ::lOwnerDraw = .f.\n endif\n\n ::nStyle = nOR( If( nStyle == CBS_DROPDOWN, 0, LBS_NOTIFY ), WS_TABSTOP,;\n nStyle,;\n LBS_DISABLENOSCROLL, WS_CHILD, WS_VISIBLE, WS_BORDER,;\n WS_VSCROLL, If( lDesign, WS_CLIPSIBLINGS, 0 ),;\n If( ::lOwnerDraw, CBS_OWNERDRAWFIXED, 0 ) )\n\n ::nId = ::GetNewId()\n ::nHelpId = nHelpId\n ::bValid = bValid\n ::lDrag = lDesign\n ::lCaptured = .f.\n ::cMsg = cMsg\n ::lUpdate = lUpdate\n ::bWhen = bWhen\n ::bDrawItem = bDrawItem\n\n ::SetColor( nClrFore, nClrBack )\n\n if nStyle == CBS_DROPDOWN\n ::oGet := TGet():ReDefine( nil, ; // ID not used\n ::bSetGet, ; // bSETGET(uVar)\n Self, ; // oDlg\n ::nHelpID, ; // Help Context ID\n cPict, ; // Picture\n nil, ; // Valid is handled by the CBx\n ::nClrText,;\n ::nClrPane,;\n ::oFont, ; // <oFont>\n nil, ; // <oCursor>\n cMsg, ; // cMsg\n nil, ; // <.update.>\n nil, ; // <{uWhen}>\n bEChange, ; // {|nKey,nFlags,Self| <uEChange>}\n .F. ) // <.readonly.> )\n endif\n\n if ! Empty( oWnd:hWnd )\n ::Create( \"COMBOBOX\" )\n ::nHeight = nHeight\n ::nWidth = nWidth\n ::Default()\n if oFont != nil\n ::SetFont( oFont )\n endif\n oWnd:AddControl( Self )\n else\n oWnd:DefControl( Self )\n endif\n\n if ::oGet != nil\n ::oGet:hWnd = GetWindow( ::hWnd, GW_CHILD )\n ::oGet:Link()\n ::oGet:bLostFocus = ;\n {| hCtlFocus, nAt, cItem| cItem := GetWindowText( ::hWnd ), ;\n nAt := ::SendMsg( CB_FINDSTRING, 0, Trim( cItem )) + 1,;\n Eval( ::bSetGet, cItem ),;\n ::Select( nAt ),;\n SetWindowText( ::hWnd, cItem ),;\n If( ::bValid != nil .and. ;\n GetParent( hCtlFocus ) == GetParent( ::hWnd ),;\n If( ! Eval( ::bValid ),;\n PostMessage( ::hWnd, WM_SETFOCUS ),),) }\n endif\n\n if lDesign\n ::CheckDots()\n endif\n\nreturn Self\n\n//----------------------------------------------------------------------------//\n\nMETHOD ReDefine( nId, bSetGet, aItems, oWnd, nHelpId, bValid, ;\n bChange, nClrFore, nClrBack, cMsg, lUpdate, ;\n bWhen, acBitmaps, bDrawItem, nStyle, cPict, ;\n bEChange ) CLASS TComboBox\n\n if nClrFore == nil\n nClrBack := GetSysColor( COLOR_WINDOW )\n endif\n\n DEFAULT aItems := {},;\n nClrFore := GetSysColor( COLOR_WINDOWTEXT ),;\n lUpdate := .f., ;\n nStyle := CBS_DROPDOWNLIST\n\n ::nId = nId\n ::hWnd = 0\n ::aItems = aItems\n ::bChange = bChange\n ::bSetGet = bSetGet\n ::oWnd = oWnd\n ::nHelpId = nHelpId\n ::bValid = bValid\n ::nAt = 0\n ::lDrag = .f.\n ::lCaptured = .f.\n ::cMsg = cMsg\n ::lUpdate = lUpdate\n ::bWhen = bWhen\n ::bDrawItem = bDrawItem\n ::nStyle = nStyle\n\n if acBitmaps != nil\n ::SetBitmaps( acBitmaps )\n else\n ::lOwnerDraw = .f.\n endif\n\n ::SetColor( nClrFore, nClrBack )\n\n if nAnd( ::nStyle, CBS_DROPDOWNLIST ) == CBS_DROPDOWN\n ::oGet := TGet():ReDefine( nil, ; // ID not used\n ::bSetGet, ; // bSETGET(uVar)\n Self, ; // oDlg\n ::nHelpID, ; // Help Context ID\n cPict, ; // Picture\n nil, ; // Valid is handled by the CBx\n ::nClrText,;\n ::nClrPane,;\n ::oFont, ; // <oFont>\n nil, ; // <oCursor>\n cMsg, ; // cMsg\n nil, ; // <.update.>\n nil, ; // <{uWhen}>\n bEChange, ; // {|nKey,nFlags,Self| <uEChange>}\n .F. ) // <.readonly.> )\n endif\n\n oWnd:DefControl( Self )\n\nreturn Self\n\n//----------------------------------------------------------------------------//\n\nMETHOD Add( cItem, nAt ) CLASS TComboBox\n\n DEFAULT nAt := 0\n\n if nAt == 0\n AAdd( ::aItems, cItem )\n else\n ASize( ::aItems, Len( ::aItems ) + 1 )\n AIns( ::aItems, nAt )\n ::aItems[ nAt ] = cItem\n endif\n\n ::SendMsg( CB_ADDSTRING, nAt, FW_AnsiToWide( cItem ) )\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD Change() CLASS TComboBox\n\n local cItem := GetWindowText( ::hWnd ) // Current Value\n local nAt\n\n nAt = ::SendMsg( CB_GETCURSEL ) + 1\n\n if nAt == ::nAt .and. ! Empty( Eval( ::bSetGet ) )\n return nil\n endif\n\n ::nAt := nAt\n\n if ::nAt != 0 .and. ::nAt <= Len( ::aItems )\n if ValType( Eval( ::bSetGet ) ) == \"N\"\n Eval( ::bSetGet, ::nAt )\n else\n Eval( ::bSetGet, ::aItems[ ::nAt ] )\n endif\n endif\n\n if ::oGet != nil // Always not nil for dropdown\n ::oGet:VarPut( Eval( ::bSetGet ) ) // udate variable before calling bChange\n ::oGet:Refresh()\n endif\n\n if ::bChange != nil\n Eval( ::bChange, Self, cItem )\n endif\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD DefControl( oControl ) CLASS TComboBox\n\n if ::aControls == nil\n ::aControls = {}\n endif\n\n AAdd( ::AControls, oControl )\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD Set( cNewItem ) CLASS TComboBox\n\n local nAt\n\n if ValType( cNewItem ) == \"N\"\n nAt = cNewItem\n if nAt == 0\n nAt = 1\n endif\n else\n nAt = AScan( ::aItems,;\n { | cItem | Upper( AllTrim( cItem ) ) == ;\n Upper( AllTrim( cNewItem ) ) } )\n endif\n\n if ValType( cNewItem ) == \"N\" .or. nAt != 0\n ::Select( nAt )\n Eval( ::bSetGet, cNewItem )\n else\n cNewItem := cValToChar( cNewItem )\n Eval( ::bSetGet, cNewItem )\n SetWindowText( ::hWnd , cNewItem )\n endif\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD KeyChar( nKey, nFlags ) CLASS TComboBox\n\n local lAccept\n\n do case\n case nKey == VK_TAB .or. nKey == VK_RETURN\n if ::bChange != nil\n lAccept = Eval( ::bChange, nKey, nFlags, Self )\n if ValType( lAccept ) == \"L\" .and. lAccept\n ::oWnd:GoNextCtrl( ::hWnd )\n endif\n else\n ::oWnd:GoNextCtrl( ::hWnd )\n endif\n\n if nKey == VK_RETURN // Execute DEFPUSHBUTTON Action\n Super:KeyChar( nKey, nFlags )\n endif\n\n return 0\n\n otherwise\n return Super:KeyChar( nKey, nFlags )\n endcase\n \nreturn nil \n\n//----------------------------------------------------------------------------//\n\nMETHOD LostFocus() CLASS TComboBox\n\n local nAt := ::SendMsg( CB_GETCURSEL )\n\n Super:LostFocus()\n\n if nAt != CB_ERR\n ::nAt = nAt + 1\n if ValType( Eval( ::bSetGet ) ) == \"N\"\n Eval( ::bSetGet, nAt + 1 )\n else\n Eval( ::bSetGet, ::aItems[ nAt + 1 ] )\n endif\n else\n Eval( ::bSetGet, GetWindowText( ::hWnd ) )\n endif\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD Modify( cItem, nAt ) CLASS TComboBox\n\n DEFAULT nAt := 0\n\n if nAt != 0\n ::aItems[ nAt ] = cItem\n ::SendMsg( CB_DELETESTRING, nAt - 1 )\n ::SendMsg( CB_INSERTSTRING, nAt - 1, FW_AnsiToWide( cItem ) )\n endif\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD Insert( cItem, nAt ) CLASS TComboBox\n\n DEFAULT nAt := 0\n\n if nAt != 0\n ASize( ::aItems, Len( ::aItems ) + 1 )\n AIns( ::aItems, nAt )\n ::aItems[ nAt ] = cItem\n ::SendMsg( CB_INSERTSTRING, nAt - 1, FW_AnsiToWide( cItem ) )\n endif\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD Del( nAt ) CLASS TComboBox\n\n DEFAULT nAt := 0\n\n if nAt != 0\n ADel( ::aItems, nAt )\n ASize( ::aItems, Len( ::aItems ) - 1 )\n ::SendMsg( CB_DELETESTRING, nAt - 1 )\n endif\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD GetDlgCode( nLastKey ) CLASS TComboBox\n\n if Len( ::oWnd:aControls ) == 1\n return DLGC_WANTALLKEYS\n endif\n\n ::oWnd:nLastKey = nLastKey\n\n return DLGC_WANTALLKEYS\n\n//----------------------------------------------------------------------------//\n\nMETHOD Initiate( hDlg ) CLASS TComboBox\n\n Super:Initiate( hDlg )\n\n ::Default()\n\n if ::oGet != nil\n ::oGet:hWnd = GetWindow( ::hWnd, GW_CHILD )\n ::oGet:Link()\n\n ::oGet:bLostFocus = ;\n {| hCtlFocus, nAt, cItem| cItem := GetWindowText( ::hWnd ), ;\n nAt := ::SendMsg( CB_FINDSTRING, 0, Trim( cItem )) + 1,;\n Eval( ::bSetGet, cItem ),;\n ::Select( nAt ),;\n SetWindowText( ::hWnd, cItem ),;\n If( ::bValid != nil .and. ;\n GetParent( hCtlFocus ) == GetParent( ::hWnd ),;\n If( ! Eval( ::bValid ),;\n PostMessage( ::hWnd, WM_SETFOCUS ),),) }\n endif\n\n ::Refresh()\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD Default() CLASS TComboBox\n\n local cStart := Eval( ::bSetGet )\n\n if ! Empty( ::hWnd ) .and. ::nStyle == CBS_DROPDOWNLIST\n ::nStyle := GetWindowLong( ::hWnd, GWL_STYLE )\n endif\n\n if Empty( cStart )\n Eval( ::bSetGet, If( Len( ::aItems ) > 0, ::aItems[ 1 ], \"\" ) )\n cStart = If( Len( ::aItems ) > 0, ::aItems[ 1 ], \"\" )\n endif\n\n AEval( ::aItems, { | cItem, nAt | ::SendMsg( CB_ADDSTRING, nAt, FW_AnsiToWide( cItem ) ) } )\n\n if ValType( cStart ) != \"N\"\n ::nAt = AScan( ::aItems, { | cItem | Upper( AllTrim( cItem ) ) == ;\n Upper( AllTrim( cStart ) ) } )\n else\n ::nAt = cStart\n endif\n\n ::nAt = If( ::nAt > 0, ::nAt, 1 )\n\n if cStart == nil\n ::Select( ::nAt )\n else\n ::Set( cStart )\n endif\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD MouseMove( nRow, nCol, nKeyFlags ) CLASS TComboBox\n\n local nResult := Super:MouseMove( nRow, nCol, nKeyFlags )\n\nreturn If( ::lDrag, nResult, nil ) // We want standard behavior !!!\n\n//----------------------------------------------------------------------------//\n\nMETHOD SetBitmaps( acBitmaps ) CLASS TComboBox\n\n local n\n\n ::lOwnerDraw = .t.\n\n if acBitmaps != nil\n ::aBitmaps = Array( Len( acBitmaps ) )\n for n = 1 to Len( acBitmaps )\n if File( acBitmaps[ n ] )\n ::aBitmaps[ n ] = ReadBitmap( 0, acBitmaps[ n ] )\n else\n ::aBitmaps[ n ] = LoadBitmap( GetResources(), acBitmaps[ n ] )\n endif\n next\n ::nBmpHeight = nBmpHeight( ::aBitmaps[ 1 ] )\n ::nBmpWidth = nBmpWidth( ::aBitmaps[ 1 ] )\n endif\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD Destroy() CLASS TComboBox\n\n local n\n\n if ::aBitmaps != nil\n for n = 1 to Len( ::aBitmaps )\n DeleteObject( ::aBitmaps[ n ] )\n next\n endif\n\n if ::oGet != nil\n ::oGet:End()\n endif\n\nreturn Super:Destroy()\n\n//----------------------------------------------------------------------------//\n\nMETHOD DrawItem( nIdCtl, nPStruct ) CLASS TComboBox\n\nreturn LbxDrawItem( nPStruct, ::aBitmaps, ::aItems, ::nBmpWidth, ::bDrawItem )\n\n//----------------------------------------------------------------------------//\n\nMETHOD VarGet() CLASS TComboBox\n\n local cRet, nAt := ::SendMsg( CB_GETCURSEL )\n\n if nAt != CB_ERR\n ::nAt = nAt + 1\n cRet := ::aItems[ nAt + 1 ]\n else\n cRet := GetWindowText( ::hWnd )\n endif\n\nreturn cRet\n\n//----------------------------------------------------------------------------//\n\nMETHOD lValid() CLASS TComboBox\n\n local lRet := .t.\n\n if ValType( ::bValid ) == \"B\"\n lRet = Eval( ::bValid, ::oGet )\n endif\n\nreturn lRet\n\n//----------------------------------------------------------------------------//\n\nMETHOD ShowToolTip() CLASS TComboBox\n\n local nOldBottom\n\n nOldBottom = ::nBottom\n ::nBottom = ::nTop + GetTextHeight( ::hWnd ) + 8\n\n Super:ShowToolTip()\n ::nBottom = nOldBottom\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nstatic function IsAppThemed()\n\nreturn .f.\n\n//----------------------------------------------------------------------------//\n[/code:rar4bpnn]",
"time": "16:52",
"topic": "Combos FWPPC 8.10",
"username": "Antonio Linares"
}
] | Combos FWPPC 8.10 |
[
{
"date": "2008-12-23",
"forum": "FiveWin para Pocket PC",
"text": "Buenas Tardes Antonio, \r\n\r\nLo he incluido y al final lo he dejado asi:\r\n\r\n[code:28a7nwsu]\n\n#include \"FWCE.ch\" \n#include \"FiveWin.ch\" \n#include \"Constant.ch\" \n\n#define GWL_STYLE -16 \n\n#define COMBO_BASE 0x140 \n\n#define CB_ADDSTRING ( COMBO_BASE + 3 ) \n#define CB_DELETESTRING ( COMBO_BASE + 4 ) \n#define CB_GETCURSEL ( COMBO_BASE + 7 ) \n#define CB_INSERTSTRING ( COMBO_BASE + 10 ) \n#define CB_RESETCONTENT ( COMBO_BASE + 11 ) \n#define CB_FINDSTRING ( COMBO_BASE + 12 ) \n#define CB_SETCURSEL ( COMBO_BASE + 14 ) \n#define CB_SHOWDROPDOWN ( COMBO_BASE + 15 ) \n#define CB_GETDROPPEDSTATE ( COMBO_BASE + 23 ) \n#define CB_ERR -1 \n\n#define CB_SETMINVISIBLE 5889 // 0x1701 \n#define CB_GETMINVISIBLE 5890 // 0x1702 \n\n#define SYS_COLOR_INDEX_FLAG 0x40000000 \n\n#define COLOR_WINDOW nOr( 5, SYS_COLOR_INDEX_FLAG ) \n#define COLOR_WINDOWTEXT nOr( 8, SYS_COLOR_INDEX_FLAG ) \n\n#define MB_ICONEXCLAMATION 48 // 0x0030 \n\n#define GW_CHILD 5 \n#define GW_HWNDNEXT 2 \n\n//----------------------------------------------------------------------------// \n\n\n\nfunction Main() \n local oDlg, cValue :=\"One\"\n DEFINE DIALOG oDlg TITLE \"Combos\" SIZE 200, 100 \n @ 1, 1 COMBOBOX cValue ITEMS { \"One\", \"Two\", \"Three\" } OF oDlg \n ACTIVATE DIALOG oDlg CENTERED \nreturn nil \n\n\n\nCLASS TComboBox FROM TControl \n\n DATA aItems, aBitmaps \n DATA lOwnerDraw, nBmpHeight, nBmpWidth \n DATA nAt \n DATA bDrawItem, bCloseUp \n DATA cError AS String \n DATA oGet \n\n METHOD New( nRow, nCol, bSetGet, aItems, nWidth, nHeight, oWnd, nHelpId,; \n bChange, bValid, nClrText, nClrBack, lPixel, oFont,; \n cMsg, lUpdate, bWhen, lDesign, acBitmaps, bDrawItem, nStyle,; \n cPict, bEChange ) CONSTRUCTOR \n\n METHOD ReDefine( nId, bSetGet, aItems, oWnd, nHelpId, bValid, ; \n bChange, nClrText, nClrBack, cMsg, lUpdate,; \n bWhen, acBitmaps, bDrawItem, nStyle, cPict, bEChange ) CONSTRUCTOR \n\n METHOD Add( cItem, nAt ) \n\n METHOD cToChar() INLINE Super:cToChar( \"COMBOBOX\" ) \n\n METHOD Change() \n\n METHOD Close() INLINE ::SendMsg( CB_SHOWDROPDOWN, 0 ) \n\n METHOD CloseUp() INLINE If( ::bCloseUp != nil, Eval( ::bCloseUp, Self ),) \n\n METHOD Default() \n\n METHOD DefControl( oControl ) \n\n METHOD Del( nAt ) \n\n METHOD Destroy() \n\n METHOD DrawItem( nIdCtl, nPStruct ) \n\n METHOD FillMeasure( nPInfo ) INLINE LbxMeasure( nPInfo, ::nBmpHeight ) \n\n METHOD FindString( cItem, nFrom ) INLINE ; \n nFrom := If( nFrom == nil, 0, nFrom ),; \n ::SendMsg( CB_FINDSTRING, nFrom, cItem ) + 1 \n\n METHOD Find( cItem, nFrom ) INLINE ::FindString( cItem, nFrom ) != 0 \n\n METHOD GetDlgCode( nLastKey ) \n\n METHOD GetMinVisible() INLINE If( IsAppThemed(), ; \n ::SendMsg( CB_GETMINVISIBLE, 0, 0 ), 0 ) \n\n METHOD Initiate( hDlg ) \n\n METHOD Insert( cItem, nAt ) \n\n METHOD KeyChar( nKey, nFlags ) \n \n METHOD LostFocus() \n\n METHOD lValid() \n\n METHOD Modify( cItem, nAt ) \n\n METHOD MouseMove( nRow, nCol, nKeyFlags ) \n\n METHOD Open() INLINE ::SendMsg( CB_SHOWDROPDOWN, 1 ) \n\n METHOD Refresh() INLINE ::Set( Eval( ::bSetGet ) ), Super:Refresh() \n\n METHOD Reset() INLINE Eval( ::bSetGet,; \n If( ValType( Eval( ::bSetGet ) ) == \"N\", 0, \"\" ) ),; \n ::nAt := 0, ::SendMsg( CB_RESETCONTENT ),; \n ::Change() \n\n METHOD Select( nItem ) INLINE ::nAt := nItem,; \n ::SendMsg( CB_SETCURSEL, Max( 0, nItem - 1 ), 0 ) \n\n METHOD Set( cNewItem ) \n\n METHOD SetBitmaps( acBitmaps ) \n\n METHOD SetItems( aItems ) INLINE ::Reset(), ::aItems := aItems,; \n ::Default(), ::Change() \n\n // By default, 30 is the minimum number of visible items in XP Visual Themes \n #ifndef __CLIPPER__ \n METHOD SetMinVisible( nItems ) INLINE ; \n If( IsAppThemed(), ( ::SendMsg( CB_SETMINVISIBLE, nItems, 0 ) == 1 ), .f. ) \n #endif \n\n METHOD ShowToolTip() \n\n METHOD VarGet() \n METHOD State() INLINE ::SendMsg( CB_GETDROPPEDSTATE, 0 ) \n METHOD IsClosed() INLINE ::State() == 0 \n METHOD IsOpen() INLINE ::State() == 1 \n\n METHOD LButtonDown() INLINE ::Open() \n\nENDCLASS \n\n//----------------------------------------------------------------------------// \n\nMETHOD New( nRow, nCol, bSetGet, aItems, nWidth, nHeight, oWnd, nHelpId,; \n bChange, bValid, nClrFore, nClrBack, lPixel, oFont,; \n cMsg, lUpdate, bWhen, lDesign, acBitmaps, bDrawItem, nStyle,; \n cPict, bEChange ) CLASS TComboBox \n\n if nClrFore == nil \n nClrBack := GetSysColor( COLOR_WINDOW ) \n endif \n\n DEFAULT nRow := 0, nCol := 0, bSetGet := { || nil },; \n oWnd := GetWndDefault(),; \n oFont := oWnd:oFont,; \n aItems := {}, nWidth := 40, nHeight := 60,; \n nClrFore := GetSysColor( COLOR_WINDOWTEXT ),; \n lPixel := .f., lUpdate := .f., lDesign := .f.,; \n nStyle := CBS_DROPDOWNLIST \n\n ::cCaption = \"\" \n ::nTop = nRow * If( lPixel, 1, CMB_CHARPIX_H ) \n ::nLeft = nCol * If( lPixel, 1, CMB_CHARPIX_W ) \n ::nBottom = ::nTop + nHeight - 1 \n ::nRight = ::nLeft + nWidth - 1 \n ::nAt = 0 \n ::aItems = aItems \n ::bChange = bChange \n ::bSetGet = bSetGet \n ::oWnd = oWnd \n ::oFont = oFont \n\n if acBitmaps != nil \n ::SetBitmaps( acBitmaps ) \n else \n ::lOwnerDraw = .f. \n endif \n\n ::nStyle = nOR( If( nStyle == CBS_DROPDOWN, 0, LBS_NOTIFY ), WS_TABSTOP,; \n nStyle,; \n LBS_DISABLENOSCROLL, WS_CHILD, WS_VISIBLE, WS_BORDER,; \n WS_VSCROLL, If( lDesign, WS_CLIPSIBLINGS, 0 ),; \n If( ::lOwnerDraw, CBS_OWNERDRAWFIXED, 0 ) ) \n\n ::nId = ::GetNewId() \n ::nHelpId = nHelpId \n ::bValid = bValid \n ::lDrag = lDesign \n ::lCaptured = .f. \n ::cMsg = cMsg \n ::lUpdate = lUpdate \n ::bWhen = bWhen \n ::bDrawItem = bDrawItem \n\n ::SetColor( nClrFore, nClrBack ) \n\n if nStyle == CBS_DROPDOWN \n ::oGet := TGet():ReDefine( nil, ; // ID not used \n ::bSetGet, ; // bSETGET(uVar) \n Self, ; // oDlg \n ::nHelpID, ; // Help Context ID \n cPict, ; // Picture \n nil, ; // Valid is handled by the CBx \n ::nClrText,; \n ::nClrPane,; \n ::oFont, ; // <oFont> \n nil, ; // <oCursor> \n cMsg, ; // cMsg \n nil, ; // <.update.> \n nil, ; // <{uWhen}> \n bEChange, ; // {|nKey,nFlags,Self| <uEChange>} \n .F. ) // <.readonly.> ) \n endif \n\n if ! Empty( oWnd:hWnd ) \n ::Create( \"COMBOBOX\" ) \n ::nHeight = nHeight \n ::nWidth = nWidth \n ::Default() \n if oFont != nil \n ::SetFont( oFont ) \n endif \n oWnd:AddControl( Self ) \n else \n oWnd:DefControl( Self ) \n endif \n\n if ::oGet != nil \n ::oGet:hWnd = GetWindow( ::hWnd, GW_CHILD ) \n ::oGet:Link() \n ::oGet:bLostFocus = ; \n {| hCtlFocus, nAt, cItem| cItem := GetWindowText( ::hWnd ), ; \n nAt := ::SendMsg( CB_FINDSTRING, 0, Trim( cItem )) + 1,; \n Eval( ::bSetGet, cItem ),; \n ::Select( nAt ),; \n SetWindowText( ::hWnd, cItem ),; \n If( ::bValid != nil .and. ; \n GetParent( hCtlFocus ) == GetParent( ::hWnd ),; \n If( ! Eval( ::bValid ),; \n PostMessage( ::hWnd, WM_SETFOCUS ),),) } \n endif \n\n if lDesign \n ::CheckDots() \n endif \n\nreturn Self \n\n//----------------------------------------------------------------------------// \n\nMETHOD ReDefine( nId, bSetGet, aItems, oWnd, nHelpId, bValid, ; \n bChange, nClrFore, nClrBack, cMsg, lUpdate, ; \n bWhen, acBitmaps, bDrawItem, nStyle, cPict, ; \n bEChange ) CLASS TComboBox \n\n if nClrFore == nil \n nClrBack := GetSysColor( COLOR_WINDOW ) \n endif \n\n DEFAULT aItems := {},; \n nClrFore := GetSysColor( COLOR_WINDOWTEXT ),; \n lUpdate := .f., ; \n nStyle := CBS_DROPDOWNLIST \n\n ::nId = nId \n ::hWnd = 0 \n ::aItems = aItems \n ::bChange = bChange \n ::bSetGet = bSetGet \n ::oWnd = oWnd \n ::nHelpId = nHelpId \n ::bValid = bValid \n ::nAt = 0 \n ::lDrag = .f. \n ::lCaptured = .f. \n ::cMsg = cMsg \n ::lUpdate = lUpdate \n ::bWhen = bWhen \n ::bDrawItem = bDrawItem \n ::nStyle = nStyle \n\n if acBitmaps != nil \n ::SetBitmaps( acBitmaps ) \n else \n ::lOwnerDraw = .f. \n endif \n\n ::SetColor( nClrFore, nClrBack ) \n\n if nAnd( ::nStyle, CBS_DROPDOWNLIST ) == CBS_DROPDOWN \n ::oGet := TGet():ReDefine( nil, ; // ID not used \n ::bSetGet, ; // bSETGET(uVar) \n Self, ; // oDlg \n ::nHelpID, ; // Help Context ID \n cPict, ; // Picture \n nil, ; // Valid is handled by the CBx \n ::nClrText,; \n ::nClrPane,; \n ::oFont, ; // <oFont> \n nil, ; // <oCursor> \n cMsg, ; // cMsg \n nil, ; // <.update.> \n nil, ; // <{uWhen}> \n bEChange, ; // {|nKey,nFlags,Self| <uEChange>} \n .F. ) // <.readonly.> ) \n endif \n\n oWnd:DefControl( Self ) \n\nreturn Self \n\n//----------------------------------------------------------------------------// \n\nMETHOD Add( cItem, nAt ) CLASS TComboBox \n\n DEFAULT nAt := 0 \n\n if nAt == 0 \n AAdd( ::aItems, cItem ) \n else \n ASize( ::aItems, Len( ::aItems ) + 1 ) \n AIns( ::aItems, nAt ) \n ::aItems[ nAt ] = cItem \n endif \n\n ::SendMsg( CB_ADDSTRING, nAt, Ansitowide( cItem ) ) \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD Change() CLASS TComboBox \n\n local cItem := GetWindowText( ::hWnd ) // Current Value \n local nAt \n\n nAt = ::SendMsg( CB_GETCURSEL ) + 1 \n\n if nAt == ::nAt .and. ! Empty( Eval( ::bSetGet ) ) \n return nil \n endif \n\n ::nAt := nAt \n\n if ::nAt != 0 .and. ::nAt <= Len( ::aItems ) \n if ValType( Eval( ::bSetGet ) ) == \"N\" \n Eval( ::bSetGet, ::nAt ) \n else \n Eval( ::bSetGet, ::aItems[ ::nAt ] ) \n endif \n endif \n\n if ::oGet != nil // Always not nil for dropdown \n ::oGet:VarPut( Eval( ::bSetGet ) ) // udate variable before calling bChange \n ::oGet:Refresh() \n endif \n\n if ::bChange != nil \n Eval( ::bChange, Self, cItem ) \n endif \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD DefControl( oControl ) CLASS TComboBox \n\n if ::aControls == nil \n ::aControls = {} \n endif \n\n AAdd( ::AControls, oControl ) \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD Set( cNewItem ) CLASS TComboBox \n\n local nAt \n\n if ValType( cNewItem ) == \"N\" \n nAt = cNewItem \n if nAt == 0 \n nAt = 1 \n endif \n else \n nAt = AScan( ::aItems,; \n { | cItem | Upper( AllTrim( cItem ) ) == ; \n Upper( AllTrim( cNewItem ) ) } ) \n endif \n\n if ValType( cNewItem ) == \"N\" .or. nAt != 0 \n ::Select( nAt ) \n Eval( ::bSetGet, cNewItem ) \n else \n cNewItem := cValToChar( cNewItem ) \n Eval( ::bSetGet, cNewItem ) \n SetWindowText( ::hWnd , cNewItem ) \n endif \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD KeyChar( nKey, nFlags ) CLASS TComboBox \n\n local lAccept \n\n do case \n case nKey == VK_TAB .or. nKey == VK_RETURN \n if ::bChange != nil \n lAccept = Eval( ::bChange, nKey, nFlags, Self ) \n if ValType( lAccept ) == \"L\" .and. lAccept \n ::oWnd:GoNextCtrl( ::hWnd ) \n endif \n else \n ::oWnd:GoNextCtrl( ::hWnd ) \n endif \n\n if nKey == VK_RETURN // Execute DEFPUSHBUTTON Action \n Super:KeyChar( nKey, nFlags ) \n endif \n\n return 0 \n\n otherwise \n return Super:KeyChar( nKey, nFlags ) \n endcase \n \nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD LostFocus() CLASS TComboBox \n\n local nAt := ::SendMsg( CB_GETCURSEL ) \n\n Super:LostFocus() \n\n if nAt != CB_ERR \n ::nAt = nAt + 1 \n if ValType( Eval( ::bSetGet ) ) == \"N\" \n Eval( ::bSetGet, nAt + 1 ) \n else \n Eval( ::bSetGet, ::aItems[ nAt + 1 ] ) \n endif \n else \n Eval( ::bSetGet, GetWindowText( ::hWnd ) ) \n endif \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD Modify( cItem, nAt ) CLASS TComboBox \n\n DEFAULT nAt := 0 \n\n if nAt != 0 \n ::aItems[ nAt ] = cItem \n ::SendMsg( CB_DELETESTRING, nAt - 1 ) \n ::SendMsg( CB_INSERTSTRING, nAt - 1, ansitowide( cItem ) ) \n endif \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD Insert( cItem, nAt ) CLASS TComboBox \n\n DEFAULT nAt := 0 \n\n if nAt != 0 \n ASize( ::aItems, Len( ::aItems ) + 1 ) \n AIns( ::aItems, nAt ) \n ::aItems[ nAt ] = cItem \n ::SendMsg( CB_INSERTSTRING, nAt - 1, ansitowide( cItem ) ) \n endif \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD Del( nAt ) CLASS TComboBox \n\n DEFAULT nAt := 0 \n\n if nAt != 0 \n ADel( ::aItems, nAt ) \n ASize( ::aItems, Len( ::aItems ) - 1 ) \n ::SendMsg( CB_DELETESTRING, nAt - 1 ) \n endif \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD GetDlgCode( nLastKey ) CLASS TComboBox \n\n if Len( ::oWnd:aControls ) == 1 \n return DLGC_WANTALLKEYS \n endif \n\n ::oWnd:nLastKey = nLastKey \n\n return DLGC_WANTALLKEYS \n\n//----------------------------------------------------------------------------// \n\nMETHOD Initiate( hDlg ) CLASS TComboBox \n\n Super:Initiate( hDlg ) \n\n ::Default() \n\n if ::oGet != nil \n ::oGet:hWnd = GetWindow( ::hWnd, GW_CHILD ) \n ::oGet:Link() \n\n ::oGet:bLostFocus = ; \n {| hCtlFocus, nAt, cItem| cItem := GetWindowText( ::hWnd ), ; \n nAt := ::SendMsg( CB_FINDSTRING, 0, Trim( cItem )) + 1,; \n Eval( ::bSetGet, cItem ),; \n ::Select( nAt ),; \n SetWindowText( ::hWnd, cItem ),; \n If( ::bValid != nil .and. ; \n GetParent( hCtlFocus ) == GetParent( ::hWnd ),; \n If( ! Eval( ::bValid ),; \n PostMessage( ::hWnd, WM_SETFOCUS ),),) } \n endif \n\n ::Refresh() \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD Default() CLASS TComboBox \n\n local cStart := Eval( ::bSetGet ) \n\n if ! Empty( ::hWnd ) .and. ::nStyle == CBS_DROPDOWNLIST \n ::nStyle := GetWindowLong( ::hWnd, GWL_STYLE ) \n endif \n\n if Empty( cStart ) \n Eval( ::bSetGet, If( Len( ::aItems ) > 0, ::aItems[ 1 ], \"\" ) ) \n cStart = If( Len( ::aItems ) > 0, ::aItems[ 1 ], \"\" ) \n endif \n\n AEval( ::aItems, { | cItem, nAt | ::SendMsg( CB_ADDSTRING, nAt, ansitowide( cItem ) ) } ) \n\n if ValType( cStart ) != \"N\" \n ::nAt = AScan( ::aItems, { | cItem | Upper( AllTrim( cItem ) ) == ; \n Upper( AllTrim( cStart ) ) } ) \n else \n ::nAt = cStart \n endif \n\n ::nAt = If( ::nAt > 0, ::nAt, 1 ) \n\n if cStart == nil \n ::Select( ::nAt ) \n else \n ::Set( cStart ) \n endif \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD MouseMove( nRow, nCol, nKeyFlags ) CLASS TComboBox \n\n local nResult := Super:MouseMove( nRow, nCol, nKeyFlags ) \n\nreturn If( ::lDrag, nResult, nil ) // We want standard behavior !!! \n\n//----------------------------------------------------------------------------// \n\nMETHOD SetBitmaps( acBitmaps ) CLASS TComboBox \n\n local n \n\n ::lOwnerDraw = .t. \n\n if acBitmaps != nil \n ::aBitmaps = Array( Len( acBitmaps ) ) \n for n = 1 to Len( acBitmaps ) \n if File( acBitmaps[ n ] ) \n ::aBitmaps[ n ] = ReadBitmap( 0, acBitmaps[ n ] ) \n else \n ::aBitmaps[ n ] = LoadBitmap( GetResources(), acBitmaps[ n ] ) \n endif \n next \n ::nBmpHeight = nBmpHeight( ::aBitmaps[ 1 ] ) \n ::nBmpWidth = nBmpWidth( ::aBitmaps[ 1 ] ) \n endif \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nMETHOD Destroy() CLASS TComboBox \n\n local n \n\n if ::aBitmaps != nil \n for n = 1 to Len( ::aBitmaps ) \n DeleteObject( ::aBitmaps[ n ] ) \n next \n endif \n\n if ::oGet != nil \n ::oGet:End() \n endif \n\nreturn Super:Destroy() \n\n//----------------------------------------------------------------------------// \n\nMETHOD DrawItem( nIdCtl, nPStruct ) CLASS TComboBox \n\nreturn LbxDrawItem( nPStruct, ::aBitmaps, ::aItems, ::nBmpWidth, ::bDrawItem ) \n\n//----------------------------------------------------------------------------// \n\nMETHOD VarGet() CLASS TComboBox \n\n local cRet, nAt := ::SendMsg( CB_GETCURSEL ) \n\n if nAt != CB_ERR \n ::nAt = nAt + 1 \n cRet := ::aItems[ nAt + 1 ] \n else \n cRet := GetWindowText( ::hWnd ) \n endif \n\nreturn cRet \n\n//----------------------------------------------------------------------------// \n\nMETHOD lValid() CLASS TComboBox \n\n local lRet := .t. \n\n if ValType( ::bValid ) == \"B\" \n lRet = Eval( ::bValid, ::oGet ) \n endif \n\nreturn lRet \n\n//----------------------------------------------------------------------------// \n\nMETHOD ShowToolTip() CLASS TComboBox \n\n local nOldBottom \n\n nOldBottom = ::nBottom \n ::nBottom = ::nTop + GetTextHeight( ::hWnd ) + 8 \n\n Super:ShowToolTip() \n ::nBottom = nOldBottom \n\nreturn nil \n\n//----------------------------------------------------------------------------// \n\nstatic function IsAppThemed() \n\nreturn .f. \n[/code:28a7nwsu]\r\n\r\nLo unico que he modificado es que la función FW_ANSITOWIDE no la encontraba y la he sustituido por ANSITOWIDE.\r\n\r\nDe esta forma, la unica diferencia que veo con antes (aunque he visto que la clase internamente tiene varios cambios) es que sale por defecto en azul el combo y que se expande menos posiciones.\r\n\r\nMuchas Gracias",
"time": "17:27",
"topic": "Combos FWPPC 8.10",
"username": "Mike Serra"
}
] | Combos FWPPC 8.10 |
[
{
"date": "2008-12-23",
"forum": "FiveWin para Pocket PC",
"text": "Mike,\r\n\r\nEl tamano lo puedes establecer con:\r\n\r\n@ ..., ... COMBOBOX ... SIZE nAncho, nAlto\r\n\r\nEntonces, te ha funcionado bien ?",
"time": "19:04",
"topic": "Combos FWPPC 8.10",
"username": "Antonio Linares"
}
] | Combos FWPPC 8.10 |
[
{
"date": "2009-06-24",
"forum": "FiveWin para Pocket PC",
"text": "Ya hize los cambios y lo curioso es que algunos combos si los abre y otros no.\nVeo en el foro que han tenido problemas con los combos y el nuevo windows mobile 6.1\n\nPor eso preguntaba si alguien tiene el último build y el windows mobile. Que pueda decirme si los combos funcionan correctamente.\n\nGracias\nFernando",
"time": "21:45",
"topic": "Combos FWPPC 8.10",
"username": "fleal"
}
] | Combos FWPPC 8.10 |
[
{
"date": "2007-05-12",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola amigos,\n\nHe modificado algo a la combobox nativa de FWH, para hacer algo de busqueda incremental.\n\nHasta el momento lo catalogo como semi-incremental.\n\ndejo el link de descarga.\n\nEl ejemplo es el 2 combo del ejemplo, viene un arreglo teniendo items del uno al quince.\n\nen el segundo combo, ustedes teclean \"cat\" por ejemplo y aparece la primera aparicion en la lista, es decir, \"catorce\"\n\nsaludos, falta hacer el salto en la lista desplergada para que fuese incremental totalmente, toda la ayuda y/o comentarios son bienvenidos.\n\n[url:3hfbw1gf]http://www.uploading.com/files/RVUHWP2J/combox.rar.html[/url:3hfbw1gf]\n\nwilliam morales",
"time": "20:23",
"topic": "Combox . modificación de combobox",
"username": "wmormar"
}
] | Combox . modificación de combobox |
[
{
"date": "2007-05-13",
"forum": "FiveWin para Harbour/xHarbour",
"text": "William,\n\nLa actual clase TComboBox de FWH proporciona búsqueda incremental",
"time": "08:13",
"topic": "Combox . modificación de combobox",
"username": "Antonio Linares"
}
] | Combox . modificación de combobox |
[
{
"date": "2007-05-14",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":1m3j99d0]William,\n\nLa actual clase TComboBox de FWH proporciona búsqueda incremental[/quote:1m3j99d0]\n\nAlgun ejemplito?\n\ngracias",
"time": "15:39",
"topic": "Combox . modificación de combobox",
"username": "wmormar"
}
] | Combox . modificación de combobox |
[
{
"date": "2007-05-14",
"forum": "FiveWin para Harbour/xHarbour",
"text": "William,\n\nDesde FWH 7.01 está disponible.\n\nPuedes usar cualquier combobox y comenzar a teclear los caracteres de un item, y la búsqueda incremental lo localiza",
"time": "18:01",
"topic": "Combox . modificación de combobox",
"username": "Antonio Linares"
}
] | Combox . modificación de combobox |
[
{
"date": "2007-06-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Antonio una consulta con respecto al combobox, estoy tratando de que quede lo mas amigable posible, en la version de 16 bits cuando seleccionaba datos en el combobox para modificar de una opcion a otra solo bastaba con tocar el mouse en cualquier parte de la pantalla y quedaba seleccionado la opcion digitada, porque ahora en la 7.01 si no le presionas el enter no lo asigna cuando estas modificando si no que deja el dato antiguo\n\ngracias",
"time": "21:42",
"topic": "Combox . modificación de combobox",
"username": "elmoiquique"
}
] | Combox . modificación de combobox |
[
{
"date": "2009-08-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Estimados\n\nComo puedo enlasar 2 o mas combox\n\nLa idea es según el contenido que se seleccione en un Combox se me actualice el siguiente Combox, en base a una funcion que hace dicha actualizacion don los datos salen del primer Combox\n\nmmm fui claro\n\nmuchas gracias\n\nDavid\nArgentina",
"time": "22:00",
"topic": "Combox Enlasados",
"username": "dobfivewin"
}
] | Combox Enlasados |
[
{
"date": "2009-08-10",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Aca paso la rutina\n\n[code=fw:1kvvsrra]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx_001 <span style=\"color: #0000ff;\">VAR</span> cCbx_001 <span style=\"color: #0000ff;\">PROMPTS</span> mCbx_001 ;<br /> <span style=\"color: #0000ff;\">STYLE</span> CBS_DROPDOWN ;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">40</span> ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">(</span> mCbx_002:=ArmaTipoDocu<span style=\"color: #000000;\">(</span>VAL<span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">(</span>cCbx_001,<span style=\"color: #000000;\">201</span>,<span style=\"color: #000000;\">18</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> ,;<br /> cCbx_002:=mCbx_002<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> ,;<br /> oCbx_002:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span> mCbx_002:=ArmaTipoDocu<span style=\"color: #000000;\">(</span>VAL<span style=\"color: #000000;\">(</span><span style=\"color: #0000ff;\">substr</span><span style=\"color: #000000;\">(</span>cCbx_001,<span style=\"color: #000000;\">201</span>,<span style=\"color: #000000;\">18</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> ,;<br /> cCbx_002:=mCbx_002<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> ,;<br /> oCbx_002:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , .T. <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">Of</span> oDlgCar<br /><br /> @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx_002 <span style=\"color: #0000ff;\">VAR</span> cCbx_002 <span style=\"color: #0000ff;\">PROMPTS</span> mCbx_002 <span style=\"color: #0000ff;\">UPDATE</span> ;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">40</span> ;<br /> <span style=\"color: #0000ff;\">Of</span> oDlgCar</div>[/code:1kvvsrra]\n\n\nla variable mCbx_002 la actualizo con los Items que debo mostrar en el segundo COMBOX.\n\nHaciendo control dicha variable se Actualiza pero NO se muestra en el 2° COMBOX\n\n\nDavid\nArgetnina",
"time": "09:46",
"topic": "Combox Enlasados",
"username": "dobfivewin"
}
] | Combox Enlasados |
[
{
"date": "2009-08-10",
"forum": "FiveWin para Harbour/xHarbour",
"text": "use los methodos\npara reasignar items \n\nSetItems( aItems, aList )\n\nsalu2",
"time": "16:32",
"topic": "Combox Enlasados",
"username": "carlos vargas"
}
] | Combox Enlasados |
[
{
"date": "2009-08-10",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola estimados...\n\nComo me sujeris hacerlo ?\n\nDavid",
"time": "19:23",
"topic": "Combox Enlasados",
"username": "dobfivewin"
}
] | Combox Enlasados |
[
{
"date": "2009-08-10",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigo prueba asi\n\n REDEFINE COMBOBOX aGetS[12] VAR fpago ITEMS forpago ID 112 OF oDlg;\n ON CHANGE (CargaFormaPago(oDlg,@acDevuelve,fpago,aGets,nTotTot),aGetS[13]:SetItems(acDevuelve),aGets[13]:SetFocus(),xpagar:=0) UPDATE\n\n REDEFINE COMBOBOX aGetS[13] VAR FPagar ITEMS acDevuelve ID 113 OF oDlg;\n ON CHANGE (aGets[40]:Refresh(),aGets[35]:SetFocus(),Refrpago(fPagar,aGets,nTotTot) ) UPDATE\n\n\nSaludos",
"time": "19:33",
"topic": "Combox Enlasados",
"username": "jbrita"
}
] | Combox Enlasados |
[
{
"date": "2009-08-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola David:\n\n[quote=\"dobfivewin\":233m4ata]La idea es según el contenido que se seleccione en un Combox se me actualice el siguiente Combox, en base a una funcion que hace dicha actualizacion don los datos salen del primer Combox[/quote:233m4ata]\n\nAquí tienes un pequeño ejemplo funcional:\n\n[code=fw:233m4ata]<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, nVar, nVar1, aCbx<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, ;<br /> aArr := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Uno\"</span>, <span style=\"color: #ff0000;\">\"Dos\"</span>, <span style=\"color: #ff0000;\">\"Tres\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> aUno := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Uno Uno\"</span>, <span style=\"color: #ff0000;\">\"Uno Dos\"</span>, <span style=\"color: #ff0000;\">\"Uno Tres\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> aDos := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Dos Uno\"</span>, <span style=\"color: #ff0000;\">\"Dos Dos\"</span>, <span style=\"color: #ff0000;\">\"Dos Tres\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> aTres := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Tres Uno\"</span>, <span style=\"color: #ff0000;\">\"Tres Dos\"</span>, <span style=\"color: #ff0000;\">\"Tres Tres\"</span> <span style=\"color: #000000;\">}</span><br /><br /> nVar := nVar1 := <span style=\"color: #000000;\">1</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Combos Enlazados\"</span><br /><br /> @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COMBOBOX</span> aCbx<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">VAR</span> nVar <span style=\"color: #0000ff;\">ITEMS</span> aArr <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">90</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> aCbx<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> nVar == <span style=\"color: #000000;\">1</span>, aUno, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> nVar == <span style=\"color: #000000;\">2</span>, aDos, aTres <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">50</span> <span style=\"color: #0000ff;\">COMBOBOX</span> aCbx<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">VAR</span> nVar1 <span style=\"color: #0000ff;\">ITEMS</span> aUno <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">90</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span></div>[/code:233m4ata]\nUn abrazo.\n\nManuel Mercado",
"time": "00:36",
"topic": "Combox Enlasados",
"username": "mmercado"
}
] | Combox Enlasados |
[
{
"date": "2009-08-12",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Estimados Carlos Vargas, jbrito y Manuel Mercado\n\nMUCHAS GRACIAS\n\nMe solucionaron el problema.\n\n1000000 de gracias\n\ndavid\nargentina",
"time": "11:31",
"topic": "Combox Enlasados",
"username": "dobfivewin"
}
] | Combox Enlasados |
[
{
"date": "2009-08-13",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Manuel\n\nSaludo Cordial\n\nSerias tan amable y me explicas como con tu ejemplo lo hago desde DBFs\n\nGracias Manuel\n\nUn Abrazo\n\nJairo Barbosa",
"time": "19:59",
"topic": "Combox Enlasados",
"username": "Jairo Barbosa"
}
] | Combox Enlasados |
[
{
"date": "2010-03-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\nI have 3 combo in a dialog .\nWhen the user select a combo to view all the items and then press Esc,\nall the dialog is closed and not only the combo list .\n\nHow to close only the combo List ??\n\nREDEFINE COMBOBOX oCb8 VAR wG[36] ITEMS VPROBA ;\n STYLE CBS_DROPDOWN ;\n COLOR \"B*/W+\" ;\n ID 131 OF oDlgrv",
"time": "11:42",
"topic": "Combox and escape",
"username": "Jack"
}
] | Combox and escape |
[
{
"date": "2010-03-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Mr.Jack,\n\nWhich FWH version do you use?. \n\nThis problem is fixed in FWH 8.12\n\n[quote:yhct8q02]* New: Class TComboBox Method KeyDown(). An open combobox on a dialog will properly close when Escape is pressed and the dialog will not be closed. [/quote:yhct8q02]\n\nRegards\n\nAnser",
"time": "12:47",
"topic": "Combox and escape",
"username": "anserkk"
}
] | Combox and escape |
[
{
"date": "2010-03-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for this help,\nI is working .\n\nThanks !",
"time": "21:05",
"topic": "Combox and escape",
"username": "Jack"
}
] | Combox and escape |
[
{
"date": "2008-08-12",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigos....\r\n\r\nSe pude armar un Combox donde se visualizan 2 columans en la fila??\r\n\r\nChas gracias\r\n\r\nDbarrio\r\nArgentina",
"time": "10:19",
"topic": "Combox con 2 columnas",
"username": "dobfivewin"
}
] | Combox con 2 columnas |
[
{
"date": "2008-08-12",
"forum": "FiveWin para Harbour/xHarbour",
"text": "puedes probar con [url:11bh4w9x]ftp://ftp.quiquesoft.com/fivewin/qcombrow.zip[/url:11bh4w9x] tal vez te ayude",
"time": "16:38",
"topic": "Combox con 2 columnas",
"username": "quique"
}
] | Combox con 2 columnas |
[
{
"date": "2007-04-18",
"forum": "FiveWin for CA-Clipper",
"text": "Ciao a tutti,\nmi occorrerebbe un'idea (se esiste) x prelevare singolarmente e in automatico i messaggi da un file DBX di Outlook Express x poterli processare poi.\n\nC'e' qualcosa che posso usare/utilizzare ?\nGrazie",
"time": "18:49",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-18",
"forum": "FiveWin for CA-Clipper",
"text": "Ho sbagliato a porre qui la domanda,.....scusate",
"time": "18:50",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-18",
"forum": "All products support",
"text": "Ciao a tutti, \nmi occorrerebbe un'idea (se esiste) x prelevare singolarmente e in automatico i messaggi da un file DBX di Outlook Express x poterli processare poi. \n\nC'e' qualcosa che posso usare/utilizzare ? \nGrazie\nHo prima postato questa richiesta sul forum internazionale poi mi sono accorto che EMG aveva gia' risposto ad un quesito similare (almeno mi pareva)",
"time": "18:52",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-18",
"forum": "All products support",
"text": "Sì, puoi usare, appunto, OLE:\n\n[code:2wht0f9b]#define olFolderInbox 6\n\n\nFUNCTION MAIN()\n\n LOCAL oOutlook := CREATEOBJECT( \"Outlook.Application\" )\n LOCAL oNameSpace := oOutlook:GetNameSpace(\"MAPI\")\n LOCAL oInbox := oNameSpace:GetDefaultFolder( olFolderInbox )\n\n LOCAL i\n\n FOR i = 1 TO oInbox:Items:Count\n ? oInbox:Items[ i ]:Body\n ?\n NEXT\n\n oOutlook:Quit()\n\n INKEY( 0 )\n\n RETURN NIL[/code:2wht0f9b]\n\nEMG",
"time": "22:19",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Enrico Maria Giordano"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-19",
"forum": "All products support",
"text": "Ho provato il seg. esempio:\n\n*************************\n#include \"FiveWin.ch\"\n#define olFolderInbox 6 \n\n\nFUNCTION MAIN() \n\n LOCAL oOutlook := CREATEOBJECT( \"Outlook.Application\" ) \n LOCAL oNameSpace := oOutlook:GetNameSpace(\"MAPI\") \n LOCAL oInbox := oNameSpace:GetDefaultFolder( olFolderInbox ) \n\n LOCAL i \n\n FOR i = 1 TO oInbox:Items:Count \n ? oInbox:Items[ i ]:Body \n ? \n NEXT \n\n oOutlook:Quit() \n\n INKEY( 0 ) \n\nreturn nil\n\n******************\ncon FWH24 e mi fa partire intanto il Microsoft Outlook (ma io i messaggi ce l'ho in OutLook Express)\n\nma subito mi da il seg errore:\n\nClass: NIL has no exported method: BODY\n\nPosso fare qualcosa ? Ma sopratutto posso leggere i Body (e magari anche gli eventuali codici di errore delle email, es: email non esistente,spazio esaurito,ecc) e io poi uso Outlook Express.\n\nGrazie",
"time": "09:57",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-19",
"forum": "All products support",
"text": "Mi era sfuggito il fatto che tu parlavi di Outlook Express. OLE può essere utilizzato solo con Outlook di Office. Non ho nessuna idea su come fare quello che chiedi con OE.\n\nEMG",
"time": "10:02",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Enrico Maria Giordano"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-19",
"forum": "All products support",
"text": "Ok, vorra' dire che passo a Microsoft Outlook.\n\nSi riesce in questo caso a fare funzionare l'esempio sopre che mi hai mandato oppure ho bisogno di qualche libreria o aggiornamento delle mie FWH24 ?\nGrazie",
"time": "10:08",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-19",
"forum": "FiveWin for CA-Clipper",
"text": "Non fa niente <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "10:31",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Antonio Linares"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-19",
"forum": "All products support",
"text": "Forse partendo da questo esempio trovat nelne news si riesce a risolvere il mio problema:\n\nCode: \n oOL := TOleAuto():New( \"Outlook.Application\" ) \n lOutlookOK := .T. \n IF ! lOutlookOK \n RETURN ( 0 ) \n ENDIF \n\n oNameSpace = oOL:Get( \"GetNameSpace\", \"MAPI\" ) \n oContacts = oNameSpace:Get( \"GetDefaultFolder\", \"6\" ) // 6 = Inbox-Folder \n \n FOR nContador = 1 TO oContacts:ITEMS:Count() \n oNewContact = oContacts:ITEMS( nContador ) \n cSenderName := oNewContact:get( \"SenderName\" ) \n cSubject := oNewContact:get( \"Subject\" ) \n\n cBody := oNewContact:get( \"Body\" ) && questo l'ho inserito io grazie al tuo sempio e funziona \n\n * quali sono tutte le altre informazioni che posso beccare ?\n * ho provato a cercare nel web e nel mio pc il file: VBAOUTL?.CHM che mi poteva aiutare ma.... non ho trovato niente, per la verita' mi occorrerebbe qualche codice di risposta della email del tipo Non esestente,spazio email insuff, ecc...\n\n NEXT nContador \nRETURN NIL \n \nCi siamo quasi, un ultimo sforzo \nGrazie",
"time": "10:50",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-19",
"forum": "All products support",
"text": "[quote=\"Romeo\":yfzewxez]Ok, vorra' dire che passo a Microsoft Outlook.\n\nSi riesce in questo caso a fare funzionare l'esempio sopre che mi hai mandato oppure ho bisogno di qualche libreria o aggiornamento delle mie FWH24 ?\nGrazie[/quote:yfzewxez]\n\nSì, dovrebbe funzionare regolarmente.\n\nEMG",
"time": "11:32",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Enrico Maria Giordano"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-19",
"forum": "All products support",
"text": "Non capisco cosa ti serve. Se il mio esempio ti funziona credo che tu non abbia bisogno di altro.\n\nEMG",
"time": "11:34",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Enrico Maria Giordano"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-19",
"forum": "All products support",
"text": "Ok l'esempio va bene e mi chiedevo se oltre al Body, posso avere anche altre variabili, ese: email di chi mi risponde, il codice di errore (se esiste).\n\ncerto potrei farlo analizzando riga x riga il body...ma se esistono le funzioni gia fatte e' meglio.\n\nIl progrmma che devo relizzare dovra' mandare delle email (tantissime) e poi analizzare le risposte in maniera piu' automatico possibile. \nGrazie",
"time": "11:49",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-19",
"forum": "All products support",
"text": "Cerca l'oggetto MailItem sulla documentazione e troverai tutte le sue proprietà disponibili.\n\nEMG",
"time": "12:40",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Enrico Maria Giordano"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-20",
"forum": "All products support",
"text": "Ho cercato nelle cartelle e sottocartelle di fwh24 e nelle classi ma non ho trovato alcun riferimento a menuitem.\n\nForse ho una versione datata? (FWH24)\nGrazie",
"time": "10:33",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-20",
"forum": "All products support",
"text": "Ops, chiaramento cercato Mailitem\n\nMi viene un dubbio che io debba cercare nella documentazione del file VBAOUTL*.CHM di microsoft che io non ho !!\n\nRomeo",
"time": "10:36",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-20",
"forum": "All products support",
"text": "FWH non c'entra niente. Devi cercare nella documentazione di Outlook (VBAOUTL*.CHM).\n\nEMG",
"time": "10:36",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Enrico Maria Giordano"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-20",
"forum": "All products support",
"text": "[quote=\"Romeo\":2zkqw394]Ops, chiaramento cercato Mailitem\n\nMi viene un dubbio che io debba cercare nella documentazione del file VBAOUTL*.CHM di microsoft che io non ho !!\n\nRomeo[/quote:2zkqw394]\n\nInfatti. Ma se hai installato Office ce l'hai certamente, se non sull'hard disk sicuramente sul CD.\n\nEMG",
"time": "10:40",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Enrico Maria Giordano"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-20",
"forum": "All products support",
"text": "Ho il cd rom di Office XP 2002 e non ho trovato il fiel VBAOUTL9.CHM ma l'ho trovato su office 97.\nHo provato a guardare Mailitem ma dopo un po di tentativi ho rinunciato a cercare le altre funzioni poiche' non le trovo, sicuramente ci sono ma non risco a trovarle!\nGrazie comunque\nRomeo",
"time": "12:11",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-20",
"forum": "All products support",
"text": "[quote=\"Romeo\":2hsoz80x]Ho il cd rom di Office XP 2002 e non ho trovato il fiel VBAOUTL9.CHM[/quote:2hsoz80x]\n\nInfatti devi cercare VBAOUTL*.CHM.\n\n[quote=\"Romeo\":2hsoz80x]Ho provato a guardare Mailitem ma dopo un po di tentativi ho rinunciato a cercare le altre funzioni poiche' non le trovo, sicuramente ci sono ma non risco a trovarle![/quote:2hsoz80x]\n\nHai trovato l'oggetto MailItem? Ecco, in alto trovi il link Proprietà. Clickalo e verranno fuori tutte le proprietà di quell'oggetto, tipo Body, etc. Non mi pare così difficile. Alla peggio cerca su Internet.\n\nEMG",
"time": "13:26",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Enrico Maria Giordano"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2007-04-20",
"forum": "All products support",
"text": "si grazie, ho trovato qualcosa che mi interessa su MSDN",
"time": "14:17",
"topic": "Come beccare i messaggi da un file DBX di Outlook Express",
"username": "Romeo"
}
] | Come beccare i messaggi da un file DBX di Outlook Express |
[
{
"date": "2022-04-02",
"forum": "All products support",
"text": "Ciao a tutti\nHo provato ad inserire un'immagine per rendere evidente un difetto, ho usato il TAG Img\nma non ci sono riuscito.\nVorrei un chiarimento in merito.\nGrazie \nMaurizio Menabue",
"time": "12:51",
"topic": "Come inserire una immagine in un post",
"username": "mauri.menabue"
}
] | Come inserire una immagine in un post |
[
{
"date": "2022-04-02",
"forum": "All products support",
"text": "<!-- m --><a class=\"postlink\" href=\"https://postimages.org/\">https://postimages.org/</a><!-- m -->\n\nquando la carichi devi selezionare il secondo \n\n[img:xt135p69]https://i.postimg.cc/13jsHxs9/kkkkkkkkkkkkkkkkkkkk.jpg[/img:xt135p69]",
"time": "18:17",
"topic": "Come inserire una immagine in un post",
"username": "Silvio.Falconi"
}
] | Come inserire una immagine in un post |
[
{
"date": "2010-01-03",
"forum": "All products support",
"text": "Salve,\n\nho un PC con vista e non riesco a leggere/visualizzare i files di Help (.hlp) di Fivewin/Harbour.\n\nCome posso fare ?\n\nGrazie e Auguri a tutti\n\nRomeo/Zingoni",
"time": "21:27",
"topic": "Come leggere i files Help con Vista",
"username": "Romeo"
}
] | Come leggere i files Help con Vista |
[
{
"date": "2010-01-04",
"forum": "All products support",
"text": "Nella cartella manual delle FWH trovi anche i file CHM.\n\nEMG",
"time": "10:49",
"topic": "Come leggere i files Help con Vista",
"username": "Enrico Maria Giordano"
}
] | Come leggere i files Help con Vista |
[
{
"date": "2010-01-05",
"forum": "All products support",
"text": "Romeo,\n\npotresti installare il programma di windows per leggere i files .hlp, quando cerchi di aprire un hlp su vista ti apare l'aiuto e ti dice da dove scaricare questo programma.\n\n\ncomunque, questo è il link.\n\n<!-- m --><a class=\"postlink\" href=\"http://www.microsoft.com/downloads/details.aspx?FamilyID=6ebcfad9-d3f5-4365-8070-334cd175d4bb&displaylang=en\">http://www.microsoft.com/downloads/deta ... laylang=en</a><!-- m -->\n\nciao",
"time": "12:08",
"topic": "Come leggere i files Help con Vista",
"username": "pymsoft"
}
] | Come leggere i files Help con Vista |
[
{
"date": "2010-01-05",
"forum": "All products support",
"text": "OK, grazie mille, risolto con il download del file linkato.",
"time": "13:05",
"topic": "Come leggere i files Help con Vista",
"username": "Romeo"
}
] | Come leggere i files Help con Vista |
[
{
"date": "2010-01-05",
"forum": "All products support",
"text": "Scusa, giusto per curiosità: perché non puoi utilizzare i file CHM forniti con le FWH?\n\nEMG",
"time": "13:10",
"topic": "Come leggere i files Help con Vista",
"username": "Enrico Maria Giordano"
}
] | Come leggere i files Help con Vista |
[
{
"date": "2010-01-15",
"forum": "All products support",
"text": "Scusa, non ti ho risposto perche' non ho piu' letto i messaggi.\nCOmunque, pare strano, ma in alcune versioni di fwin (es 1.95) non TROVO i files CHM, mentre ci sono sempre i .HLP.\n\nCIao",
"time": "19:00",
"topic": "Come leggere i files Help con Vista",
"username": "Romeo"
}
] | Come leggere i files Help con Vista |
[
{
"date": "2010-01-15",
"forum": "All products support",
"text": "1.95??? Spero tu abbia sbagliato a scrivere! Non ti pare un po' vecchiotta? Forse a quell'epoca neanche esistevano i CHM.\n\nEMG",
"time": "23:44",
"topic": "Come leggere i files Help con Vista",
"username": "Enrico Maria Giordano"
}
] | Come leggere i files Help con Vista |
[
{
"date": "2021-05-04",
"forum": "All products support",
"text": "Ciao a tutti\n\nNon riesco a sapere il modo per leggere il nome dell'oggetto creato con la clausola constraint associato ad una certa colonna\nin MSSQL sia utilizzanto un comando SQl o una qualche proprietà legata alla colonna es.: cNameContraist := oRs:fields( cNameField ):constraint()\nmi serve per poter poi scrivere :\n\n[code=fw:1ww74bx7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /> cSql := <span style=\"color: #ff0000;\">\"ALTER TABLE \"</span> + cNameTable<br /> cSql += <span style=\"color: #ff0000;\">\" DROP CONSTRAINT IF EXISTS\"</span> + <span style=\"color: #ff0000;\">\" [\"</span> + cNameConstraint + <span style=\"color: #ff0000;\">\"] ;\"</span><br /> oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">(</span> cSql <span style=\"color: #000000;\">)</span><br /> <br /> cSql := <span style=\"color: #ff0000;\">\"ALTER TABLE \"</span> + cNameTable<br /> cSql += <span style=\"color: #ff0000;\">\" DROP COLUMN\"</span> + <span style=\"color: #ff0000;\">\" [\"</span> + cNameField + <span style=\"color: #ff0000;\">\"] ;\"</span><br /> oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">(</span> cSql <span style=\"color: #000000;\">)</span><br /><br /> </div>[/code:1ww74bx7]\n\nGrazie !",
"time": "10:34",
"topic": "Come reperire il nome oggetto 'constraint'",
"username": "mauri.menabue"
}
] | Come reperire il nome oggetto 'constraint' |
[
{
"date": "2006-11-09",
"forum": "FiveWin para Pocket PC",
"text": "Hola a todos...\n\nLo que pretendo es que al introducir un código me realice una búsqueda en la tabla de articulos y me muestre el nombre de este y la cantidad. El codigo que estoy usando es el siguiente...\n\n\nAlguien podría decirme si este codigo está mal?\n\n.....\n\nDEFINE FONT oFont NAME \"Courier New\" SIZE 6, -14\n odlg:bKeyChar = { | nKey, nFlags | Search_art(nKey,@cSearch,Nombre ),oSay:REFRESH()}\n\n redefine say oSay prompt cSearch id 130 of odlg \n redefine get oGetNombre var nombre id 4004 of odlg\n odlg:REFRESH()\nACTIVATE dialog odlg\n\n\n\ny la llamada a search_art es la siguiente\n\n*--------------------------------------------------\nfunction Search_art( nKey, cSearch,Nombre ) \n*--------------------------------------------------\n \n if nKey = 8 \n cSearch = SubStr( cSearch, 1, Len( cSearch ) - 1 ) \n else \n cSearch += Upper( Chr( nKey ) ) \n ENDIF\n articulos->( DbSeek( cSearch, .t. ) ) \n nombre:=articulos->nom_art\n\nreturn nil \n\nLa verdad es que no veo en que está fallando... Por cierto si pongo en la funcion de arriba el nkey=13, ¿estoy preguntando si se ha pulsado la tecla intro?\n\nUn saludo y gracias..\n\nElías Torres",
"time": "11:50",
"topic": "Comentario sobre una busqueda...",
"username": "Elias Torres"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-09",
"forum": "FiveWin para Pocket PC",
"text": "Hola a todos...\n\nAl final creo que he solucionado el tema con lo que tenia, pero lo que pasa es que no se como refrescar un get....\n\nLa informacion a buscar la quiero poner en :\n\nredefine get oGetNombre var articulos->nom_art id 4004 of odlg\n\nHe probado a refrescar el odlg completo pero no me refresca ese get. El valor que tiene articulos->nom_art despues de la busqueda es correcto porque pongo un msginfo(articulos->nom_art) y cambia dependiendo de la busqueda, pero luego no me lo pone en el GET..\n\nAlguien sabe por que?\n\nUn saludo y gracias..\n\nElías Torres.",
"time": "19:09",
"topic": "Comentario sobre una busqueda...",
"username": "Elias Torres"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-09",
"forum": "FiveWin para Pocket PC",
"text": "Elias prueba\noGetNombre:Refresh()\n\nSaludos",
"time": "20:03",
"topic": "Comentario sobre una busqueda...",
"username": "wilsongamboa"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-09",
"forum": "FiveWin para Pocket PC",
"text": "Gracias wilsongamboa, efectivamente era esa boberia....\n\nUna curiosidad, a ver si alguien me puede responder.. Si mirais el procedimiento de arriba vereis que en nkey controlo la tecla que se pulsa. Hasta ahi correcto. Pero mi sorpresa viene cuando compruebo que la tecla intro, tanto en el teclado virtual con en el otro, no tiene su correspondiente numeración. Me explico, si se pulsa la tecla de borrar y ponemos msginfo(nkey) nos devuelve un 8, si pulsamos el espacio nos devuelve un 32 (creo) pero cuando se pulsa en el intro no hace nada. Es como que no tiene accion ninguna. ¿Alguien sabe porque ocurre esto, y si tiene alguna solución?. En mi caso lo que pretendo hacer es que escribo un codigo y hasta que no le de al intro no realiza la actualizacion de la pantalla, pero claro por ahora lo tengo para que me funcione al pulsar el espacio, pero me gustaria que fuera con la tecla intro.\n\nUn saludo y gracias..\n\nElías Torres.",
"time": "20:35",
"topic": "Comentario sobre una busqueda...",
"username": "Elias Torres"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-10",
"forum": "FiveWin para Pocket PC",
"text": "Elías,\n\nPor favor muestra el código de cómo lo estás haciendo, gracias",
"time": "11:04",
"topic": "Comentario sobre una busqueda...",
"username": "Antonio Linares"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-10",
"forum": "FiveWin para Pocket PC",
"text": "Perdona Antonio, se me paso poner el codigo....\n\nBueno, estas son las dos funciones que estoy utilizando. Lo que pretendo hacer es un inventario, en el que al introducir un codigo muestre la descripcion y las cantidades(estas ultimas se podrán modificar) y asi sucesivamente....\n\nYo creo que el motivo por el que no funciona el intro (ni en el emulador ni en el teclado) es por el procedimiento de busqueda que realizo, pero mi duda es porque el borrar si lo hace....\n\nSi tienes alguna sugerencia de como realizar la busqueda una vez introducido el codigo, comentamela...te lo agradeceria mucho.\n\nEl codigo es el siguiente....\n\n******************\nFUNCTION Registros()\n******************\nlocal oDlg\nLOCAL oGetInventario, oGetNombre, oGetAcumulado, oGetCantidad, LOCAL oGetFecha, cantidad:=0,acumulado:=0, cSearch := \"\",nombre\n\n SELECT inventario\n IF EOF()\n c=1\n ELSE\n inventario->(dbgobottom())\n c=val(inventario->numdoc)+1\n endif\n oGetInventario_cod=RIGHT(STR(1000000+c),6)\n oGetFecha=(DTOC(date())+' '+cValToChar((TIME())))\n Inventario->(dbappend())\n inventario->numdoc:=oGetInventario_cod\n inventario->fecha_doc:=oGetFecha\n showkeyboard()\n (cAliasInventario)->(DbSeek((cAliasArticulos)->cod_art,.t.))\n \n DEFINE dialog odlg resource \"Inventario\" \n\n redefine group ogrp id 600 of odlg color CLR_RED,RGB(230,184,94)\n \n DEFINE font oFont2 name \"Courier New\" bold \n redefine say id 4001 of odlg color CLR_RED, RGB(230,184,94) \n redefine say id 4002 of odlg color CLR_RED, RGB(230,184,94)\n redefine say id 4003 of odlg color CLR_RED, RGB(230,184,94)\n redefine say id 120 of odlg color CLR_RED, RGB(230,184,94) \n redefine say id 4010 of odlg color RGB(1,1,1),RGB(230,184,94)\n redefine say id 4011 of odlg color RGB(1,1,1),RGB(230,184,94)\n DEFINE FONT oFont NAME \"Courier New\" SIZE 6, -14\n \n redefine say oSay prompt cSearch id 130 of odlg COLOR CLR_BLACK, CLR_WHITE\t \n oSay:bKeyChar = { | nKey, nFlags | Search_art( nKey, @cSearch),oSay:REFRESH(),oGetNombre:Refresh()}\n \t \n redefine get oGetAcumulado var acumulado id 4007 of odlg \n redefine get oGetCantidad var cantidad id 4005 of odlg\n redefine get oGetNombre var articulos->nom_art id 4004 of odlg\n redefine get oGetNumDoc var oGetInventario_cod id 4008 of odlg \n redefine get oGetFecha_Doc var oGetFecha id 4009 of odlg \n odlg:setcolor(RGB(1,1,1),RGB(230,184,94))\n inventario->codigo:=articulos->cod_art\n inventario->pvp:=articulos->precio\n inventario->nombre:=articulos->nom_art\n inventario->stock:= acumulado\n inventario->cant:= cantidad\nACTIVATE dialog odlg;\n on init barra_desplazamiento( odlg)\n oFont:End()\t\nRETURN nil\n\n\n************************************\nfunction Search_art( nkey,cSearch,nombre ) \n************************************\n\n if nKey = 8 &&equivale a pulsar la tecla de borrar\n cSearch = SubStr( cSearch, 1, Len( cSearch ) - 1 ) \n else \n cSearch += Upper( Chr( nKey ) ) \n ENDIF\n IF nKey = 32 &&equivale a pulsar el espacio\n \tarticulos->( DbSeek( ALLTRIM(@cSearch)),.t.)\n \tcSearch=\"\"\n endif\nreturn nil \n\n\nUn saludo y gracias.\n\nElías Torres.",
"time": "11:43",
"topic": "Comentario sobre una busqueda...",
"username": "Elias Torres"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-10",
"forum": "FiveWin para Pocket PC",
"text": "Elías,\n\nPrueba a usar:\n\noSay:bKeyDown = { | nKey, nFlags | If( nKey == VK_RETURN, MsgInfo( \"return\" ),) }",
"time": "11:59",
"topic": "Comentario sobre una busqueda...",
"username": "Antonio Linares"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-10",
"forum": "FiveWin para Pocket PC",
"text": "Antonio, he probado lo que me has dicho pero no funciona. En nkey no se registra el VK_RETURN. Cualquier otra cosa si pero ese no....\n\nSaludos...\n\nElías Torres.",
"time": "12:06",
"topic": "Comentario sobre una busqueda...",
"username": "Elias Torres"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-10",
"forum": "FiveWin para Pocket PC",
"text": "Elías,\n\nEste ejemplo funciona correctamente:\n[code:31l9bx48]\n// FiveWin for Pocket PC - Testing browses with incremental search\n\n#include \"FWCE.ch\"\n\nREQUEST DBFCDX\n\n//----------------------------------------------------------------------------//\n\nfunction Main()\n\n local oWnd, oBrw, hBmp := ReadBitmap( CurDir() + \"\\go.bmp\" )\n local oSay, cSearch := \"\"\n\n USE ( CurDir() + \"\\Customer\" ) VIA \"DBFCDX\"\n INDEX ON Customer->Last TO \"LAST\"\n Customer->( OrdSetFocus( \"LAST\" ) )\n Customer->( DbGoTop() )\n\n DEFINE WINDOW oWnd TITLE \"IncSearch\"\n \n @ 1, 1 LISTBOX oBrw ;\n FIELDS hBmp, Customer->Last, Customer->First ;\n HEADERS \"\", \"Last\", \"First\" ;\n SIZE 220, 167\n \n oBrw:bKeyChar = { | nKey, nFlags | Search( nKey, @cSearch ), oBrw:Refresh(),;\n oSay:Refresh() } \n \n @ 14, 2 SAY \"Searching:\" SIZE 60, 30\n @ 14, 12 SAY oSay PROMPT cSearch SIZE 80, 30\n \n ACTIVATE WINDOW oWnd ;\n ON CLICK MsgInfo( \"Click!\" )\n \nreturn nil\n\n//----------------------------------------------------------------------------//\n\nfunction Search( nKey, cSearch )\n\n #define VK_RETURN 13\n\n if nKey == VK_RETURN\n MsgInfo( \"ok\" )\n endif \n\n if nKey = 8 \n cSearch = SubStr( cSearch, 1, Len( cSearch ) - 1 ) \n else \n cSearch += Upper( Chr( nKey ) ) \n endif\n \n Customer->( DbSeek( cSearch, .t. ) ) \n\nreturn nil\n\n//----------------------------------------------------------------------------//\n[/code:31l9bx48]",
"time": "12:44",
"topic": "Comentario sobre una busqueda...",
"username": "Antonio Linares"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-10",
"forum": "FiveWin para Pocket PC",
"text": "Antonio, efectivamente el ejemplo que me pasas funciona correctamente pero para mi aplicacion no va..... He estado comparandolos y la unica diferencia que veo es que en el ejemplo se trabaja con un browse y mi aplicacion con un say, ¿puede ser ese el problema?.. \n\n**********\nMi aplicacion\n**********\n\noSay:bKeyChar = { | nKey, nFlags | Search_art( nKey, @cSearch),oSay:REFRESH(),oGetNombre:Refresh()} \n\n\n**********\nEl ejemplo\n**********\n\noBrw:bKeyChar = { | nKey, nFlags | Search( nKey, @cSearch ), oBrw:Refresh(),oSay:Refresh() } \n\n\nAdemas he colocado el #define VK_RETURN 13 en el Search(nkey,@cSearch) porque eso si que no lo tenia, pero nada, no va....\n\n\nUn saludo y gracias.\n\nElías Torres.",
"time": "13:06",
"topic": "Comentario sobre una busqueda...",
"username": "Elias Torres"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2006-11-10",
"forum": "FiveWin para Pocket PC",
"text": "Elías,\n\nUn SAY no responde a los eventos de teclado. No puedes usarlo.",
"time": "14:31",
"topic": "Comentario sobre una busqueda...",
"username": "Antonio Linares"
}
] | Comentario sobre una busqueda... |
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola a todos,\r\n\r\nSi para dar valor a una celda de Excel realizo:\r\n\r\noHoja:Cells( 5, 23):Value := \"El Valor\"\r\n\r\ncómo añadiría un comentario/nota a esa misma celda?\r\n\r\nHe buscado en el foro y no he visto ningún ejemplo de ello.\r\n\r\nSaludos y gracias\r\nCarlos G.",
"time": "08:48",
"topic": "Comentarios en Excel",
"username": "FiveWiDi"
}
] | Comentarios en Excel |
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Carlos,\r\n\r\nHas probado con:\r\n\r\noHoja:Cells( 5, 23 ):Comment := \"comentario\"\r\n\r\nó mejor:\r\n\r\noHoja:Cells( 5, 23 ):AddComment()\r\noHoja:Cells( 5, 23 ):Comment:Text := \"comentario\"",
"time": "09:11",
"topic": "Comentarios en Excel",
"username": "Antonio Linares"
}
] | Comentarios en Excel |
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":8o00d3rx]Carlos,\n\nHas probado con:\n\noHoja:Cells( 5, 23 ):Comment := \"comentario\"\n\nó mejor:\n\noHoja:Cells( 5, 23 ):AddComment()\noHoja:Cells( 5, 23 ):Comment:Text := \"comentario\"[/quote:8o00d3rx]\r\n\r\nHabía probado:\r\noHoja:Cells( 5, 23 ):Comment := \"comentario\"\r\ny\r\noHoja:Cells( 5, 23 ):Comment:Text := \"comentario\"\r\n\r\npero no le estaba añadiendo\r\noHoja:Cells( 5, 23 ):AddComment()\r\n\r\n\r\nHa funcionado perfecto.\r\n\r\nUn saludo y Gracias\r\nCarlos G.",
"time": "09:23",
"topic": "Comentarios en Excel",
"username": "FiveWiDi"
}
] | Comentarios en Excel |
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Carlos,\r\n\r\nPara múltiples líneas en el comentario prueba con Chr( 10 ) en vez de CRLF",
"time": "09:44",
"topic": "Comentarios en Excel",
"username": "Antonio Linares"
}
] | Comentarios en Excel |
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Puedes usar facilmente StrTran() para cambiar de CRLF a Chr( 10 ) si el texto ya está construido",
"time": "09:45",
"topic": "Comentarios en Excel",
"username": "Antonio Linares"
}
] | Comentarios en Excel |
[
{
"date": "2008-08-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":izox3qs6]Puedes usar facilmente StrTran() para cambiar de CRLF a Chr( 10 ) si el texto ya está construido[/quote:izox3qs6]\r\n\r\nGracias,\r\nLo probaré.\r\n\r\nBuen fin de semana.\r\nCarlos G.",
"time": "14:09",
"topic": "Comentarios en Excel",
"username": "FiveWiDi"
}
] | Comentarios en Excel |
[
{
"date": "2009-06-18",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola a todos,\n\nRecien empiezo a trabajar con FiveWin asi que de ante mano os agradezco toda la ayuda que me podais brindar, que tengais paciencia conmigo y ojala pronto yo pueda ayudaros en algo.\n\nSaludos a todos,\n\nAntonio G.",
"time": "15:14",
"topic": "Comenzando con FiveWin",
"username": "Antonio G."
}
] | Comenzando con FiveWin |
[
{
"date": "2009-06-18",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Un placer Antonio...\n\nBienvenido a la comunidad, estamos a la orden y publica cualquier duda que tengas...",
"time": "15:16",
"topic": "Comenzando con FiveWin",
"username": "Daniel Garcia-Gil"
}
] | Comenzando con FiveWin |
[
{
"date": "2009-06-18",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola Antonio...\nBienvenido al foro! Seguramente recibirás todas las ayudas que necesites, siempre hay buena predisposición de todos los miembros, tanto para ayudar como para aprender!!\nSaludos,",
"time": "16:53",
"topic": "Comenzando con FiveWin",
"username": "jrestojeda"
}
] | Comenzando con FiveWin |
[
{
"date": "2009-06-19",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Antonio,\n\nBienvenido seas a este gran foro.\n\nVerás que muchos están puestos a ayudar.",
"time": "06:51",
"topic": "Comenzando con FiveWin",
"username": "wmormar"
}
] | Comenzando con FiveWin |
[
{
"date": "2009-06-19",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Antonio :\n\nBienvenido!",
"time": "10:38",
"topic": "Comenzando con FiveWin",
"username": "Ricardo Ramirez E."
}
] | Comenzando con FiveWin |
[
{
"date": "2013-10-24",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola, \n\nEstoy intentando construir un ejemplo con Harbour de 64bits, pero no después de configurar los paths tengo el siguiente errror\n\n[code=fw:1ucemvks]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Harbour <span style=\"color: #000000;\">3.2</span>.0dev <span style=\"color: #000000;\">(</span>Rev. <span style=\"color: #000000;\">18881</span><span style=\"color: #000000;\">)</span><br />Copyright <span style=\"color: #000000;\">(</span>c<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">1999</span><span style=\"color: #000000;\">-2013</span>, http:<span style=\"color: #B900B9;\">//harbour-project.org/</span><br />Compiling <span style=\"color: #ff0000;\">'TUTOR02.prg'</span> and generating preprocessed output <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'TUTOR02.ppo'</span>...<br />Lines <span style=\"color: #000000;\">4208</span>, Functions/Procedures <span style=\"color: #000000;\">1</span><br />Generating C source output <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'TUTOR02.c'</span>... Done.<br />Microsoft <span style=\"color: #000000;\">(</span>R<span style=\"color: #000000;\">)</span> C/C++ Optimizing Compiler Version <span style=\"color: #000000;\">16.00</span><span style=\"color: #000000;\">.30319</span><span style=\"color: #000000;\">.01</span> <span style=\"color: #00C800;\">for</span> x64<br />Copyright <span style=\"color: #000000;\">(</span>C<span style=\"color: #000000;\">)</span> Microsoft Corporation. All rights reserved.<br /><br />TUTOR02.c<br />Microsoft <span style=\"color: #000000;\">(</span>R<span style=\"color: #000000;\">)</span> Windows <span style=\"color: #000000;\">(</span>R<span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">Resource</span> Compiler Version <span style=\"color: #000000;\">6.1</span><span style=\"color: #000000;\">.7600</span><span style=\"color: #000000;\">.16385</span><br />Copyright <span style=\"color: #000000;\">(</span>C<span style=\"color: #000000;\">)</span> Microsoft Corporation. All rights reserved.<br /><br />LINK : <span style=\"color: #000000;\">fatal</span> error LNK1123: <span style=\"color: #000000;\">failure</span> during conversion <span style=\"color: #0000ff;\">to</span> COFF: <span style=\"color: #000000;\">file</span> invalid or c<br />orrupt<br />* Linking errors *</div>[/code:1ucemvks]",
"time": "11:29",
"topic": "Comenzando con HB64. ERROR LNK1123",
"username": "miarcod"
}
] | Comenzando con HB64. ERROR LNK1123 |
[
{
"date": "2013-10-24",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Miguel A.,\n\nEstas usando FWH\\samples\\build64.bat ?\n\nComprueba que estes usando las mismas librerias que se especifican en build64.bat",
"time": "13:41",
"topic": "Comenzando con HB64. ERROR LNK1123",
"username": "Antonio Linares"
}
] | Comenzando con HB64. ERROR LNK1123 |
[
{
"date": "2013-10-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Antonio,\n\nDespues de investigar veo que build64.bat hace referencia a unas librerias situadas en \n\n\\harbour\\lib\\vc64\n\nque yo no tengo\nlas que tengo yo están en \n\n\\harbour\\lib\n\npero si hago referencia a estas librerias se produce el error \n[code=fw:kfq5mp27]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />LINK : <span style=\"color: #000000;\">fatal</span> error LNK1123: <span style=\"color: #000000;\">failure</span> during conversion <span style=\"color: #0000ff;\">to</span> COFF: <span style=\"color: #000000;\">file</span> invalid or corrupt<br />* Linking errors *<br /><br />C:\\fwh64\\samples><br /> </div>[/code:kfq5mp27]\n\nYo tengo librerias en \n\nC:\\vc64\\lib pero no son las que se referencian en build64.bat\n\nQue estoy haciendo mal?\n\ngracias",
"time": "17:32",
"topic": "Comenzando con HB64. ERROR LNK1123",
"username": "miarcod"
}
] | Comenzando con HB64. ERROR LNK1123 |
[
{
"date": "2013-10-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Miguel A.,\n\nLa versión actual de FWH 64 utiliza el compilador de C de Visual Studio 2012 (ó 2010).\n\nPor lo que es preciso que lo descargues desde Microsoft. La versión Visual Studio 2012 Express, que es gratuita, te sirve perfectamente.\n\nDisculpa este cambio en FWH 64, pero lo hemos hecho con la intención de ser mucho más compatible con Visual Studio <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "18:23",
"topic": "Comenzando con HB64. ERROR LNK1123",
"username": "Antonio Linares"
}
] | Comenzando con HB64. ERROR LNK1123 |
[
{
"date": "2013-10-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "gracias.",
"time": "08:25",
"topic": "Comenzando con HB64. ERROR LNK1123",
"username": "miarcod"
}
] | Comenzando con HB64. ERROR LNK1123 |
[
{
"date": "2009-07-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Buenas tardes,\n\nDebo comenzar una pequeña aplicación para trabajar en red (uso DBF's) y, como hace un tiempo un amigo del foro me recomendó usar la clase TDatabase, los consulto por este motivo.\n\nMi aplicación abrirá varios dialogs nowait que usarán la misma DBF y la consulta es si, debido al uso de estos nowait puedo usar alias para abrir las DBF con la clase tDatabase y, si no fuera así, ¿como debería hacerlo?.\n\nAclaro que revisé los samples pero en ellos no se usan dialogs nowait así que no encontré ejemplos.\n\nGracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "17:41",
"topic": "Comenzando con TDatabase",
"username": "rolando"
}
] | Comenzando con TDatabase |
[
{
"date": "2009-07-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigo...\nPuedes usar alias perfectamente\n\n[code=fw:ppp8vka7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />USE TABLA <span style=\"color: #0000ff;\">ALIAS</span> TuAlias <span style=\"color: #00C800;\">NEW</span><br />DATABASE oDbf<br />...<br />...<br />...<br /> </div>[/code:ppp8vka7]\n\nSaludos,",
"time": "18:40",
"topic": "Comenzando con TDatabase",
"username": "jrestojeda"
}
] | Comenzando con TDatabase |
[
{
"date": "2009-07-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola,\n\nSigo tratando de \"Iniciarme\" con la clase TDatabase.\n\nTengo un problema y es que no logro cerrar los alias abiertos cuando cierro el/los dialogs. Como habitualmente hago con los dialogs NOWAIT, intenté cerrar el alias en el valid, pero no resulta y dá un error.\n\nAdjunto el código del PRG de prueba que es una reforma al PRG de los Salmples:\n\n[code=fw:364ecfga]<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;\">static</span> oWnd<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> set resources <span style=\"color: #0000ff;\">to</span> <span style=\"color: #ff0000;\">'dbfpla.dll'</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">70</span> ;<br /> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Testing DataBase Objects\"</span> ;<br /> <span style=\"color: #0000ff;\">MENU</span> BuildMenu<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd ;<br /> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"FiveWin - Object Oriented DataBase Management\"</span> <span style=\"color: #0000ff;\">CENTERED</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> MsgYesNo<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Do you really want to end ?\"</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> BuildMenu<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oMenu<br /><br /> <span style=\"color: #0000ff;\">MENU</span> oMenu<br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Clients\"</span><br /> <span style=\"color: #0000ff;\">MENU</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Hojear...\"</span> <span style=\"color: #0000ff;\">ACTION</span> ClientsBrowse<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Clients browse management dialog\"</span><br /><br /> <span style=\"color: #0000ff;\">SEPARATOR</span><br /><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Exit Test...\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"End doing this tutorial\"</span><br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #00C800;\">return</span> oMenu<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /> <span style=\"color: #00C800;\">Function</span> ClientsBrowse<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oBrw , oLbx , lSalir:=.f. , oDbf<br /> <span style=\"color: #00C800;\">local</span> cClientes:=cGetNewAlias<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'clientes'</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">static</span> oDlg<br /><br /> use CLIENTES shared <span style=\"color: #00C800;\">new</span> <span style=\"color: #0000ff;\">alias</span> <span style=\"color: #000000;\">(</span>cClientes<span style=\"color: #000000;\">)</span><br /> DATABASE oDbf<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;\">\"XBROWSETEST\"</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">LISTBOX</span> oLbx ;<br /> FIELDS oDbf:<span style=\"color: #000000;\">NOMBRE</span> ,;<br /> oDbf:<span style=\"color: #000000;\">DIRECCION</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"Nombre\"</span>, <span style=\"color: #ff0000;\">\"Dirección\"</span> ;<br /> SIZES <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">300</span> ;<br /> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br /> oLbx:<span style=\"color: #000000;\">bSkip</span> = <span style=\"color: #000000;\">{</span> | nRecs | oDbf:<span style=\"color: #000000;\">Skipper</span><span style=\"color: #000000;\">(</span> nRecs <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;\">nowait</span> <span style=\"color: #0000ff;\">valid</span> <span style=\"color: #000000;\">(</span> oDbf:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , .t.<span style=\"color: #000000;\">)</span><br /><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />procedure AppSys <span style=\"color: #B900B9;\">// XBase++ requirement</span><br /><br /><span style=\"color: #00C800;\">return</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span></div>[/code:364ecfga]\n\nFunciona bién pero al cerrar el dialog me dá este error:\n\n[code=fw:364ecfga]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Application<br />===========<br /> Path and <span style=\"color: #0000ff;\">name</span>: <span style=\"color: #000000;\">D</span>:\\VERCE\\BIN\\Dbf03.Exe <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">32</span> bits<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">Size</span>: <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">596</span>,<span style=\"color: #000000;\">416</span> bytes<br /> Time <span style=\"color: #0000ff;\">from</span> start: <span style=\"color: #000000;\">0</span> hours <span style=\"color: #000000;\">0</span> mins <span style=\"color: #000000;\">8</span> secs <br /> Error occurred <span style=\"color: #00C800;\">at</span>: <span style=\"color: #000000;\">07</span>/<span style=\"color: #000000;\">02</span>/<span style=\"color: #000000;\">09</span>, <span style=\"color: #000000;\">19</span>:<span style=\"color: #000000;\">24</span>:<span style=\"color: #000000;\">06</span><br /> Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1004</span> <span style=\"color: #0000ff;\">Message</span> not found: <span style=\"color: #000000;\">TDATABASE</span>:<span style=\"color: #000000;\">NOMBRE</span><br /><br />Stack Calls<br />===========<br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">HARBOUR</span>.PRG => _CLSSETERROR<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">DATABASE</span>.PRG => TDATABASE:<span style=\"color: #000000;\">NOMBRE</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">410</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">dbf03</span>.prg => <span style=\"color: #000000;\">(</span>b<span style=\"color: #000000;\">)</span>CLIENTSBROWSE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">64</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">WBROWSE</span>.PRG => TWBROWSE:<span style=\"color: #000000;\">DRAWSELECT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">WBROWSE</span>.PRG => <span style=\"color: #000000;\">(</span>b<span style=\"color: #000000;\">)</span>TWBROWSE:<span style=\"color: #000000;\">TWBROWSE</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: => TWBROWSE:<span style=\"color: #000000;\">LOSTFOCUS</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">CONTROL</span>.PRG => TWBROWSE:<span style=\"color: #000000;\">KILLFOCUS</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">CONTROL</span>.PRG => TWBROWSE:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">WINDOW</span>.PRG => _FWH<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: => DESTROYWINDOW<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #000000;\">CLOSE</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: => TWINDOW:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">WINDOW</span>.PRG => _FWH<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: => SYSREFRESH<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">WINDOW</span>.PRG => TWINDOW:<span style=\"color: #000000;\">SYSCOMMAND</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #000000;\">SYSCOMMAND</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: => TWINDOW:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">WINDOW</span>.PRG => _FWH<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: => WINRUN<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #0000ff;\">WINDOW</span>.PRG => TWINDOW:<span style=\"color: #0000ff;\">ACTIVATE</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">dbf03</span>.prg => MAIN<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">21</span><span style=\"color: #000000;\">)</span><br /> </div>[/code:364ecfga]\n\nQuedo a la espera de una ayuda. Gracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "23:30",
"topic": "Comenzando con TDatabase",
"username": "rolando"
}
] | Comenzando con TDatabase |
[
{
"date": "2009-07-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola\nCreo que una de las cosas que te debes olvidar cuando utilizas objetos relacionas con Banco de Datos, en este caso Database, es olvidarte del alias.\nSi revisas la clase te daras cuenta que ella sola asigna el alias (esto dependiendo de que version fw usas)\n\nPara tu ejemplo:\n-definiria varios 'oDbf's como publico (pudiendo ser um arreglo de objetos), es decir para que se \"vea\" en toda la aplicacion.\n[code=fw:2qy48yqj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Public</span> oDbf <br /><span style=\"color: #B900B9;\">// o</span><br /><span style=\"color: #00C800;\">Public</span> aDbf = Array<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">)</span></div>[/code:2qy48yqj]\n-abriria la database al inicio de la aplicacion tantas veces como sea necesario y asignandole el objeto respectivo.\n[code=fw:2qy48yqj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />use CLIENTES shared <span style=\"color: #00C800;\">new</span><br />DATABASE oDbf<br /><span style=\"color: #B900B9;\">//o</span><br />use CLIENTES shared <span style=\"color: #00C800;\">new</span><br />DATABSE aDbf<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span><br /><br />use CLIENTES shared <span style=\"color: #00C800;\">new</span><br />DATABSE aDbf<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span><br />........<br /> </div>[/code:2qy48yqj]\n-cerraria los obj al final de la aplicacion.\n[code=fw:2qy48yqj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> oDbf:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #B900B9;\">// o </span><br />AEval<span style=\"color: #000000;\">(</span> aDbf, <span style=\"color: #000000;\">{</span> |o| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> o != <span style=\"color: #00C800;\">Nil</span>, o:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span></div>[/code:2qy48yqj]",
"time": "00:18",
"topic": "Comenzando con TDatabase",
"username": "RenOmaS"
}
] | Comenzando con TDatabase |
[
{
"date": "2009-07-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias por contestar.\n\nLo que Propones no se adapta a lo que necesito. \n\nTu propones abrir la DBF una cantidad de veces predefinida pero en mi caso estos dialogs se abrirán muchísimas veces durante la ejecución del programa y además nunca será la misma cantidad de veces. \n\nPor esto necesito ir cerrando los alias u objetos DBF abiertos.\n\n¿Alguna otra idea?.\n\nGracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "01:59",
"topic": "Comenzando con TDatabase",
"username": "rolando"
}
] | Comenzando con TDatabase |
[
{
"date": "2009-07-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola,\n\nLogré solucionarlo con un mínimo cambio en el activate.\n\nEn lugar de:\n\n[code=fw:3cmg6z5m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">nowait</span> <span style=\"color: #0000ff;\">valid</span> <span style=\"color: #000000;\">(</span> oDbf:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> , .t.<span style=\"color: #000000;\">)</span><br /> </div>[/code:3cmg6z5m]\n\nPuse:\n\n[code=fw:3cmg6z5m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">nowait</span> <span style=\"color: #0000ff;\">valid</span> oLbx:<span style=\"color: #000000;\">lCloseArea</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span></div>[/code:3cmg6z5m]\n\nY eso es todo. Funciona tal cual pretendía.\n\nSaludos.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "03:37",
"topic": "Comenzando con TDatabase",
"username": "rolando"
}
] | Comenzando con TDatabase |
[
{
"date": "2008-06-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Despues de tantos golpes, active Xbrowse pero tengo el siguiente problema, estoy usando CDX, le agregue 3 registros manualmente con diferentes valores pero me muestra solo el ultimo registro repetidamente como si fueran iguales todos los registros, coloque \r\n\r\noBrw:SetRDD()\r\noBrw:Refresh( .t. )\r\n\r\nasi si veo los diferentes datos de los registros, pero me muestra todos los campos de la DBF con sus respectivos nombre en forma horizontal, si uso solo oBrw:Refresh( .t. ), me da un error de que no esta definido el bloque...le di vueltas pero no consegui resolver....alguna ayuda seria buena...gracias..y si alguien tiene algun ejemplo con las mayorias de las opciones del Xbrowse y oCol, no estaria de mas..dede ya ..GRACIAS... ya probe varios metodos y los identifique. <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->",
"time": "08:02",
"topic": "Comenzando con xBROWSE",
"username": "joseluisysturiz"
}
] | Comenzando con xBROWSE |
[
{
"date": "2008-06-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Jose Luis,\r\n\r\nPor favor muéstranos el código donde creas el xbrowse, gracias",
"time": "09:15",
"topic": "Comenzando con xBROWSE",
"username": "Antonio Linares"
}
] | Comenzando con xBROWSE |
[
{
"date": "2008-06-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":1mw735d8]Jose Luis,\n\nPor favor muéstranos el código donde creas el xbrowse, gracias[/quote:1mw735d8]\r\n\r\nAntonio resuelto, fue un lapsu mental..esas cosas que pasan cuando estas trabajando a las 3am... habia puesto esto:\r\n\r\noColInven:bStrData := { || ALLTRIM(oDbfInven:inv_codigo)}\r\n\r\nen ves de esto:\r\n\r\noColInven:bStrData := { || ALLTRIM(jlinven->inv_codigo)}\r\n\r\nGracias..!",
"time": "07:15",
"topic": "Comenzando con xBROWSE",
"username": "joseluisysturiz"
}
] | Comenzando con xBROWSE |
[
{
"date": "2008-10-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola a todos, \r\n\r\nSolo quiero saber si existe algun ejemplo de como empezar desde 0 una aplicacion, para crear la ventana padre y luego las ventanas hijas, etc...\r\n\r\nAtentamente,\r\nJulio Ponce",
"time": "02:50",
"topic": "Comenzar aplicacion",
"username": "jponce"
}
] | Comenzar aplicacion |
[
{
"date": "2008-10-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola a todos, \r\n\r\nSolo quiero saber si existe algun ejemplo de como empezar desde 0 una aplicacion, para crear la ventana padre y luego las ventanas hijas, etc... \r\n\r\nAtentamente, \r\nJulio Ponce",
"time": "02:54",
"topic": "Comenzar aplicacion",
"username": "jponce"
}
] | Comenzar aplicacion |
[
{
"date": "2008-10-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "jponce,\r\n\r\nTodos los que estamos aca hemos pasado por tu situacion , yo me tope con un curso que esta de la a la z muy intuitivo, ojala te sirva aqui pongo el enlace para que el que esta iniciando lo pueda descargar,\r\n\r\n <!-- m --><a class=\"postlink\" href=\"http://www.box.net/shared/3r8bsmviso\">http://www.box.net/shared/3r8bsmviso</a><!-- m -->\r\n\r\n\r\nNota: el ejecutable se llama fivewin.exe y el te va guiando paso a paso, solo desempaquetalo y ya\r\n\r\nsaludos desde managua, nicaragua,\r\n\r\nRamon Paredes",
"time": "03:43",
"topic": "Comenzar aplicacion",
"username": "Ramon Paredes"
}
] | Comenzar aplicacion |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.