1. menu items with radio checks
- Posted by jordah ferguson <jorfergie03 at yahoo.com> Jun 07, 2002
- 437 views
--0-433903643-1023447583=:3710 Hi all, I have created a menu item with a radio control. here goes.... --------------------------------------------------------- --Procedure: setMenuRadio(atom hwnd,integer start,integer last,atom id) --Use :It places a radio on menus --------------------------------------------------------- constant MF_CHECKED = #8, MFT_RADIOCHECK = 512 global procedure setMenuRadio(atom hwnd,integer start,integer last,integer id) atom retval,mask mask = or_all({MFS_CHECKED,MFT_RADIOCHECK}) retval = c_func(zCheckMenuRadioItem,{hwnd,start,last,id,mask}) end procedure --** hwnd should be the menu bar handle,start is the first menu item handle of the --** exclusive menu items --** last is the end of the menu items and id is the menu you wish to place --** the radio check. all i want to know is how to detect if the menu has a radio check. ie can anyone create for me a, IsMenuRadioed function that returns false or true. I have tried using checkmenustate() and comparing the the result returned with the flags eg MF_CHECKED but that only works for Menus with checks, The win95hlp doesn't offer any other flags which i can use to compare and get true or false. Thanx in advance, BTW, is there any one who could direct me to a place where i could get docs on API programming(other than win95hlp) or is there anyone with relevant docs that could help me out. MSDN is so slow on the computers in this area since we use more that enuff proxys and download could take forever, not forgetting that internet charges are 5$ an hour. ATM, i'm researching MDI(multiple document interface),Menus(Xtended) and StatusBars (Extended) to see, if i can get some additions to my win32lib. So far, i have added procedures for adding(colored) bitmaps,xpms to menuitems and popup items. I have also added using radio checks on Menus plus lots of extra menu stuff. So my win32lib is getting neater and neater. If anyone is interested in the code contact me Jordah Ferguson --------------------------------- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup --0-433903643-1023447583=:3710 Content-Type: text/html; charset=us-ascii <P>Hi all,<BR> I have created a menu item with a radio control. here goes....</P> <P>---------------------------------------------------------<BR>--Procedure: setMenuRadio(atom hwnd,integer start,integer last,atom id)<BR>--Use :It places a radio on menus<BR>---------------------------------------------------------</P> <P>constant MF_CHECKED = #8,<BR> MFT_RADIOCHECK = 512</P> <P>global procedure setMenuRadio(atom hwnd,integer start,integer last,integer id)<BR>atom retval,mask<BR>mask = or_all({MFS_CHECKED,MFT_RADIOCHECK})<BR>retval = c_func(zCheckMenuRadioItem,{hwnd,start,last,id,mask})<BR>end procedure</P> <P>--** hwnd should be the menu bar handle,start is the first menu item handle of the <BR>--** exclusive menu items<BR>--** last is the end of the menu items and id is the menu you wish to place<BR>--** the radio check.</P> <P>all i want to know is how to detect if the menu has a radio check.<BR>ie can anyone create for me a, IsMenuRadioed function that returns<BR>false or true.</P> <P>I have tried using checkmenustate() and comparing the the result returned with<BR>the flags eg MF_CHECKED but that only works for Menus with checks, The win95hlp<BR>doesn't offer any other flags which i can use to compare and get true or false.</P> <P>Thanx in advance,<BR>BTW, is there any one who could direct me to a place where i could get docs on API<BR>programming(other than win95hlp) or is there anyone with relevant docs that could<BR>help me out. MSDN is so slow on the computers in this area since we use more that<BR>enuff proxys and download could take forever, not forgetting that internet charges<BR>are 5$ an hour.</P> <P>ATM, i'm researching MDI(multiple document interface),Menus(Xtended) and StatusBars<BR>(Extended) to see, if i can get some additions to my win32lib. So far, i have added<BR>procedures for adding(colored) bitmaps,xpms to menuitems and popup items. I have also <BR>added using radio checks on Menus plus lots of extra menu stuff. So my win32lib is <BR>getting neater and neater. If anyone is interested in the code contact me </P> <P>Jordah Ferguson</P><p><br><hr size=1><b>Do You Yahoo!?</b><br> <a href="http://rd.yahoo.com/welcome/*http://fifaworldcup.yahoo.com/fc/en/spl">Sign-up for Video Highlights</a> of 2002 FIFA World Cup --0-433903643-1023447583=:3710--
2. Re: menu items with radio checks
- Posted by Wolf <wolfritz at KING.IGS.NET> Jun 07, 2002
- 465 views
This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C20E8D.BC0F6BA0 charset="iso-8859-1" Try setting up a MenuItemInfo structure with the fMask member set to = MIIM_STATE, then call the GetMenuItemInfo() function. If the fState = member indicates that the MFS_CHECKED bit is set upon return, you have = it 'radio'd'. all i want to know is how to detect if the menu has a radio check. ie can anyone create for me a, IsMenuRadioed function that returns false or true. ------=_NextPart_000_0009_01C20E8D.BC0F6BA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.3314.2100" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>Try setting up a MenuItemInfo structure with the = fMask member=20 set to MIIM_STATE, then call the GetMenuItemInfo() function. If the = fState=20 member indicates that the MFS_CHECKED bit is set upon return, you have = it=20 'radio'd'.</FONT></DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <P>all i want to know is how to detect if the menu has a radio = check.<BR>ie=20 can anyone create for me a, IsMenuRadioed function that=20 ------=_NextPart_000_0009_01C20E8D.BC0F6BA0--