xBrowse - Headers are not painted
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
xBrowse - Headers are not painted
Hi all,
in an empty xBrowse-object (that means, the data did not meet the scope condition and no data lines are shown) the header is not painted or it´s hidden.
Only if i leftclick on the header, i can see it.
What can i do to get all headers always visible ?
kind regards
Stefan
in an empty xBrowse-object (that means, the data did not meet the scope condition and no data lines are shown) the header is not painted or it´s hidden.
Only if i leftclick on the header, i can see it.
What can i do to get all headers always visible ?
kind regards
Stefan
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Stefan,
In Class TXBrowse Method Paint() comment out this line and please try it again:
In Class TXBrowse Method Paint() comment out this line and please try it again:
Code: Select all
if ::nLen == 0
// ::EraseData( nFirstRow )
return nil
endif
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
Antonio,
if i only comment out ::EraseData (...), it´s not working, but if i comment out return nil, than it´s working as exspected, all headers are shown.
But i don´t know, if this has side effects in other situations.
many thanks
kind regards
Stefan
if i only comment out ::EraseData (...), it´s not working, but if i comment out return nil, than it´s working as exspected, all headers are shown.
Code: Select all
if ::nLen == 0
// ::EraseData( nFirstRow )
// return nil
endif
many thanks
kind regards
Stefan
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Stefan,
It looks ok. Lets change it this way:
It looks ok. Lets change it this way:
Code: Select all
/* To paint headers when there are no records to show
if ::nLen == 0
::EraseData( nFirstRow )
return nil
endif
*/
I think it should be like this:
In this way it don't paint an empty row.
Let me know if it works
Regards
Gianni
Code: Select all
if ::nLen == 0
::EraseData( nFirstRow )
::DispEnd( aInfo ) // gs
return nil
endif
Let me know if it works
Regards
Gianni
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: