Is there an easy way to set the TWBrowse vertical scrollbar always showing even if there are no rows or one row only?
EMG
TWBrowse vertical scrollbar always
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact:
- James Bott
- Posts: 4840
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Enrico,
This is from an old message. I don't know if it works.
Regards,
James
This is from an old message. I don't know if it works.
When a zero value range is set on a scrollbar, it becomes invisible,
so you may modify your bLogicLen codeblock to return one, when
it is zero:Code: Select all | Expand
<oBrw>:bLogicLen = { || If( NumberOfRecords == 0, 1, ... ) }
Regards,
James
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact:
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
Enrico,
I don't know if this will help, because it has to do with listbox instead of Wbrowse.
When designing a listbox in Borland Resource Workshop, in the properties dialog if you specify "scroll bar always" and then look at the code that RW generates, it inserts LBS_DISABLENOSCROLL in the code for the listbox. Maybe if you can discover how this works you may be able to apply the same concept to Wbrowse.
Good luck!
- Roger
I don't know if this will help, because it has to do with listbox instead of Wbrowse.
When designing a listbox in Borland Resource Workshop, in the properties dialog if you specify "scroll bar always" and then look at the code that RW generates, it inserts LBS_DISABLENOSCROLL in the code for the listbox. Maybe if you can discover how this works you may be able to apply the same concept to Wbrowse.
Good luck!
- Roger
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
Re: TWBrowse vertical scrollbar always
EnricoMaria wrote:Is there an easy way to set the TWBrowse vertical scrollbar always showing even if there are no rows or one row only?
EMG
I would use <BrowseObject>:nstyle:=nOr( WS_CHILD, WS_HSCROLL,;
WS_BORDER, WS_VISIBLE, WS_TABSTOP)
regards
A.S.K
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact: