Skip to content

Commit

Permalink
fixed widget attachments.
Browse files Browse the repository at this point in the history
  • Loading branch information
vince committed Apr 29, 2004
1 parent 94131b1 commit 1a64da3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion XYPlotWin.H
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class XYPlotWin {
AttrSet AllAttrs[8];
xgOut devInfo;

Widget wLegendMenu, wLegendButtons, wPlotWin;
Widget wLegendMenu, wLegendButtons, wPlotWin, wScrollArea;
Widget wOptionsDialog, wExportFileDialog, wOptionsWidgets[13];
Window pWindow;
Atom WM_DELETE_WINDOW;
Expand Down
7 changes: 3 additions & 4 deletions XYPlotWin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ XYPlotWin::XYPlotWin(char *title, XtAppContext app, Widget w, PltApp *parent,
XmAddWMProtocolCallback(wXYPlotTopLevel, WM_DELETE_WINDOW,
(XtCallbackProc) CBcloseXYPlotWin,
(XtPointer) this);
Widget wControlArea, wScrollArea, wLegendArea;
Widget wControlArea, wLegendArea;
Widget wExportButton, wOptionsButton, wCloseButton;
Widget wAllButton, wNoneButton, wClearButton;
XmString label_str1, label_str2, label_str3;
Expand Down Expand Up @@ -917,7 +917,8 @@ void XYPlotWin::ReattachLegendFrames() {
list<XYPlotLegendItem *>::iterator liitem = legendList.begin();
XtVaSetValues((*liitem)->frame,
XmNtopAttachment, XmATTACH_WIDGET,
XmNtopWidget, wLegendMenu,
//XmNtopWidget, wLegendMenu,
XmNtopWidget, wScrollArea,
NULL);
list<XYPlotLegendItem *>::iterator liprevitem = liitem;
++liitem;
Expand All @@ -936,9 +937,7 @@ void XYPlotWin::ReattachLegendFrames() {
void XYPlotWin::UpdateBoundingBox(XYPlotDataList *xypdl) {
//cout << "???????????????????? _in XYPlotWin::UpdateBoundingBox" << endl;
if(xypdl->StartX() < lloX) {
cout << " old lloX = " << lloX << endl;
lloX = xypdl->StartX();
cout << " new lloX = " << lloX << endl;
}
if(xypdl->EndX() > hhiX) {
hhiX = xypdl->EndX();
Expand Down

0 comments on commit 1a64da3

Please sign in to comment.