Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #3988
| From | Joachim Bieler <support@votools.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: ContextMenuItem in bBrowser |
| Date | 2012-08-23 07:55 +0200 |
| Message-ID | <a9lutfFa36U1@mid.individual.net> (permalink) |
| References | <76b1a3d4-9052-4be3-8b80-a67badb24b96@googlegroups.com> |
Hi Lu,
you can implement the method Menu:IsItemEnabled() with the code below:
method IsItemEnabled(iItemID) class Menu
local lEnabled as logic
local iState as dword
iState := GetMenuState(self:Handle(), iItemID, MF_BYCOMMAND)
if iState <> 0xffffffff .and. _And(iState, MFS_DISABLED) = 0
lEnabled := True
endif
return lEnabled
Regards,
Joachim Bieler
HTML clipboard
Am 21.08.2012 16:53, schrieb Lu:
> Hi VO experts!
>
> How is it possible to check an item in a contextmenu in a bBrowser whether it is set disabled or not ?
>
> I tried some code like:
>
> self:odcbBrowser:ContextMenu:IsEnabled(IDM_mnu_ContextEdit_Context_New_ID)
> self:odcbBrowser:ContextMenu:IsEnabled(IDM_mnu_ContextEdit_Context_New_ID,#MenuItemID)
>
> but the method "IsEnabled" is not known. It appears an error code 13 "No exported Method"
>
> Have you any ideas to solve the problem! Thanks in advance for any hint.
>
> Lu
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ContextMenuItem in bBrowser Lu <lu2k@hotmail.com> - 2012-08-21 07:53 -0700
Re: ContextMenuItem in bBrowser Mathias <mathias.hakansson@consultec.se> - 2012-08-21 22:34 -0700
Re: ContextMenuItem in bBrowser Lu <lu2k@hotmail.com> - 2012-08-22 05:27 -0700
Re: ContextMenuItem in bBrowser "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-08-23 00:58 +1000
Re: ContextMenuItem in bBrowser Joachim Bieler <support@votools.com> - 2012-08-23 07:55 +0200
Re: ContextMenuItem in bBrowser Lu <lu2k@hotmail.com> - 2012-08-22 23:02 -0700
csiph-web