child table - scroll row to top

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

child table - scroll row to top

Post by Markus Weiland » 29 Nov 2004, 09:42

 Posted by:  Markus Weiland 

i want to scroll the f.e. 5th row to the top also if there is place for 10
rows and there are only 8 rows in the table (no vert. scrollbar is visible).
is there a way to enable scrolling also if it is not necessary. i tried to
show the scrollbar with ShowScrollbar (SDK) but it doesn't work.

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

Krister Henningsson

child table - scroll row to top

Post by Krister Henningsson » 29 Nov 2004, 10:00

 Posted by:  Krister Henningsson 

Hello Markus,

On WM_WINDOWPOSCHANGED
Call ShowScrollBar ( hWndForm, SB_BOTH, TRUE)

every time the position of the window changes = is redrawn it must be told
to show the scrolbar(s).
I think there is a SB_HOR.. and SB_VER... too ;-)
just a quick hint, no proof of success :-)

--
--
Regards, Kriss

Former Gupta Developer :-/
"Sitting target
Sitting waiting
Anticipating
Nothing
Nothing

Life
Is full of surprises
It advertises
Nothing
Nothing

What am I trying to do
What am I trying to say
I'm not trying to tell you anything
You didn't know
When you woke up today

Sitting target
Sitting praying
God is saying
Nothing
Nothing

Always
Knows the prospects
Learnt to expect
Nothing
Nothing"
--Depeche Mode

Markus Weiland

child table - scroll row to top

Post by Markus Weiland » 01 Dec 2004, 06:36

 Posted by:  Markus Weiland 

thanks for for answer but this was not the question. i know set i have to
show the scrollbars every time a populate the child table but my problem is
to scroll the 5th row to the top (so that the 5th row is the 1st one) also
if there is place for 15 rows and only 10 rows are displayed.

Krister Henningsson

child table - scroll row to top

Post by Krister Henningsson » 01 Dec 2004, 08:38

 Posted by:  Krister Henningsson 

Markus,

old new ->
1 2 3 4 5
2 3 4 5 1
3 4 5 1 2
4 5 1 2 3
5 1 2 3 4

if this is what you mean, it's more moving than scrolling.

select row 5 and "scroll it" or "drag it" upwards?

reagards,
kriss

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests