hide hor. scrollbar in child table

forum.advanced.programming (1998-2005)
Markus Weiland

hide hor. scrollbar in child table

Post by Markus Weiland » 21 Dec 2004, 11:50

 Posted by:  Markus Weiland 

hello NG

is there a way to hide the horizontal scrollbar in child tables?
i tried ShowScroolBar (from SDK) but CTD ignores it.

any ideas?

thanks in advance
--
Markus Weiland
Softwaredevelopment

CTD 1.5.1 PTF 6
XSAL2 MR11 (11.0.5.0)
OS: 95, 98, NT, 2000, XP

RTS Real Time Communication Systems GmbH
A-1200 Vienna, AUSTRIA, Hellwagstr. 3
Tel: +43-1-330 98 26-0
Fax: +43-1-330 98 26-9
E-Mail: markus.weiland@rts.at
WWW: www.rts.at

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2172
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

hide hor. scrollbar in child table

Post by Jeff Luther » 21 Dec 2004, 18:18

 Posted by:  Jeff Luther 

Hi, Markus:

I think the simple answer is: No. Why would you want to? If your
TW columns go beyond (to the right) of what the TW size is, don't
you want your users to be able to see those columns and the data?

If you need to prevent the horiz. scroll bar, then you can size
your columns to all fit in the visible TW size, and use the function
SalTblSetTableFlags( hWndTbl, TBL_Flag_SizableCols, FALSE ) to not allow
your users to resize the columns.

Best Regards,
Jeff Luther/PC Design
www.pulpcards.com/gupta/

Markus Weiland

hide hor. scrollbar in child table

Post by Markus Weiland » 21 Dec 2004, 22:43

 Posted by:  Markus Weiland 

why NO. i want it for minimizing the height of a table window. the columns
are fixed but the table is in a splitter. so the user has the possibility to
resize the table window and than some columns disappear on the right size.
therefor i need to hide the horizontal scrollbar. the normal case is that
all columns are visible and than there is a second visible row (necessary
for scrollbar). this is place we can use for other necessary things. and if
the user resize the table window and some columns disappear on the right
side the user has still the possibility to move to the right with "arrow
right".

i see no reason why it shouldn't be possible but if you say no it's no.
i hope anybody else can give me hint or a solution for this problem

thanks in advance, markus.

Markus Weiland

hide hor. scrollbar in child table

Post by Markus Weiland » 14 Jan 2005, 10:13

 Posted by:  Markus Weiland 

!!CB!! 173
On 0x0005 ! -- WM_SIZE
Call ShowScrollBar( hWndForm, 0, FALSE )
! -- ----------------------------------------------------------
SB_HORZ 0
SB_VERT 1
SB_CTL 2
SB_BOTH 3
! -- ----------------------------------------------------------
If SalIsWindowVisible( hWndForm )
Call SalPostMsg( hWndForm, SAM_User, 0, 0 )
On SAM_User
Call SalInvalidateWindow( hWndForm )
Call SalUpdateWindow( hWndForm )

--
Markus Weiland
RTS Real Time Communication Systems GmbH
CTD 1.5.1 PTF 6
MImg & MTbl
XSAL2 MR11 (11.0.5.0)
OS: 95, 98, NT, 2000, XP

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests