Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!pictel!harling From: harling@pictel.uucp (Dan Harling) Newsgroups: comp.windows.open-look Subject: Re: XVIEW SCROLLBAR question Message-ID: <1991Jun24.170953.1465@pictel.uucp> Date: 24 Jun 91 17:09:53 GMT Article-I.D.: pictel.1991Jun24.170953.1465 References: Sender: Dan Harling Organization: PictureTel Corporation Lines: 41 In article Jane Huang writes: > >Anybody out there likes to tell me what happen with the XVIEW SCROLLBAR >problem that I am running into ? > > scrollbar = (Scrollbar)xv_create(canvas, SCROLLBAR, > SCROLLBAR_DIRECTION, SCROLLBAR_VERTICAL, > SCROLLBAR_PIXELS_PER_UNIT, 14, > SCROLLBAR_OBJECT_LENGTH, 71, > SCROLLBAR_VIEW_LENGTH, 17, > SCROLLBAR_PAGE_LENGTH, 17, > SCROLLBAR_NORMALIZE_PROC, monitor_scroll, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > NULL); > >monitor_scroll() >{ > int view_start, last_view_start; > > /* why view_start and last_view_start are always 0 ?*/ > view_start = (int) xv_get(scrollbar, SCROLLBAR_VIEW_START); > last_view_start = (int)xv_get(scrollbar, > SCROLLBAR_LAST_VIEW_START); >} What parameters and return value are the NORMALIZE_PROC supposed to accept and return? I know (by experimentation) that the first parameter is a handle to the scrollbar. The XView manual mentions the SCROLLBAR_NORMALIZE_PROC argument at the end of the chapter on scrollbars, but it is not documented anywhere else. >Jane Huang UUCP: uunet!natadm!jane ______________________________________________________________________ Daniel A. Harling PictureTel, Inc. Rockport, MA Peabody, MA Opinions expressed herein are not necessarily those of PictureTel, Inc.; they are MINE, ALL MINE! (So there.) ---- === ====