World: r3wp
[View] discuss view related issues
older newer | first last |
Brock 18-Sep-2007 [7189x2] | toggle/state: none? |
excluding the question mark of course | |
Graham 18-Sep-2007 [7191] | Oops ..reading it wrong. Works. |
Gregg 19-Sep-2007 [7192] | reset-face should also work |
Henrik 27-Sep-2007 [7193x3] | does anyone know how to preset a drop-down inside the layout block? data: ["1" "2" "3"] view [drop-down data <something here to set the drop-down to "2">] |
sorry, view layout [... been using R3 too much :-) | |
figured it out using: http://anton.wildit.net.au/rebol/gui/demo-drop-down.r | |
james_nak 27-Sep-2007 [7196] | How do you do it? I was checking anamonitor but these kinds of things are mysteries to me. |
Henrik 27-Sep-2007 [7197x3] | d: ["1" "2" "3"] view [drop-down data d with [text: d/2][ |
should be ], not [ | |
but worse, I need it in a list and the popup is covered by the panel size. | |
james_nak 27-Sep-2007 [7200] | Yeah, I had that before. |
Henrik 27-Sep-2007 [7201] | need an alternate solution |
james_nak 27-Sep-2007 [7202] | I end up with long windows. : ( |
Henrik 27-Sep-2007 [7203] | has anyone made an alternate drop down using unbordered windows? |
james_nak 27-Sep-2007 [7204] | For those kinds of things I end up usinga thing call list-view : ) or just the text-list when I can go lo-tech. |
Henrik 27-Sep-2007 [7205] | it won't really help here, because I'm still going to be using panels which will limit the face size |
james_nak 27-Sep-2007 [7206] | And you can't scroll? |
Henrik 27-Sep-2007 [7207] | no. impossible. |
james_nak 27-Sep-2007 [7208] | Can you split the list up? |
Henrik 27-Sep-2007 [7209x2] | it's a big vertical list of dropdowns |
can't do anything like that. the drop down has to be independent on the restrictions of the layout it's sitting in. | |
Brock 27-Sep-2007 [7211] | Have you guys tried Ammon's drop down? It works a little nicer than the default. |
Henrik 27-Sep-2007 [7212] | (this would be very simple in VID3!) |
Brock 27-Sep-2007 [7213] | Ammon's uses unbordered windows |
Henrik 27-Sep-2007 [7214] | ohh, nice. where is it? |
Brock 27-Sep-2007 [7215x3] | atleast I think the list will span outside of the parent face. |
It's in the script library at rebol.org | |
I believe it is called dropdown.r | |
Henrik 27-Sep-2007 [7218] | running it. beautiful, although it doesn't work under OSX. I hope it works under WinXP. |
Brock 27-Sep-2007 [7219] | glad a could help :-) |
Henrik 27-Sep-2007 [7220] | thanks |
james_nak 27-Sep-2007 [7221] | That's interesting but when it reaches a limit it creates a scroll bar. (Not bad, unless you don't want a scroll bar) |
Henrik 27-Sep-2007 [7222] | that is very fine for me, since one of my dropdowns has about 20 options. |
james_nak 27-Sep-2007 [7223x2] | Yes, and I guess it doesn't initially take up real estate like a text list would by default. |
Thanks Brock. I can now resize my giant windows! | |
Brock 28-Sep-2007 [7225] | Don't thank me, thank Ammon. I happened across it probably two years ago now, just after Ammon went to work for Safeworlds. |
Henrik 28-Sep-2007 [7226] | I thank you anyway, because it saved me a bit of research :-) |
Brock 28-Sep-2007 [7227] | For the amount of help you have provided me with List-view, I still owe you alot!! |
Henrik 30-Sep-2007 [7228x2] | why is it possible to use make-face with 'field, 'area or 'image, but not with 'text', or 'h1? |
oh, because it's necessary to specify size for 'text. | |
james_nak 2-Oct-2007 [7230] | Just curious but say you've created some apps in the past and you want to create a little launcher app that calls them. These apps can stand alone as well and aren't necessarily part of the launching app. Is it possible to "do" them and then have them return back to the launcher app without having to recode them (the launched apps)? Or should I just place a view/new in the called app and an unview/only when I want to quit it? |
Graham 2-Oct-2007 [7231] | Viewtop ?? |
btiffin 3-Oct-2007 [7232] | James; Depending on the version you have (I can never remember what's what anymore in terms of SDK features amd if you need keys if running 2.7.5 vs 1.3.2 etc) try looking into launch and call. do will work if there are no quits or halts; falling through the end of a script returns the value of the last expression, but halt will halt the caller, and quit just bails. If you are willing to recode a little bit, change all the quits and halts to throw and wrap the do in catch [do ...] (along with the unviews) Best is launch, it spawns off a brand new process. |
Gregg 3-Oct-2007 [7233x3] | James, yes, you can. You can use do/args and pass info, along with a callback func in the main app, that the launched app should call. |
At least that's one way to do it. | |
It does mean making *some* changes to the called app, but not a total rewrite. | |
james_nak 3-Oct-2007 [7236] | Thanks you all. I will try those suggestions. |
Anton 4-Oct-2007 [7237] | Henrik, I did make a fix for center and right aligned fields. http://anton.wildit.net.au/rebol/gui/demo-field.r http://anton.wildit.net.au/rebol/gui/demo-area.r http://anton.wildit.net.au/rebol/gui/demo-info.r You can work this into your field style if you like. Note, the patching is quite heavy, but I've done it in a good, modular way that I think can't be done much better. |
Henrik 5-Oct-2007 [7238] | anton, thanks |
older newer | first last |