B
BUS
Guest
Hello all,
Is there any procedure to create a form with out using the base
button list in the ?buttonLayout tab.
For ex here I used 'Close , can I create without using that.
?buttonLayout list('Close
list('Save "SaveToFile()")
list('Load "LoadFile()"))
If I remove the 'Close in the
?buttonLayout list. I am getting an error as
*Error* hiCreateAppForm: first arg must be a symbol specifying the
base button list
Or else Can I have a userdefined callback for the base button list
functions. So that I can remove the save button and add the save
callback to 'Close button
I want this because there is a chance to close the form with out
saving the form (the below procedure shows the Close Save and Load
buttons)
procedure(testform()
broname=list("Schematic Library" "Cell" "View" "Layout Library" "Cell"
"View")
testtable=makeTable("browse")
for(Count 1 5
bronamet=nth(Count-1 broname)
testtable[Count]=hiCreateStringField(?name gensym('b)
?prompt bronamet
)
)
testform=hiCreateAppForm(?name 'testform
?formTitle "TestForm"
?fields list(testtable[1] testtable[2] testtable[3]
testtable[4]
testtable[5])
?buttonLayout list('Close
list('Save "SaveToFile()")
list('Load "LoadFile()"))
)
if(hiIsFormDisplayed(testform)==t
then
printf("Already **TestForm is Open**")
else
hiDisplayForm(testform list(0 0))
)
);procedure
Is there any procedure to create a form with out using the base
button list in the ?buttonLayout tab.
For ex here I used 'Close , can I create without using that.
?buttonLayout list('Close
list('Save "SaveToFile()")
list('Load "LoadFile()"))
If I remove the 'Close in the
?buttonLayout list. I am getting an error as
*Error* hiCreateAppForm: first arg must be a symbol specifying the
base button list
Or else Can I have a userdefined callback for the base button list
functions. So that I can remove the save button and add the save
callback to 'Close button
I want this because there is a chance to close the form with out
saving the form (the below procedure shows the Close Save and Load
buttons)
procedure(testform()
broname=list("Schematic Library" "Cell" "View" "Layout Library" "Cell"
"View")
testtable=makeTable("browse")
for(Count 1 5
bronamet=nth(Count-1 broname)
testtable[Count]=hiCreateStringField(?name gensym('b)
?prompt bronamet
)
)
testform=hiCreateAppForm(?name 'testform
?formTitle "TestForm"
?fields list(testtable[1] testtable[2] testtable[3]
testtable[4]
testtable[5])
?buttonLayout list('Close
list('Save "SaveToFile()")
list('Load "LoadFile()"))
)
if(hiIsFormDisplayed(testform)==t
then
printf("Already **TestForm is Open**")
else
hiDisplayForm(testform list(0 0))
)
);procedure