NetTalk Central

Author Topic: Changing text on buttons  (Read 18613 times)

John Hickey

  • Administrator
  • Newbie
  • *****
  • Posts: 47
    • View Profile
    • Email
Changing text on buttons
« on: June 17, 2007, 02:25:33 PM »
Question from Greg Bailey on the newsgroups:

I need to be able to change the text on an insert change or delete button at the procedure level (not globally).  The end user wants text specific to a particular browse on the buttons. Is this possible?

Answer from Wolfgang Orth:

yes:

at the Generate Form - StartEmbed

 p_web.site.InsertButton.TextValue = 'New'
 p_web.site.DeleteButton.TextValue = 'Dump it!'
 p_web.site.SaveButton.TextValue = 'Store Date'

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: Changing text on buttons
« Reply #1 on: September 27, 2007, 05:52:01 AM »
Here are some other things you can change besides the name -

Name                     String(40)
TextValue                String(40)
Image                    String(256)
ImageW                   Long
ImageH                   Long
ImageAlt                 String(40)
Class                    String(40)
Tooltip          String(256)

All of these are prefaced with p_web.site.buittonname.
Here is a list of all available buttonnames:
SaveButton
CancelButton
CloseButton
DeletebButton
SelectButton
InsertButton
ChangeButton
ViewButton
LocateButton
FirstButton
PreviousButton
NextButton
LastButton
PrintButton
StartButton
UploadButton
LookupButton
SmallDeleteButton
SmallSelectButton
SmallInsertButton
SmallChangeButton
SmallViewButton
DeletefButton
BrowseCancelButton
BrowseCloseButton
DateLookupButton
SmallOtherButton

HTH,
Chris C
Real programmers use copy con newapp.exe