Micheus,
Thanks for the response.
Yes, I think {wings,geom_title,[{geom,2}]} is supposed to define a new geometry window id number that is one higher than any existing windows.
I think new_viewer is supposed to create a geometry window.
This is all code I am hacking from the original patch created by someone else...
Which item are you saying is causing the undef error?
"Surely it's not a expect value to be returned to the main event handler."
Not sure what you are saying. Still just a hacker...
Here is the part of the code that is supposed to create two geometry windows, in case it helps???
Thanks,
oort
Thanks for the response.
Yes, I think {wings,geom_title,[{geom,2}]} is supposed to define a new geometry window id number that is one higher than any existing windows.
I think new_viewer is supposed to create a geometry window.
This is all code I am hacking from the original patch created by someone else...
Which item are you saying is causing the undef error?
"Surely it's not a expect value to be returned to the main event handler."
Not sure what you are saying. Still just a hacker...
Here is the part of the code that is supposed to create two geometry windows, in case it helps???
Quote:new_viewer_stereo(St) ->
{Pos,{W,H}} = wings_wm:win_rect(desktop),
Size = {W div 2-40,H div 2-40},
N = free_viewer_num(2),
Active = wings_wm:this(),
Props = wings_wm:get_props(Active),
ToolbarHidden = wings_wm:is_hidden({toolbar,Active}),
Name = {geom,N},
new_viewer(Name, Pos, Size, Props, ToolbarHidden, St),
% second window
N2 = free_viewer_num(2),
Name2 = {geom,N2},
{X2,Y2} = Pos,
new_viewer(Name2, {X2+element(1,Size),Y2}, Size, Props, ToolbarHidden, St),
% now link
stereo_link(Name,Name2).
Thanks,
oort