Author | Topic: line Number in xbpMle | |
---|---|---|
Hans Blum | line Number in xbpMle on Sun, 27 Nov 2016 17:47:10 +0100 Hi All, Does anyone know if there is a setting to keep the row number on the same Line number while scroll through a xbpmle? likeeditor in VXIDE20.EXE Thanks & regards, Hans Blum myMle.jpg testMle.7z | |
Andreas Gehrs-Pahl | Re: line Number in xbpMle on Tue, 29 Nov 2016 02:41:15 -0500 Hans, >Does anyone know if there is a setting to keep the row number on the >same Line number while scroll through a xbpmle? likeeditor in VXIDE20.EXE I'm not 100% sure that I understand your question, but I believe you want to synchronize the scrolling of both MLEs with the built-in Vertical Scroll Bar of the (right/text) MLE? If this is what you want, I think you need to use an external XbpScrollBar object, instead of the internal scroll bar of the MLE, as the internal one isn't creating any Xbase++ scroll events. Instead, it works asynchronously and will allow updating of the other MLE only when the scrolling has ended. If you meant something else, just ignore this post. Anyway, hope this helps, Andreas Andreas Gehrs-Pahl Absolute Software, LLC phone: (989) 723-9927 email: Andreas@AbsoluteSoftwareLLC.com web: http://www.AbsoluteSoftwareLLC.com [F]: https://www.facebook.com/AbsoluteSoftwareLLC | |
Hans Blum | Re: line Number in xbpMle on Tue, 29 Nov 2016 10:31:09 +0100 thank you Andreas for the help information, yes that is it what i want to do. I want to synchronize the scrolling of both MLEs, or is there another way to show the Line Number of the second MLE. For further help i would be very grateful! Is there a possibility to scroll both in same time? Now i first follow your advice and i try to create a external XbpScrollBar object. I hope you understand my english Thanks and have a nice Day Hans Am 29.11.2016 um 08:41 schrieb Andreas Gehrs-Pahl: > Hans, > >> Does anyone know if there is a setting to keep the row number on the >> same Line number while scroll through a xbpmle? likeeditor in VXIDE20.EXE > > I'm not 100% sure that I understand your question, but I believe you want to > synchronize the scrolling of both MLEs with the built-in Vertical Scroll Bar > of the (right/text) MLE? > > If this is what you want, I think you need to use an external XbpScrollBar > object, instead of the internal scroll bar of the MLE, as the internal one > isn't creating any Xbase++ scroll events. Instead, it works asynchronously > and will allow updating of the other MLE only when the scrolling has ended. > > If you meant something else, just ignore this post. > > Anyway, hope this helps, > > Andreas > | |
Jim Lee | Re: line Number in xbpMle on Thu, 26 Jan 2017 23:22:48 +0100 > Does anyone know if there is a setting to keep the row number on the > same Line number while scroll through a xbpmle? likeeditor in VXIDE20.EXE YES your o:refresh() have some Parts of it and you also have o:Keyboard() ... use both toghter ! ::oMemotext:keyBoard := {|nKey, uNIL, oSelf| ::MyKey(nKey,oSelf) } METHOD CalDetail:MyKey(nKey,oMLE) LOCAL nEnde := oMLE:pos() LOCAL nLine := oMLE:lineFromChar(nEnde) LOCAL nZeile := oMLE:charFromLine(nLine) LOCAL cText := "Row "+LTRIM(STR(nLine))+" / Col "+LTRIM(STR(nEnde-nZeile)) LOCAL cKey ::StatText:SetCaption(cText) set Caption on a XbpStatic cKey := UPPER(CHR(nKey)) DO CASE CASE nKey = xbeK_CTRL_Z oMLE:undo() ... ENDCASE RETURN self |