Displaying 20 results from an estimated 300 matches similar to: "Problem with PaintDC(MSW)"
2003 Nov 13
7
modified classes
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
| http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy |
| Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" |
+-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+
-------------- next part --------------
A non-text attachment was scrubbed...
Name:
2006 Sep 29
5
ObjectPreviouslyDeleted when trying to paint
Hi,
I''m running into something along the lines of bug 5383. I''m hoping I''m
doing something obviously wrong and that someone can point me in the
right direction.
I''ve got a custom paint event handler:
def on_paint
puts "mainframe on_paint"
paint do |dc|
dc.clear
@cl.draw dc
end
end
Then I''ve got a key press
[707] trunk/wxruby2/swig/classes/Window.i: Window-paint method now implemented in Ruby (Alex Fenton)
2006 Oct 22
0
[707] trunk/wxruby2/swig/classes/Window.i: Window-paint method now implemented in Ruby (Alex Fenton)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 Apr 29
0
[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 Mar 22
0
[910] branches/wxruby2/wxwidgets_282: Moved paint() method back into C++, so DC object is destroyed in timely
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 Oct 21
6
Window#paint patch
Attached is a patch and some extra files to fix our
ObjectPreviouslyDeleted crasher with the paint method. As discussed, it
just re-implements the method in Ruby.
I created a directory lib/wx/classes as a place to hold Ruby extensions
to the API. The attached app.rb and window.rb files should be added to
it. When this patch is applied, files in that directory are
automatically required on
2006 May 02
1
Converting rb_protect + ruby_stop to pure Ruby
Hi,
Within process.c, in the fork method, there''s this bit of code:
if(rb_block_given_p()){
int status;
rb_protect(rb_yield, Qundef, &status);
ruby_stop(status);
}
I translated that as this:
if block_given?
status = 0
begin
yield
rescue Exception
status = -1 # Any non-zero result is failure
end
exit(status)
end
Is there a way to get
2006 Aug 10
3
update on samples
Hi all
Have been taking a look at the samples to see what''s broken. Not looking
TOO bad overall, but a few problems we should try and tackle before alpha:
Firstly, I have a few commits (minimal, dialogs, unicode) - anyone else
been working on these or can I go ahead?
One general issue is that many of the samples rely on being run from
their own directory, but don''t enforce
2007 Apr 28
0
[979] branches/wxruby2/wxwidgets_282/lib/wx/classes/paintdc.rb: Prevent dangerous direct instantiation of PaintDC
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2004 Jun 04
2
building wxruby-swig 0.0.16 on Mac
Grabbed 0.0.16 and tried a build for kicks.
...all good, except for a warning in MenuBar.cpp, then...
g++ -c -I/usr/local/lib/wx/include/mac-2.4 -D__WXMAC__ -DWXMAKINGDLL
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -fno-common -fno-common -pipe
-fno-common -x objective-c++ -I
/usr/local/lib/ruby/gems/1.8/rake-0.3.2/lib -I
/usr/local/lib/ruby/site_ruby/1.8 -I
2007 Apr 29
0
[980] branches/wxruby2/wxwidgets_282/samples/bigdemo/ShapedWindow.rbw: Use Window#paint instead of PaintDC.new
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2008 Mar 12
3
Different (tree) event behaviors across platforms
Hi all,
I''m currently writing a simple outliner application as a tutorial on
wxRuby (both will be soon released ;-) )
I tested this application on Windows and Linux and found that the tree
event behavior :
- is sometime strange on each platform
- is also different on each platform
Even if I managed to take care of these differences in the
application, I''m just wondering if :
-
2007 Apr 29
0
[981] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Don''t call PaintDC.new; just refresh() instead of duplicating paint code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2005 Aug 22
2
Adding ScreenDC
Here is the file to add ScreenDC. I noticed that it inherits from wxDC
which is what the docs show but the headers for each platform are much
different:
- Mac,MSW,os2,motif,palmos all inherit from wxWindowDC
- X11,GTK inherit from wxPaintDC
- MGL, cocoa inherit from wxDC
After saying that on Windows it still work inheriting from wxDC so I
left it for now, any thoughts?
Sean
2007 Jul 21
0
[1134] trunk/wxruby2/swig/mark_free_impl.i: When window is deleted, unhook ruby obj from DATA_PTR to avoid MSW crashes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2005 Sep 10
2
Swig generates bad interface to GetTextExtent
Swig''s bad interface generation strikes again. get_text_extent called
with 1 argument maps to WindowDC''s _wrap_wxWindowDC_GetTextExtent__SWIG_0
Since this generates a wxFont that''s not initialized to nil it fails
when calling into wxWindows. Anyone have a suggestion?
2004 Jun 22
8
Tracking Mouse motion
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: tst_wxPaint.rbw
Type: application/octet-stream
Size: 4446 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040622/abc8ba85/tst_wxPaint-0001.obj
2005 Oct 06
9
Grid.GetTextExtent
Wow. Look what SWIG does to GetTextExtent in Grid.cpp:
void SwigDirector_wxGrid::GetTextExtent(wxString const &string, int *x,
int *y, int *descent, int *externalLeading, wxFont const *font) const {
...
if (swig_get_up()) {
wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font);
return;
}
obj0 = rb_str_new2((const char *)(&string)->mb_str());
2003 Oct 27
5
Windows Build - Down to Run Time Errors
I finally got a clean compile and link for wxRuby. Now I''m down to
deciphering runtime errors. Once again, I''m going to pick up on this
tomorrow, but I thought I''d post my console output tonight to see if anyone
has any thoughts before I tackle this tomorrow.
I''m running the same app "minimal.rb"
E:\Dev\RubyDev\wxruby\samples\minimal>ruby
2007 May 21
13
First drop of new memory management
Hi
Just a quick update on memory leaks etc. I''ve just dropped a bunch of
patches with a new approach to linking ruby''s GC to Wx''s memory
handling. Still some work to do - eg bigdemo.rb falls over quite quickly
- but working well for me on other samples.
Briefly, it disposes of fixdeleting. For almost all objects that aren''t
Windows, they should now be