SourceForge logo
SourceForge logo
Menu

wxlua-users — wxLua list for users and developers

You can subscribe to this list here.

2005 Jan
Feb
Mar
Apr
May
Jun
(60)
Jul
(35)
Aug
(32)
Sep
(5)
Oct
(5)
Nov
(58)
Dec
(34)
2006 Jan
(114)
Feb
(184)
Mar
(153)
Apr
(90)
May
(153)
Jun
(59)
Jul
(24)
Aug
(43)
Sep
(17)
Oct
(34)
Nov
(11)
Dec
(204)
2007 Jan
(84)
Feb
(119)
Mar
(38)
Apr
(28)
May
(52)
Jun
(105)
Jul
(64)
Aug
(67)
Sep
(14)
Oct
(3)
Nov
(28)
Dec
(55)
2008 Jan
(228)
Feb
(55)
Mar
(30)
Apr
(30)
May
(15)
Jun
(20)
Jul
(12)
Aug
(3)
Sep
(13)
Oct
(54)
Nov
(35)
Dec
(35)
2009 Jan
(19)
Feb
(20)
Mar
(34)
Apr
(4)
May
(60)
Jun
(25)
Jul
(16)
Aug
(51)
Sep
(19)
Oct
(62)
Nov
(21)
Dec
(12)
2010 Jan
(1)
Feb
Mar
(4)
Apr
(12)
May
(23)
Jun
(13)
Jul
(1)
Aug
(40)
Sep
(18)
Oct
(21)
Nov
(26)
Dec
(34)
2011 Jan
(17)
Feb
(23)
Mar
(1)
Apr
(10)
May
(1)
Jun
(5)
Jul
(1)
Aug
Sep
Oct
(2)
Nov
Dec
(43)
2012 Jan
(5)
Feb
(19)
Mar
(6)
Apr
(24)
May
(39)
Jun
(83)
Jul
(29)
Aug
(36)
Sep
(64)
Oct
(55)
Nov
(12)
Dec
(7)
2013 Jan
(17)
Feb
(10)
Mar
(37)
Apr
(27)
May
(13)
Jun
(9)
Jul
(7)
Aug
(61)
Sep
(23)
Oct
(23)
Nov
(30)
Dec
(16)
2014 Jan
(23)
Feb
(13)
Mar
(9)
Apr
(17)
May
(2)
Jun
(11)
Jul
(2)
Aug
Sep
(9)
Oct
(24)
Nov
(2)
Dec
(14)
2015 Jan
(6)
Feb
(4)
Mar
(17)
Apr
May
(7)
Jun
(3)
Jul
Aug
Sep
(2)
Oct
(21)
Nov
(6)
Dec
(2)
2016 Jan
(4)
Feb
(2)
Mar
(7)
Apr
(3)
May
(11)
Jun
(6)
Jul
Aug
(1)
Sep
Oct
Nov
Dec
2017 Jan
Feb
Mar
Apr
(1)
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2018 Jan
(2)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2019 Jan
Feb
Mar
(6)
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
(1)
Oct
Nov
Dec
2022 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(2)
Nov
(4)
Dec
2023 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(8)
Nov
Dec
2024 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(4)
31



Showing 4 results of 4

Hello John,
thank you for your help.
Regards
Andreas
-----Ursprüngliche Nachricht-----
Von: John Labenski <jla...@gm...>
Gesendet: 30.03.2010 17:12:37
An: wxl...@li...
Betreff: Re: [wxlua-users] Expected a 'wxPen' for parameter 2, but got a 	'userdata'. Function called: 'SetPen(wxPaintDC, wxColour)'
>On Tue, Mar 30, 2010 at 11:07 AM, John Labenski <jla...@gm...> wrote:
>> On Tue, Mar 30, 2010 at 10:47 AM, Andreas Bittel [ wrote:
>>> Hello,
>>>
>>> I want to set the colour with:
>>>   c = wx.wxColour(1,2,3)
>>>   dc:SetPen(c)
>>>
>>> but receive the error in the subject. How can I set the colour for a pen?
>>
>
>Oh, I see the error message is in the title. Ok, the function you're
>calling is wxDC::SetPen(const wxPen& pen) which means that it's
>looking for a wxPen not a wxColour.
>
>c = wx.wxColour(1,2,3)
>p = wx.wxPen(c, 1, wx.wxSOLID)
>dc:SetPen(p)
>c:delete()
>p:delete()
>
>See:
>
>http://wxlua.sourceforge.net/docs/wxluaref.html#wxPen
>
>or better yet
>
>http://docs.wxwidgets.org/stable/wx_wxpen.html#wxpen
>
>Hope this helps,
> John
>
>------------------------------------------------------------------------------
>Download Intel® Parallel Studio Eval
>Try the new software tools for yourself. Speed compiling, find bugs
>proactively, and fine-tune applications for parallel performance.
>See why Intel Parallel Studio got high marks during beta.
>http://p.sf.net/sfu/intel-sw-dev
>_______________________________________________
>wxlua-users mailing list
>wxl...@li...
>https://lists.sourceforge.net/lists/listinfo/wxlua-users
On Tue, Mar 30, 2010 at 11:07 AM, John Labenski <jla...@gm...> wrote:
> On Tue, Mar 30, 2010 at 10:47 AM, Andreas Bittel <and...@we...> wrote:
>> Hello,
>>
>> I want to set the colour with:
>>   c = wx.wxColour(1,2,3)
>>   dc:SetPen(c)
>>
>> but receive the error in the subject. How can I set the colour for a pen?
>
Oh, I see the error message is in the title. Ok, the function you're
calling is wxDC::SetPen(const wxPen& pen) which means that it's
looking for a wxPen not a wxColour.
c = wx.wxColour(1,2,3)
p = wx.wxPen(c, 1, wx.wxSOLID)
dc:SetPen(p)
c:delete()
p:delete()
See:
http://wxlua.sourceforge.net/docs/wxluaref.html#wxPen
or better yet
http://docs.wxwidgets.org/stable/wx_wxpen.html#wxpen
Hope this helps,
 John
On Tue, Mar 30, 2010 at 10:47 AM, Andreas Bittel <and...@we...> wrote:
> Hello,
>
> I want to set the colour with:
>   c = wx.wxColour(1,2,3)
>   dc:SetPen(c)
>
> but receive the error in the subject. How can I set the colour for a pen?
I can't see anything wrong with the code above, assuming that the dc
is valid. Please always post the error message, the version of wxLua
you're using, platform, did you compile it yourself...
Can you at least run this code?
p = wx.wxPoint(1,2)
Regards,
 John
<body bgcolor="#ffffff" background="https://img.web.de/v/p.gif" class="bgRepeatYes" style="background-repeat: repeat; ; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;" ><div style="min-height: 200px; background-image: url(https://img.web.de/v/p.gif); background-repeat: repeat; background-color: #ffffff; font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;">
<p><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;">&nbsp;Hello,</span></span></span></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;">I want to set the colour with:</span></span></span></span></span></p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; c = wx.wxColour(1,2,3)<br />&nbsp;&nbsp;&nbsp; dc:SetPen(c)</p>
<p>&nbsp;</p>
<p>but receive the error in the subject. How can I set the colour for a pen?</p>
<p>&nbsp;</p>
<p>tia</p>
<p>&nbsp;</p>
<p>Regards</p>
<p>&nbsp;</p>
<p>Andreas</p>
</div></body>

Showing 4 results of 4

Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /