Author | Topic: xBpbrowse heading problem with 1.9SL1 and 2.0 | |
---|---|---|
Peter Nagy | xBpbrowse heading problem with 1.9SL1 and 2.0 on Sun, 14 Jun 2015 20:52:20 +0200 Hello guys. Please Help me. I started using today xBase++ version 1.9 SL1 and 2.0, and I had many problems. The visualization of the xBpbworse class heading object is one of these. I want the header to be two lines, See the attached code snippet from modifyed Xbp part pack3 I create MultiLineCellGroup Class from XbpCellGroup, and I use this Class in the inherited XbpGetColumn Class by the following way: METHOD XbpGetColumn:create( oParent, oOwner, aPos, aSize, aPP, lVisible ) LOCAL oError ::nHeadMaxRow := 1 or 2 ::Heading := MultilineCellgroup():New( self,,,,,,::nHeadMaxRow ) ::xbpColumn:create( oParent, oOwner, aPos, aSize, aPP, lVisible ) I use the following method to change the header caption : ::Heading:setcell(1,'xyz') ::Heading:setcell(2,'abc') The function working properly with xbase++version 1.9 without SL1 even if it's with/or without manifest file. It's also working with xBase++ version 2.0 and. 19.SL1 without manifest file, - but with maniferst file -, if I navigate between the columns, then the heading caption is becoming overwritten. See the attached pictures. What's the problem? It's an Alaska bug? What's the solution? Regards: Peter code.prg With manifest.JPG With manifest2.JPG Without manifest.JPG | |
Till Warweg | Re: xBpbrowse heading problem with 1.9SL1 and 2.0 on Mon, 15 Jun 2015 14:02:19 +0200 Dear Peter, I think the problem is that you're not cloning the properties of the heading object you're replacing. Because of this, all settings applied by the browse to the heading object are lost. This should get you started: (...) oTmp := MultilineCellgroup():New( self,,,,,, ::nHeadMaxRow ) oTmp:ControlState := ::Heading:controlState oTmp:styleClass := ::Heading:styleClass ::heading := oTmp (...) I hope this helps. Regards, Till Warweg [Alaska Software] -------------------------------------------------------------------- Technical Support: support@alaska-software.com News Server: news.alaska-software.com Homepage: http://www.alaska-software.com KnowledgeBase: http://www.alaska-software.com/kb -------------------------------------------------------------------- "Peter Nagy" schrieb im Newsbeitrag news:116d50ae$54bbcdc6$6a933@news.alaska-software.com... > Hello guys. > Please Help me. > > I started using today xBase++ version 1.9 SL1 and 2.0, and I had many > problems. > The visualization of the xBpbworse class heading object is one of these. > I want the header to be two lines, > See the attached code snippet from modifyed Xbp part pack3 > I create MultiLineCellGroup Class from XbpCellGroup, and I use this Class in > the inherited XbpGetColumn Class by the following way: > > METHOD XbpGetColumn:create( oParent, oOwner, aPos, aSize, aPP, lVisible ) > LOCAL oError > > ::nHeadMaxRow := 1 // or 2 > ::Heading := MultilineCellgroup():New( self,,,,,,::nHeadMaxRow ) > ::xbpColumn:create( oParent, oOwner, aPos, aSize, aPP, lVisible ) > > I use the following method to change the header caption : > ::Heading:setcell(1,'xyz') > ::Heading:setcell(2,'abc') > > The function working properly with xbase++version 1.9 without SL1 even if > it's with/or without manifest file. > It's also working with xBase++ version 2.0 and. 19.SL1 without manifest > file, - but with maniferst file -, if I navigate between the columns, then > the heading caption is becoming overwritten. > See the attached pictures. > > What's the problem? > It's an Alaska bug? > What's the solution? > > Regards: Peter > |