• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Programming v
« Previous 1 2 3 4 Next »
Erlang Run Time Errors

 
  • 0 Vote(s) - 0 Average
Erlang Run Time Errors

oort
Offline

3D Obsessed

Posts: 1,184
Threads: 69
Joined: Nov 2012
#3
03-03-2017, 12:23 AM (This post was last modified: 03-03-2017, 12:35 AM by oort.)
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... Sad

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... Smile Sad

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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Erlang Run Time Errors - by oort - 03-02-2017, 09:06 PM
RE: Erlang Run Time Errors - by micheus - 03-02-2017, 10:55 PM
RE: Erlang Run Time Errors - by oort - 03-03-2017, 12:23 AM
RE: Erlang Run Time Errors - by micheus - 03-03-2017, 07:16 AM
RE: Erlang Run Time Errors - by oort - 03-03-2017, 05:08 PM
RE: Erlang Run Time Errors - by micheus - 03-03-2017, 07:53 PM
RE: Erlang Run Time Errors - by oort - 03-04-2017, 04:10 AM
RE: Erlang Run Time Errors - by oort - 03-11-2017, 01:42 AM
RE: Erlang Run Time Errors - by micheus - 03-11-2017, 01:45 AM
RE: Erlang Run Time Errors - by oort - 03-11-2017, 01:48 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode