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

World: r3wp

[View] discuss view related issues

Brock
9-Apr-2005
[859]
Anybody of some generic form validation scripts/hints.  I like how 
.Net allows you to validate a group of radio buttons with one command 
rather than having to code a check for each radio button in the group.
Volker
9-Apr-2005
[860]
interesting idea. I usually use

 compose[ .. (either my-var > 5 [[name: button red return]][()]) ..]
but its a lot of brackets
Anton
11-Apr-2005
[861x2]
When I selectively compose in several times like Volker's code above, 
I make a small helper function called FLAG-VAL, to do the same job 
as the EITHER.
I think my hypothetical example above is better as:
	layout [
		inlay [if my-var > 5 [[name: button red return]]]
	]
then INLAY only needs to be a layout dialect function.

But actually, this reminds me of the discussions we had about argument 
propagation, the want for replace/deep etc.
Benjamin
11-Apr-2005
[863]
hi there, i did not seach much on this but it possible to change 
the cursor in rebol view arrow clock precise etc... ???
Pekr
12-Apr-2005
[864]
has anyone already submitted bug to RAMBO, where View apps crash 
each time you change your desktop resolution?
Ammon
12-Apr-2005
[865]
I'm not sure but it isn't just resolution that will do it.  Sometimes 
changing the Appearance and sometimes changing the color depth as 
well as various other display settings will kill all View applications.
Pekr
12-Apr-2005
[866]
ok, then rebol can't handle it properly - that is a big minus, although 
you don't do such operations very often ...
BrianH
12-Apr-2005
[867]
Well I do, as such a switch happens when you connect to Remote Desktop, 
and I use that a lot.
Ammon
12-Apr-2005
[868]
Really?  Never had RD kill my View apps before and I have used it 
alot...
BrianH
12-Apr-2005
[869]
Hasn't happened to me yet either. I was just saying that if that 
was the trigger, it would affect me.
Ammon
12-Apr-2005
[870]
In my experience there are a number of applications, games, etc that 
use there own display settings but do not seem to change the actual 
desktop settings and therefore do not affect other running applications 
such as View.  This may or may not be what is actually going on I've 
just come to this conclusion because when some applications change 
the display settings or use different display settings then all the 
desktop icons are moved to fit within the alternate resolution whereas 
other applications do not have this effect.
DideC
12-Apr-2005
[871]
OMO View crash only if you change screen resolution. Not affected 
by color depth.

I think it can't change the sv/screen-face/size at runtime. It initialize 
it at startup.
Tomc
12-Apr-2005
[872]
also crashes if you change number of monitors without changing resolution
Gregg
13-Apr-2005
[873]
Benjamin -- There is no native way to change cursors in REBOL. Cyphre 
has done some experiments with it, and the APIs should be easy enough 
to call if you have /pro. Can't remember if I ever mapped those or 
not.
Volker
13-Apr-2005
[874]
what are good colors for a code-colorizer?
Ingo
14-Apr-2005
[875]
I've had /View Apps crashing after my WinXP restarted from hibernate 
mode. But not all of them. I don't know whether it was dependant 
on the app, or on the version of rebol ...
Sunanda
14-Apr-2005
[876]
Volker -- colours for code will be highly subjective.
See Carl's choices here:

     http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=color-code.r
And  REBOL.org's choices here (look for "script colorizer"):
     http://www.rebol.org/cgi-bin/cgiwrap/rebol/css-view-system.r
Anton
14-Apr-2005
[877x2]
Gregg, if you check out the DLL.SO group, you can see Benjamin is 
already tackling changing cursors with user32.dll !
Volker, I usually like the colours to be not very bright, ie. I set 
my strings to be very dark green, keywords to dark red or blue etc. 
so most of the text is close to black. But, as Sunanda said, that's 
subjective, my point of view.
Chris
14-Apr-2005
[879]
I use this style sheet for my colour code: http://www.ross-gill.com/styles/rebol-code.css
Volker
14-Apr-2005
[880]
Thanks for suggestions. Have to look into that. Currently i have 
anti-colors, mostly because i box the words, not just colorize them. 
looks like suqeaks etoys :) to see it, run edit-tools in my developer-folder, 
open a script, choose color-rebol.r in the plugin-list and close 
your eyes quickly :)) more a demo how to markup text.
Anton
14-Apr-2005
[881]
Whoa! what a bizarre user experience!  :)
Volker
14-Apr-2005
[882]
hehe ;)
Anton
14-Apr-2005
[883]
I click "edit-tools", then I press "open" button, it opens a dialog 
"save /d/anton/dev/rebol/link/developer/et/doc/readme.txt" [Yes] 
[No]...   eh !??!
Volker
14-Apr-2005
[884]
oops, yes. choose no.
Anton
14-Apr-2005
[885]
I press [No], then it opens a file requester, so I press "Cancel" 
and that minimizes the edit-tools app. Is this an april fools joke 
that no-one discovered in time ?
Volker
14-Apr-2005
[886x4]
thats the first-time opened file, if you use the multi-file-version. 
missing files are created. then it thinks that missing file on disk 
is diferent to that empty edited file and -hu, more problems?
should test on windows first maybe.
can you open a real file with the requester?
no idea about minimizing. crash maybe, but minimize?
Anton
14-Apr-2005
[890x2]
You had me reading code there... yeah that's weird, the minimize 
- no where in code is "minimize" found.
Here's the problem, surely:
	button "open" [save-file/? ta sr open-file refresh]
Volker
14-Apr-2005
[892x2]
can you look for
  wait: :my-wait
and delete that?
it contains a workaround on linux. maybe windows does not like it.
Anton
14-Apr-2005
[894]
refresh -> window -> hide main-window
Volker
14-Apr-2005
[895]
aah - hmm, on linux i use [hid main-window] to stop timers before 
replacing layout. on windows that minimizes?
Ammon
14-Apr-2005
[896]
yes
Volker
14-Apr-2005
[897x3]
on linux it does nothing, except stopping timers and flash a moment.
so that should be changed to [hide main-window/pane perhaps.
somewhere in the [window: func]
Anton
14-Apr-2005
[900x2]
Mmm.  HIDE doesn't work on latest Rebol/View betas, but it minimizes 
a window face on View 1.2.1.3.1
doesn't work

 = doesn't change appearance of the window (don't know about timers 
 yet)
Volker
14-Apr-2005
[902]
published a fix. can you try it again?
Anton
14-Apr-2005
[903x2]
Open still tries to save, obviously, but when I cancel now it does 
not minimize (I see a quick flash of the window though)
:) The next problem is: why is the "Open" button asking to save ?
Volker
14-Apr-2005
[905]
open tries to save the last file. it thinks it is modified, instead 
its missing. but text <> attempt[read file], so..
Anton
14-Apr-2005
[906x2]
Ok...
Gosh! the two scrollers interact with each other...
Volker
14-Apr-2005
[908]
its tricky to stop the timers. hide works but flashes. hide on window 
does not flash on linux, so i thought i had a good way.