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

Rebgui error in table widget

 [1/11] from: compkarori::gmail::com at: 17-Mar-2007 10:24


Got this error: make object! [ code: 303 type: 'script id: 'expect-arg arg1: 'index? arg2: 'series arg3: [series! port!] near: [index? find parent-face/data last-selected] where: 'action ] So, I guess the fix in table.r is to try this: Instead of: ;BEG fixed by Cyphre, sponsored by Robert if last-selected [ select-row (((index? find parent-face/data last-selected) - 1) / cols) + 1 ] ;END fixed by Cyphre, sponsored by Robert Try: if all [ last-selected find parent-face/data last-selected ][ select-row (((index? find parent-face/data last-selected) - 1) / cols) + 1 ] -- Graham Chiu http://www.synapsedirect.com Synapse-EMR - innovative electronic medical records system

 [2/11] from: robert::muench::robertmuench::de at: 17-Mar-2007 11:57


On Sat, 17 Mar 2007 10:24:40 +0100, Graham Chiu <compkarori-gmail.com> wrote:
> Got this error: > make object! [
<<quoted lines omitted: 7>>
> where: 'action > ]
Hi Graham, this has been fixed in our version.
> So, I guess the fix in table.r is to try this: > Instead of:
<<quoted lines omitted: 4>>
> ] > ;END fixed by Cyphre, sponsored by Robert
This is the actual code now: ;BEG fixed by Cyphre, sponsored by Robert if all [last-selected last-selected: find parent-face/data last-selected][ select-row/no-action to-integer (((index? last-selected) - 1) / p/cols) + 1 ] if not same? parent-face/data parent-face/pane/1/data [ parent-face/pane/1/data: parent-face/data ] ;END fixed by Cyphre, sponsored by Robert Hope this helps. Robert

 [3/11] from: compkarori::gmail at: 18-Mar-2007 8:10


Hi Robert Your patch is not clear to me. Do you have rights to upload to the svn? On 3/17/07, Robert M. M=FCnch <robert.muench-robertmuench.de> wrote:
> On Sat, 17 Mar 2007 10:24:40 +0100, Graham Chiu <compkarori-gmail.com> > wrote:
<<quoted lines omitted: 34>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- Graham Chiu http://www.synapsedirect.com Synapse-EMR - innovative electronic medical records system

 [4/11] from: robert:muench:robertmuench at: 18-Mar-2007 9:02


On Sat, 17 Mar 2007 21:10:43 +0100, Graham Chiu <compkarori-gmail.com> wrote:
> Your patch is not clear to me.
Hi, why not? Just replace the code you have posted with the one I have posted (I added two more lines to it's simpler to find).
> Do you have rights to upload to the svn?
Yes, but I have to find out how we can do an extra branch, as not everything is compatible with the main code line. I'll try to make it today and let you know. Robert

 [5/11] from: compkarori:gm:ail at: 18-Mar-2007 20:58


On 3/18/07, Robert M. M=FCnch <robert.muench-robertmuench.de> wrote:
> On Sat, 17 Mar 2007 21:10:43 +0100, Graham Chiu <compkarori-gmail.com> > wrote: > > > Your patch is not clear to me. > > Hi, why not? Just replace the code you have posted with the one I have > posted (I added two more lines to it's simpler to find). >
Ok. I saw the +1 and got confused thinking it was a diff type of thing. I've got a question about the drop-tree. How do you? 1. Set the depth of the drop down list ( or can't you ? ) 2. Set it so that the tree opens with all the top level nodes closed and not opened 3. Get the text of a node when you click on a node. -- Graham Chiu http://www.synapsedirect.com Synapse-EMR - innovative electronic medical records system

 [6/11] from: robert:muench:robertmuench at: 18-Mar-2007 10:50


On Sun, 18 Mar 2007 09:58:52 +0100, Graham Chiu <compkarori-gmail.com> wrote:
> I've got a question about the drop-tree. > How do you? > > 1. Set the depth of the drop down list ( or can't you ? )
Hi, what do you mean by this? The maximum depth depends on the levels you have specified. There are 4 quick-access buttons. Pressing 1 expands the drop-tree to level 1, 2 to level 2 etc.
> 2. Set it so that the tree opens with all the top level nodes closed > and not opened
Just press the drop-down button. Than you will only see the first level.
> 3. Get the text of a node when you click on a node.
Have you tried face/text? There are two things you can get, the text of the node and the text of the path. There are the following public functions: - hide-tree - show-tree - get-node "1/2/1" will return the face - select-node [face / string] - add-node "1/2/3" face - remove-node [face / string] - load-tree - save-tree - get-picked-path Hope that helps. Robert

 [7/11] from: compkarori:gma:il at: 18-Mar-2007 22:29


On 3/18/07, Robert M. M=FCnch <robert.muench-robertmuench.de> wrote:
> On Sun, 18 Mar 2007 09:58:52 +0100, Graham Chiu <compkarori-gmail.com> > wrote:
<<quoted lines omitted: 5>>
> have specified. There are 4 quick-access buttons. Pressing 1 expands the > drop-tree to level 1, 2 to level 2 etc.
I see buttons 2 - 5, not 1 - 4.
> > 2. Set it so that the tree opens with all the top level nodes closed > > and not opened > Just press the drop-down button. Than you will only see the first level. >
That only happens if you have not opened up a node. Thereafter it remembers the open node.
> > 3. Get the text of a node when you click on a node. > > Have you tried face/text? There are two things you can get, the text of > the node and the text of the path.
face/text only works if there is an action block associated with that node.
> - get-picked-path
You must have different source from here http://trac.geekisp.com/rebgui/browser/widgets/drop-tree.r -- Graham Chiu http://www.synapsedirect.com Synapse-EMR - innovative electronic medical records system

 [8/11] from: robert:muench:robertmuench at: 19-Mar-2007 9:41


On Sun, 18 Mar 2007 11:29:41 +0100, Graham Chiu <compkarori-gmail.com> wrote:
> I see buttons 2 - 5, not 1 - 4.
Hi Graham, ups, sorry. You are correct. Level 1 is opened if you just click the down-arrow.
> That only happens if you have not opened up a node. Thereafter it > remembers the open node.
Yes, that's intended. The idea is "less clicks to result". If you want to collaps the tree, just press 2.
> face/text only works if there is an action block associated with that > node.
What do you want to do? I use the drop-tree as a different menu system. You can add nodes on the fly. Can you explain the situation, where you need to access the node-text? Robert

 [9/11] from: compkarori::gmail at: 20-Mar-2007 7:37


Hi Robert, I got your latest source. The problems that I see are 1. You can't get the text from a node unless there is an action associated. This is because the get-picked-path is set after the action is completed. So, if wish to write a directory requestor where each node is displayed in the text area .. you can't without writing a wrapper around the tree widget. And also it is thus tricky to write a tree that dynamically accepts data. 2. There is no way to collapse the tree from the interface. So, if you clicked on any of the buttons, the whole tree opens up. You then have to laboriously close each node. 3. The area to expand a node is the "+" sign. This is a very small target for the mouse. Perhaps the whole node should be clickable? At present if you click on a node with descendants, the whole tree shuts down. -- Graham Chiu http://www.synapsedirect.com Synapse-EMR - innovative electronic medical records system

 [10/11] from: compkarori:gmai:l at: 21-Mar-2007 12:09


Robert, There is no no-action refinement anymore in select-row in the main trunk. On 3/17/07, Robert M. M=FCnch <robert.muench-robertmuench.de> wrote:
> ;BEG fixed by Cyphre, sponsored by Robert > if all [last-selected last-selected: find parent-face/data last-selected][
<<quoted lines omitted: 5>>
> ] > ;END fixed by Cyphre, sponsored by Robert
-- Graham Chiu http://www.synapsedirect.com Synapse-EMR - innovative electronic medical records system

 [11/11] from: robert:muench:robertmuench at: 23-Mar-2007 13:28


On Mon, 19 Mar 2007 20:37:24 +0100, Graham Chiu <compkarori-gmail.com> wrote:
> 1. You can't get the text from a node unless there is an action > associated. This is because the get-picked-path is set after the
<<quoted lines omitted: 3>>
> around the tree widget. And also it is thus tricky to write a tree > that dynamically accepts data.
Hi Graham, I think what you are looking for is a pure tree widget. The drop-tree is more related to a menu-system than to a tree.
> 2. There is no way to collapse the tree from the interface. So, if > you clicked on any of the buttons, the whole tree opens up. You then > have to laboriously close each node.
That's intended because I use the drop-tree to route the user through a process. And, opening each node over and over again is waste of time. I'm measuring my apps with "click-to-result".
> 3. The area to expand a node is the "+" sign. This is a very small > target for the mouse. Perhaps the whole node should be clickable?
No, that's intended as well. And why you have the quick-buttons 2,3,4 and 5. The thing is that the node has an aciton of it's own. And you can click on the text to fire the action without opening the node.
> At present if you click on a node with descendants, the whole tree shuts > down.
?? Not for me. Can you post the example. Robert

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