Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[view] changing window title. -- vid 1.3 --

 [1/19] from: maximo:meteorstudios at: 22-Jan-2004 18:41


as far as I know, we cannot change the title of a window while the window is open. if anyone else knows differently, then speak up . the purpose of this mail is that I was wondering if someone who is participating on the vid 1.3 altme discussion could check to see that this problem is listed. I really don't have the time right now... This really is an unfortunate limitation IMO. RT should address this, it can't be something hard to fix. It doesn't have to be something super funky, just adding a 'set-title function or method would be cool. :-) Thanks! -MAx --- You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun.

 [2/19] from: g:santilli:tiscalinet:it at: 23-Jan-2004 11:25


Hi Maxim, On Friday, January 23, 2004, 12:41:40 AM, you wrote: MOA> as far as I know, we cannot change the title of a MOA> window while the window is open.
>> about
REBOL/View 1.2.8.3.1 3-Aug-2002 Copyright 2000-2002 REBOL Technologies. All rights reserved. REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM Type DESKTOP or SET-USER for settings.
>> win: view/new/title layout [text "Hello, World! This is just a test."] "Hi" >> win/text: "Changed" win/changes: 'text show win
HTH, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [3/19] from: atruter:labyrinth:au at: 23-Jan-2004 22:17


Gabriele,
>>> win: view/new/title layout [text "Hello, World! This is just a test."] >>> "Hi" >>> win/text: "Changed" win/changes: 'text show win
How and when did you come across *this* little tidbit!? ;) Regards, Ashley <

 [4/19] from: petr:krenzelok:trz:cz at: 23-Jan-2004 12:21


Gabriele Santilli wrote:
>Hi Maxim, >On Friday, January 23, 2004, 12:41:40 AM, you wrote:
<<quoted lines omitted: 13>>
>HTH, > Gabriele.
Ah well, I put it into tracker. Gabriele, please, if you are on AltME (I am behind firewall and will be at home late in the evening), please remove that request from tracker then ... Thanks a lot, -pekr-<

 [5/19] from: g:santilli:tiscalinet:it at: 23-Jan-2004 12:35


Hi Ashley, On Friday, January 23, 2004, 12:17:47 PM, you wrote: AT> How and when did you come across *this* little tidbit!? ;) I remembered Holger posted something like that in the past, so I just played a bit on the console to find out the correct word to use in /changed. :-) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [6/19] from: maximo:meteorstudios at: 23-Jan-2004 9:39


> > > > > >>>win: view/new/title layout [text "Hello, World! This is > just a test."] "Hi" > >>>win/text: "Changed" win/changes: 'text show win
oh my god... that was something painfull to get to I'm sure... I guess this trick can be used to change other things that I once wanted to edit on a window... thanks!
> >>> > >>>
<<quoted lines omitted: 7>>
> am behind firewall and will be at home late in the evening), please > remove that request from tracker then ...
Don't remove it, the above code us is just tooo cryptic for it to be used at large, no? I really think that a proper wrapper function should handle this, My guess is that there are other things which can be edited too, not just the text. This is NOT documented, so its not a feature, IMHO, its a happy side-effect to something internal within the view engine, this could change, only RT knows. what do y'all think? -MAx

 [7/19] from: g:santilli:tiscalinet:it at: 23-Jan-2004 16:20


Hi Maxim, On Friday, January 23, 2004, 3:39:05 PM, you wrote: MOA> This is NOT documented, so its not a feature, IMHO, MOA> its a happy side-effect to something internal within the view MOA> engine, this could change, only RT knows. FACE/CHANGES *is* a feature and not a side effect. It is not in the docs, but Holger explained it here in the past. For example, it is used for HW scrolling (face/changes: 'offset), to activate a window (face/changes: 'activate), and so on. MOA> what do y'all think? That we need proper docs. :-) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [8/19] from: petr:krenzelok:trz:cz at: 23-Jan-2004 17:00


Gabriele Santilli wrote:
>Hi Maxim, >On Friday, January 23, 2004, 3:39:05 PM, you wrote:
<<quoted lines omitted: 5>>
>it is used for HW scrolling (face/changes: 'offset), to activate a >window (face/changes: 'activate), and so on.
but it still seems to me as quick hack done quickly at some point. Why should similar functionalities, which are not platform dependant, being done that way? Why it is not handled via normal event flow? It is imo far from being intuitive to do various things that way ... -pekr-

 [9/19] from: maximo:meteorstudios at: 23-Jan-2004 11:14


so if we set something here it is akin to setting a dirty state and when we call show, only that part of the change is handled? can we perform this on all faces? or just the window? -MAx --- You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun.

 [10/19] from: g:santilli:tiscalinet:it at: 23-Jan-2004 17:27


Hi Petr, On Friday, January 23, 2004, 5:00:21 PM, you wrote: PK> but it still seems to me as quick hack done quickly at some point. Why PK> should similar functionalities, which are not platform dependant, being PK> done that way? Why it is not handled via normal event flow? It is imo PK> far from being intuitive to do various things that way ... How would you do it? Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [11/19] from: g:santilli:tiscalinet:it at: 23-Jan-2004 17:47


Hi Maxim, On Friday, January 23, 2004, 5:14:10 PM, you wrote: MOA> so if we set something here it is akin to setting a MOA> dirty state and when we call show, only that part of the MOA> change is handled? face/changes basically tells SHOW what has changed, so that it is possible to not rebuild the whole face. SHOW sets changes back to NONE. It works for any face, but things like 'activate would only work on a window face AFAIK. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [12/19] from: maximo:meteorstudios at: 23-Jan-2004 12:37


funny (or rather not ;-), I've been programming in view for more than years, even have a vid replacement (glass) ready to be re-coded in a release state. I might even consider myself one of the more seasoned view/face users out there. but yet, such a basic/usefull/needed feature has eluded my grasp for all of that time. I think, this is an illustration of just how much documentation failures there are . We can't remember everything. Even searching means that you have to know what you are searching for. searching for "dirty" would have never returned the info about /changes, for example. I'm starting to think about WRITING A COMPLETE VIEW GUIDE, similar to the one for core, REALLY. AND MAINTAINING IT as new info is know, versions come out and whatever. Collecting ALL of the known features, issues, bugs, etc which are hanging around here and there. One single document, which holds all of that magic stuff. Would rebol.org be inclined to hosting the cgi environment for me to build up a simple user-entry form for any view-related information (with a user-rating)? Maybe Gerard, Robert, and others (like the french crew) might want to help with contributions!? This list would also serve to collect view data. I don't mind editing it. Consider this a REAL and definite proposal. -MAx --- You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun.

 [13/19] from: petr:krenzelok:trz:cz at: 23-Jan-2004 19:00


Gabriele Santilli wrote:
>Hi Petr, >On Friday, January 23, 2004, 5:00:21 PM, you wrote:
<<quoted lines omitted: 3>>
>PK> far from being intuitive to do various things that way ... >How would you do it?
win: view layout [blabla] later on: win/text: "new title" show win .... I know that it would cause refresh of whole display probably, but you don't change window title so often, right? -pekr-

 [14/19] from: didec:tiscali at: 23-Jan-2004 20:03


Re: Re: [view] changing window title. -- vid 1.3 -- I think that the new 'set-face accessor can do this job on a window. lay: layout/size [ btn "Title 1" [set-face lay "Bye everybody !"] 300x100 btn "Title 2" [set-face lay "Ok I stay here"] ] lay/access: make lay/access [ set-face*: func [face value] [ face/text: value face/changes: 'text ] ] view/title lay "Hello world" It will be better that the 'view func set the accessor for us (like it does with the feel). DideC

 [15/19] from: gerardcote:sympatico:ca at: 23-Jan-2004 17:20


Hi Maxim, You wrote: ========
> I'm starting to think about WRITING A COMPLETE VIEW GUIDE, similar to the one for core, REALLY. AND MAINTAINING IT as new info is
know, versions come out and whatever.
> Collecting ALL of the known features, issues, bugs, etc which are hanging around here and there. One single document, which holds
all of that magic stuff. Would rebol.org be inclined to hosting the cgi environment for me to build up a simple user-entry form for any view-related information (with a user-rating)?
> Maybe Gerard, Robert, and others (like the french crew) might want to help with contributions!? This list would also serve to
collect view data.
> I don't mind editing it. > > Consider this a REAL and definite proposal. > > -MAx
Your announce arrived before I would be able to tackle the job myself and this is OK since for now I am just getting basic knowledge about Core itself and View. I currently reread Olivier Auverlot' book to refresh my mind a bit about View after I finished a first review of VID-usage.r for commenting it to Cybarite via private mail. This was done earlier this week. I also began to reread my 2 other REBOL books to better understand what was left over a couple of years ago when I first met REBOL. This is a definitely necessary now. Finally I am proud to help produce this newly announced VID guide with every other contributor on this list and I am happy you are taking the charge of guiding this project. Regards, Gerard

 [16/19] from: greggirwin:mindspring at: 23-Jan-2004 21:22


Hi Maxim, MOA> Would rebol.org be inclined to hosting the cgi environment for me MOA> to build up a simple user-entry form for any view-related MOA> information (with a user-rating)? I think yes. Docs are something RT really wants to improve, so put your thinking cap on, but maybe start by collecting and organizing things right now. After View 1.3 is released, let's see what direction RT is heading and see if we can all row together. Thanks! -- Gregg

 [17/19] from: atruter:labyrinth:au at: 24-Jan-2004 17:27


Hi Max,
> Consider this a REAL and definite proposal.
I've spent a bit of time thinking about this very issue myself, with a view [no pun intended] to getting the most usefull information out in the most concise manner (and shortest time) possible. My idea, hardly original, was to document common attributes / properties of a face / style, as in: size ... offset ... text ... ... Then list each style and only note the differences, followed by a brief example of its usage. In many ways this is the [VID] dictionary approach, but I think it is better to get the fundamentals right before delving into documentation that tries to cover all the, "This is how to ...", questions that could be answered in part or full by the above in the first place. Regards, Ashley<

 [18/19] from: g:santilli:tiscalinet:it at: 24-Jan-2004 11:16


Hi Petr, On Friday, January 23, 2004, 7:00:29 PM, you wrote: PK> win: view layout [blabla] PK> later on: PK> win/text: "new title" show win .... Yes, I'd expect that to work too. Maybe there's a good reason why it doesn't, or maybe it's just a bug. Anyway, /CHANGES is still useful for the other things. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [19/19] from: ptretter:charter at: 24-Jan-2004 12:52


We have always needed that. With the many changes coming up with the new /View its more important than ever to have great documentation. Paul Tretter

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted