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

[REBOL] /view custom styles

From: max::ordigraphe::com at: 23-Aug-2001 15:59

Hello world, A follow up on my previous question regarding custom menus... I have peeled doc kimbel's win95 skin code and still have not figured out how it "hooks" upon view layout, so that it may parse arguments and have its own setup dialect? If I empty the init-last function and/or empty the builder object in the menu's definition, It just becomes a normal layout block. I have no errors I was thinking that if the definition is the same but broken, that I would know where it enters the gadget. I'm stumped! TIA! -Max This is the exact code I'm using... what's missing or wrong? -------------------------------------------------------- REBOL[ title: "vid test" ] skin: stylize [ menu: label 100x100 "menu container" with [ color: 188.188.188 pane: make block! 1 state: off data: none switch-off-all: func [/local item][ foreach item pane [item/state: off] ] init-last: function [root][item li][ print "FUCK" ] sub-popup: make object! [] builder: make object! [] ] ;end menu ] view layout [ styles skin menu [ "hey"] button "quit" [quit] ] ask "HEY!"