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

World: r3wp

[!REBOL3 GUI]

Henrik
15-Jan-2010
[69x2]
there's only a single column list available at this time.
no tabbed panels either
Graham
15-Jan-2010
[71]
R3 gui is supposed to be easier to code for than VID isn't it ?
Henrik
15-Jan-2010
[72]
yes it is, but you can of course not do so much, when there is only 
a small set of styles available.
Graham
15-Jan-2010
[73x2]
I don't know anything about the intricasies of GUI programming ....
Does the text-list use a fixed font style?
Henrik
15-Jan-2010
[75]
No, it uses a standard arial font.
Graham
15-Jan-2010
[76x2]
Then I won't need a table yet if the font is fixed pitch
and are face iterators used for text-lists ?
Henrik
15-Jan-2010
[78x2]
Some things are the same as in R2: You still create layouts with 
a dialect and you still create styles, but style writing is more 
important now, since face hacking like in VID isn't possible anymore.
VID3.4 has no face iterators. Too heavy and unnecessary for GOBs.
Graham
15-Jan-2010
[80]
Has anyone written any demos apart from "demo" ?
Pekr
15-Jan-2010
[81]
Graham - I think it is preliminary to use VID3.4 productively or 
to extend it. There are planned some design changes to happen ...
Graham
15-Jan-2010
[82]
I have noticed some instability.  If you halt from a GUI script and 
then try and close it ... r3alpha crashes
Henrik
15-Jan-2010
[83]
Graham, no other demos, but I have a lot of private ones, that only 
work with my styles. You have seen all the screenshots.
Graham
15-Jan-2010
[84]
How do you see the source for a style?
Henrik
15-Jan-2010
[85x2]
The resizing and aligning issues makes VID3.4 difficult to use for 
creating decent aligned faces. I would probably wait until that is 
at least fixed.
Graham, all available through R3 chat.
Graham
15-Jan-2010
[87x2]
Ok.
so a text-list is now called a "style" ?
Henrik
15-Jan-2010
[89]
#2686 and "get lists.r"
Graham
15-Jan-2010
[90]
Hmm.. no messages in GUI in R3 chat for this year
Henrik
15-Jan-2010
[91]
they are all styles
Graham
15-Jan-2010
[92]
How do I download all the files I see with 'ls ?
Henrik
15-Jan-2010
[93]
get *
Graham
15-Jan-2010
[94x2]
thnx
So, I guess I need to wait a couple of months ....
Henrik
15-Jan-2010
[96]
yes, probably a good idea
Pekr
15-Jan-2010
[97]
Yes, the result of constant "topic jumping" during the development 
:-)
Graham
15-Jan-2010
[98x2]
Sigh ...
I presume I can change the font used to a monospaced font ...
Henrik
15-Jan-2010
[100]
you can, if you can find where the font specification is used in 
the list, but you want to create a new style that uses that font.
Graham
15-Jan-2010
[101x4]
noob question ....  how can I define a function that accesses a field 
before the layout is created?
I used to use 

l: layout [ f: field ]

and then write my function access f after the layout was created.

Now we have 

view [ layout block ]
...
My first gui script http://rebol.wik.is/Rebol3/R3_GUI/Sendfax.r


I'd like to have the output from net-log appearing in the area .. 
but I can only get it do that once  and then nothing ...
oh .. and the fax was successfully sent :)
Graham
16-Jan-2010
[105x5]
control-C to try and copy text in an error causes the console to 
crash
in an area causes console to crash
I wrote this to try and update the area with network trace

			set 'net-log funct [  txt /c /s][
				data: rejoin [ get-face a1 newline txt ]
				if c [ data: join "c: " data ]
				if s [ data: join "s: " data ]
				set-face a1 data
				set-face/field a1 tail get-face a1 'locate 
				wait .1 ; update gui
				txt
			]
but it doesn't work because get-face is async
so I need some callback instead ...
so my area ends up with a row of 

c: s: c: ....
before any real text appears
Pekr
19-Jan-2010
[110]
Could Open Web Font Format be of any use for us, to solve our font 
problems?

http://hacks.mozilla.org/2009/10/woff/
Henrik
19-Jan-2010
[111]
Do we have font problems in R3?
Pekr
19-Jan-2010
[112]
yes, we can't use some techniques as Hinting, no? I thought that 
some open-source cross-platform aproach might cure the situation 
...
Henrik
19-Jan-2010
[113]
I would assume that would simply be an extension of the rich text 
dialect and exposing more options from the AGG font renderer:

[hint 1 "abc" hint 0.8 "def" hint 2 "ghi"]
Cyphre
19-Jan-2010
[114x2]
We are using hinting. But on platforms where FreeType2 lib is used 
the hinting results can be not nice. This is because it depends how 
FreeType lib is compiled (either with the Apple hinter, or with the 
free non-commercialy licenced alternative)
Henrik, yes HINT x y keyword can be added to the dialect. But IMO 
this can be useful only in case you have own vector glyphs and own 
simple font engine. For example the TrueType hinter is kind of language 
for itself so it can be pretty complex.
Pavel
19-Jan-2010
[116]
Hints should be built-in in font definitions (ie hint table or kerning 
pairs table) what Henrik sugest seems to me like kerning information. 
Hints should be active when rendering to "low" resolutions happens, 
acording to standards I've read long, long ago.
Henrik
19-Jan-2010
[117]
Sorry, I was mistaking kerning with hinting.
Pavel
19-Jan-2010
[118]
Hinting should make all rounding to be the sam at distinct resolution, 
ie it solves recomputation vrom vector information (float) to integer 
screen information, trying to make all significant sizes the sam 
at some distinct resolution.