on 06-22-2004 5:12 PM
Hi,
Is it possible to use the standar First/Previous/Next/Last buttons that are in the toolbar in my own created forms?
Same with New/Search buttons.
If so, how can I handle the click event?
Thanks in advance,
Ibai Peñ
I haven't used those yet, but the print button on the same bar works. Like this:
SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)
If pVal.BeforeAction Then
Select Case pVal.MenuUID
Case PRINT '<= 520
For lngFormCount = 0 To SBO_Application.Forms.Count
'determine active form
If SBO_Application.Forms(lngFormCount).Selected Then
Select Case SBO_Application.Forms(lngFormCount).Type
Case ORDER_FORM 'order
Call HandleEvents_SBO_ORDERPrint(SBO_Application.Forms(lngFormCount).UniqueID)
Case ......
etc. etc.
I'm using this code to capture a print-button click, determine the window that is currently open and call my own code.
Note: ths code as displayed will not run. It is not complete, several declarations etc. are missing, but I'm guessing you can make them up for yourself easily.
Regards,
Jacques
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I don't know if there is some documentation about that codes.
I solved the problem developing a little utility that shows in a grid all the properties of the pVal object for each kind of event (item, menu, app).
Think about it, it is really useful
The pval.MenuUid property in the MenuEvent routine shows what are you looking for, just push menu and toolbar buttons
Bye
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.