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

Resizing of button's length

 [1/4] from: emekamicro:g:mail at: 28-Aug-2010 16:36


Hello All, I would like to know how I could resize the length of button (GUI). Regards, Emeka

 [2/4] from: henrikmk::gmail at: 28-Aug-2010 17:50


On Sat, Aug 28, 2010 at 5:36 PM, Emeka <emekamicro-gmail.com> wrote:
> Hello All, > > I would like to know how I could resize the length of button (GUI). > > Regards, > Emeka
view layout [ button 100 "Standard" button 150 "Large" button 75 "Small" button 90x90 "Custom" ] If you are referring to doing it when resizing the window, that is not easy in VID as it requires creating an event function that acts when the window resizes. You can do it with RebGUI or the VID Extension Kit without much trouble. RebGUI: display "" [button #W "Button"] VID Extension Kit: view make-window [button spring [bottom] "Button"] -- Regards, Henrik Mikael Kristensen

 [3/4] from: nick:guitarz at: 29-Aug-2010 7:15


view layout [ b1: button 150x20 btn "resize b1" [b1/size: 100x20 show b1] ] Quoting Emeka <emekamicro-gmail.com>:

 [4/4] from: dhsunanda:gmai:l at: 29-Aug-2010 18:18


Anton is having problems posting to this mailing list (it can be temperamental). Here is what he tried to post: Here's how to do some basic resizing in VID. origin: 20x20 ; Top/left/right/bottom border space at window edges. space: 8x8 ; Space between faces in the layout. window: layout [ origin (origin) space (space) button1: button "hello" btn1: btn "there" ] resize: func [][ btn1/size/x: window/size/x - btn1/offset/x - origin/x btn1/offset/y: window/size/y - origin/y - btn1/size/y button1/size: window/size - button1/offset - origin - (space + btn1/size * 0x1) ] window/feel: make window/feel [detect: func [face event][if event/type 'resize [resize] event]] view/new/options center-face window 'resize do-events Regards, Anton.