Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refresh toolbar

Status
Not open for further replies.

berthoud

Technical User
Oct 31, 2010
51
FR
Hi everybody.

All my previous questions have no response ... everybody in hollidays? I hope you don't ban me. cry

I try an other question.

In the toolbar of the mainwindow i have some variable strings.

Calcs are made by code template. How I can Refresh my toolbar to display the new results in the variable strings.

I think somethink as post(event:??????)

Also, it's important for me to have an answer for my previous question : how to ban add and delete management by the keyboard ?

Many thanks if somebody can help me

Best regards from France.





 
Hi,

i hope i understand you right.

1)
you can refresh with:
DISPLAY() or
DISPLAY(?MyString) or
ThisWindow.Reset(True)

2)
You can set the Rights for every action, for example:

Code:
IF YourCondition THEN
  BR1.DeleteControl = 0
  HIDE(?Delete)
ELSE
  BR1.DeleteControl = ?Delete   ! BR1 = Objectname Browse, ?Delete = Deletebutton 
  UNHIDE(?Delete)
  ENABLE(?Delete)
END

(InsertControl,ChangeControl,ViewControl also possible)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top