Commit e6f1685c authored by claes's avatar claes

wtt added to menu struct

parent a21b088d
/*
* Proview $Id: wb_c_plcpgm.cpp,v 1.1 2006-03-31 14:24:34 claes Exp $
* Proview $Id: wb_c_plcpgm.cpp,v 1.2 2006-04-26 04:45:46 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -55,7 +55,7 @@ static pwr_tStatus OpenProgram (
ldh_sMenuCall *ip
)
{
foe_Open (ip->EditorContext, ip->WindowContext, ip->PointedSession,
foe_Open (ip->EditorContext2, ip->WindowContext, ip->PointedSession,
ip->Pointed.Objid);
return 1;
......
/*
* Proview $Id: wb_ldh.h,v 1.34 2006-03-31 14:29:39 claes Exp $
* Proview $Id: wb_ldh.h,v 1.35 2006-04-26 04:46:10 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -326,6 +326,7 @@ struct ldh_s_MenuItem {
struct ldh_s_MenuCall {
void *EditorContext;
void *EditorContext2;
void *WindowContext;
ldh_eMenuSet PointedSet;
ldh_tSession PointedSession;
......
/*
* Proview $Id: wb_wnav_menu.cpp,v 1.9 2006-03-31 14:29:39 claes Exp $
* Proview $Id: wb_wnav_menu.cpp,v 1.10 2006-04-26 04:47:18 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -223,6 +223,7 @@ Widget wtt_create_popup_menu( Wtt *wtt, pwr_sAttrRef aref, pwr_tCid cid,
// Popup in palette
mcp->EditorContext = (void *)wtt->wnav;
mcp->EditorContext2 = (void *)wtt;
mcp->WindowContext = (void *)wtt->palette_form;
mcp->PointedSet = ldh_eMenuSet_Class;
......@@ -241,6 +242,7 @@ Widget wtt_create_popup_menu( Wtt *wtt, pwr_sAttrRef aref, pwr_tCid cid,
wtt->set_focus_default();
mcp->EditorContext = (void *)wtt->focused_wnav;
mcp->EditorContext2 = (void *)wtt;
mcp->WindowContext = (void *)wtt->wnav_form;
mcp->Pointed = aref;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment