Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 01 2018 17:34
    @greggirwin banned @BIjeuca_twitter
  • Dec 03 2017 05:53
    @PeterWAWood banned @matrixbot
  • Sep 28 2016 12:20
    @PeterWAWood banned @TimeSeriesLord
Vladimir Vasilyev
@9214
Only professional business analyst can answer that type of questions with a straight face.
Luis Vale Mendes
@lpvm
In View, when using drop-list there's no scroll bar. As I need to present a user with one hundred possibilities, is there a way to do this? text-list has the scroll bar, but the list is not contracted when a line is selected.
ne1uno
@ne1uno
you can drag with the mouse or use arrow keys to select, another problem is not being able to limit the dropdown window size
Toomas Vooglaid
@toomasv

@lpvm Use scrollable flag:

items: repeat i 100 [append [] rejoin ["Item " i]]
view [drop-list with [flags: 'scrollable] data items]

Same for drop-down. I think it is not documented yet.

Gregg Irwin
@greggirwin
@gltewalt, would you add that flag to the docs?
Luis Vale Mendes
@lpvm
Thanks @toomasv !
Toomas Vooglaid
@toomasv
@lpvm You are welcome!
Greg T
@gltewalt
‘Scrollable?
Toomas Vooglaid
@toomasv
@gltewalt ' not
Gregg Irwin
@greggirwin
@gltewalt yes.
Greg T
@gltewalt
Which section(s) @greggirwin ? drop-list, text-list, drop-down?
Gregg Irwin
@greggirwin
All that apply. I don't have time to test right now.
Toomas Vooglaid
@toomasv

@gltewalt text-list does not need it, even if it accepts if specified. Other faces accept it too, but not all are showing scrollers. And those which are showing (e.g. panel, rich-text, text) need to specify on-scroll actor, and how to manipulate scroller face with its specific facets is undocumented too. So, I think for those we need to wait some explanation.

But for drop-list and drop-down it works out of the box. (On W10 at least. I have no info on other platforms.)

Greg T
@gltewalt
Ok
ne1uno
@ne1uno
drop-list seems to work as described win7
innitheblindsw
@innitheblindsw
Hi everybody. Is posible connect to pop3 or imap of a email using ssl en RED?
I have a idea or proyect from control my server using email messages.
Boleslav Březovský
@rebolek
Hi @innitheblindsw! Not yet, unfortunately, this will come with 0.7
innitheblindsw
@innitheblindsw
Thanks. That was quick
Thanks and Merry Christmas\
Boleslav Březovský
@rebolek
@innitheblindsw simple question, quick answer :)
innitheblindsw
@innitheblindsw
Gracias a todo el equipo de desarrollo de RED por la nueva versión.
Sorry.
Thanks to the entire RED development team for the new version.
Darrell Brogdon
@DarrellBrogdon
@endo64 Thanks for the reply. And apologies for the late response. I got so busy I forgot I had asked!
Luis Vale Mendes
@lpvm

In Rebol, I got an example of a menu bar:

menu-Options: ["About..." [alert "This menu is just a choice button widget :)"]
m1: menu-list "Options" 170 with [menu: menu-Options]

Reading the documentation can't find a way to implement a menu in Red.

Vladimir Vasilyev
@9214
view/options [box red][menu: ["a" ["b" "c"]]]
Luis Vale Mendes
@lpvm
I don't know yet how to read that documentation. For example, why is there view/options and not window as in the title of the section?
Vladimir Vasilyev
@9214
Because window is a top-most container for other faces. And you should really learn about virtual tree of faces first.
Luis Vale Mendes
@lpvm
That code opens a window with a menu, fine, thanks. ButI have a layout block. How to integrate that menu with that block?
Vladimir Vasilyev
@9214
Not sure what you mean by that.
Luis Vale Mendes
@lpvm
It's done, sorry, just misunderstanding from my part.
Luis Vale Mendes
@lpvm
I'm looking at environment/console/GUI/gui-console.red from sources.
For assigning an action to a menu choice do I need to create a separate actor function or can I do it in a simpler way?
Vladimir Vasilyev
@9214
@lpvm if we are talking about window menu, then you should extend actor facet with on-menu event handler. For other faces specifying on-menu handler in VID block should be enough.
Luis Vale Mendes
@lpvm
I agree with you that I have to really learn what is said in the documentation. But where is it said on-menu in the documentation of view or VID? Is it implicit?
Specifically p. 11.3
Luis Vale Mendes
@lpvm
Thank you. It's implicit! I'll have to print view and VID on paper to cut, write and make some diagrams! :-)
Vladimir Vasilyev
@9214

It's implicit!

Again, not sure what you mean by that. All info in View/VID documentation is explicit.

Toomas Vooglaid
@toomasv
@lpvm I something like this what you want?:
lay: layout/options [
   on-menu [
      switch event/picked [
         open [probe "opening..."] 
         save [probe "saving..."]
]]][
   menu: ["File" ["Open" open "Save" save]]
]
view lay
Vladimir Vasilyev
@9214
@toomasv you can just go with view/options [on-menu ...][menu: ...].
Toomas Vooglaid
@toomasv
@9214 Yes, of course. But I understood @lpvm asked specifically about layout.
Luis Vale Mendes
@lpvm
@toomasv for now yes, it is! For me it's a lot easier to have some examples and then re-read the documentation. Thanks.
Toomas Vooglaid
@toomasv
@lpvm You are welcome!
Luis Vale Mendes
@lpvm
@9214 Yes, I know about those resources, but the ones I've searched had nothing about placing menus.
Toomas Vooglaid
@toomasv
@lpvm So you can add contextual (right-click) menu to a face:
view [
   area "some words here" 
   with [menu: ["Show" show]] 
   on-menu [switch event/picked [
      show [probe face/text]
   ]]
]
Luis Vale Mendes
@lpvm
Nice!. I read about the popup keyword to create contextual menus, but my attempt was not successful
Vladimir Vasilyev
@9214
view/options [][menu: [popup "a" a "b" b]]
Toomas Vooglaid
@toomasv
@lpvm popup is for creating a right-click menu for window.