Displaying 11 results from an estimated 11 matches for "set_icon".
2007 Jan 30
2
error finding library when running test program
...icons = Wx::RadioBox.new(panel, ID_ICON, "&Icons", Wx::Point.new
(20,5),
Wx::DEFAULT_SIZE, iconNames, 1,
Wx::RA_SPECIFY_COLS)
evt_radiobox(ID_ICON) {|event| on_change_icon(event)}
if Wx::RUBY_PLATFORM == "WXMSW"
set_icon(Wx::Icon.new("./icons/wxwin.ico"))
else
set_icon(Wx::Icon.new("./icons/wxwin16x16.xpm"))
end
show(true) #true is the default value, so it may be left off
end
def on_change_icon(event)
if Wx::RUBY_PLATFORM == "WXMSW"...
2007 Aug 23
7
TaskBarIcon gives Typerror
...My problem at the moment is, I wanna test the TaskBarIcon on Gnome and so I did:
#!/usr/bin/env ruby
$Verbose=true
require ''rubygems''
require ''wx''
include Wx
class MinimalApp < App
def on_init
mytask = TaskBarIcon.new
mytask.set_icon(''shutdown.svg'',''thats my tooltip'')
end
end
MinimalApp.new.main_loop
#eof
the doc tells about set_icon:
Boolean set_icon(Icon icon, String tooltip)
Sets the icon, and optional tooltip text.
shutdown.svg is an Icon and next to it comes a string...
2007 Jul 04
0
[1103] trunk/wxruby2: Added 2.8 methods to StaticBitmap & document them; cleanup header file
...> * "StaticBitmap#get_bitmap":#StaticBitmap_getbitmap
</span><ins>+* "StaticIcon#get_icon":#StaticBitmap_geticon
</ins><span class="cx"> * "StaticBitmap#set_bitmap":#StaticBitmap_setbitmap
</span><ins>+* "StaticIcon#set_icon":#StaticBitmap_seticon
</ins><span class="cx">
</span><span class="cx"> </div>
</span><span class="cx">
</span><span class="lines">@@ -47,7 +49,7 @@
</span><span class="cx"> h3...
2007 Feb 12
0
[871] trunk/wxruby2/samples/printing/printing.rb: Enable sample to be run from other directories
...pan class="lines">@@ -411,9 +413,11 @@
</span><span class="cx">
</span><span class="cx"> # Load icon and bitmap
</span><span class="cx"> if Wx::PLATFORM == "WXMSW"
</span><del>- @frame.set_icon( Wx::Icon.new("mondrian.ico",Wx::BITMAP_TYPE_ICO) )
</del><ins>+ icon_file = File.join(File.dirname(__FILE__), ''mondrian.ico'')
+ @frame.set_icon( Wx::Icon.new(icon_file, Wx::BITMAP_TYPE_ICO) )
</ins><span class="cx"> else
&...
2007 Apr 30
0
[996] branches/wxruby2/wxwidgets_282: TopLevelWindow: add some 2.8 methods; document; add missing CentreOnScreen
...an><span class="cx"> * "TopLevelWindow#request_user_attention":#TopLevelWindow_requestuserattention
</span><ins>+* "TopLevelWindow#set_default_item":#TopLevelWindow_setdefaultitem
</ins><span class="cx"> * "TopLevelWindow#set_icon":#TopLevelWindow_seticon
</span><span class="cx"> * "TopLevelWindow#set_icons":#TopLevelWindow_seticons
</span><span class="cx"> * "TopLevelWindow#set_left_menu":#TopLevelWindow_setleftmenu
</span><ins>+* "TopLeve...
2007 Apr 14
0
[963] branches/wxruby2/wxwidgets_282/doc/textile/dialog.txtl: Added a few missing methods and cleaned up a bit.
...tton with "get_affirmative_id":dialog.html#Dialog_getaffirmativeid is used. Another special value for _id_ is ID_NONE meaning that ESC presses should be ignored. If any other value is given, it is interpreted as the id of the button to map the escape key to.
+
+h3(#Dialog_seticon). Dialog#set_icon
+
+ *set_icon*(%(arg-type)Icon% icon)
+
+Sets the icon for this dialog.
+
+h4. Parameters
+
+* _icon_ The icon to associate with this dialog.
+
+h4. See also
+
+"Icon":icon.html
+
+h3(#Dialog_seticons). Dialog#set_icons
+
+ *set_icons*(%(arg-type)IconBundle% icons)
+
+Sets the icons fo...
2007 Nov 19
2
how to add icon to window
I have icon file and I want to add it to top-left of my application
How can I add it ??
--
Posted via http://www.ruby-forum.com/.
2008 Jul 28
12
Segfault with GridCellChoiceEditor
I have a problem.
In my application I have a few Grid objects in a Notebook. The Grid objects
are populated via GridTableBase. Certain Grid cells need to have a choice
interface (I''m artificially enforcing foreign key constraints). All this
works to the point where you try to edit the value for that cell. The
choice box renders (i.e. the drop down arrow appears) then the application
2007 Mar 29
0
[926] branches/wxruby2/wxwidgets_282: Update Dialog wx2.6 -> wx2.8 API, remove deprecations and cruft, update doc
...olour_changed":#Dialog_onsyscolourchanged
</span><span class="cx"> * "Dialog#set_affirmative_id":#Dialog_setaffirmativeid
</span><ins>+* "Dialog#set_escape_id":#Dialog_setescapeid
</ins><span class="cx"> * "Dialog#set_icon":#Dialog_seticon
</span><span class="cx"> * "Dialog#set_icons":#Dialog_seticons
</span><span class="cx"> * "Dialog#set_modal":#Dialog_setmodal
</span><span class="cx"> * "Dialog#set_return_code":#Di...
2004 Jan 08
3
pictorG
...WCAT, "&Open category"
menu.append ID_EDITLAB, "&Change name"
popup_menu menu, pt
end
end
#========================================================================
class MyFrame < Frame
def initialize title
super nil, -1, title
@title=title
set_icon Icon.new("bitmaps/pictorG.xpm")
@config = ConfigBase::get()
self.root_dir=@config.read("/rootdir")||ENV[''HOME'']||ENV[''USERPROFILE'']
@catalog_file=''''
# File menu
menuFile = Menu.new
menuFile.append ID_...
2007 Jul 25
11
taskbaricon
Salut alex, j''ai un petit souci.
quand j''utilise "demotaskbaricon" avec traducteur-wxruby, que j''ouvre mon application(donc l''icone apparaƮt dans la barre de lancement rapide) et que je ferme mon application, l''icone disparaƮt tout de suite.
Mais quand je l''utilise avec l''exemple Wizard et que je ferme mon application