gs:reorder-tags

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

gs:reorder-tags

Post by newdep »

Hi Lutz,

Im just testing the gs:reorder-tags, but I dont see any change in visual behavior...
(i do use gs:update!)

Let me clear this up ;-)

Tags are stored in a FILO way this means that the last tag is always on
top of any other tag create befor..

All previously defined tags need to be inside the gs:reorder-tags befor
it will work or is any tag order oke?

Does gs:reorder-tags work after a mouse-event ?

PS: im pretty sure im doing someting wrong because the drag-demo is oke!


Norman.
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

> yes

> yes they all need to be inside

> Yes I made a mistake ;-) It works now..
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

updated ->

(load "http://www.nodep.nl/downloads/newlisp/3angle.lsp")

shows reorder-tags, outline drawing, mouse events.
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

correction, gs:reorder-tags is not destructive on the internal tag oder of GS.

Seems i need to keep track myself on the current tag order when using reorder-tags after mouse events like pressed and released and dragged..

If there would be a command gs:get-tagorder then that would make
reordering tags a little easier...

Norman.
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

the reorder-tags Its not going to work in my example...

Im rebuilding the code.. basicly every graphic in gs needs to be a canvas itself,
and then the mouse-event handler can do individual action per canvas,
this is more flexible then using a list of tags as im doing now...Even better is
a global event handler per canvas that reports any event, mouse, keyboard..etc..
and then subselect the event per type (mouse, keys, ...etc..)

Its getting intresting now...because every canvas will have its own event-handler
and then Im statrting to walk the way of building "Objects" inside newlisp...

Norman.
-- (define? (Cornflakes))

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

are you writing an alternative to autocad? ;-)

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

hehehe.. would be nice ;-) (mmm last time I worked with Autocat was version 9.0
back in 1989..that was nice... Drawing on a EGA/Hercules emulated screen in 3d, ;-))

No actualy what I wanted, as above, is not possible.. I need to use 'tags,
but there is a slight different behvior with events and tags then as I expected
so im rewriting the code to get it working..
The trick is to keep it small and simple ;-)
-- (define? (Cornflakes))

Locked