Hi,
Redefine button obutton id 201 of odlg action fun1(obutton)
This shows run time error : var obutton does not exists
I want
function fun1(obutton)
array1:=arect(obutton)
ACTIVATE MENU omenubill OF odlg at array1[1], array1[2]
// build a menu at obutton nrow,ncol
return
Regards !
Shuming Wang
How to return a button itself ?
-
- Posts: 454
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 454
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China
Antonio,
1.Yes, I missed done local obutton.
2.oRect := obutton:GetRect()
ACTIVATE MENU omenubill OF odlg at oRect:nTop, oRect:nLeft
This always show menu at right area of nomodal dialog
3. array1:= GetCoors(obutton:hwnd)
ACTIVATE MENU omenubill OF odlg at array1[1], array1[2]
This shows menu at button proper position on nomodal dialog .
Thank you !
Shuming Wang
1.Yes, I missed done local obutton.
2.oRect := obutton:GetRect()
ACTIVATE MENU omenubill OF odlg at oRect:nTop, oRect:nLeft
This always show menu at right area of nomodal dialog
3. array1:= GetCoors(obutton:hwnd)
ACTIVATE MENU omenubill OF odlg at array1[1], array1[2]
This shows menu at button proper position on nomodal dialog .
Thank you !
Shuming Wang
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: