Author Topic: dialogue box with a list  (Read 1714 times)

0 Members and 1 Guest are viewing this topic.

dubb

  • Swamp Rat
  • Posts: 1105
dialogue box with a list
« on: May 03, 2005, 06:30:11 PM »
i was wondering how to get a dialogue box that has a pulldown menu with items. the items to choose from are items that are listed in separate text file. that way when i need to update the items in the text file..i just simply add more items to the text file rather than editing the .dcl file.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
dialogue box with a list
« Reply #1 on: May 03, 2005, 06:42:56 PM »
Read the file contents; while, read-line.
convert to a list; list or cons

something like;
Code: [Select]

(while
  (setq each_line (read-line fo))
  (setq my_list (cons each_line my_list))
)
(reverse my_list)
TheSwamp.org  (serving the CAD community since 2003)

dubb

  • Swamp Rat
  • Posts: 1105
dialogue box with a list
« Reply #2 on: May 03, 2005, 07:15:53 PM »
great thanks...i also found this
http://www.afralisp.com/lispa/lisp15.htm