topic
stringlengths
1
63
text
stringlengths
1
577k
Antonio es posible VScroll a un dialogo desde recursos ?
Hola Antonio - Se podra aplicar el TESTWSCR.PRG de la carpeta samples a un dialogo/folder con controles creados desde recursos ?? Motivo : Por X razon a veces me falta 1 o 2 datos y el espacio se me acabo, y tengo que crear otra pestaña de un folder, si se le pusiera el scroll vertical, seria simplemente fabuloso !!!! - Y ya que ando con solicitudes alucinantes <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> , sera posible incrustar un PreView dentro de un control en vez de una ventana ?? Motivo : En un modulo de configuracion de impresiones, si deseo ajustar las coordenadas de algun reporte, tengo que seleccionar el boton [Probar] para que me aparezca el PreView, si se pudiera llamar desde X funcion, se actualizaria al momento los ajustes en dicho control. No se, quizas tome mucha Coca-Cola el dia de hoy <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> Saludos
Antonio es posible VScroll a un dialogo desde recursos ?
Hi This is a code for scroll in dialogs modified for a Brazilian friend: [code:10vba97n] // Testing how to scroll a dialog with its contents #include "FiveWin&#46;ch" #define D_WIDTH 4 #define D_HEIGHT 13 FUNCTION Main&#40;&#41; LOCAL oDlg LOCAL cGet0101 &#58;= space&#40;10&#41;, ; //Row 1 cGet0102 &#58;= space&#40;10&#41;, ; cGet0103 &#58;= space&#40;10&#41;, ; cGet0104 &#58;= space&#40;10&#41;, ; cGet0105 &#58;= space&#40;10&#41;, ; cGet0201 &#58;= space&#40;10&#41;, ; //Row 2 cGet0202 &#58;= space&#40;10&#41;, ; cGet0203 &#58;= space&#40;10&#41;, ; cGet0204 &#58;= space&#40;10&#41;, ; cGet0205 &#58;= space&#40;10&#41;, ; cGet0301 &#58;= space&#40;10&#41;, ; //Row 3 cGet0302 &#58;= space&#40;10&#41;, ; cGet0303 &#58;= space&#40;10&#41;, ; cGet0304 &#58;= space&#40;10&#41;, ; cGet0305 &#58;= space&#40;10&#41;, ; cGet0401 &#58;= space&#40;10&#41;, ; //Row 4 cGet0402 &#58;= space&#40;10&#41;, ; cGet0403 &#58;= space&#40;10&#41;, ; cGet0404 &#58;= space&#40;10&#41;, ; cGet0405 &#58;= space&#40;10&#41;, ; cGet0501 &#58;= space&#40;10&#41;, ; //Row 5 cGet0502 &#58;= space&#40;10&#41;, ; cGet0503 &#58;= space&#40;10&#41;, ; cGet0504 &#58;= space&#40;10&#41;, ; cGet0505 &#58;= space&#40;10&#41;, ; cGet0601 &#58;= space&#40;10&#41;, ; //Row 6 cGet0602 &#58;= space&#40;10&#41;, ; cGet0603 &#58;= space&#40;10&#41;, ; cGet0604 &#58;= space&#40;10&#41;, ; cGet0605 &#58;= space&#40;10&#41;, ; cGet0701 &#58;= space&#40;10&#41;, ; //Row 7 cGet0702 &#58;= space&#40;10&#41;, ; cGet0703 &#58;= space&#40;10&#41;, ; cGet0704 &#58;= space&#40;10&#41;, ; cGet0705 &#58;= space&#40;10&#41;, ; cGet0801 &#58;= space&#40;10&#41;, ; //Row 8 cGet0802 &#58;= space&#40;10&#41;, ; cGet0803 &#58;= space&#40;10&#41;, ; cGet0804 &#58;= space&#40;10&#41;, ; cGet0805 &#58;= space&#40;10&#41;, ; cGet0901 &#58;= space&#40;10&#41;, ; //Row 9 cGet0902 &#58;= space&#40;10&#41;, ; cGet0903 &#58;= space&#40;10&#41;, ; cGet0904 &#58;= space&#40;10&#41;, ; cGet0905 &#58;= space&#40;10&#41;, ; cGet1001 &#58;= space&#40;10&#41;, ; //Row 10 cGet1002 &#58;= space&#40;10&#41;, ; cGet1003 &#58;= space&#40;10&#41;, ; cGet1004 &#58;= space&#40;10&#41;, ; cGet1005 &#58;= space&#40;10&#41;, ; cGet1101 &#58;= space&#40;10&#41;, ; //Row 11 cGet1102 &#58;= space&#40;10&#41;, ; cGet1103 &#58;= space&#40;10&#41;, ; cGet1104 &#58;= space&#40;10&#41;, ; cGet1105 &#58;= space&#40;10&#41; define dialog oDlg from 0, 0 TO 25, 70 ; title "Scroll dialog" ; Style nor&#40; WS_VSCROLL, WS_HSCROLL &#41; @ 9,17 bitmap file "&#46;&#46;\bitmaps\pic1&#46;bmp" of oDlg size 120,148 adjust @ 9,32 bitmap file "&#46;&#46;\bitmaps\pic2&#46;bmp" of oDlg size 120,148 adjust @ 9,47 bitmap file "&#46;&#46;\bitmaps\pic3&#46;bmp" of oDlg size 120,148 adjust @ 9,62 bitmap file "&#46;&#46;\bitmaps\pic4&#46;bmp" of oDlg size 120,148 adjust @ 9,77 bitmap file "&#46;&#46;\bitmaps\pic5&#46;bmp" of oDlg size 120,148 adjust @ 21*13,02*8 say "Customer " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 23*13,02*8 say "P&#46;O&#46; # " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 25*13,02*8 say "Style No&#46;" of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 27*13,02*8 say "Fabrics " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 29*13,02*8 say "Fob " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 31*13,02*8 say "Q'TY " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 33*13,02*8 say "DEL&#46; " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 35*13,02*8 say "MAKER " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 37*13,02*8 say "QTA " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 39*13,02*8 say "SIZE " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 41*13,02*8 say "Size B/D " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 43*13,02*8 say "REMARKS " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,17*8 say "Venture " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,32*8 say "Sears " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,47*8 say "Kohl's " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,62*8 say "Kiss " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel @ 21*13,77*8 say "K-MART " of oDlg update color CLR_BLACK,CLR_WHITE size 120,26 border pixel //-* Row 1 @ 23*13,17*8 get cGet0101 size 120,26 of oDlg update pixel @ 23*13,32*8 get cGet0102 size 120,26 of oDlg update pixel @ 23*13,47*8 get cGet0103 size 120,26 of oDlg update pixel @ 23*13,62*8 get cGet0104 size 120,26 of oDlg update pixel @ 23*13,77*8 get cGet0105 size 120,26 of oDlg update pixel //-* Row 2 @ 25*13,17*8 get cGet0201 size 120,26 of oDlg update pixel @ 25*13,32*8 get cGet0202 size 120,26 of oDlg update pixel @ 25*13,47*8 get cGet0203 size 120,26 of oDlg update pixel @ 25*13,62*8 get cGet0204 size 120,26 of oDlg update pixel @ 25*13,77*8 get cGet0205 size 120,26 of oDlg update pixel //-* Row 3 @ 27*13,17*8 get cGet0301 size 120,26 of oDlg update pixel @ 27*13,32*8 get cGet0302 size 120,26 of oDlg update pixel @ 27*13,47*8 get cGet0303 size 120,26 of oDlg update pixel @ 27*13,62*8 get cGet0304 size 120,26 of oDlg update pixel @ 27*13,77*8 get cGet0305 size 120,26 of oDlg update pixel //-* Row 4 @ 29*13,17*8 get cGet0401 size 120,26 of oDlg update pixel @ 29*13,32*8 get cGet0402 size 120,26 of oDlg update pixel @ 29*13,47*8 get cGet0403 size 120,26 of oDlg update pixel @ 29*13,62*8 get cGet0404 size 120,26 of oDlg update pixel @ 29*13,77*8 get cGet0405 size 120,26 of oDlg update pixel //-* Row 5 @ 31*13,17*8 get cGet0501 size 120,26 of oDlg update pixel @ 31*13,32*8 get cGet0502 size 120,26 of oDlg update pixel @ 31*13,47*8 get cGet0503 size 120,26 of oDlg update pixel @ 31*13,62*8 get cGet0504 size 120,26 of oDlg update pixel @ 31*13,77*8 get cGet0505 size 120,26 of oDlg update pixel //-* Row 6 @ 33*13,17*8 get cGet0601 size 120,26 of oDlg update pixel @ 33*13,32*8 get cGet0602 size 120,26 of oDlg update pixel @ 33*13,47*8 get cGet0603 size 120,26 of oDlg update pixel @ 33*13,62*8 get cGet0604 size 120,26 of oDlg update pixel @ 33*13,77*8 get cGet0605 size 120,26 of oDlg update pixel //-* Row 7 @ 35*13,17*8 get cGet0701 size 120,26 of oDlg update pixel @ 35*13,32*8 get cGet0702 size 120,26 of oDlg update pixel @ 35*13,47*8 get cGet0703 size 120,26 of oDlg update pixel @ 35*13,62*8 get cGet0704 size 120,26 of oDlg update pixel @ 35*13,77*8 get cGet0705 size 120,26 of oDlg update pixel //-* Row 8 @ 37*13,17*8 get cGet0801 size 120,26 of oDlg update pixel @ 37*13,32*8 get cGet0802 size 120,26 of oDlg update pixel @ 37*13,47*8 get cGet0803 size 120,26 of oDlg update pixel @ 37*13,62*8 get cGet0804 size 120,26 of oDlg update pixel @ 37*13,77*8 get cGet0805 size 120,26 of oDlg update pixel //-* Row 9 @ 39*13,17*8 get cGet0901 size 120,26 of oDlg update pixel @ 39*13,32*8 get cGet0902 size 120,26 of oDlg update pixel @ 39*13,47*8 get cGet0903 size 120,26 of oDlg update pixel @ 39*13,62*8 get cGet0904 size 120,26 of oDlg update pixel @ 39*13,77*8 get cGet0905 size 120,26 of oDlg update pixel //-* Row 10 @ 41*13,17*8 get cGet1001 size 120,26 of oDlg update pixel @ 41*13,32*8 get cGet1002 size 120,26 of oDlg update pixel @ 41*13,47*8 get cGet1003 size 120,26 of oDlg update pixel @ 41*13,62*8 get cGet1004 size 120,26 of oDlg update pixel @ 41*13,77*8 get cGet1005 size 120,26 of oDlg update pixel //-* Row 11 @ 43*13,17*8 get cGet1101 size 120,26 of oDlg update pixel @ 43*13,32*8 get cGet1102 size 120,26 of oDlg update pixel @ 43*13,47*8 get cGet1103 size 120,26 of oDlg update pixel @ 43*13,62*8 get cGet1104 size 120,26 of oDlg update pixel @ 43*13,77*8 get cGet1105 size 120,26 of oDlg update pixel @ 50,20 button "&Ok" size 80,20 of oDlg ; action &#40;MsgInfo&#40;"You click OK button!"&#41;,oDlg&#58;End&#40;&#41;&#41; @ 50,40 button "&Cancel" size 80,20 of oDlg ; action &#40;MsgInfo&#40;"You click Cancel button!"&#41;,oDlg&#58;End&#40;&#41;&#41; ACTIVATE dialog oDlg ; ON INIT &#40; TScrDlg&#40;&#41;&#58;New&#40;oDlg,1,40,1,70&#41; &#41; RETURN&#40; NIL &#41; //============================================================================ // FileName &#58; SCROLL&#46;PRG // Purpose &#58; dialog Scroll Class // Author &#58; Eric Yang // Update History &#58; // Date Contents // ---------- --------------------------------------------------------------- // 1997&#46;02&#46;01 // //============================================================================ #include "FiveWin&#46;ch" #ifndef TRUE #define TRUE &#46;T&#46; #define FALSE &#46;F&#46; #endif CLASS TScrDlg DATA oDlg DATA nVPos,nHPos METHOD New&#40; oDlg,nV1,nV2,nH1,nH2 &#41; CONSTRUCTOR METHOD SetScroll&#40; nV1,nV2,nH1,nH2 &#41; //-*------------------------------------------------------------ METHOD VScroll&#40;&#41; METHOD VScrollThumb&#40;&#41; METHOD VScrollTrack&#40;&#41; METHOD VScrollPgDown&#40;&#41; METHOD VScrollPgUp&#40;&#41; //-*----------------------------- METHOD HScroll&#40;&#41; METHOD HScrollThumb&#40;&#41; METHOD HScrollTrack&#40;&#41; METHOD HScrollPgDown&#40;&#41; METHOD HScrollPgUp&#40;&#41; ENDCLASS METHOD New&#40; oDlg,nV1,nV2,nH1,nH2 &#41; CLASS TScrDlg &#58;&#58;nVPos &#58;= 0 &#58;&#58;nHPos &#58;= 0 &#58;&#58;oDlg &#58;= oDlg &#58;&#58;SetScroll&#40; nV1,nV2,nH1,nH2 &#41; RETURN Self METHOD SetScroll&#40; nV1,nV2,nH1,nH2 &#41; CLASS TScrDlg LOCAL aCoors1&#58;=&#123;&#125;,aCoors2&#58;=&#123;&#125; //-------------------------------------------------- //-* Vertical Scroll Bar // ? &#58;&#58;oDlg&#58;oVSCroll=NIL if &#58;&#58;oDlg&#58;oVScroll != NIL // ? nV1,nV2 &#58;&#58;oDlg&#58;oVScroll&#58;SetRange&#40; nV1,nV2 &#41; &#58;&#58;nVPos &#58;= &#58;&#58;oDlg&#58;oVScroll&#58;GetPos&#40;&#41; &#58;&#58;oDlg&#58;oVScroll&#58;bGoDown &#58;= &#123;|| &#58;&#58;VScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bGoUp &#58;= &#123;|| &#58;&#58;VScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bPageUp &#58;= &#123;|| &#58;&#58;VScrollPgUp&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bPageDown &#58;= &#123;|| &#58;&#58;VScrollPgDown&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bGoTop &#58;= &#123;|| &#58;&#58;VScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bGoBottom &#58;= &#123;|| &#58;&#58;VScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;nPgStep &#58;= 10 //&#58;&#58;oDlg&#58;oVScroll&#58;lReDraw &#58;= TRUE &#58;&#58;oDlg&#58;oVScroll&#58;bPos &#58;= &#123;|nPos| &#58;&#58;VScrollThumb&#40;nPos&#41; &#125; &#58;&#58;oDlg&#58;oVScroll&#58;bTrack &#58;= &#123;|nPos| &#58;&#58;VScrollTrack&#40;nPos&#41; &#125; endif //-------------------------------------------------- //-* Horizontal Scroll Bar if &#58;&#58;oDlg&#58;oHScroll != NIL &#58;&#58;oDlg&#58;oHScroll&#58;SetRange&#40; nH1,nH2 &#41; &#58;&#58;nHPos &#58;= &#58;&#58;oDlg&#58;oHScroll&#58;GetPos&#40;&#41; &#58;&#58;oDlg&#58;oHScroll&#58;bGoDown &#58;= &#123;|| &#58;&#58;HScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bGoUp &#58;= &#123;|| &#58;&#58;HScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bPageUp &#58;= &#123;|| &#58;&#58;HScrollPgUp&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bPageDown &#58;= &#123;|| &#58;&#58;HScrollPgDown&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bGoTop &#58;= &#123;|| &#58;&#58;HScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bGoBottom &#58;= &#123;|| &#58;&#58;HScroll&#40;&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;nPgStep &#58;= 10 //&#58;&#58;oDlg&#58;oHScroll&#58;lReDraw &#58;= TRUE &#58;&#58;oDlg&#58;oHScroll&#58;bPos &#58;= &#123;|nPos| &#58;&#58;HScrollThumb&#40;nPos&#41; &#125; &#58;&#58;oDlg&#58;oHScroll&#58;bTrack &#58;= &#123;|nPos| &#58;&#58;HScrollTrack&#40;nPos&#41; &#125; endif //&#58;&#58;oDlg&#58;bKeyChar &#58;= &#123;|nKey,nFlags| ScrollKey&#40;nKey&#41; &#125; //-------------------------------------------------- RETURN&#40; NIL &#41; //STATIC FUNCTION ScrollKey&#40;nKey&#41; //MsgInfo&#40; "Key &#58; "+str&#40;nKey,10&#41; &#41; //if nKey == K_ENTER // goMainDlg&#58;End&#40;&#41; // lRetVal &#58;= TRUE //endif //RETURN&#40; NIL &#41; //================================================================= //-* Vertical Scroll Bar METHOD VScroll&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nVPos >= &#58;&#58;oDlg&#58;oVScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nVPos <= &#58;&#58;oDlg&#58;oVScroll&#58;nMax nNewPos &#58;= &#58;&#58;oDlg&#58;oVScroll&#58;GetPos&#40;&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40; &#58;&#58;nVPos-nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD VScrollThumb&#40;nNewPos&#41; CLASS TScrDlg if &#58;&#58;nVPos >= &#58;&#58;oDlg&#58;oVScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nVPos <= &#58;&#58;oDlg&#58;oVScroll&#58;nMax &#58;&#58;oDlg&#58;oVScroll&#58;SetPos&#40;nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40;&#58;&#58;nVPos - nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD VScrollTrack&#40;nNewPos&#41; CLASS TScrDlg if &#58;&#58;nVPos >= &#58;&#58;oDlg&#58;oVScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nVPos <= &#58;&#58;oDlg&#58;oVScroll&#58;nMax &#58;&#58;oDlg&#58;oVScroll&#58;SetPos&#40;nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40;&#58;&#58;nVPos - nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD VScrollPgDown&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nVPos < &#58;&#58;oDlg&#58;oVScroll&#58;nMax nNewPos &#58;= &#58;&#58;nVPos + &#58;&#58;oDlg&#58;oVScroll&#58;nPgStep nNewPos &#58;= iif&#40;nNewPos > &#58;&#58;oDlg&#58;oVScroll&#58;nMax, &#58;&#58;oDlg&#58;oVScroll&#58;nMax, nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40; &#58;&#58;nVPos - nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD VScrollPgUp&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nVPos > &#58;&#58;oDlg&#58;oVScroll&#58;nMin nNewPos &#58;= &#58;&#58;nVPos - &#58;&#58;oDlg&#58;oVScroll&#58;nPgStep nNewPos &#58;= iif&#40;nNewPos < &#58;&#58;oDlg&#58;oVScroll&#58;nMin,&#58;&#58;oDlg&#58;oVScroll&#58;nMin,nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, 0, ; &#40; &#58;&#58;nVPos - nNewPos &#41;*D_HEIGHT, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nVPos &#58;= nNewPos endif RETURN&#40; NIL &#41; //================================================================= //-* Horizontal Scroll Bar METHOD HScroll&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nHPos >= &#58;&#58;oDlg&#58;oHScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nHPos <= &#58;&#58;oDlg&#58;oHScroll&#58;nMax nNewPos &#58;= &#58;&#58;oDlg&#58;oHScroll&#58;GetPos&#40;&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40;&#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD HScrollThumb&#40;nNewPos&#41; CLASS TScrDlg if &#58;&#58;nHPos >= &#58;&#58;oDlg&#58;oHScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nHPos <= &#58;&#58;oDlg&#58;oHScroll&#58;nMax &#58;&#58;oDlg&#58;oHScroll&#58;SetPos&#40;nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40;&#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD HScrollTrack&#40;nNewPos&#41; CLASS TScrDlg if &#58;&#58;nHPos >= &#58;&#58;oDlg&#58;oHScroll&#58;nMin ; &#46;and&#46; &#58;&#58;nHPos <= &#58;&#58;oDlg&#58;oHScroll&#58;nMax &#58;&#58;oDlg&#58;oHScroll&#58;SetPos&#40;nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40;&#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD HScrollPgDown&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nHPos < &#58;&#58;oDlg&#58;oHScroll&#58;nMax nNewPos &#58;= &#58;&#58;nHPos + &#58;&#58;oDlg&#58;oHScroll&#58;nPgStep nNewPos &#58;= iif&#40;nNewPos > &#58;&#58;oDlg&#58;oHScroll&#58;nMax, &#58;&#58;oDlg&#58;oHScroll&#58;nMax, nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40; &#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; METHOD HScrollPgUp&#40;&#41; CLASS TScrDlg LOCAL nNewPos if &#58;&#58;nHPos > &#58;&#58;oDlg&#58;oHScroll&#58;nMin nNewPos &#58;= &#58;&#58;nHPos - &#58;&#58;oDlg&#58;oHScroll&#58;nPgStep nNewPos &#58;= iif&#40;nNewPos < &#58;&#58;oDlg&#58;oHScroll&#58;nMin,&#58;&#58;oDlg&#58;oHScroll&#58;nMin,nNewPos&#41; SysRefresh&#40;&#41; ScrollWindow&#40; &#58;&#58;oDlg&#58;hWnd, ; &#40; &#58;&#58;nHPos - nNewPos &#41;*D_WIDTH,0, ; 0 , GetClientRect&#40;&#58;&#58;oDlg&#58;hWnd&#41; &#41; &#58;&#58;nHPos &#58;= nNewPos endif RETURN&#40; NIL &#41; //=* End of File ================================================= procedure AppSys // Xbase++ requirement return [/code:10vba97n]
Antonio es posible VScroll a un dialogo desde recursos ?
Hello Rochinha, Thanks your sample code. It's working. Regards, Richard
Antonio es posible VScroll a un dialogo desde recursos ?
Hola Rochinha Muchas Gracias por tu pronta respuesta !! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Muito obrigado <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> Saludos
Antonio es posible VScroll a un dialogo desde recursos ?
Rochinha Termine mis pruebas y...... funciono perfecto !!!!! Muchas Gracias Saludos
Antonio es posible VScroll a un dialogo desde recursos ?
Gracias E gracias en nombre de mi amigo!
Antonio es posible VScroll a un dialogo desde recursos ?
He probado con un dialogo desde recursos y no me funciona... no hace nada <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Antonio gracias por FWH 12.04 pero no me funciona
Antonio, gracias, ya recibí FWH 12.04 Pero no me funciona. Cualquier ejemplo que compile me genera el mismo error al momento de ejecución: [img:3hqcj3hm]http&#58;//www&#46;mastersoft3000&#46;com/publico/fivewin/errorfwh01&#46;jpg[/img:3hqcj3hm] Tengo xHarbour build 1.2.1 Intl (simples) (Rev.9363) - Pcode 10 Borland C++ 5.8.2 Windows xp SP2 Este es el ambiente en el equipo que uso para desarrollo y que he utilizado por los útimos dos años sin ningún problema, con FWH 10.10 Qué puede ser ? Gracias y saludos, Carlos Gallego
Antonio gracias por FWH 12.04 pero no me funciona
Carlos, Usa la versión de xHarbour más reciente de las publicadas aqui: [url:nbbsxodi]http&#58;//code&#46;google&#46;com/p/harbour-and-xharbour-builds/downloads/list[/url:nbbsxodi]
Antonio limite de controles en aplicacion
Antonio, compañeros : Existe algun limite de controles en la app ? Hace algunos dias la app me empezo a hacer cosas raras como cerrarse de repente sin aviso alguno, despues de estar checando y probando mil cosas, descubri que si comentaba los ultimos controles que genere todo funciona correctamente, si los activo empieza a fallar. Hubo momentos que generaba un aviso de error y decia que los handlers del sistema estaban agotados ( error 1158 ) mi pc de desarrollo es i7 con 6 gb ram Ya intente destruir el handle de cada recordset y nada : ors:close ors:ActiveConnection:hObj := nil ors := nil Ya hice una depuracion de variables y sigue igual, de hecho casi acabo de pasar todas mis vars locales a un hash para efectos de tener 1 a 3 variables por funcion como maximo Estoy buscando controles que no afecten o sean muy importantes para quitarlos : say, checkbox, buttons, etc Y por ultimo, estoy pensando en dividir algunas funciones en otras mas pequeñas. Como datos estadisticos : - 27 prgs ( algunos son pequenos ) - 120,000 lineas de codigo entre todos - 4,150 redefines entre todos - 11 archivos de recursos (.rc) Alguna sugerencia o tip por checar para tratar de corregir este detalle, ya que de alguna manera necesito agregar mas funciones a la app. Saludos
Antonio limite de controles en aplicacion
Raymundo, En el control de tareas de Windows, activa las columnas para ver consumo de memoria, handles abiertos, etc por aplicación y monitoriza como se comporta la aplicación. Posiblemente estes abriendo handles que no se cierren, más y más, hasta que llegas al límite de memoria. En 32 bits ese límite esta en torno a dos gigas y pico aunque en realidad debiera ser de 4 gigas, pero Windows no da a la aplicación toda la memoria que debiera.
Antonio limite de controles en aplicacion
Antonio, Ok, de entrada me sale : memoria : 80,XXX kb Obj usuario : 9,700 Obj GDI : 5,795 Y sip, conforme me muevo en la app va incrementando de poco en poco, pero nunca disminuye o regresa al valor original. Voy a checar el codigo de tales funciones para donde esta el leak de recursos. Aunque lo raro, es que el problema se presenta(ba) al iniciar la app. El detalle que tengo es que cierro y abro la app constantemente, segun hago ajustes. Le voy a pedir a unos clientes que chequen el dato ya que ellos le dan uso real todo el dia. Checo y te informo. Gracias y saludos
Antonio mi mail?
Hola Antonio, Viste mi mail?
Antonio mi mail?
Hola Carles, Si, lo vi y se procesó y se te envió al email que especificaste No lo has recibido ?
Antonio mi mail?
[quote="Antonio Linares":1pwb4ucp]Hola Carles, Si, lo vi y se procesó y se te envió al email que especificaste No lo has recibido ?[/quote:1pwb4ucp] Pués no, he repasado el SPAM y nada, no lo veo.
Antonio mi mail?
Carles, A que email te lo envío ? Escribeme por wasap si quieres 722461100
Antonio mi mail?
[quote="Antonio Linares":3mnk2t7k]Carles, A que email te lo envío ? Escribeme por wasap si quieres 722461100[/quote:3mnk2t7k] Hecho.
Antonio no recibes mis mail.
Hola Antonio, Acabo de ver por que no recibes mis mails: "This is the mail system at host soproxy6.mail.unifiedlayer.com. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <antonio.fivetech@????????.com>: host gmail-smtp-in.l.google.com[142.250.27.26] said: 550-5.7.25 [74.220.223.234] The IP address sending this message does not have a 550-5.7.25 PTR record setup, or the corresponding forward DNS entry does not 550-5.7.25 point to the sending IP. As a policy, Gmail does not accept messages 550-5.7.25 from IPs with missing PTR records. Please visit 550-5.7.25 <!-- m --><a class="postlink" href="https://support.google.com/mail/answer/81126#ip-practices">https://support.google.com/mail/answer/ ... -practices</a><!-- m --> for more 550 5.7.25 information. o19-20020a170906975300b0079800b8172bsi13778005ejy.450 - gsmtp (in reply to end of DATA command)" Y no tengo ni idea de que es el PTR. Envié el formulario ya una segunda vez, no tengo PayPal. Envío formulario de nuevo? Nota: los ?????? los he puesto yo.
Antonio no recibes mis mail.
Estimado Carlos, gracias por avisarme! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Contacta conmigo por whatsapp en +34 722461100 muchas gracias!
Antonio no recibes mis mail.
Carlos, Si tienes una cuenta de gmail, prueba por favor a enviarme un mensaje, debería llegar bien muchas gracias
Antonio no se olvide de mi login y contraseña SOLUCIONADO
ENVIADO GRACIAS Maestro no se olvide de enviarme el login y la contraseña, le envie mail a sus 2 cuentas, gracias y disculpe. Saludos Ruben Fernandez
Antonio please help me
Hi Antonio, Please help me with this issue: [url:1pihlpfu]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=24352[/url:1pihlpfu] If I could solve it not bother you. I think it will take only a couple of minutes of your time. It is important to continue the process of updating our programs to FWH 12.05 Regards, Carlos Gallego
Antonio please help me
Carlos, It is already solved <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=131395#p131395">viewtopic.php?p=131395#p131395</a><!-- l -->
Antonio please help me
Antonio, thanks for your answer. Indeed, disable / / :: Sistem lZoom as proposed by Sistem, the preview opens normally, but with the MouseWheel off. If the report is greater than the size shown in the preview does not work MouseWheel. If the user wants to see the full report has to minimize and then maximize it, or zoom in so that the MouseWheel works. We are close but still missing something. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Rregards, Carlos Gallego
Antonio podrías darme una ayuda ? (Solucionado)
Antonio: Esto. <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=30084&start=15">viewtopic.php?f=6&t=30084&start=15</a><!-- l --> Saludos y gracias por tu apoyo
Antonio podrías darme una ayuda ? (Solucionado)
Tal vez: [code=fw:3h8crw8c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#define</span> HB_DIRBASE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> StrTran<span style="color: #000000;">&#40;</span> hb_DirBase<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"/"</span>, <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> )<br /><br />#define hb_RAt() &nbsp; &nbsp; <cSearch>, <cString>, [<nStart>], [<nEnd>]<br />#define hb_at() &nbsp; &nbsp; &nbsp;<cSearch>, <cString>, [<nStart>], [<nEnd>]<br /></span></div>[/code:3h8crw8c] 
Antonio podrías darme una ayuda ? (Solucionado)
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=30084&p=171931#p171931">viewtopic.php?f=6&t=30084&p=171931#p171931</a><!-- l -->
Antonio podrías darme una ayuda ? (Solucionado)
Antonio: agregue la lib FiveH.lib pero aún me sigue botando errores, tome de Build.Bat las libs que ahí se están incluyendo pero no logro la compilación. Me ayudaría mucho si alguien me copia el script de xMate para compilar con Harbour, Bcc582 y FW, ojalá alguien se anime, así ya no doy más lata. Saludos
Antonio podrías darme una ayuda ? (Solucionado)
Armando, este es el archivo que uso para xMate. Sacale o agregale lo que necesites. Saludos [Environment] Description 1= Harbour, Fivewin Harbour Description 2= Description 3= PRG Compiler ver= C compiler ver= Subsystem= Author=Ruben Fernandez Last update=05/12/2014 [Advanced] Command types=1,1,1,1,1,1,1,1,1 [Harbour] HB_INSTALL=C:\Harbour122014 HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n0 /es2 /a /v /i% Option prefix=/ [C] C_INSTALL=C:\Bcc66 C_COMP_COMMAND=%C_BIN_INSTALL%\Bcc32.Exe -M -c -O2 -tW -v- -X %CRLF%-DHB_FM_STATISTICS_OFF %CRLF%-DHB_NO_DEFAULT_API_MACROS %CRLF%-DHB_NO_DEFAULT_STACK_MACROS %CRLF%-DHB_OS_WIN_32 %CRLF%-I%C_INC_INSTALL%;%HB_INC_INSTALL% -n%HOME%\Obj %C% C_LIB_COMMAND=%C_BIN_INSTALL%\TLib.Exe %LIB% /P512 @%RSP% , %LST% C_LINK_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -aa -Tpe -s @%LNK% C_RC_COMMAND=%C_BIN_INSTALL%\Brc32.Exe -r -fo%RES% %RC% C_DLL_COMMAND= Option prefix=- [User] POSTEXE_COMMAND= POSTLIB_COMMAND= POSTDLL_COMMAND= [Files] %C_LIB_INSTALL%\C0W32.OBJ=1 C:\fwh1404\lib\xlslibh.lib=3 C:\FWH1404\lib\Fiveh.lib=4 C:\FWH1404\lib\Fivehc.lib=5 %HB_LIB_INSTALL%\hbrtl.lib=6 %HB_LIB_INSTALL%\hbvm.lib=7 %HB_LIB_INSTALL%\gtgui.lib=8 %HB_LIB_INSTALL%\hblang.lib=9 %C_LIB_INSTALL%\IMPORT32.LIB=10 %HB_LIB_INSTALL%\hbmacro.lib=11 %HB_LIB_INSTALL%\hbcommon.lib=12 %HB_LIB_INSTALL%\hbpp.lib=13 %C_LIB_INSTALL%\CW32.LIB=14 %HB_LIB_INSTALL%\hbwin.lib=15 %HB_LIB_INSTALL%\hbcpage.lib=16 %HB_LIB_INSTALL%\hbnf.lib=17 %C_LIB_INSTALL%\psdk\msimg32.lib=18 %C_LIB_INSTALL%\psdk\odbc32.lib=19 %C_LIB_INSTALL%\psdk\nddeapi.lib=20 %C_LIB_INSTALL%\psdk\iphlpapi.lib=21 %C_LIB_INSTALL%\psdk\rasapi32.lib=22 %C_LIB_INSTALL%\psdk\psapi.lib=23 %HB_LIB_INSTALL%\hbcplr.lib=24 %HB_LIB_INSTALL%\hbpcre.lib=25 %HB_LIB_INSTALL%\hbrdd.lib=26 %HB_LIB_INSTALL%\hbsix.lib=27 %HB_LIB_INSTALL%\rddcdx.lib=28 %HB_LIB_INSTALL%\rddfpt.lib=29 %HB_LIB_INSTALL%\rddnsx.lib=30 %HB_LIB_INSTALL%\rddntx.lib=31 %HB_LIB_INSTALL%\hbct.lib=32 %HB_LIB_INSTALL%\xhb.lib=33 %HB_LIB_INSTALL%\hbzlib.lib=34 %HB_LIB_INSTALL%\png.lib=35 %HB_LIB_INSTALL%\hbcurl.lib=36 %HB_LIB_INSTALL%\Shell32.lib=37 C:\FWH1404\lib\libcurl.lib=38
Antonio podrías darme una ayuda ? (Solucionado)
Armando, Puedes usar Fivedit para construir tu aplicación FWH desde él <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:33i3qg6q]https&#58;//bitbucket&#46;org/fivetech/fivewin-contributions/downloads/fivedit&#46;zip[/url:33i3qg6q]
Antonio podrías darme una ayuda ? (Solucionado)
Rubén, Antonio: Muchas gracias por su apoyo, ahora todo está solucionado he compilado mi primera pequeña aplicación con Harbour. Saludos
Antonio podrías darme una ayuda ? (Solucionado)
Un pequeño gran paso. Me alegro. Saludos.
Antonio por favor preciso muito disso! (resolvido !)
Antonio e amigos, preciso criar um timer que de tempos em tempos verifique a situacao e troque BMP de botoes BTNBMP, não estou conseguindo: local obtn define window oWndc from 0,0 TO 25,70 MDICHILD OF oWnd define timer otimesa of owndc interval 5000 action(trocabmp(obtn)) @ 10,20 BTNBMP oBtn resource "FOOD2" TOP SIZE 60,60 OF oWndc ACTIVATE WINDOW oWndc on inti(otimesa:activate()) ************************ function trocabmp(obtn) ************************ obtn:loadbitmap(getresources(),"LUPA") obtn:refresh() return(.t.) Esta retornando erro no refresh e sem refresh não troca imagem. Fique com Deus Grato Aoki
Antonio por favor preciso muito disso! (resolvido !)
Crea el botón antes de crear el timer: @ 10,20 BTNBMP oBtn resource "FOOD2" TOP SIZE 60,60 OF oWndc define timer otimesa of owndc interval 5000 action(trocabmp(obtn))
Antonio por favor preciso muito disso! (resolvido !)
Antonio, não resolveu... segue meu ERROR.LOG e PRG: Application =========== Path and name: C:\DBF\sgs.exe (32 bits) Size: 3,464,192 bytes Time from start: 0 hours 0 mins 17 secs Error occurred at: 23/08/2007, 18:01:19 Error description: Error BASE/1004 Message not found: TBTNBMP:LOADBIMTAP Stack Calls =========== Called from: => TBTNBMP:ERROR(179) Called from: tobject.prg => (b)HBOBJECT:HBOBJECT(105) Called from: => TBTNBMP:MSGNOTFOUND(0) Called from: BTNBMP.PRG => TBTNBMP:LOADBIMTAP(167) Called from: mesas.prg => VERSITUAMESAS(59) Called from: mesas.prg => (b)SELECIONAMESA(43) Called from: TIMER.PRG => TIMEREVENT(0) Called from: window.prg => (b)TWINDOW:TWINDOW(554) Called from: window.prg => TMDICHILD:TIMER(0) Called from: window.prg => TWINDOW:HANDLEEVENT(0) Called from: MDICHILD.PRG => TMDICHILD:HANDLEEVENT(0) Called from: window.prg => _FWH(3165) Called from: => WINRUN(0) Called from: window.prg => TMDIFRAME:ACTIVATE(883) Called from: sgs.PRG => MAIN(219) #include "FiveWin.ch" ******************************************************** FUNCTION SelecionaMesa(nmesa,cmod,nMaxMesa,off,cDescTipo) ******************************************************** LOCAL oScrWnd,i,j,contamesas:=0,osay,oBt2,cfupla,coImg,otimesa,Mobtn[nMaxMesa], aMesasOcup := {},aMesasPFech := {} SituacaoMesas(cMod,nMaxMesa,@aMesasOcup,@aMesasPFech) define window oWndc from 0, 0 TO 25, 70 ; title "Controle de Mesas" MDICHILD OF oWnd vscroll icon oico COLOR EMP_MCOR,EMP_MCOR NOICONIZE oWndc:maximize() for i := 1 to 500 for j := 1 to 10 contamesas++ if contamesas<=nMaxMesa if empty(ascan(aMesasOcup,contamesas)) @ (((i+.1) * 70) - 70), ((j * 76) - 60) BTNBMP MoBtn[contamesas] resource "FOOD2","YES" TOP SIZE 60, 60 OF oWndc noborder else @ (((i+.1) * 70) - 70), ((j * 76) - 60) BTNBMP MoBtn[contamesas] resource "FOOD1","YES" TOP SIZE 60, 60 OF oWndc endif MoBtn[contamesas]:settext("Mesa: "+alltrim(str(contamesas))) else exit endif next next if emp_cors IF ! FILE(ALLTRIM(emp_plan)) cfupla:=SI1+"sgs.jpg" ELSE cfupla:=emp_plan ENDIF coImg := TImage():Define( , cfupla ) oWndc:bPainted := {|hDC| PalBmpDraw( hDC, 0, 0,coImg:hBitmap,, oWndc:nWidth, oWndc:nHeight, , .T.) } endif define timer otimesa of owndc interval 10000 action(VERSITUAMESAS(nMaxMesa,cmod,Mobtn)) otimesa:activate() ACTIVATE WINDOW oWndc MAXIMIZED on init(TScrWnd():New( oWndc, 1, nMaxMesa, 1, 70 )); valid(otimesa:deactivate(),oWndc:=NIL,.t.) return !empty(nMesa) ******************************************* FUNCTION VERSITUAMESAS(nMaxMesa,cmod,Mobtn) ******************************************* mobtn[1]:loadbimtap(getresources(),"LUPA") mobtn[1]:refresh() RETURN(.T.)
Antonio por favor preciso muito disso! (resolvido !)
Que error da ?
Antonio por favor preciso muito disso! (resolvido !)
Antonio, Bom dia, o erro já esta postado acima e esta ocorrendo nesta linha: moBtn[1]:loadbitmap(getresources(),"LUPA") <- erro moBtn[1]:refresh() Application =========== Path and name: C:\DBF\sgs.exe (32 bits) Size: 3,464,192 bytes Time from start: 0 hours 0 mins 8 secs Error occurred at: 24/08/2007, 08:05:47 Error description: Error BASE/1004 Message not found: TBTNBMP:LOADBITMAP Stack Calls =========== Called from: => TBTNBMP:ERROR(179) Called from: tobject.prg => (b)HBOBJECT:HBOBJECT(105) Called from: => TBTNBMP:MSGNOTFOUND(0) Called from: BTNBMP.PRG => TBTNBMP:LOADBITMAP(167) Called from: mesas.prg => VERSITUAMESAS(68) Called from: mesas.prg => (b)SELECIONAMESA(45) Called from: TIMER.PRG => TIMEREVENT(0) Called from: window.prg => (b)TWINDOW:TWINDOW(554) Called from: window.prg => TMDICHILD:TIMER(0) Called from: window.prg => TWINDOW:HANDLEEVENT(0) Called from: MDICHILD.PRG => TMDICHILD:HANDLEEVENT(0) Called from: window.prg => _FWH(3165) gracias Antonio... Aoki
Antonio por favor preciso muito disso! (resolvido !)
Antonio, muito obrigado! Resolvi usando loadbitmaps("RECURSO") Muito obrigado e Deus te abençoe! Aoki
Antonio problema en Get cláusulas WHEN y CANCEL
Hola compañeros, Tengo un problema que no consigo darle solución: Al pulsar el botón Desactivar, deberían quedar desactivados el propio botón desactivar, el Get y activado el botón Activar. Sin embargo, no sucede en la forma que debería. Si suprimimos la cláusula VALID del Get y la cláusula CANCEL del botón Desactivar, obtenemos el comportamiento deseado. ¿Alguna Sugerencia? Dejo un ejemplo con el problema: [code=fw:2mq3alsb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg<br />   <span style="color: #00C800;">local</span> cName1 := <span style="color: #ff0000;">"             "</span><br />   <span style="color: #00C800;">local</span> lEdit := .t.<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;">1</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Hello World!"</span><br />   <br />   @  <span style="color: #000000;">05</span>,  <span style="color: #000000;">18</span> <span style="color: #0000ff;">GET</span> cName1  <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">WHEN</span> lEdit COLORS <span style="color: #ff0000;">"B/BG"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">VALID</span> !Empty<span style="color: #000000;">&#40;</span> cName1 <span style="color: #000000;">&#41;</span><br />   <br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Desactivar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">WHEN</span> lEdit <span style="color: #0000ff;">ACTION</span> lEdit := .f. CANCEL<br />   @ <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Activar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">WHEN</span> !lEdit <span style="color: #0000ff;">ACTION</span> lEdit := .t.<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2mq3alsb] Muchas gracias, Saludos!!!
Antonio problema en Get cláusulas WHEN y CANCEL
Hola He tomado tu ejemplo, lo he dejado así, y funciona [code=fw:2doysyvj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cName1 := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">25</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lEdit <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Hello World!"</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ &nbsp;<span style="color: #000000;">05</span>, &nbsp;<span style="color: #000000;">18</span> <span style="color: #0000ff;">GET</span> cName1 &nbsp;<span style="color: #0000ff;">WHEN</span> lEdit <span style="color: #0000ff;">VALID</span> !Empty<span style="color: #000000;">&#40;</span> cName1 <span style="color: #000000;">&#41;</span> COLORS <span style="color: #ff0000;">"B/BG"</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Desactivar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span> lEdit <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lEdit := .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CANCEL</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> oBtn1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Activar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span> !lEdit <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lEdit := .t.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtn:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oBtn1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Odlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> lEdit := .F.<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2doysyvj]
Antonio problema en Get cláusulas WHEN y CANCEL
Pedro, Gracias por tu ayuda. Si eliminamos la cláusula CANCEL (que es la que permite saltarse el VALID del Get), Al situarte en el Get, no puedes pinchar sobre el botón Desactivar. La cláusula CANCEL es necesaria 100%. En mi código había hecho alguna prueba con los Refresh y Updates, el problema está en que tampoco corrigen el problema, además de que el código tiene más de 200 controles (entre browses, gets, botones, etc.) por lo que ir actualizando uno a uno es realmente complicado. Por la misma razón no utilizo los métodos de cada clase :Enable() y <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->isable(). Creo que el problema es un funcionamiento extraño de la cláusula CANCEL. A ver si alguien nos saca de dudas y consigue que funcione correctamente si es que el comportamiento no es el esperado. Saludos!
Antonio problema en Get cláusulas WHEN y CANCEL
Francisco, (HA DESAPARECIDO TU POST) Muchas gracias por tu ayuda. Si lo hago de esta manera, al tener unos 200 controles que actualizar en el diálogo como decía antes, necesito incluir unas 199 cláusulas Enable() y otras 199 cláusulas Disable(). En el ejemplo se usa un GET y dos botones, en mi código son unos 200 controles a actualizar entre GETS, BROWSES, SAYS, ETC., cuando el problema que veo es un comportamiento anormal cuando un botón tiene la cláusula CANCEL. Por cierto, si lo hago de esta manera que indicas, me sobran entonces todas las cláusulas WHEN de los controles. Antonio, ¿es correcto este comportamiento cuando se pone la cláusula CANCEL? Saludos!
Antonio problema en Get cláusulas WHEN y CANCEL
¿A nadie se le ocurre algo o es que el comportamiento es el esperado?. Estoy atascado con esto... Gracias.
Antonio problema en Get cláusulas WHEN y CANCEL
Triunvirato, esto lo hice al vuelo (es solo un ejemplo, no lo he probado): Function Des_Act_Ctrls(oDlg, lActivar) local aCtrls, n aCtrls:=oDlg:aControls if !lActivar //desactivar For n:= 1 to len(aCtrls) if aCtrls[n]:ClassName() ="TBUTTON" .or. aCtrls[n]:ClassName() = "TGET" if oDlg:aControls[n]:ClassName() = "TGET" oDlg:aControls[n]:Disable() endif if oDlg:aControls[n]:ClassName() ="TBUTTON" .and. oDlg:aControls[n]:cText = "ACTIVAR" //queda activo este bot oDlg:aControls[n]:Enable() else //desactivar resto de botones oDlg:aControls[n]:Disable() endif endif Next else //Activar For n:= 1 to len(aCtrls) if aCtrls[n]:ClassName() ="TBUTTON" .or. aCtrls[n]:ClassName() = "TGET" if oDlg:aControls[n]:ClassName() = "TGET" oDlg:aControls[n]:Enable() endif if oDlg:aControls[n]:ClassName() ="TBUTTON" .and. oDlg:aControls[n]:cText = "ACTIVAR" //queda act este bot oDlg:aControls[n]:Disable() else //resto de botones quedan activos oDlg:aControls[n]:Enable() endif endif Next endif Saludos
Antonio problema en Get cláusulas WHEN y CANCEL
Francisco, Gracias por tu ayuda. Estoy probando el trocito de código que has propuesto. Me ha abierto los ojos para muchas cosas, es muy interesante (de hecho ya le he dado uso en otras partes de mi código), pero para este caso concreto no me sirve, pues los controles que han de funcionar son unos 200, pero en ese mismo diálogo hay otros tantos que no. Por tanto me quedan o todos activados o desactivados (incluidos los que no hay que hacer nada con ellos). A ver si Antonio pasa por aquí y nos puede decir algo sobre el comportamiento de ese CANCEL. GRACIAS!
Antonio problema en Get cláusulas WHEN y CANCEL
David, Todos los controles estan contenidos en oDlg:aControls por lo que puedes hacer: AEval( oDlg:aControls, { | oControl | oControl:Enable() } ) ó lo que necesites <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Antonio problema en Get cláusulas WHEN y CANCEL
David, Con este pequeño cambio, tu ejemplo funciona como deseas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:1tpamjfa]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Desactivar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">WHEN</span> lEdit ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lEdit := .f., oDlg:<span style="color: #000000;">AEvalWhen</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> CANCEL<br />&nbsp;</div>[/code:1tpamjfa]
Antonio problema en Get cláusulas WHEN y CANCEL
Antonio, Gracias, de verdad muchas gracias, funcionó perfectamente, ese era el comportamiento que yo esperaba e imaginaba que haría automáticamente. Muchas gracias, Saludos!
Antonio problema en Get cláusulas WHEN y CANCEL
bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Las evaluaciones de los WHEN solo se realizan en las pérdidas de foco es por esto que hay que llamar a oDlg:AEvalWhen() para forzar que se realice <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Antonio question about TFolder class
Hello Antonio, Did you find any time to look at my question concerning the TFolder class ? Thanks. Michel
Antonio question about TFolder class
Michel The tfolder class works OK in fwh Just a small advice, Get rid of all Borland Controls (Borshade,...etc). This is the best way to have your app running. Borland controls were a problem to many of us. Hth Richard
Antonio question about TFolder class
Richard, How do I get rid of the Borland Controls ? Resource Workshop uses but the Borland Controls. For dialog boxes one can choose between BorDlg_Gray or BorDlg. Without Borland Controls some controls are colored a very ugly gray. What is the alternative while using resources ? Thanks. Michel
Antonio question about TFolder class
Michel You can set color to your dialog boxes from your source code. When you select the dialog in resource workshop, select none (borlandgray, or borland you have a third selection (none) blank) You can customize all your screens without any borland control. If you need further help or samples, let me know. My 2 cents Richard
Antonio question about TFolder class
Hello guys, I found the reason why my folders didn't appear in my dialog box. (See my previous topic to see examples). There was a control (a box around the folders) which is put in the background in FW16. In FW32 though it is put in front of the folders which make them invisible. I got rid of those boxes and guess what : my folders were back. Thanks anyway for your efforts to help me. Many greetings, Michel
Antonio question about TFolder class
Michel, When you refer to the differences between FW16 and FW32, remember that some of these differences may be due to different versions of FW rather than 16bit vs 32bit. I presume you have an older version of FW16 than the version of FW32 that you are using. James
Antonio question about TFolder class
Hello guys, My problem concerning my folders is solved. In FW16 I had a box drawn around my folders and it showed beautiful. In FW32 the box comes on top of the folders. So I got rid of the box and the folders reappeared again. Thank you so much for helping me. Regards, Michel
Antonio question about TFolder class
[quote:1ycdeh6q]So I got rid of the box and the folders reappeared again[/quote:1ycdeh6q] Seems to be the order the controls are defined in RC. Try to put the box at the begining of the dialog, before the other controls.
Antonio quien causa esto ? FWH o xHarbour ???
Antonio : Desde que actualize el FWH he estado observando este comportamiento : Cuando por algun motivo se truena la app, antes me mandaba la clasica ventana que indicaba el error, el numero de linea, el campo o variable, etc. ahora solo me muestra esta pantalla : [img:3eg3sqbn]http&#58;//img142&#46;imageshack&#46;us/img142/6651/errormsgzb9&#46;jpg[/img:3eg3sqbn] Y esta medio dificil saber de que se trata. Que o quien esta mostrando este mensaje, hay alguna manera de ver la pantalla anterior ?? Saludos
Antonio quien causa esto ? FWH o xHarbour ???
Raymundo, Con que código PRG generas ese error ?
Antonio quien causa esto ? FWH o xHarbour ???
Master : Con cualquier error que me tope. Como comento, antes salia y decia de que se trataba, ahora normalmente sale ese en cualquier circunstacia. Saludos
Antonio quien causa esto ? FWH o xHarbour ???
Hola Raymundo modifica el errsysw.prg en la linea 78 [code:36ig6jvu] ErrorBlock&#40; &#123;|e| MsgStop&#40; ErrorMessage&#40;e&#41; + " from Errorsys, line&#58;" + ; Str&#40; ProcLine&#40; 1 &#41;, 4 &#41; &#41;, __quit&#40;&#41; &#125; &#41; [/code:36ig6jvu] por esta [code:36ig6jvu] ErrorBlock&#40; &#123;|e| MsgStop&#40; ErrorMessage&#40;e&#41; + " desde Errorsys, linea&#58;" + ; Alltrim&#40;cValtochar&#40;ProcLine&#40; 1 &#41; &#41; &#41; &#41;,; MsgInfo&#40; PadR&#40; alltrim&#40;cErrorLog&#41;,at&#40; "System", cErrorLog &#41;+10 &#41;&#41;,; __quit&#40;&#41; &#125; &#41; [/code:36ig6jvu]
Antonio quien causa esto ? FWH o xHarbour ???
Raymundo: Alguna vez me tope con ese error, por favor revisa tus variables y archivos DBF, creo ( porque no recuerdo bien), que se trataba de una variable no declarada o de un archivo corrupto. Saludos y suerte Ruben Fernandez.
Antonio quien causa esto ? FWH o xHarbour ???
Hola Ruben En efecto, el detalle es el mensaje no indica cual es la causa del error. Patricio Tienes razon, esa linea es la "culpable", modifico y pruebo. Gracias a todos !!! Saludos
Antonio quien causa esto ? FWH o xHarbour ???
Buen día para... Que tal Raymundo, prueba esta versión mejorada de ERRORSYSW a ver si te sirve Para bajarla <!-- m --><a class="postlink" href="http://www.mediafire.com/?dyifb5nhm23">http://www.mediafire.com/?dyifb5nhm23</a><!-- m --> Algunos detalles <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=10177&sid=8a5492327640fce6cff2051d68961b2c">http://fivetechsoft.com/forums/viewtopi ... 1d68961b2c</a><!-- m -->
Antonio quien causa esto ? FWH o xHarbour ???
Hola Antonio Gracias por tu alternativa, la bajo y la pruebo. Les agradezco a todos Saludos
Antonio quien causa esto ? FWH o xHarbour ???
Raymundo, Puedes proporcionar un pequeño PRG autocontenido que genere ese error ? Por ejemplo, te sale ese error con este código ? [code:2w59wpzx] function main&#40;&#41; x++ return nil [/code:2w59wpzx]
Antonio quien causa esto ? FWH o xHarbour ???
Antonio El problema es la funcion timeFromStart(), algo pasa con la variable static, siempre pasa cuando se produce un error al iniciar el sistema prueba lo siguiente [code:354iwlk3] FUNCTION MAIN&#40;&#41; //BLA //BLA RETURN NIL Init Procedure Inicio&#40;&#41; local lPaso &#58;= &#46;t&#46; lPaso ++ //probocar el error al inicio return[/code:354iwlk3] ahora prueba comentanto la linea [code:354iwlk3]//cErrorLog += " Time from start&#58; " + TimeFromStart&#40;&#41; + CRLF[/code:354iwlk3]
Antonio quien causa esto ? FWH o xHarbour ???
Patricio, Arreglado. La función TimeFromStart() hay que modificarla así: [code:3ajt589l] function TimeFromStart&#40;&#41; local nSeconds, nHours, nMins, nSecs if ValType&#40; aInitInfo&#91; 1 &#93; &#41; == "N" aInitInfo = &#123; Date&#40;&#41;, Seconds&#40;&#41; &#125; endif nSeconds = SecsFromStart&#40; aInitInfo&#91; 1 &#93;, aInitInfo&#91; 2 &#93; &#41; nHours = Int&#40; nSeconds / 3600 &#41; nMins = Int&#40; &#40; nSeconds - &#40; nHours * 3600 &#41; &#41; / 60 &#41; nSecs = Int&#40; nSeconds - &#40; nHours * 3600 &#41; - &#40; nMins * 60 &#41; &#41; return AllTrim&#40; Str&#40; nHours &#41; &#41; + " hours " + ; AllTrim&#40; Str&#40; nMins &#41; &#41; + " mins " + ; AllTrim&#40; Str&#40; nSecs &#41; &#41; + " secs " [/code:3ajt589l] Gracias!
Antonio se podra en el Ballon Tooltip esto ?
Master Se ven super los tooltips tipo globo, solo una pequena solicitud : Que posibilidad existe que se le pueda agregar un parametro adicional para pintarlos de X color. SetBalloon( .T., CLR_X ) Estaria fantastico !!!! Ahora, ya que andas metiendole degradados de color a los tabs, pues que le ajustes los metodos y pudieran quedar opcionalmente con este tipo : SetBalloon( .T., CLR_X, CLR_Y ) Ojala sea posible <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Saludos
Antonio se podra en el Ballon Tooltip esto ?
Saludos Raymundo Islas: Talves sea esto lo que estas buscando, yo lo eimplemente en mi sistema y trabaja de lujo.. Esta es una contribucíon de Rossine, ya tiene un buen tiempo rolando aqui en el foro y hasta ahora nadia ha reportado fallos con dicha contribución: Como te daras cuenta solo son pequeñas modificaciones y tus tooltips andaran de lujo.. <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=3623&highlight=ntooltipicon">http://fivetechsoft.com/forums/viewtopi ... ooltipicon</a><!-- m --> Saludos Paisano... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> I.S.C. Víctor Daniel Cuatécatl León. <!-- w --><a class="postlink" href="http://www.soldisoft.unlugar.com">www.soldisoft.unlugar.com</a><!-- w --> <!-- w --><a class="postlink" href="http://www.sisa.unlugar.com">www.sisa.unlugar.com</a><!-- w -->
Antonio se podra en el Ballon Tooltip esto ?
Hola Victor Muchas gracias por el tip, tienes razon, ese post ya tiene rato. Ok, hare mis pruebas. Te lo agradezco mucho. Saludos
Antonio seguramente es una tonteria
Hola Antonio, estoy estrenando la nueva version y cuando compilo con el Borland me da en todos los prg este mismo error. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland C\INICIO.c: Error E2451 C\INICIO.c 197: Undefined symbol 'HB_FS_LOCAL' Error E2141 C\INICIO.c 197: Declaration syntax error Error E2190 C\INICIO.c 197: Unexpected } Error E2190 C\INICIO.c 197: Unexpected } Error E2040 C\INICIO.c 197: Declaration terminated incorrectly Error E2190 C\INICIO.c 197: Unexpected } Error E2190 C\INICIO.c 197: Unexpected } Error E2040 C\INICIO.c 197: Declaration terminated incorrectly Error E2451 C\INICIO.c 431: Undefined symbol 'hb_vm_SymbolInit_INICIO' *** 9 errors in Compile *** Solucionando esto, ya recompilo todos mis sistemas. Saludos y gracias Jorge Jaurena
Antonio seguramente es una tonteria
Has instalado el Harbour ó xHarbour que corresponde a esa versión de FWH ?
Antonio seguramente es una tonteria
Instale Harbour que baje junto con el resto. El Harbour me dio algunos errores al compilar pero lo solucione rapidamente, en cambio esto me complica un poco mas. Gracias
Antonio seguramente es una tonteria
Jorge, No tendrás alguna otra versión de Harbour instalada en tu ordenador ? El define HB_FS_LOCAL está en el fichero hbvmpub.h de Harbour y por tanto debería encontrarlo sin problemas
Antonio seguramente es una tonteria
Perdon por hacerte perder tiempo, en su momento en vez de indicar la ruta en el cfg del bcc++ copie todos los .h al directorio include del bcc++, por lo tanto al configurarlo como corresponde todo funciona bien. Saludos y gracias.
Antonio seguramente es una tonteria
bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Antonio sera que ayudas con el error de los botones
Hola antonio como vas he estado tratando de compilar con fw24 bcc55 y xharbour ultima version, pero me sigue arrojando los errores que te he comentado he hecho de todo hasta ahora sin resultados, rene me contesto que debo modicar la clase y buscar otra version de xharbor. Tu me puedes indicar algo. UN ABRAZO LEANDRO ALFONSO
Antonio sera que ayudas con el error de los botones
Leandro, Es preciso que copies aquí la línea 411 de TWindow:LButtonDown (window.prg) para que intentemos ayudarte. Estás usando una versión bastante antigua de FWH y es dificil poder solucionarlo, salvo que veamos que código exactamente estás usando y que es el que causa el error.
Antonio sera que ayudas con el error de los botones
antonio, te coloque el archivo que me pediste el tu correo electrónico, nuevamente muchas gracias. LEANDRO ALFONSO Bogotá (Colombia)
Antonio sera que ayudas con el error de los botones
antonio ya te coloque la imagen en tu correo, espero me puedas ayudar. Un abrazo LEANDRO ALFONSO
Antonio sera que ayudas con el error de los botones
Leandro, En la línea 361 de dialog.prg hay esta línea: If GetFocus() == ::nResult:hWnd cámbiala por: If ValType( ::nResult:hWnd ) == "N" .and. GetFocus() == ::nResult:hWnd recompila dialog.prg y enlázalo a tu aplicación como un OBJ más.
Antonio sera que ayudas con el error de los botones
Antonio buena tarde como estas: 1- Ya cambie la linea del comando tal y como me digiste, la cambie del directorio c:\fwh\source\clases. 2- La coloque como prg y lo compile con el resto de los prg del programa. 3- lo quite de todo lado, pero no me arroja ningun error al momento de generar el ejecutable. Yo compilo y enlazo con verce 4.0. Que pena mi ignorancia y molestar tanto pero me puedes indicar que mas debo hacer. La imagen del error sigue siendo la misma. LEANDRO ALFONSO Bogotá (Colombia)
Antonio sera que ayudas con el error de los botones
Leandro, Por favor, construye la aplicación con xharbour e indícame si el error que te aparece es el mismo. Envíame la imagen del error. Gracias.
Antonio sobre Folder.
Antonio, no FWPPC existe a possibilidade de colocarmos as abas na parte inferior, porque esta opção não está disponível no FWH? Existe planos para melhorar a qualidade do Folder no FWH? * Nuevo: FWPPC, soporte para carpetas con pestañas en la parte inferior y estilo plano. Todo lo que tienes que especificar es la claúsula BOTTOM. Abraços.
Antonio sobre Folder.
Syda, vamos a implementarlo en FWH también.
Antonio tFolder():Initiate não executa
Olá Antonio, Como faço para que o método INITIATE de TFOLDER seja executado no programa abaixo: [code:3gtvkyvr] // Dinamically building a folder ontop of a Dinamic DialogBox #include "FiveWin&#46;ch" static oDlg, oFld //----------------------------------------------------------------------------// function Main&#40;&#41; DEFINE DIALOG oDlg TITLE "FiveWin Dynamic folders" ; FROM 5, 5 TO 20, 50 ACTIVATE DIALOG oDlg CENTERED on init INICIO&#40;&#41; return nil static function INICIO @ 0&#46;5, 1 FOLDER oFld PROMPT "&xBase", "&And OOP", "&Power" ; OF oDlg SIZE 160, 90 && design @ 1, 1 BUTTON "&Hello" OF oFld&#58;aDialogs&#91; 1 &#93; ; ACTION MsgInfo&#40; "Hello world!" &#41; return nil //----------------------------------------------------------------------------// [/code:3gtvkyvr] Gracias, Rossine.
Antonio tFolder():Initiate não executa
// Dinamically building a folder ontop of a Dinamic DialogBox #include "FiveWin.ch" //----------------------------------------------------------------------------// function Main() LOCAL oDlg, oFld DEFINE DIALOG oDlg TITLE "FiveWin Dynamic folders" ; FROM 5, 5 TO 20, 50 ACTIVATE DIALOG oDlg CENTERED on init INICIO( oDlg, oFld ) return nil static function INICIO( oDlg, oFld ) @ 0.5, 1 FOLDER oFld PROMPT "&Primeiro", "&Segundo", "&Terceiro" ; OF oDlg SIZE 160, 90 && design @ 1, 1 BUTTON "&Hello" SIZE 60,16 OF oFld:aDialogs[ 1 ] ; ACTION MsgInfo( "Hello world!" ) return nil
Antonio tFolder():Initiate não executa
Olá João, Isto não funcionou <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> Para simular o problema, dentro do fonte FOLDER.PRG no método "INITIATE" coloque um "msgstop( "parando" )", e você vai ver que ele não é executado. Agora se voce executrar o programa abaixo, aí funciona. [code:3b0pexlu] // Dinamically building a folder ontop of a Dinamic DialogBox #include "FiveWin&#46;ch" static oDlg, oFld //----------------------------------------------------------------------------// function Main&#40;&#41; DEFINE DIALOG oDlg TITLE "FiveWin Dynamic folders" ; FROM 5, 5 TO 20, 50 @ 0&#46;5, 1 FOLDER oFld PROMPT "&xBase", "&And OOP", "&Power" ; OF oDlg SIZE 160, 90 && design @ 1, 1 BUTTON "&Hello" OF oFld&#58;aDialogs&#91; 1 &#93; ; ACTION MsgInfo&#40; "Hello world!" &#41; ACTIVATE DIALOG oDlg CENTERED return nil //----------------------------------------------------------------------------// [/code:3b0pexlu] Obrigado, Rossine.
Antonio tFolder():Initiate não executa
Rossine, El método Initiate() sólo se ejecuta para controles redefinidos ó para controles que se crean antes de activar el diálogo. En tu ejemplo, el diálogo ya está creado, por eso no se llama a initiate(). Para que necesitas llamar a Initiate() ?
Antonio tFolder():Initiate não executa
Olá Antonio, O problema é que eu estava fazendo chamada a certas funções dentro do método "initiate", mas fiz as mudanças necessárias e funcionou 100% <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> [code:2otgddnv] METHOD New&#40; nTop, nLeft, aPrompts, aDialogs, oWnd, nOption, nClrFore,; nClrBack, lPixel, lDesign, nWidth, nHeight, cMsg, lAllWidth,; oFont, cMultline, aBitmaps &#41; CLASS TFolder && cMultline, aBitmaps = by Rossine &#46;&#46;&#46; &#58;&#58;Register&#40;&#41; if ! Empty&#40; oWnd&#58;hWnd &#41; #ifdef __CLIPPER__ &#58;&#58;Create&#40;&#41; #else &#58;&#58;Create&#40; "SysTabControl32" &#41; if ! &#58;&#58;aBitmaps == nil && by Rossine && 15/02/07 &#58;&#58;SetImageList&#40;&#41; && by Rossine && 15/02/07 endif && by Rossine && 15/02/07 &#58;&#58;SetPrompts&#40; &#58;&#58;aPrompts &#41; #endif if oFont != nil &#58;&#58;SetFont&#40; oFont &#41; elseif oWnd != nil &#46;and&#46; oWnd&#58;oFont != nil &#58;&#58;SetFont&#40; oWnd&#58;oFont &#41; else &#58;&#58;GetFont&#40;&#41; endif oWnd&#58;AddControl&#40; Self &#41; else oWnd&#58;DefControl&#40; Self &#41; endif for n = 1 to Len&#40; &#58;&#58;aDialogs &#41; DEFINE DIALOG oDlg OF Self STYLE WS_CHILD ; FROM 0, 0 TO &#58;&#58;nHeight&#40;&#41; - &#58;&#58;nFdHeight - 5, &#58;&#58;nWidth&#40;&#41; - 6 PIXEL ; FONT Self&#58;oFont color nClrFore, nClrBack &#58;&#58;aDialogs&#91; n &#93; = oDlg oDlg&#58;cVarName = "Page" + AllTrim&#40; Str&#40; n &#41; &#41; next if ! Empty&#40; oWnd&#58;hWnd &#41; &#58;&#58;Default&#40;&#41; endif if lDesign &#58;&#58;CheckDots&#40;&#41; endif SetWndDefault&#40; oWnd &#41; &#58;&#58;AdjustRect&#40;&#41; && 15/02/07 && by Rossine return Self [/code:2otgddnv] [code:2otgddnv] METHOD Initiate&#40; hDlg &#41; CLASS TFolder local n, oBmp &#58;= &#123; &#125; local aRect Super&#58;Initiate&#40; hDlg &#41; &#58;&#58;Default&#40;&#41; #ifndef __CLIPPER__ * if ! &#58;&#58;aBitmaps == nil && by Rossine * &#58;&#58;SetImageList&#40;&#41; && by Rossine * endif && by Rossine * &#58;&#58;SetPrompts&#40; &#58;&#58;aPrompts &#41; * &#58;&#58;AdjustRect&#40;&#41; && by Rossine #else for n = 1 to Len&#40; &#58;&#58;aDialogs &#41; #ifdef __CLIPPER__ &#58;&#58;aDialogs&#91; n &#93;&#58;SetSize&#40; &#58;&#58;nWidth&#40;&#41; - 6,; &#58;&#58;nHeight&#40;&#41; - &#58;&#58;nFdHeight - 5 &#41; #else &#58;&#58;aDialogs&#91; n &#93;&#58;SetSize&#40; &#58;&#58;nWidth&#40;&#41; - 5,; &#58;&#58;nHeight&#40;&#41; - &#58;&#58;nFdHeight - 4 &#41; #endif next #endif return nil [/code:2otgddnv] Gracias, Rossine.
Antonio tu ayuda por favor
Hola Antonio: Primero, una disculpa por molestarte. Podrías pedir a Mr. Rao, le tire un ojo a este error? <!-- l --><a class="postlink-local" href="https://forums.fivetechsupport.com/viewtopic.php?f=3&t=43196">viewtopic.php?f=3&t=43196</a><!-- l --> Saludos y muchas gracias
Antonio tu ayuda por favor
Mensaje enviado, gracias!
Antonio tu ayuda por favor
Buenos dias Armando ¿ puedes hacer esta pequeña prueba para comprobar si cierras la tabla ? [code=fw:3ua1ace5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CloseTable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oWnd        := <span style="color: #00C800;">NIL</span><br /><br />    <span style="color: #00C800;">IF</span> oRsHdr <> <span style="color: #00C800;">NIL</span><br />        <span style="color: #00C800;">IF</span> oRsHdr:<span style="color: #000000;">State</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> = adStateOpen<br />            MsgWait<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Cerrando tabla oRsHdr"</span>,<span style="color: #ff0000;">"Atención"</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>     < --------- añade esta linea<br />            oRsHdr:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">ENDIF</span><br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span></div>[/code:3ua1ace5] Leyendo tu código y el error 2147352567, parace una excepción de tipo DISP_E_EXCEPTION. La función que intenta leer la estructura devuelve un error (posiblemente no controlado). Viendo el video y observando que la primera vez si funciona y la segunda no, buscaría en la creación de la tabla. La prueba que te pido es para ver si realmente la tabla se ha cerrado correctamente. Si se cierra, miraría en la creación de la tabla la segunda vez. Por ejemplo, en vez de poner : [code=fw:3ua1ace5]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">IF</span> oRsHdr == <span style="color: #00C800;">nil</span><br />        MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"I can't open the table HDRVDA !"</span>,oApp:<span style="color: #000000;">cAplicacion</span><span style="color: #000000;">&#41;</span><br />        FW_ShowAdoError<span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">oCon</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span></div>[/code:3ua1ace5] pondria : [code=fw:3ua1ace5]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">IF</span> VALTYPE<span style="color: #000000;">&#40;</span>oRsHdr<span style="color: #000000;">&#41;</span> <> <span style="color: #ff0000;">"O"</span>           <span style="color: #B900B9;">// si no es un objeto</span><br />        MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"I can't open the table HDRVDA !"</span>,oApp:<span style="color: #000000;">cAplicacion</span><span style="color: #000000;">&#41;</span><br />        FW_ShowAdoError<span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">oCon</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span>.F.<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span></div>[/code:3ua1ace5] Es solo una idea. No estoy muy puesto en SQL Saludos
Antonio tu ayuda por favor
Master Antonio y Jesús Marin: Agradezco tu interés y apoyo, pero no, ninguna de las sugerencias solucionó el problema. Como bien analizaste, la primera vez que entro con la tabla vacía, se agregan los dos registros, uno de entrada y el siguiente de salida, y se muestran en el browse sin problema. Al salir y regresar a seguir aumentando más registros, el browse tira el problema, ya probé la primera sugerencia de Jesús y sí se cierra la tabla, también probé la segunda sugerencia y el problema persiste. Más datos, estoy simulando movimientos en un almacén, entradas y salidas, en las salidas se debe llenar el campo HDR_SUC que contiene el número de la sucursal destino, no es el caso de las entradas, ahí no hay sucursal destino, por esta razón el campo es Null [url=https&#58;//postimages&#46;org/:2l72u8se][img:2l72u8se]https&#58;//i&#46;postimg&#46;cc/Dz3zWj02/Clip1&#46;jpg[/img:2l72u8se][/url:2l72u8se] Lo curioso es que con solo invertir el orden en que se graban los registros, primero la salida y después la entrada, todo funciona al 100. Saludos y gracias nuevamente
Antonio tu ayuda por favor
Armando Has probado a eliminar esta linea ? [code=fw:33gt2j45]<div class="fw" id="{CB}" style="font-family: monospace;">oRsHdr:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"HDR_SUC"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> &nbsp; := AdoNull<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// Only out movs has value</span></div>[/code:33gt2j45] En el movimiento de salida no grabas nada en el campo HDR_REF. ¿ qué ocurre si no grabas nada en el campo HDR_SUC ? Saludos
Antonio tu ayuda por favor
Jesús: Gracias, el problema sigue igual, grabando o no el Null. Quitando el LEFT JOIN a la tabla sucursales, el problema se soluciona, peroooo necesito mostrar el nombre de la sucursal en el Browse. Empiezo a pensar que puede ser un pequeño bug en la clase TXBrowse, y que solo el experto, Mr. Rao, no puede sacar del problema. Saludos
Antonio un problema Combobox incremental search en FWH 9.04
Saludos, Antonio: Estoy usando la FWH 9.04, y la utilidad de busqueda incremental, no esta funcionando. Compile la misma clase de Combobox de la FWH 8.08 y me funcionan corractamente, la pregunta es, si el hacer esto causara otros errores? Saludos desde Honduras <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Antonio una ayuda POR FAVOR
Antonio, Uso de Fget, para modificar el color y el tamaño de la fuente, mi texto definitivo es el siguiente:[code:keogp0bl] GTF1Arial114&#46;840000Arial Narrow198&#46;360000Modern3214&#46;080100018388608teste de envio de email 2255teste de envio de email 332768teste de envio de email  [/code:keogp0bl]Lo que hice fue cambiar el tamaño de la fuente y el color de una línea, que pueden faltar para mostrar correctamente en todo un editor?Gracias en adelantado, Saludos deste Brasil
Antonio una ayuda POR FAVOR
Antonio, Estoy usando FGET para editar un texto que será enviado por correo electrónico. Lo que pasa es que el formato de FGET es confuso para leer.Estoy usando FGET transformado para editar el texto con cText: = GTFToRTF (cMEMO1), pero el mismo texto, se muestra sólo cuando estén debidamente editado con Word. Lo que quiero es mostrar el texto en el mensaje de correo electrónico. A continuación el texto con el formato GTFToRTF,[code:21sst8g4] &#123;\rtf1\ansi\deff0\deftab720&#123;\fonttbl&#123;\f1\fnil Arial;&#125;&#123;\f2\fnil Arial Narrow;&#125;&#125; &#123;\colortbl;\red0\green0\blue0;&#125;&#123;\info&#123;\title &#125;&#123;\author &#125; &#125;&#123;\pard\pard\ql&#123;\f2\fs40\b\cf1 teste de formata\'e7ao&#125;&#125;&#125; [/code:21sst8g4]Estoy muy agradecido si usted pudiera ayudar a resolver el problema.Saludos desde Brasil,