Add test for a custom cursor to the image sample.
Load a cursor from PNG file to check that it appears as expected. See #11989. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f3cf14a905
commit
9ea83ebc7c
@ -177,7 +177,7 @@ image$(EXEEXT): $(IMAGE_OBJECTS) $(__image___win32rc)
|
|||||||
|
|
||||||
data:
|
data:
|
||||||
@mkdir -p .
|
@mkdir -p .
|
||||||
@for f in horse.png horse.jpg horse.bmp horse.gif horse.pcx horse.pnm horse_ag.pnm horse_rg.pnm horse.tif horse.tga horse.xpm horse.cur horse.ico horse3.ani smile.xbm toucan.png cmyk.jpg; do \
|
@for f in horse.png horse.jpg horse.bmp horse.gif horse.pcx horse.pnm horse_ag.pnm horse_rg.pnm horse.tif horse.tga horse.xpm horse.cur horse.ico horse3.ani smile.xbm toucan.png cmyk.jpg cursor.png; do \
|
||||||
if test ! -f ./$$f -a ! -d ./$$f ; \
|
if test ! -f ./$$f -a ! -d ./$$f ; \
|
||||||
then x=yep ; \
|
then x=yep ; \
|
||||||
else x=`find $(srcdir)/$$f -newer ./$$f -print` ; \
|
else x=`find $(srcdir)/$$f -newer ./$$f -print` ; \
|
||||||
|
BIN
samples/image/cursor.png
Normal file
BIN
samples/image/cursor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 489 B |
@ -16,7 +16,7 @@
|
|||||||
<files>
|
<files>
|
||||||
horse.png horse.jpg horse.bmp horse.gif horse.pcx horse.pnm horse_ag.pnm horse_rg.pnm
|
horse.png horse.jpg horse.bmp horse.gif horse.pcx horse.pnm horse_ag.pnm horse_rg.pnm
|
||||||
horse.tif horse.tga horse.xpm horse.cur horse.ico horse3.ani
|
horse.tif horse.tga horse.xpm horse.cur horse.ico horse3.ani
|
||||||
smile.xbm toucan.png cmyk.jpg
|
smile.xbm toucan.png cmyk.jpg cursor.png
|
||||||
</files>
|
</files>
|
||||||
</wx-data>
|
</wx-data>
|
||||||
|
|
||||||
|
@ -678,6 +678,7 @@ MyFrame::MyFrame()
|
|||||||
|
|
||||||
// 500 width * 2750 height
|
// 500 width * 2750 height
|
||||||
m_canvas->SetScrollbars( 10, 10, 50, 275 );
|
m_canvas->SetScrollbars( 10, 10, 50, 275 );
|
||||||
|
m_canvas->SetCursor(wxImage("cursor.png"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnQuit( wxCommandEvent &WXUNUSED(event) )
|
void MyFrame::OnQuit( wxCommandEvent &WXUNUSED(event) )
|
||||||
|
Loading…
Reference in New Issue
Block a user