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

Choice problem

 [1/6] from: kpeters::otaksoft::com at: 13-Sep-2007 10:17


Hi all ~ I have a layout with (among other faces) a number of choices. If a particular choice (the others are fine) is in dropped-down state and I click one of the buttons from that layout, I get: ** Script Error: Invalid path value: flags ** Where: flag-face? ** Near: all [face/flags find face/flags flag]
>>
The only difference between this choice and the other choices (that I can see)is that it is by far the widest and, when dropped down, covers a few of the other faces entirely. Where do I start to look here/what code is breaking? I have a feeling that if I could tell the choice to hide the drop-down things might be well... Is there a way to do that? Or am I totally wrong all the way here? TIA, Kai

 [2/6] from: ale870::gmail::com at: 14-Sep-2007 8:31


Can you post the piece of code? On 9/13/07, Kai Peters <kpeters-otaksoft.com> wrote:
> Hi all ~ > I have a layout with (among other faces) a number of choices.
<<quoted lines omitted: 19>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- //Alessandro http://sguish.wordpress.com http://laccio.wordpress.com

 [3/6] from: kpeters::otaksoft::com at: 14-Sep-2007 14:53


On Fri,= 14 Sep 2007 08:31:37 +0200, Alessandro Manotti wrote: >Can you postthe piece of= code? > Hi Alessandro ~ further studies have revealedthe "offending" code: empty-fields: func [ "Clear= all text fields faces ofa layout." panel [object!] ][ &#160;&#160;if not all [ in= panel 'type panel/type = 'face ] [ exit ] &#160;&#160;unfocus= &#160;&#160;foreach face= panel/pane [ &#160;&#160;&#160;if any [= flag-face? &#160;face field &#160;&#160;&#160;&#160;&#160;= &#160;&#160;&#160;flag-face? &#160;face area &#160;&#160;&#160;&#160;&#160;= &#160;&#160;&#160;flag-face? &#160;face memo &#160;&#160;&#160;&#160;&#160;= &#160;&#160;&#160;flag-face? &#160;face fld &#16/d&#160;&#160;&#160;&#160;= &#160;&#160;&#160;flag-face? &#160;face inf &#160;&#160;&#160;&#160;= &#160;&#160;][ either series? face/text &#160;&#160;&#160;&#160;= &#160;&#160;&#160;&#160;&#160;[ clear face/text &#160;face/line-list:= none ] &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;[ face/text: attempt [ make face/text= none ]] &#160;&#160;&#160;&#160;= &#160;&#160;&#160;] &#160;&#160;] &#160;; &#160;show= panel ] It seems to die every time a= face that this function wants to "talk to" is obscured by the dropped= down choice..... Anybody have a suggestion on= how to tell a choice to "roll up"??? TIA Kai
>On 9/13/07, Kai Peters= <kpeters-otaksoft.com> wrote: >>>>>Hi
all= ~ >>>>I have a layout= with (among other faces) a number of choices. If a particular choice= (the >>others are fine) is= in dropped-down state and I click one of the buttons from that layout,= I >>get: >>>>** Script Error:Invalid path value: flags >>** Where:= flag-face? >>** Near: all[face/flagsfind face/flags flag] >>>>>>The only difference= between this choice and the other choices (that I can= see)is that= it >>is by far thewidest and, when dropped down, covers a few of the other= faces= entirely.
>>>>Where do I start to= look here/what code is breaking? I have a feeling
that= if I could tell= the >>choice to hide the= drop-down things might be well... >>>>Is there a way to= do that? Or am I totally wrong all the way here? >>>>TIA, >>Kai >>-- >>To unsubscribe from= the list, just send an emailto >>lists at rebol.com= with unsubscribe as the subject. >>>>-- >>//Alessandro >>http://sguish.wordpress.com[0] >http://laccio.wordpress.com[0]

 [4/6] from: kpeters::otaksoft::com at: 14-Sep-2007 17:20


Whoa - that was awful again - sorry for that. Forgot to switch back to plain text :( Allessandro ~ I believe the code below crashes when the choice is in dropped down state and thus covers a face that the function wants to talk to. Does anyone know how to tell a choice to "roll up"? TIA, Kai empty-fields: func [ "Clear all text fields faces of a layout." panel [object!] ][ if not all [ in panel 'type panel/type = 'face ] [ exit ] unfocus foreach face panel/pane [ if any [ flag-face? face field flag-face? face area flag-face? face memo flag-face? face fld flag-face? face inf ][ either series? face/text [ clear face/text face/line-list: none ] [ face/text: attempt [ make face/text none ]] ] ] ; show panel ] On Fri, 14 Sep 2007 08:31:37 +0200, Alessandro Manotti wrote:

 [5/6] from: carl:cybercraft at: 15-Sep-2007 13:33


Could you include an example of the function being used? ie, a layout with 'choice's in that uses the function in some way. -- Carl Read. On Friday, 14-September-2007 at 17:20:42 Kai Peters wrote,

 [6/6] from: anton::wilddsl::net::au at: 15-Sep-2007 13:34


Pin down the exact line where the error occurs by inserting PRINT lines at various places. If you suspect the code below then prove your hypothesis. Then it's possible to investigate the face involved just before the line which gives the error. Regards, Anton.

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