[Jprogramming] Grid class

Oleg Kobchenko olegykj at yahoo.com
Wed Mar 21 06:36:01 HKT 2007


OK. Grid id and object name just need to be
given the same name.


NB. =========================================================
require 'jzgrid'
cocurrent 'myform'

CELLDATA=: *./~i.20

GDEMO=: 0 : 0
pc gdemo;
xywh 0 0 200 100;cc gridx isigraph rightmove bottommove;
pas 0 0;
rem form end;
)

gdemo_run=: 3 : 0
  wd GDEMO
  GRIDID=: 'gridx'
  gridx=: '' conew 'jzgrid'
  GRIDID__gridx=: 'gridx'
  show__gridx 'celldata gridid'
  wd 'pshow'
)

create=: gdemo_run

destroy=: 3 : 0
  destroy__gridx''
  wd 'pclose'
  codestroy''
)

gdemo_close=: destroy
create''



--- Oleg Kobchenko <olegykj at yahoo.com> wrote:

> This is example verbatim from Grid documentation.
> 
> The default grid id is changed to 'gridx'--this required.
> 
> It gave error message 
> |domain error: wd
> |   GRIDHWNDC=:    wd'qhwndc ',GRIDID
> 
> Next, GRIDID__grid=: was added. As a result,
> the grid is unresponsive.
> 
> I believe it would be good to provide an example
> that does not rely on default "grid" id.



 
____________________________________________________________________________________
Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather


More information about the Programming mailing list