search for: onpaint

Displaying 18 results from an estimated 18 matches for "onpaint".

2003 Nov 24
3
wxImageHandler type?
Hiya, I was trying to figure out how to display PNG files using wxWindows/wxRuby. Google turned up a few things, mainly discussing the wxImageHandler class and it''s children, etc, but there seems to be no mention of them in the wxRuby source. Are they there, and I missed them, or are they just not there? If there not there, is there a quick and dirty way to get them in? It seems like
2007 Apr 29
0
[991] branches/wxruby2/wxwidgets_282/doc/textile: Update documentation for painting methods and WindowDC subclasses
...ot;lines">@@ -1,15 +1,13 @@ </span><span class="cx"> h1(#wxclientdc). Wx::ClientDC </span><span class="cx"> </span><del>-A ClientDC must be constructed if an application wishes to paint on the -client area of a window from outside an *OnPaint* event. -This should normally be constructed as a temporary stack object; don''t store -a ClientDC object. </del><ins>+This class is used to draw upon Windows outside of @evt_paint@ +handlers. It is not instantiated directly; rather, call the +"paint":window.html#Windo...
2008 Jan 24
2
Problems when compiling MFC application
...t;/font><br> <font size="2">hello.cpp:36: error: `LoadFrame' was not declared in this scope</font><br> <font size="2">hello.cpp: At global scope:</font><br> <font size="2">hello.cpp:47: error: no `void CMainWindow::OnPaint()' member function declared in class `CMainWindow'</font><br> <font size="2">hello.cpp: In member function `void CMainWindow::OnPaint()':</font><br> <font size="2">hello.cpp:48: error: `CRect' was not declared in this scope<...
2005 May 25
0
err:local:LOCAL_GetBlock not enough space in GDI heap
...ate an off-screen DC for double-buffering hdcMem = CreateCompatibleDC (hdc); hbmMem = CreateCompatibleBitmap (hdc, rc.right, rc.bottom); hOld = SelectObject (hdcMem, hbmMem); // Draw into hdcMem FillRect (hdcMem,&rc,CreateSolidBrush (RGB(255,255,255)) ); m_pMainWnd->OnPaint (hdcMem); // Transfer the off-screen DC to the screen BitBlt (hdc, 0, 0, rc.right, rc.bottom, hdcMem, 0, 0, SRCCOPY); // Free-up the off-screen DC SelectObject (hdcMem, hOld); DeleteObject (hbmMem); DeleteDC (hdcMem); EndPaint (m_hWnd, &ps); OnPaint method for m...
2006 Sep 21
1
on_paint nightmare
I was trying out the RMagick sample from the wiki and ran into an interesting(?) problem: If you resized the window it got stuck in an endless loop calling onPaint. After a bit, if you had the mouse in the window it would crash. Anyone seen this behavior before? I wonder if this is related to other crashes we''ve seen? Roy
2007 May 04
0
[1005] trunk/wxruby2/samples/images/images.rb: Remove some debugging output
...-04 20:02:44 UTC (rev 1005) </span><span class="lines">@@ -30,12 +30,10 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_paint </span><del>- puts("onPaint begin") </del><span class="cx"> paint do | dc | </span><span class="cx"> dc.clear </span><span class="cx"> dc.draw_bitmap(@bitmap, 0, 0, false) </span><span class="cx"> end </span>...
2007 Apr 28
0
[977] branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h: Add missing DoPrepareDC method, remove comment cruft
...;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Call this function to prepare the device context for drawing a scrolled image. It -sets the device origin according to the current scroll position. - -PrepareDC is called automatically within the default wxScrolledWindow::OnPaint event -handler, so your override -will be passed a ''pre-scrolled'' device context. However, if you wish to draw from -outside of OnDraw (via OnPaint), or you wish to implement OnPaint yourself, you must -call this function yourself. For example: -&nbsp&nbsp&nbsp&...
2006 Oct 23
0
[709] trunk/wxruby2/samples/dialogs/dialogs.rb: Use paint method again, remove unnecessary global (Alex Fenton)
...gt;<del>- text = Wx::StaticText.new(self, -1, - ''WxRuby common dialog test application'', - Wx::Point.new(10, 10) ) - # PaintDC currently causing ObjectPreviouslyDeleted (10 Aug 2006) - # evt_paint() {|event| onPaint(event) } </del><ins>+ evt_paint { |event| on_paint(event) } </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def clear </span><span class="cx"> </span><...
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:
2011 Feb 04
12
Run Nice Player .nmf app
Hi all, I'm needing/trying to save linux in my company. I have files in format .nmf (from a company called Nice) to listen. Don't have open or proprietary codecs for linux. I can only to the Nice Player. <Ubuntu Desktop> I've tried: 1- copy of folder installed in the windows for linux ubuntu desktop and run "wine nice.exe" and dont' run 2- run the package of
2006 Dec 07
0
[ wxruby-Bugs-7146 ] Setting item image in TreeCtrl crashes on OS X
...68 in wxGenericTreeCtrl::PaintItem(wxGenericTreeItem*, wxDC&) () #4 0x033889b8 in wxGenericTreeCtrl::PaintLevel(wxGenericTreeItem*, wxDC&, int, int&) () #5 0x03388d20 in wxGenericTreeCtrl::PaintLevel(wxGenericTreeItem*, wxDC&, int, int&) () #6 0x03389138 in wxGenericTreeCtrl::OnPaint(wxPaintEvent&) () #7 0x0325eaf8 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () #8 0x0325e27c in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () #9 0x0325eca4 in wxEvtHandler::ProcessEvent(wxEvent&) () #10 0x0325ecd0...
2003 Nov 25
1
Does wxRuby have event masks or something similar?
I''m trying to capture character events on a frame, using the following piece of code (adapted from samples/etc/test.rb): def initialize(title) super(nil, -1, title, Wx::Point.new(-1,-1), Wx::Size.new(530,590), Wx::DEFAULT_FRAME_STYLE | Wx::FRAME_SHAPED) evt_paint { onPaint } evt_char { | evt | puts "Got char evt: "+evt.to_s if evt.get_key_code.chr =~ /\s/ next_image end } @bitmap = nil @file = nil end (I''ve added the constant for Wx::FRAME_SHAPED to try and allow resizing programtically. Doesn''t seem...
2008 Feb 08
2
Dynamic resize of drawing canvas and FXImage
How can I use the drawing canvas and its off-screen image buffer, say FXImage, to dynamically resize or have its width and height attributes changed in reply to user interaction with the main window (FXMainWindow)? It seems that whem I put initial values to W and H of the canvas or FXImage, they remain with its initial values no matter what I do whem resizing the main window. -- Ranieri Barros
2010 Jul 30
1
Photomatix Pro 3 no buttons in tone mapping
...(Bitmap x49d5b7c4ad0e0bdd, Size xa829e7fdd9a63411) at Photomatix.Controls.x82003beccf6a3d04.xd8e5fe08cae37124(Bitmap[] x77e8d77b650d1b2f, Size xe896b4e160504930, Boolean x9840ad5d2c16a387) at Photomatix.Controls.x75efaacc0d586ab9.x30789b34c2cbe654() at Photomatix.Controls.x75efaacc0d586ab9.OnPaint(PaintEventArgs pe) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWi...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...estroy() { WinHelp(0L, HELP_QUIT); CDialog::OnDestroy(); } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework. void CGUIDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON);...
2016 Jan 30
8
[Bug 93934] New: DRI_PRIME=1: DeadIsland crashes when loading finish
https://bugs.freedesktop.org/show_bug.cgi?id=93934 Bug ID: 93934 Summary: DRI_PRIME=1: DeadIsland crashes when loading finish Product: Mesa Version: 11.0 Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/nouveau Assignee: nouveau at
2007 Mar 19
0
[900] branches/wxruby2/wxwidgets_282/swig/classes: Initial commit of AUI core classes
...rayInt& positions, + wxArrayInt& sizes); + + +public: + + // public events (which can be invoked externally) + void OnRender(wxAuiManagerEvent& evt); + void OnPaneButton(wxAuiManagerEvent& evt); + +protected: + + // protected events + void OnPaint(wxPaintEvent& evt); + void OnEraseBackground(wxEraseEvent& evt); + void OnSize(wxSizeEvent& evt); + void OnSetCursor(wxSetCursorEvent& evt); + void OnLeftDown(wxMouseEvent& evt); + void OnLeftUp(wxMouseEvent& evt); + void OnMotion(wxMouseEvent& evt); +...
2010 May 07
0
Wine release 1.1.44
...emove variable doRecursive which is not really used from WCMD_for. cmd: Remove variable argsProcessed which is not really used from WCMD_directory. progman: Remove unused variable from and fix formatting of DIALOG_Execute. regedit: Remove variable hdc which is not really used from OnPaint. regedit: Remove variable ExportKeyPath which is not really used from ExportRegistryFile. taskmgr: Remove variable CommitChargeLimit which is not really used from Graph_DrawMemUsageHistoryGraph. taskmgr: Remove unused variable PageSize which is not really used from PerfDataGetPhys...