[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# RE: [femm] Lua zoom & grid

- To: <femm@yahoogroups.com>
- Subject: RE: [femm] Lua zoom & grid
- From: "Robin Cornelius" <robin.cornelius@btinternet.com>
- Date: Sat, 2 Feb 2002 21:15:43 -0000
- Importance: Normal
- In-reply-to: <758E5D08839B9242B4514D01A2B4D591B534@dvrsql.dvrhome.com>

    Ok first the ...grid...() commands in the preprocessor are not there !. So
    that is why you are having trouble with them. They are only (currently?) in
    the post processor.

    The lua error "attempt to call '...' (a nil value)" means that the function
    (or variable) you are trying to use doesn't exist.

    as for snapgrid() in the post processor

    the format is snapgrid("on") and snapgrid("off") but there is a bug I have
    just detected it is reversed! Sorry for that one, i'll hold my hand up.

    the correct code should be (in luadoc.cpp) :-

    if(temp=="off"){
    theView->SnapFlag=FALSE;
    MMnu->CheckMenuItem(ID_SNAP_GRID, MF_UNCHECKED);
    tc->CheckButton(ID_SNAP_GRID,FALSE);
    }
    else{
    theView->SnapFlag=TRUE;
    MMnu->CheckMenuItem(ID_SNAP_GRID, MF_CHECKED);
    tc->CheckButton(ID_SNAP_GRID,TRUE);
    }

    I had =="on" in the if statement!

    Now I will investigate zoom

    Regards

    Robin Cornelius

- References:
  - Lua zoom & grid
    - From: "Carl Kopin" <ckopin@davinciresearch.com>

- Prev by Date: Lua zoom & grid
- Next by Date: RE: [femm] Lua zoom & grid
- Previous by thread: Lua zoom & grid
- Next by thread: RE: [femm] Lua zoom & grid
- Index(es):
  - Date
  - Thread