Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

window resize and window scroll

 [1/6] from: sk::medien::fh-wiesbaden::de at: 7-May-2001 23:41


Hello all, i want to have the ability to resize the window, which will opened with view and i want to use scroll bars too. Can anybody help me? Thanks in advance! Stefan Kanitz Wiesbaden University of Applied Sciences Germany

 [2/6] from: gchiu:compkarori at: 8-May-2001 10:34


On Mon, 07 May 2001 23:41:57 +0200 (CEST) [sk--medien--fh-wiesbaden--de] wrote:
> i want to have the ability to resize the window, which > will opened with view > and i want to use scroll bars too. > Can anybody help me?
For the latter check out the vid faq using vidwikibeta at http://www.compkarori.co.nz/index.r :-) -- Graham Chiu

 [3/6] from: sterling:rebol at: 7-May-2001 16:24


A quick resize example... REBOL [] main-lay: layout [ b1: button "Quit" [quit] ] view/new/options main-lay [resize] main-lay/feel: make main-lay/feel [ detect: func [face event] [ switch event/type [ resize [ b1/color: random 255.255.255 b1/offset: main-lay/size - (b1/size / 2) show b1 ] ] event ] ] wait none Sterling

 [4/6] from: larry:ecotope at: 7-May-2001 17:26


Hi Sterling Nice example, but a couple of small probs. The button colors don't change and the button is half off window after resize (maybe what was intended?). Here's a quick mod which changes button color and keeps the button at the bottom right corner. -Larry ----------------modified script------------------------- A quick resize example... REBOL [] main-lay: layout [ b1: button red "Quit" [quit] ] view/new/options main-lay [resize] main-lay/feel: make main-lay/feel [ detect: func [face event] [ switch event/type [ resize [ b1/color: random 255.255.255 b1/offset: main-lay/size - (b1/size) show b1 ] ] event ] ] wait none -------------end mod--------------------

 [5/6] from: joel:neely:fedex at: 7-May-2001 23:01


Hi, Larry (and Sterling)... Larry Palmiter wrote:
> Nice example, but a couple of small probs. The button colors don't change > and the button is half off window after resize (maybe what was intended?). > > Here's a quick mod which changes button color and keeps the button at the > bottom right corner. >
Change the middle line in the RESIZE case to the following line
> b1/offset: (main-lay/size - (b1/size)) / 2 >
and the button stays centered. There's still an intermittent problem on my box here (P200 running RedHat 7.1); the window flickers to white while dragging to resize. Sometimes it stays completely white after the mouse is released; sometimes it is only partly repainted. Perhaps a timing problem with the last internal redraw event??? -jn-

 [6/6] from: larry:ecotope at: 7-May-2001 22:04


Hi Joel
> There's still an intermittent problem on my box here (P200 running > RedHat 7.1); the window flickers to white while dragging to resize. > Sometimes it stays completely white after the mouse is released; > sometimes it is only partly repainted. Perhaps a timing problem > with the last internal redraw event???
Curious. On Win98, there is no flicker but when the box is being enlarged, the newly created area remains with a white background until the mouse is released. The original smaller rebolor background remains the same during enlargement. I don't know if there is a way of modifying this behavior. -Larry