Wednesday, December 03, 2008     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: From CallBack Function
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
Newbie
Posts: 26
Online: User is Offline
5/27/2008 12:05 AM  
Hi All,

I have a questions on the CallBack function for forms

-------------------------------------------------------------------------------------
; Here I create my form using the axl skill function  axlFormCreate

MyForm_GlobalHandle = axlFormCreate('MyForm_GlobalHandle        \
                                                               "MyFormName"                    \
                                                                MyFormPosition                  \
                                                               'MyForm_Callback                \
                                                                t                                          \
                                                                nil )


; Later I create the callback function

procedure( MyForm_Callback(TempFormHandle)
  prog( (aaa bbb)
    (printf "aaa = %L\n" aaa)
    (printf "bbb = %L\n" bbb)
  )
--------------------------------------------------------------------------------------


When I load the skill function I get an error message that insist there there are 2 variables for my callback function. The only way I can remove this error is to add a " prog ( (aaa bbb) )"  to  have 2 variables for my callback function.

May I know what are there 2 values.  When I printf is out.. the values are always  'nil'


Thanks,
newbie


Dave Elder
Moderator
Posts: 150
Online: User is Offline
5/27/2008 1:28 PM  
Try calling your form like this:
MyForm_GlobalHandle = axlFormCreate(gensym() "MyFormName" MyFormPosition 'MyForm_Callback t nil)

What is the verbatim error message that you receive?

Cheers, Dave

Dave Elder
Tait Electronics
Newbie
Posts: 26
Online: User is Offline
5/27/2008 7:55 PM  

Hi Dave,

I removed the  prog ( (aaa bbb) ....   from my callback function and changed the axlFormCreate code for 2 cases


1) MyForm_GlobalHandle = axlFormCreate(MyForm_GlobalHandle() "MyFormName" MyFormPosition 'MyForm_Callback t nil)

E- *Error* eval: undefined function - MyForm_GlobalHandle
ERROR

 


2) MyForm_GlobalHandle = axlFormCreate('MyForm_GlobalHandle() "MyFormName" MyFormPosition 'MyForm_Callback t nil)

E- *Error* axlFormCreate: argument #1 should be a symbol (type template = "stlggg") - (MyForm_GlobalHandle)
ERROR




--------------------

Strange thing is that when I tried back the earlier case after removing the prog ( (aaa bbb) ....

MyForm_GlobalHandle = axlFormCreate('MyForm_GlobalHandle "MyFormName" MyFormPosition 'MyForm_Callback t nil)


The earlier error I had is gone.

Anyway Thanks Dave

fxf
Posts: 43
Online: User is Offline
5/28/2008 4:54 AM  
You should follow the example @
/share/pcb/examples/skill/form/basic/axlform.il

look at function IFormTest.

The 1st argument to axlFormCreate should be a global symbol. It is used to store the returned formHandle and you can
use its nil/formhandle value to see if you already have the form opened.
Posting to forums is available to community members only.
Login or Register

Forums > Silicon-package-board > Shared code - SKILL > From CallBack Function


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.