🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #549

Re: scrolling of TBScollBox

#549
From: Joerg Ringel
Date: Fri, 28 Aug 1992 12:06
51 lines
2111 bytes
In article <1992Aug27.062744.7444@tom.rz.uni-passau.de>, ringel@forwiss.uni-passau.de (Joerg Ringel) writes:
|> I've a class with a TBScrollBox (TextShow).
|> For this class I've defined the following function:
|> 
|> class TextShow : public InputHandler {
|> 
|> ....
|> ....
|> protected:
|>   TBScollbox* box;
|> ....
|> }
|> 
|> inline void TextShow::scroll_to_end()
|> 
|>    { box->scroll_to(Dimension_Y, Coord(0)); }
|> 
|> 
|> My problem is that I receive always:
|> 
|> signal SEGV (no mapping at the fault address) in allocate__7ivPatchFP8ivCanvasRC12ivAllocationR11ivExtension at 0xf766b0f0
|> allocate__7ivPatchFP8ivCanvasRC12ivAllocationR11ivExtension+0x34:   ld      [%o1 + 4], %o2
|> (xdbx) where
|> allocate__7ivPatchFP8ivCanvasRC12ivAllocationR11ivExtension() at 0xf766b0f0
|> reallocate__17ivTBScrollBoxImplFv() at 0xf76871c8
|> refresh__17ivTBScrollBoxImplFv() at 0xf7686eec
|> impl__13ivTBScrollBoxCFv() at 0xf7686ce0
|> scroll_to__13ivTBScrollBoxFUif() at 0xf7686bec
|> scroll_to_end__8TextShowFv(__0this = 0xe9208), line 469 in "xrapiv/rapiv.c"

Mark Linton answered:

>TBScrollBoxImpl::reallocate should have a test
>        if (canvas_ == nil) {
>            return;
>        }
>at the beginning.


I've tested it and find out, that it's work but ...

 1. My window is unmapped
 2. I make scroll of my text
 3. I map the window

Now, I want to see the scrolled text, but I can see only the top of it.

I think there must be a solution to make a scroll in a unmapped window.

Bye,
		Joerg		(ringel@forwiss.uni-passau.de)
Technical Details
Message-ID: <1992Aug28.120625.16928@tom.rz.uni-passau.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!agate!stanford.edu!rutgers!jvnc.net!yale.edu!ira.uka.de!fauern!rz.uni-passau.de!forwiss.uni-passau.de!ringel

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!agate!stanford.edu!rutgers!jvnc.net!yale.edu!ira.uka.de!fauern!rz.uni-passau.de!forwiss.uni-passau.de!ringel
From: ringel@forwiss.uni-passau.de (Joerg Ringel)
Newsgroups: comp.windows.interviews
Subject: Re: scrolling of TBScollBox
Message-ID: <1992Aug28.120625.16928@tom.rz.uni-passau.de>
Date: 28 Aug 92 12:06:25 GMT
Sender: news@tom.rz.uni-passau.de (News-Operator)
Organization: University of Passau, Germany
Lines: 51
Nntp-Posting-Host: eldron.forwiss.uni-passau.de