... Image class) @ 0, 0 XIMAGE oImage SIZE 280, 200 OF oCattura oImage:bLClicked = { | nRow, nCol | MouseDown( oImage:oVScroll:GetPos()+nRow, oImage:oHScroll:GetPos()+nCol) } then I cannot converte this command "oImage:oVScroll:GetPos()+nRow" run good with Image It not Found getpos() with ...
... !::lZoom .and. ! lInit ::Zoom( .T. ) // A.L. 08 Oct 2007 endif if ::lZoom ::oWnd:oVScroll:SetRange( 1, VSCROLL_RANGE ) if ::nZFactor > 1 ::oWnd:oHScroll:SetRange( 1, HSCROLL_RANGE ) else Con ese código, si pinchas en el combobox o en el menú y cambias el Factor sí que funciona.
... V y H. la definicion de las barras en ambas de scroll estan de acuerdo al fwh: ::oVScroll := TScrollBar():WinNew( nMin, nMax, nPage, .T., Self ) ::oHScroll := TScrollBar():WinNew( nMin, nMax, , .F., Self ) Alguien que haya resuelto este detalle?
... .F., not HScroll and VScroll can be defined, like in xBrowse. I only want to show Scrollbars if Images > Resource-size . I found oVScroll and oHScroll in class TBitmap , also tested changing the Image-style, but the bars are still visible. REDEFINE IMAGE oIMAGE ID 510 FILENAME NIL OF oDlg ...
Mr. Rao, Thank You very much. I tested, but it seems to work only in one Direction I still had to add < oBrw:oHScroll:SetPos( nCPos ) >, otherwise the HScroll-thumb stays at the left. I got it working with : // nSGet[3] = max Cols @ 173, 455 BTNBMP oBtn[15] ; SIZE 32, 11 ...
I had a problem with the horizontal scroll bar. I traced it down to the addcolumn method. If you use addcolumn, there is no updating of ::oHScroll. The delcolumn has the code below to update the horizontal scroll bar. So I added that code to method addcolumn and it fixed my problem. I also ...
... bar is the one i want to hide or disable when the number of records are few. Also, i tried to revised my code so that the objects of scroll bars (oHScroll and oVScroll) become present but still disabling function and/or property are not working. thanks. regards, apollo
Thanks for ur great ideas. Sir James, i've tried the function disable() but the function was not present neither the oHScroll/oVScroll objects. I still wondered why these objects are not present in xbrowse object...