Ignore:
Timestamp:
Nov 28, 2007 1:36:27 PM (15 years ago)
Author:
srkline
Message:

Several disjoint changes:

1) Threaded the 1D Cylinder_PolyRadius function
2) in Wrapper, popping the data set list now will auto-pop the function, then the coef to properly update the table of coefficients.
3) tick units in the plots are suppressed (y-axis)
4) Killing data (PlotManager?) now kills the dependent variable so that the rest can be killed
5) Ellipsoid_2D function now has the correct notation of the rotation axis in the parameter names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/Packages/Wrapper.ipf

    r200 r211  
    4848        Button button_2,pos={300,93},size={100,20},proc=AppendModelToTarget,title="Append 1D" 
    4949        Button button_3,pos={300,20},size={100,20},proc=W_LoadDataButtonProc,title="Load 1D Data" 
    50         PopupMenu popup_0,pos={30,21},size={218,20},title="Data Set" 
     50        PopupMenu popup_0,pos={30,21},size={218,20},title="Data Set",proc=DataSet_PopMenuProc 
    5151        PopupMenu popup_0,mode=1,value= #"W_DataSetPopupList()" 
    5252        PopupMenu popup_1,pos={30,57},size={136,20},title="Function" 
     
    357357        return 0 
    358358End 
     359 
     360// if the Data Set is changed, then update the function (if possible) 
     361// and the coef popup (if possible) and then the table (if possible) 
     362// 
     363// !! only respond to mouse up here, and simply send a fake mouse up 
     364// to the function pop, which will do what it can do 
     365// 
     366Function DataSet_PopMenuProc(pa) : PopupMenuControl 
     367        STRUCT WMPopupAction &pa 
     368 
     369        switch( pa.eventCode ) 
     370                case 2: // mouse up 
     371//                      Variable popNum = pa.popNum 
     372//                      String funcStr = pa.popStr 
     373//                      String coefStr = W_CoefPopupList() 
     374//                       
     375////                    Print "coefStr = ",coefStr 
     376//                       
     377//                      ControlInfo/W=WrapperPanel popup_0 
     378//                      String folderStr=S_Value 
     379//                       
     380//                      String listStr = W_CoefPopupList() 
     381//                      Variable num=WhichListItem(coefStr, listStr, ";") 
     382//                      String str=StringFromList(num, listStr  ,";") 
     383////                    print "str = ",str 
     384//                      //set the item in the coef popup, and pop it 
     385//                      PopupMenu popup_2 mode=(num+1) 
     386                         
     387                        Struct WMPopupAction ps 
     388                        ps.eventCode = 2                //fake mouse up 
     389                        Function_PopMenuProc(ps) 
     390                         
     391                        SetDataFolder root: 
     392                        break 
     393        endswitch 
     394 
     395        return 0 
     396End 
     397 
    359398 
    360399 
Note: See TracChangeset for help on using the changeset viewer.