Is there an easy way to set the TWBrowse vertical scrollbar always showing even if there are no rows or one row only?
EMG
Is there an easy way to set the TWBrowse vertical scrollbar always showing even if there are no rows or one row only?
EMG
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:
<oBrw>:bLogicLen = { || If( NumberOfRecords == 0, 1, ... ) }
Unfortunately not.
I'm afraid that it is harder than this.
EMG
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!
Enrico,
Here is another clue...
In scroll.c of fwh\source\winapi there is SIF_DISABLENOSCROLL
Maybe you can figure out how to use that.
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
Thank you. I made some experiment without luck... ![]()
EMG