xbrowse header size

xbrowse header size

Postby Silvio » Wed Mar 05, 2008 6:12 pm

How I can see the size of each header with a click ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: xbrowse header size

Postby JC » Wed Mar 05, 2008 6:51 pm

Silvio wrote:How I can see the size of each header with a click ?


Hello Silvio!

Try this implementation at method HeaderLButtonUp at the end of implementation of original code...

Code: Select all  Expand view  RUN
METHOD HeaderLButtonUp( nMRow, nMCol, nFlags ) CLASS TXBrwColumn

   ...

   nCol := ::oBrw:MouseColPos( nMCol ) // if the column header was clicked... more than 0, was clicked!

   IF nCol > 0 .AND. !lDragged  && if not for swapping the column

      oCol := ::oBrw:colAtPos( nCol ) // returns the object columns that was clicked
      alert( oCol:nWidth )

   ENDIF
     
RETURN
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby Silvio » Thu Mar 06, 2008 8:09 am

thanks
But I remember there was a xbrowse method made it
I remember of a utility of Otto made it and created the source od each column...
where i can found it ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Otto » Thu Mar 06, 2008 8:53 am

User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Postby Silvio » Thu Mar 06, 2008 10:59 am

thanks

but I remember there was an command to use on xbrowse :
I used it and the when I finished to set all columns size I rem this command
this commando shoed the column size when I drag each column : it shoed a message on video with the size variable and I not Know where I take it !!!
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Otto » Thu Mar 06, 2008 11:03 am

have a look into:

func f_SaveState(oBrw)

in the testxbr.prg.
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Postby JC » Thu Mar 06, 2008 1:24 pm

Silvio wrote:thanks
But I remember there was a xbrowse method made it
I remember of a utility of Otto made it and created the source od each column...
where i can found it ?



Exists the method GetDisplayColsWidth( aSizes )... but, internally, it is the same structure... Think fine!
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 77 guests