r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[View] discuss view related issues

amacleod
26-Aug-2008
[8070]
and use inform?
Graham
26-Aug-2008
[8071x2]
yes
hmm.  doesn't work
amacleod
26-Aug-2008
[8073]
Any idea how the /parent refinement works for layout. I can't seem 
to find the right syntax.. 
if its even relevent to what i'm trying to do...
Graham
26-Aug-2008
[8074x3]
not relevant
check how rebgui does it http://trac.geekisp.com/rebgui/browser/functions/display.r
that's the problem with Vid now ... all this stuff is hidden.
amacleod
26-Aug-2008
[8077]
I always hit a wall with vid.
Most of my gui's need more than vid gives us.
Graham
26-Aug-2008
[8078]
VID allows you to setup a basic GUI.  If you need more advanced stuff... 
you need to use View.  That is the problem that Vid3.4 in R3 is going 
to address ( I hope )
Henrik
26-Aug-2008
[8079]
INFORM is unfortunately rather nasty. I had big problems (and still 
have) trying to figure out how its feel object works for my OSX style 
drop down sheets.
Anton
26-Aug-2008
[8080]
http://anton.wildit.net.au/rebol/doc/face-options-dialect.txt
amacleod
26-Aug-2008
[8081]
Good read. Thanks Anton....
But it does not make the new window Modal.

I got what I needed using choose as you also mention in the document 
above.
amacleod
1-Sep-2008
[8082x3]
Anyone have a few examples on using choose function. I've looked 
at "word borwser" but it does not say much on the refinements...
About word browser....

I use it all the time. Its great but I wish they would have finished 
the few things they seemd to have planned...like the "Add comment" 
function. It would be great if poeple could add other examples and 
other interesting points.
I guess it would have required some kind of sign in feature and add 
too much complexity...
Graham
1-Sep-2008
[8085]
Rebol is an unfinished work ...
amacleod
1-Sep-2008
[8086x2]
and many of the tools associated with it...
On choose functio...never mind I got it to do what I needed...
amacleod
2-Sep-2008
[8088]
Is there a way to hold user data in a face. I see a data attribute 
but is htat only for information about the face or can it be used 
to store variables that can be retrieved?
ICarii
2-Sep-2008
[8089]
you can use data: to hold any user data.
amacleod
2-Sep-2008
[8090]
given data dat how do I store it in button_a and retrieve it?
dat: "Bob"
button_a: btn "hello"
ICarii
2-Sep-2008
[8091x2]
button_a: btn "hello" with [data: dat]
so button_a/data will be for the post build access
amacleod
2-Sep-2008
[8093x2]
ok...
Got it...Thanks

I'm building a panel dynamicaly and need to assign data to the face 
as its being built. 
I was not sure of the format: of the with refinement.
back to choose function...
can't get the styl attribute to work. 

If I want my choose menu to be a certain width what syntax do I use?

choose/offset/styl ["One" "Two" "Three"] func [face] [print sec] 
'offset' size = 200] ????
Oldes
2-Sep-2008
[8095]
view layout [choice 200x20 "one" "two" "three" [probe face/data]] 
;??
amacleod
2-Sep-2008
[8096]
sorry oldes...

Not vid's Choice button style but the choose function from which 
its derived.
Anton
2-Sep-2008
[8097x3]
(The CHOOSE function uses the CHOICE style, yes.)
view window: layout [
	style choice choice 200x50
	size 300x200 button "choose" [
		choose/window/offset/style ["one" "two"] func [face value][
			probe face/text
		] 
		window 
		(face/size * 0x1 + win-offset? face)
		window/styles/choice
	]
]
http://anton.wildit.net.au/rebol/doc/choose-choice.txt
shadwolf
2-Sep-2008
[8100x2]
soany of you have ideas for the new nale of view ?
nale = name
amacleod
2-Sep-2008
[8102]
new name for vid3.4...
Henrik
2-Sep-2008
[8103]
no new name has been decided yet
Pekr
2-Sep-2008
[8104]
the first name was GIDI ....
amacleod
2-Sep-2008
[8105]
Anton,
That works great..Thanks again.

I was looking for syntax where you describe the layout in hte function 
but I guess that's not how its done. 

Funny how I only saw one example of using choice as a drop down menu 
system. It works perfect for what I need witout hte any bloat. (unless 
you need sub-menus this is fine.

You can even leave out hte window refinement and the menu will drop 
outside the main window. Perfect for when you have a need for a menu 
at the bottom of a window.
Anton
2-Sep-2008
[8106x5]
and in that case, you would use SCREEN-OFFSET? instead of WIN-OFFSET? 
to help calculate the offset of the popup window.
But note, currently in linux, on KDE at least, the popup window has 
a title bar and borders... A limitation of rebol at the moment.
Fresh meat
http://anton.wildit.net.au/rebol/gui/para-control-row.r
http://anton.wildit.net.au/rebol/gui/font-control-row.r
do-thru http://anton.wildit.net.au/rebol/gui/demo-para-control-row.r

do-thru http://anton.wildit.net.au/rebol/gui/demo-font-control-row.r
amacleod
2-Sep-2008
[8111]
screen-offset? 
I actually figured that one out myself...for once.
how about OSX? Does it display properly?
Louis
5-Sep-2008
[8112]
Does ToSystemTray work on a  Linux box?
Izkata
12-Sep-2008
[8113]
Doesn't look like rebview supports any trays on linux
Alan
14-Sep-2008
[8114]
.
Anton
27-Sep-2008
[8115x5]
I've revised (and am still working on) my arrow360 style:
load-thru/update http://anton.wildit.net.au/rebol/gui/arrow360.r

do-thru/update http://anton.wildit.net.au/rebol/gui/demo-arrow360.r
And here's why I wanted it - I wanted to explore the abilities of 
TEXT facet rendering, changing parameters in FONT and PARA objects.
do-thru http://anton.wildit.net.au/rebol/doc/text-facet-rendering.r
(still in development, but you can click and drag the pair-edit fields 
to see the arrows appear.)