CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  PowerBuilder >  基础类

急!!!如何在用户自定义对象中调用菜单?

楼主net_fox(网狐)2001-07-08 18:34:48 在 PowerBuilder / 基础类 提问

如何实现在一个用户对象上显示菜单工具条,或菜单中的某几项在该用户对象上以用户自定义菜单条或菜单按钮的形式显示并调用!  
  我急死了,大家快帮忙啊,马上给分! 问题点数:42、回复次数:2Top

1 楼susu_0807(苏苏)回复于 2001-07-08 19:25:33 得分 30

These   statements   display   the   menu   m_Emp.M_Procedures   at   location   100,   200   in   the   active   window.   M_Emp   is   the   menu   associated   with   the   window:  
   
  m_Emp.M_Procedures.PopMenu(100,   200)  
   
  This   statement   displays   the   menu   m_Appl.M_File   at   the   cursor   position,   where   m_Appl   is   the   menu   associated   with   the   window.  
   
  m_Appl.M_file.PopMenu(PointerX(),   PointerY())  
   
  These   statements   display   a   popup   menu   at   the   cursor   position.   Menu4   was   created   in   the   Menu   painter   and   includes   a   menu   called   m_language.   Menu4   is   not   the   menu   for   the   active   window.   NewMenu   is   an   instance   of   Menu4   (data   type   Menu4):  
   
  Menu4   NewMenu  
   
  NewMenu   =   CREATE   Menu4  
  NewMenu.m_language.PopMenu(PointerX(),   PointerY())  
   
  In   an   MDI   application,   the   last   line   would   include   the   MDI   frame   as   the   object   for   the   pointer   functions:  
   
  NewMenu.m_language.PopMenu(   &  
   
  w_frame.PointerX(),   w_frame.PointerY())Top

2 楼Hanson_bati_zhu(欺世盗名之徒)回复于 2001-07-08 19:45:54 得分 12

找个自定义菜单条对象  
  试试  
  http://extend.hk.hi.cn/~kjx/download/toolbar.zip  
  稍微改一下程序就可以随便用了  
  现在的程序是获得所在窗口的MENU  
  改成把某个MENU作为参数传给这个对象Top

相关问题

  • 自定义对象CMyButton的调用
  • 在菜单下如何调用treeview里自定义的事件?
  • 自定义函数,内部调用了GETDATE()。报错:对象名 'dbo.GETDATE' 无效。
  • 如何调用用户自定义对象中的函数?在线苦等
  • 用户自定义对象
  • 怎样调用自定义类
  • 请问自定义调用的问题
  • 如何调用自定义控制?
  • 自定义事件如何调用?
  • 怎么调用自定义的java类?

关键词

  • 用户
  • 自定义
  • 菜单
  • menu
  • newmenu
  • 对象
  • popmenu
  • pointerx
  • pointery
  • appl

得分解答快速导航

  • 帖主:net_fox
  • susu_0807
  • Hanson_bati_zhu

相关链接

  • PowerBuilder类图书
  • PowerBuilder类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo