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

[REBOL] Re: arguments from/to request-font

From: al:bri:xtra at: 22-Dec-2000 21:25

Marcus wrote:
> I have started writing a request-font function for View, which I think
would go nicely with the other request-* functions. But I'm not sure about the input and output. Currently it takes no arguments, and returns a font object, or None if canceled. This is probably not very useful in most situations, so I'd like to hear some opinions on this. That sounds good to me.
> Consider for example a text-editor (area) for which you'd like to change
the font. If there's no previous formatting, you wouldn't need to pass an argument, so the current function (which btw remembers the current state) would work. This hardly seems like a good example though.
> Then there's the issue if it's good to return a font object. Perhaps it
would be better to return a block like [name: "times" style: none ... ]. Why not a refinement to specify a existing style? Like: request-font: func [/font font-object [object!]] [ ; etcetera. Then in the function set up the display so that it matches passed in font-object. If there's no changes, 'request-font returns 'none, if the user changes, the new font-object is returned. Just my opinion. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/