Displaying 15 results from an estimated 15 matches for "set_styl".
Did you mean:
set_style
2007 Oct 24
1
Problems with creating my own syntax highlighter
...o work..
I tried to edit the scintilla sample and added this event(@sci is the
StyledTextCtrl):
@sci.evt_stc_change(@sci.get_id) do
@sci.clear_document_style
@sci.start_styling(1,31)
@sci.style_set_font_attr(10, 10, "Courier", true, true, true)
@sci.set_styling(2,10)
puts 1
end
This prints out "1" when you edit the text(twice actually, which i do not
understand), but doesn''t change the text layout. But if I put it in an event
triggered by a button, it will work(onEOL is triggered by clicking the "show
end of line&qu...
2007 Apr 11
5
WIN32OLE MS Word Help
Hi all,
I am trying to create word document in ruby using WIN32OLE.
as..
require ''win32ole''
word = WIN32OLE.new("Word.Application")
word.visible = true
word.documents.add
selection = word.selection
word.Selection.TypeText "This is some text."
...
..
.
Can we set header and footer to document? I want to generate a
document such that its header contains an
2007 Apr 12
1
(no subject)
Bonjour. Je n''ai pas encore eu l''occasion d''utiliser TE_RICH2 en plus de TE_RICH | TE_MULTILINE, je compte l''essayé.
Pour rentrer le texte dans TextCtrl j''utilise : @dou << texte
Sebastien
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Mar 28
0
[924] branches/wxruby2/wxwidgets_282: Changes 2.6 -> 2.8 Wx API; remove deprecated methods and update doc
...* "DirDialog#get_style":#DirDialog_getstyle
</del><span class="cx"> * "DirDialog#set_message":#DirDialog_setmessage
</span><span class="cx"> * "DirDialog#set_path":#DirDialog_setpath
</span><del>-* "DirDialog#set_style":#DirDialog_setstyle
</del><span class="cx"> * "DirDialog#show_modal":#DirDialog_showmodal
</span><span class="cx">
</span><span class="cx"> </div>
</span><span class="lines">@@ -80,12 +80...
2007 Mar 28
0
[925] branches/wxruby2/wxwidgets_282/doc/textile/filedialog.txtl: Improvements to doc from wxWidgets 2.8
...t_filter_index":#FileDialog_setfilterindex
</span><span class="cx"> * "FileDialog#set_message":#FileDialog_setmessage
</span><span class="cx"> * "FileDialog#set_path":#FileDialog_setpath
</span><del>-* "FileDialog#set_style":#FileDialog_setstyle
</del><span class="cx"> * "FileDialog#set_wildcard":#FileDialog_setwildcard
</span><span class="cx"> * "FileDialog#show_modal":#FileDialog_showmodal
</span><span class="cx">
</span&...
2008 Aug 24
2
Missing ids in documentation
...ush.html:<h3 class="Brush_isok">Brush#is_ok</h3>
brush.html:<h3 class="Brush_setcolour">#Brush_set_colour</h3>
brush.html:<h3 class="Brush_setstipple">Brush#set_stipple</h3>
brush.html:<h3 class="Brush_setstyle">Brush#set_style</h3>
dc.html:<h3>DC#get_text_foreground</h3>
dc.html:<h3>DC#get_user_scale</h3>
dc.html:<h3>DC#gradient_fill_concentric</h3>
dc.html:<h3>DC#gradient_fill_linear</h3>
dc.html:<h3>DC#logical_to_device_x</h3>
dc.html:<h3>DC#logic...
2007 May 21
5
Wx::Scintilla class not defined
...eing this, I looked around in the sample
directory and came across scintilla.rb. I attempted a run, however Ruby
reported Wxruby2::Scintilla as an uninitialized constant!
So now, I''m wondering what happened to the class. Is there an external file
workaround for this, or will I have to set_style many times in a TextCtrl
object?"
_________________________________________________________________
Like the way Microsoft Office Outlook works? You’ll love Windows Live
Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_outlook_0507
--===...
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note
the new %directorargout typemap I added to fix wxWindows calling into
SWIG. I don''t know if this can fix all such problems or not. Let me
know what you think.
I also rubified the sample a little bit more. Also, note that I fix the
<< operator so the function can be called. I hope I did this right.
Roy
2005 Aug 15
1
TextAttr.i
...work as documented - applying
TextAttr.new(fg_colour, bg_colour) doesn''t seem to affect the actual
shown colour, even with TE_RICH|TE_RICH2 styles on the TextCtrl. This is
also true of current wx on Windows but not Linux.
As per Nick''s comment previously, TextAttr and TextCtrl#set_style are
candidates for some ruby syntax sugar, but this patch should at least
allow some simple "rich" text editors.
cheers
alex
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Dec 14
5
wxruby2-preview Gauge and wx-sugar with SplitterWindow
First of all, just wanted to say big thanks for all the great work on
wxruby2 .. I''ve been a user of 0.6 for a long time and its proved very
useful over the years. It''s great to finally have a multi-platform, gem
installable ui toolkit that doesn''t suck!
Secondly, thanks also for wx-sugar. I was drowning in sizers and started
to write my own layout library ... but
2007 Jan 22
0
[850] trunk/wxruby2/samples/bigdemo/bigdemo.rb: Fix crasher when selecting first-level category in tree
...f set_overview(name, text)
</span><ins>+ text ||= ''''
</ins><span class="cx"> @curOverview = text
</span><span class="cx"> @ovr.set_value(text)
</span><span class="cx"> @ovr.set_style(0,text.length,Wx::TextAttr.new(Wx::BLUE, Wx::Colour.new("White"), Wx::Font.new(12, Wx::FONTFAMILY_SWISS, Wx::FONTSTYLE_NORMAL, Wx::FONTWEIGHT_BOLD)))
</span></span></pre>
</div>
</div>
</body>
</html>
2007 Apr 12
9
taille de caractère
en fait je vous renvoi ce message car maintenant la taille de la police change au bout de 500 lignes environ, alors que j''avais reussi à garder la taille jusqu''à environ 5000 lignes.
Je ne comprend pas. Est-ce que c''est instable?
le bout de code que vous m''avez envoyer ne marche pas.
merci
Sebastien
_______________________________________________
wxruby-users
2007 Mar 30
0
[933] branches/wxruby2/wxwidgets_282: Font API 2.6 -> 2.8, corrections to Event doc
...nfo":#Font_setnativefontinfo
</span><ins>+* "Font#set_native_font_info_user_desc":#Font_setnativefontinfouserdesc
</ins><span class="cx"> * "Font#set_point_size":#Font_setpointsize
</span><span class="cx"> * "Font#set_style":#Font_setstyle
</span><span class="cx"> * "Font#set_underlined":#Font_setunderlined
</span><span class="lines">@@ -191,6 +195,10 @@
</span><span class="cx">
</span><span class="cx"> h3(#Font_ne...
2006 Dec 26
0
[806] trunk/wxruby2/samples/treectrl: Restored demonstration of use of icons and fonts within TreeCtrl
...et_item_font(root_id, Wx::ITALIC_FONT)
</del><ins>+ # note that font sizes can also be varied, but only on platforms
+ # that use the generic TreeCtrl - OS X and GTK, and only if
+ # Wx::TR_HAS_VARIABLE_ROW_HEIGHT style was used in the constructor
+ font = get_font
+ font.set_style(Wx::FONTSTYLE_ITALIC)
+ set_item_font(root_id, font)
</ins><span class="cx">
</span><span class="cx"> id,cookie = get_first_child(root_id)
</span><span class="cx"> set_item_text_colour(id, Wx::BLUE)
</span><span...
2007 Jul 04
0
[1104] trunk/wxruby2: Added 2.8 methods to TextCtrl & document them; tidy up header file
...rl#set_max_length":#TextCtrl_setmaxlength
</span><ins>+* "TextCtrl#set_modified":#TextCtrl_setmodified
</ins><span class="cx"> * "TextCtrl#set_selection":#TextCtrl_setselection
</span><span class="cx"> * "TextCtrl#set_style":#TextCtrl_setstyle
</span><span class="cx"> * "TextCtrl#set_value":#TextCtrl_setvalue
</span><ins>+* "TextCtrl#change_value":#TextCtrl_changevalue
</ins><span class="cx"> * "TextCtrl#show_position":#TextCtr...