[Gambas-user] gridview contents x, y are default richtext or text?

adamnt42 at ...626... adamnt42 at ...626...
Thu Jun 29 17:03:04 CEST 2017



On Thu, 29 Jun 2017 09:43:04 -0400
PICCORO McKAY Lenz <mckaygerhard at ...626...> wrote:

> hi Jorge, i already know why the usage of the richtext in the pagegrid..
> the question are why when i access to .text got nothing.. i modified the
> code to set both: .richtext content and .text content.. but only the
> richtext content are got ...
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> 2017-06-29 4:42 GMT-04:00 Jorge Carrión <shordi at ...626...>:
> 
> > I wrote that software. It is available in the Farm with the name of
> > pageGrid.
> > The Richtext property is used because the control allows the rows to be
> > automatically set according to the length of their content and the
> > available column width (control's wordWrap property), and that can only be
> > calculated using RichText.
> > The function that do this is in pGrid class:
> >
> > Public Sub calcHeights()
> >
> >   Dim n, i, f As Integer
> >
> >   For n = 0 To Me.Rows.Max
> >     If Me.Rows[n].Height <> Me.Rows.Height Then
> >       Me.Rows[n].Height = Me.Rows.Height
> >       f = 0
> >       For i = 0 To Me.Columns.Max
> >          f = Max(f, Me[n, i].Font.RichTextHeight(Me[n, i].RichText,
> > Me.Columns[i].width))
> >       Next
> >       Me.Rows[n].Height = f + (Me.Rows.Height - Me.Font.Height - 1)
> >     Endif
> >   Next
> >
> > End
> >
> > As you can see, with text property of gridCells it's impossible to do this.
> >
> > Best Regars.
> >
> >
> >
> >
> >
> > 2017-06-29 0:14 GMT+02:00 PICCORO McKAY Lenz <mckaygerhard at ...626...>:
> >
> > > no no, i mean that i want to use the .text only but does not got any
> > here,
> > > only by using .richtext.. ...
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > >
> > > 2017-06-28 14:05 GMT-04:00 Charlie <charlie at ...2793...>:
> > >
> > > > OK sorry I deleted that post once I reread your post.
> > > >
> > > > Have a look at this solution
> > > >
> > > > GUITest.tar <http://gambas.8142.n7.nabble.com/file/n59571/GUITest.tar>
> > > >
> > > >
> > > >
> > > > -----
> > > > Check out www.gambas.one
> > > > --
> > > > View this message in context: http://gambas.8142.n7.nabble.
> > > > com/gridview-contents-x-y-are-default-richtext-or-text-
> > > tp59568p59571.html
> > > > Sent from the gambas-user mailing list archive at Nabble.com.
> > > >
> > > > ------------------------------------------------------------
> > > > ------------------
> > > > Check out the vibrant tech community on one of the world's most
> > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > _______________________________________________
> > > > Gambas-user mailing list
> > > > Gambas-user at lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > >
> > > ------------------------------------------------------------
> > > ------------------
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > ------------------------------------------------------------
> > ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
B Bruen <adamnt42 at ...3379... (sort of)>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Selection_067.png
Type: image/png
Size: 33954 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20170630/498b2464/attachment.png>


More information about the User mailing list