From the toolbox, select a button control and place it (and size it) appropriately on the form you are customizing. (Add whatever appropriate button verbage text is needed also).
Go to Form wizard, select epibutton as the control and your specific newly added custom button as the specific control.
Not being familiar with touch screens myself, I'm not sure what available event to select that translates to a touch screen tap/press of the button... Try 'mouse down' or similar variants.
Inside the generated event subroutine. Add a simple messagebox.show("button pushed") message to use to test that you have selected the proper button event that will work with touchscreens.
Save the customization and test it, trying new button events until you get one that works.
Go back in and replace the messagebox.show statement with otrans.update().
That will save the current record state on screen when the button is pressed.
Rob Brown
Go to Form wizard, select epibutton as the control and your specific newly added custom button as the specific control.
Not being familiar with touch screens myself, I'm not sure what available event to select that translates to a touch screen tap/press of the button... Try 'mouse down' or similar variants.
Inside the generated event subroutine. Add a simple messagebox.show("button pushed") message to use to test that you have selected the proper button event that will work with touchscreens.
Save the customization and test it, trying new button events until you get one that works.
Go back in and replace the messagebox.show statement with otrans.update().
That will save the current record state on screen when the button is pressed.
Rob Brown
--- On Wed, 5/28/08, Aaron Hoyt <aaron.hoyt@...> wrote:
From: Aaron Hoyt <aaron.hoyt@...>
Subject: [Vantage] 8.x Create a save button
To: vantage@yahoogroups.com
Date: Wednesday, May 28, 2008, 2:31 PM
Good afternoon group,
I am looking for code that I can attach to a button (customization) that
will cause a form to execute it's save function. I am trying to
customize a MES screen with a button that is big enough for someone to
tap with a finger on a touch screen that will save the current record
similar to the old OK buttons in 6.1. Can anyone help me out with the
correct VB code? I just need to basically duplicate the code for the
save button.
Thanks,
Aaron Hoyt
Vantage Plastics