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

World: r3wp

[View] discuss view related issues

Henrik
23-Jul-2006
[5324x2]
I'm quitting... it works a tiny bit better than before, but it's 
still odd. Don't wiggle the mouse too much while pressing the button 
:-)
Changed it to a combination of detect and engage. I think it's working 
now (crossing all my limbs, fingers and toes)
Graham
23-Jul-2006
[5326]
eyes?
Henrik
23-Jul-2006
[5327]
no, that hurts too much
Volker
24-Jul-2006
[5328x2]
DId not read the thread, only the problem. The trick is to put a 
transparent face over all the others, 'sensor in vid. Then you dont 
get  clicks in your faces, but all is nicely captured by the sensor.
Means put a full-sized face at the end of face/pane
Anton
24-Jul-2006
[5330]
Yeah, try that. So icon-frame contains text, icon, and finally the 
full-sized transparent face.
Henrik
24-Jul-2006
[5331]
the detect thing seems to work fine and it shaves off 33% of the 
needed faces. :-) thanks for your help


Anton, the event program is a great demo. don't you want to put it 
some where more visible?
Anton
24-Jul-2006
[5332]
Like my website. :) I just need to get my website ready and published.
Gregg
24-Jul-2006
[5333]
How is about clipboard for last version of view?
Is it possible to 
insert in clipboard port image?

I have code to do it for Windows.
Janeks
27-Jul-2006
[5334]
I am interested in clipboard copying of images
Anton
27-Jul-2006
[5335]
Hmm!  I am surprised how hard it is to design menues;  so many little 
nuances.
Cyphre
27-Jul-2006
[5336]
When designing GUI elements: Devil is in the details ;)
Maarten
27-Jul-2006
[5337]
That's why people love markup languages
Anton
28-Jul-2006
[5338]
eh ? they do ?
Josh
28-Jul-2006
[5339]
Quick question, how do you force a resize event?
Graham
28-Jul-2006
[5340]
use the mouse?
Josh
28-Jul-2006
[5341]
Is there any other way?
Graham
28-Jul-2006
[5342]
Do you to inject a resize event into View's event handler?
BrianH
28-Jul-2006
[5343]
Isn't a resize event without a resize just a repaint?
Chris
28-Jul-2006
[5344]
Not sure what you mean, either:

  view lay: layout [btn "Resize" [lay/size: 400x400 show lay]]

or

  my-evt: make event! [type: 'resize]
  system/view/wake-event my-evt  ;-- doesn't work, another way?

or


  do-on-resize: func [f e][if e/type = 'resize [alert "Resize!!!"] 
  e]
  insert-event-func :do-on-resize
  view lay: layout [btn "Resize" [lay/size: 400x400 show lay]]
Henrik
31-Jul-2006
[5345]
are there good articles on memory conservation anywhere? I noticed 
that some times memory usage for LIST-VIEW skyrockets, especially 
when using TO-IMAGE on list columns to generate bitmaps. that is 
not good.
Anton
1-Aug-2006
[5346]
Yes, to-image always produces a new image. There's no way to render 
into an existing image, as far as I know. (Would like that.)
Henrik
9-Aug-2006
[5347]
how do you bind layout words to an object easily? I want to set faces 
to variables which are supposed to be local to the context of my 
Tester program. I realize this is really the old "dynamic variable 
list in an object problem" all over again (I run into this very often 
it seems), but was wondering if LAYOUT specifically allowed some 
tricks...
Ladislav
9-Aug-2006
[5348]
see Avoiding Variable Collisions in http://www.rebol.com/docs/view-guide.html#section-13, 
I guess that is what you are asking for
Henrik
9-Aug-2006
[5349]
I was afraid that is what I needed to do :-(
Ladislav
9-Aug-2006
[5350]
what is wrong with that approach?
Henrik
9-Aug-2006
[5351]
because I have quite a lot of variables
Ladislav
9-Aug-2006
[5352x2]
(I can suggest improvements)
aha, you do not want to "duplicate" declarations?
Henrik
9-Aug-2006
[5354]
well the thing is how variables are initialized when doing an object. 
I've discussed this before, but it would be nice to keep the list 
shown at the top of that example in the docs as a dynamic list. this 
prevents me from having to maintain that list and the layout words 
when doing changes. I guess I need to approach how to make the object 
block differently.
Ladislav
9-Aug-2006
[5355]
I am wildly trying to guess what you want, although you are not making 
it easy for me :-). Let's see my CFOR function as an example:
Henrik
9-Aug-2006
[5356]
well, I may just be going about this backwards
Ladislav
9-Aug-2006
[5357x2]
>> cfor [i: 1] [i <= 3] [i: i + 1] [print i]
1
2
3
== 4
>> i
** Script Error: i has no value
** Near: i
>>
is this pattern what you want to be able to do?
Henrik
9-Aug-2006
[5359]
well, that's a local variable alright, but this is for an object. 
I think I have a different solution though, so I think you should 
wait with wasting more time on it.
Ladislav
9-Aug-2006
[5360x2]
this is for an object
 - it does not matter at all
you just need to know what you want
Henrik
9-Aug-2006
[5362]
I know what I want :-) I just need to find out a solid way to solve 
the problem permanently
Ladislav
9-Aug-2006
[5363x2]
the solution already exists, see http://www.fm.tul.cz/~ladislav/rebol/contexts.html#section-22
or http://www.fm.tul.cz/~ladislav/rebol/cfor.r
(and http://www.fm.tul.cz/~ladislav/rebol/set-words.r)
Henrik
9-Aug-2006
[5365x2]
ok, how do you then do that for an object?
the way I see it, I need to create the object block with layout blocks 
first. then analyze those layout blocks for set words and finally 
create a new block with the set words set to none and append the 
object block afterwards
Ladislav
9-Aug-2006
[5367x2]
how do I do it for an object? - the http://www.fm.tul.cz/~ladislav/rebol/contexts.html#section-20
does it for an object when simulating how an object is created
CFOR function does it for a block, LFUNC does it for a function, 
it is quite easy actually
Henrik
9-Aug-2006
[5369x2]
am I correct that set-words is not recursive?
nevermind, made it recursive myself :-)
Ladislav
9-Aug-2006
[5371]
I wanted to stay compatible with the way how objects work, that is 
why I didn't make it recursive, but it is easy to change
JaimeVargas
9-Aug-2006
[5372]
Lad, when you shadow a variable how do you access the top level one? 
In the CFOR example i showdows any system i.
Gabriele
9-Aug-2006
[5373]
http://www.colellachiara.com/soft/libs/utility.r