Displaying 20 results from an estimated 48 matches for "menuitem".
2008 Jan 18
0
[ wxruby-Bugs-17209 ] MenuItem#get_label_text and MenuItem#get_label_from_text
...t 2008-01-18 15:18
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=17209&group_id=35
Category: Missing API call
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Alex Fenton (brokentoy)
Assigned to: Alex Fenton (brokentoy)
Summary: MenuItem#get_label_text and MenuItem#get_label_from_text
Initial Comment:
Missing MenuItem methods
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=17209&group_id=35
2007 Apr 11
1
Cisco IP Phone services.xml sample?
Does anyone have a small, plain services.xml file for a cisco ip phone,
preferably one that will work on a 7960?
I can't seem to get my xml right, and no matter what I send to the phone
I keep getting parse errors.
Thanks
Shawn
2006 Nov 04
0
[720] trunk/wxruby2/doc/textile/menu.txtl: Update, rubyify and tidy
...n
-a different window from last time, which causes an implicit destruction
-and recreation of internal data structures.
-
</del><span class="cx"> h3(#Menu_append). Menu#append
</span><span class="cx">
</span><span class="cx"> "MenuItem":menuitem.html *append*(%(arg-type)Integer% id, %(arg-type)String% item,
</span><span class="lines">@@ -149,33 +137,36 @@
</span><span class="cx">
</span><span class="cx"> Adds a string item to the end of the menu.
</span&...
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on
site navigation that can deal with any model being in the nav, allow
nesting, and can dynamically update.
So I thought about it for a while, and decided on a MenuItems class, which
contained the position of the child in relation to it''s siblings, where the
parent and the child were polymorphic. Then a given childable object can
find it''s parentable by going through the menu_items table.
I want my nav to be able to do things like this:
--Catego...
2001 Sep 12
1
Small OggDrop menu patch
...local/cvsroot/win32-tools/oggdrop/Script.rc,v
retrieving revision 1.5
diff -r1.5 Script.rc
77c77
< POPUP "Bitrate"
---
> POPUP "&Bitrate"
88c88
< POPUP "Options"
---
> POPUP "&Options"
90c90
< MENUITEM "Errors to log file", IDM_LOGERR
---
> MENUITEM "&Errors to log file", IDM_LOGERR
94c94
< MENUITEM "Quit", IDM_QUIT
---
> MENUITEM "E&xit\tAlt+F4", IDM_QUIT
--...
2008 May 11
2
instabilities in wxRuby 1.9.6
...this window")
evt_menu(Wx::ID_CLOSE) { show false }
menuBar = Wx::MenuBar.new
menuBar.append(viewMenu, "&View")
set_menu_bar menuBar
end
end
class TestFrame < Wx::Frame
def initialize
super(nil, -1, "Test Frame")
menu = Wx::Menu.new
menuItem = Wx::MenuItem.new(menu, -1, "Show child")
menu.append_item menuItem
evt_menu(menuItem) { ChildFrame.new(self).show }
menuBar = Wx::MenuBar.new
menuBar.append(menu, "&View")
set_menu_bar menuBar
end
end
class TestApp < Wx::App
def on_init
Tes...
2008 Jan 14
0
8 commits - player/swfdec-player.c player/swfdec-player.ui player/swfdec-window.c player/swfdec-window-handlers.c
...Benjamin Otte <otte at gnome.org>
Date: Mon Jan 14 12:53:17 2008 +0100
remove the old placeholder
diff --git a/player/swfdec-player.ui b/player/swfdec-player.ui
index f28ca07..caed4ec 100644
--- a/player/swfdec-player.ui
+++ b/player/swfdec-player.ui
@@ -78,7 +78,6 @@
<menuitem name="play" action="play"/>
<menuitem name="mute" action="mute"/>
<separator/>
- <placeholder name="recent-placeholder"/>
<menuitem name="quit" action="quit&quo...
2008 May 20
0
[ wxruby-Bugs-20255 ] Instabilities on Linux - 1.9.7
...this window")
evt_menu(Wx::ID_CLOSE) { show false }
menuBar = Wx::MenuBar.new
menuBar.append(viewMenu, "&View")
set_menu_bar menuBar
end
end
class TestFrame < Wx::Frame
def initialize
super(nil, -1, "Test Frame")
menu = Wx::Menu.new
menuItem = Wx::MenuItem.new(menu, -1, "Show child")
menu.append_item menuItem
evt_menu(menuItem) { ChildFrame.new(self).show }
menuBar = Wx::MenuBar.new
menuBar.append(menu, "&View")
set_menu_bar menuBar
end
end
class TestApp < Wx::App
def on_init
Tes...
2006 Jul 13
3
strange behavior with link_to for "blog" and "gallery"
Okay, what''s so different about the bellow code? When I use the link_to
function in a partial (three times passing "Stats", "Blog", and
"Gallery")...
<%= link_to(menuItem.to_s, :controller=>menuItem.to_s.downcase)%>
I get...
<a href="/stats">Stats</a>
<a href="/blog">Blog</a>
<a href="/gallery">Gallery</a>
and in my .css file I have:
a:link {
text-decoration: none;
color: #661;...
2009 Nov 12
1
Please help me ------ Mapping an item to article
Hi everybody,
I have a form like this
<h1>New menuitem</h1>
<% form_for(@menuitem) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :title %><br />
<%= f.text_field :title %>
</p>
<p>
<%= f.label :alias %><br />
<%= f.text_field :alias %>
</p>
&...
2006 Jul 07
9
Search on data accross many tables, linked by belongs_to
I am using Ferret and acts_as_ferret, as my search back-end for my Rails
project. I have a question about using acts_as_ferret on a main table
that is linked to other tables by foreign keys. Is there a way to
include the information linked by the belongs_to keyword in the search
results ?
As an example, let''s say I have a main table ''posts'':
2002 Mar 04
1
String Resources & Popup Problem
Ok, that's done.
Now after this the should compile and run :
in En.rc MAIN_MENU is defined now like this :
MAIN_MENU MENU
{
POPUP "&File" {
MENUITEM "&New...", 0x100
En.rc is included by #include "En.rc" in rsrc.rc.
And gcc complies about it when compiling :
[syl@snoop notepad]$ make
gcc -c -I. -I. -I../../include -I../../include -g -O2
-Wall -mpreferred-stack-boundary=2 -fPIC -DSTRICT
-DNONAMELESSUNION -DNONAMELESSST...
2008 Jan 14
1
How do I add autoincrement?
...I am attempting to learn Ruby on Rails. I''m using Instant Rails
2.0 on a Windows computer. I really want the id number to
autoincrement, but I am not sure how to do that. The script that''s
generated after the scaffold is listed below. Any help is appreciated.
class CreateMenuitems < ActiveRecord::Migration
def self.up
create_table :menuitems do |t|
t.integer :id
t.string :category
t.text :categoryinfo
t.string :name
t.string :price
t.text :iteminfo
t.timestamps
end
end
insert into menuitems values(NULL);
def se...
2008 Oct 07
0
associations not saved in migration
...via the migration but my items don''t save. i''ve
used save! in the hopes that an exception gets raised but no luck. the
migrations run without errors but the data isn''t in the db. can anyone
point out what i might be doing wrong? thanks! code below.
class AddDeliIdToMenuItem < ActiveRecord::Migration
def self.up
add_column :menu_items, :deli_id, :integer
# todo - the code below doesn''t work, wtf?
deli = Deli.find(:first)
items = MenuItem.find(:all)
for item in items do
item.deli = deli
item.save!
end
end
def self....
2008 Jan 04
2
problem with Menu.append_check_item()
Menu.append_check_item(), like Menu.append(), is supposed to return a
reference to the created menu item. Here is a test code which seems to show
that this behavior works for append(), but fails for append_check_item().
This is the output I get:
% ruby test-menu.rb
#<Wx::MenuItem:0xb74c036c>
nil
Am I missing something or is this a bug? Both menu items are created and
work as expected. I am running the 1.9.2 tarball.
#!/usr/bin/env ruby
begin
require ''wx''
rescue LoadError => no_wx_err
begin
require ''rubygems''
load ...
2005 Aug 10
1
another small patch
This is a fix for MenuItem, on Mac OS it only has 1 constructor so the
second one has #ifndef __WXMAC__
#endif
around it
Sean
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2004 May 03
1
Sub-menus?
Hey guys,
I have been trying unsuccessfully to create a menu that holds "sub-menus".
To clarify, I want something along the lines of when you click on a File
menu, then see the "New" menu, which you can click on to open a new layer of
menus. Is this supported yet in WxRuby?
Robert
_________________________________________________________________
Getting married? Find
2004 Jan 28
1
Submenues
...ppend( int id, const wxString& item, wxMenu *subMenu,
const wxString& helpString = "" ),
please?
Also, function append_item() doesn''t work:
menu = Menu.new
submenu = Menu.new
submenu.append(2, "item of submenu")
item_with_submenu = MenuItem.new(menu, 2, ''&Submenu'', '''', ITEM_NORMAL, submenu)
menu.append_item( item_with_submenu )
I get error: in `append_item'': wrong argument type nil (expected Data) (TypeError)
Could you check it, please?
--
Best regards,
Pavel
mailto:papushev@in...
2005 Apr 12
5
patch to add a menu item in Rgui for RSiteSearch
.... It adds the menu item `Search R Site' in
the `Help' menu in Rgui (which calls RSiteSearch() on the input string).
Best,
Andy
--- R-beta/src/gnuwin32/rui.c 2005-03-06 09:41:40.000000000 -0500
+++ R-beta-new/src/gnuwin32/rui.c 2005-04-12 08:21:55.001824500 -0400
@@ -65,7 +65,8 @@
static menuitem msource, mdisplay, mload, msave, mloadhistory,
msavehistory, mpaste, mpastecmds, mcopy, mcopypaste, mlazy, mconfig,
mls, mrm, msearch, mhelp, mmanintro, mmanref, mmandata,
- mmanext, mmanlang, mmanadmin, mman0, mapropos, mhelpstart, mhelpsearch,
+ mmanext, mmanlang, mmanadmin, mman...
2007 Jul 12
0
No subject
...directory /var/www/html/.
=20
Then I wrote the menu structure using XML. I used the information found
on the Cisco website as guide to do this. Below is my services.xml file:
=20
<CiscoIPPhoneMenu>
<Title>Information Services</Title>
<Prompt>Press to Enter</Prompt>
<MenuItem>
<Name>Extension Directory</Name>
<URL>http://192.168.1.94/directory.xml</URL>
</MenuItem>
<SoftKeyItem>
<Name>Dir</Name>
<URL></URL>
<Position></Position>
</SoftKeyItem>
=20
<Prompt>Press to Enter</Prompt>...