TWBrowse vertical scrollbar always

TWBrowse vertical scrollbar always

Postby Enrico Maria Giordano » Mon Dec 26, 2005 4:02 pm

Is there an easy way to set the TWBrowse vertical scrollbar always showing even if there are no rows or one row only?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » Mon Dec 26, 2005 6:45 pm

Enrico,

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 view  RUN
   <oBrw>:bLogicLen = { || If( NumberOfRecords == 0, 1, ... ) }


Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Enrico Maria Giordano » Mon Dec 26, 2005 9:06 pm

Unfortunately not. :-( I'm afraid that it is harder than this.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Roger Seiler » Tue Dec 27, 2005 12:32 pm

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
User avatar
Roger Seiler
 
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA

Postby Roger Seiler » Tue Dec 27, 2005 12:49 pm

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.

- Roger
User avatar
Roger Seiler
 
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA

Re: TWBrowse vertical scrollbar always

Postby ask » Tue Dec 27, 2005 1:24 pm

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
ask
 
Posts: 99
Joined: Wed Nov 02, 2005 10:40 am

Postby Enrico Maria Giordano » Tue Dec 27, 2005 1:27 pm

Thank you. I made some experiment without luck... :-(

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 69 guests