DBGrid?

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE

DBGrid?

Postby Pirr » Sat Jan 23, 2010 3:46 pm

Prompt as to display the tables (database) in GUI the interface?
Pirr
 
Posts: 2
Joined: Sat Jan 23, 2010 3:40 pm

Re: DBGrid?

Postby cormullion » Sat Jan 23, 2010 5:50 pm

HI there! Not sure what you're asking here. If you're asking " How do I display a grid or table in the newLISP-GS GUI", then it's quite simple. You draw a grid, then put things in each grid cell. Here, I'm adding a text string to each cell:

Code: Select all
(load "/usr/share/newlisp/guiserver.lsp")

(set 'grid-rows 10 'grid-columns 10)

(gs:init)
(gs:frame 'Grid 100 100 900 900 "Grid")
(gs:set-grid-layout 'Grid grid-rows grid-columns 2 2)

(dotimes (row grid-rows)
   (dotimes (column grid-columns)
      (gs:label  (sym (string "label" row column)) (string "R" row " C" column))
      (gs:add-to 'Grid (sym (string "label" row column)))))
     
(gs:set-visible 'Grid true)
(gs:listen)
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: DBGrid?

Postby Pirr » Sun Jan 24, 2010 6:44 am

Excuse for my English, I write through the interpreter.
I need the following:
Attachments
BDGrid.jpg
BDGrid.jpg (13.73 KiB) Viewed 4271 times
Pirr
 
Posts: 2
Joined: Sat Jan 23, 2010 3:40 pm


Return to newLISP Graphics & Sound

Who is online

Users browsing this forum: No registered users and 2 guests

cron