Stifu | 2 Feb 21:13 2010
Picon

Re: GdipWidenPath isn't implemented in libgdiplus


Hey,
Filing a bug report on this would ensure it doesn't get forgotten.

Rogier van der Hee wrote:
> 
> Hi, 
> 
> I just ran the MoMa on my app, and almost everything checks out as OK or
> doable with a little work, except for an external library I'm using:
> Dundas WinChart.
> 
> It has a lot of TODO's on GdipWidenPath being called from various methods
> in libgdiplus.
> 
> Is that a feature being worked on for a future release? 
> 
> That would enable to package my application for Mac OS X for example...
> 
> Thanks,
> 
> Rogier
> 
> 
> 

--

-- 
View this message in context: http://old.nabble.com/GdipWidenPath-isn%27t-implemented-in-libgdiplus-tp27424643p27426651.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

(Continue reading)

PFJ | 3 Feb 13:59 2010
Picon

Finding the tabindex of a label


Hi,

I have a large number of labels in a window all of which point to the same
event and all of which work (in other words, they call the event).

Only problem is that I don't seem to be able to find the tabindex of the
label clicked

Normally I'd have something like

public void dosomething(object sender, EventArgs e)
{
   int foo = (Label)sender.TabIndex;
   ...
}

but casting sender isn't showing the TabIndex property.

Is there a way to do this?

Paul
--

-- 
View this message in context: http://old.nabble.com/Finding-the-tabindex-of-a-label-tp27435810p27435810.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

(Continue reading)

Petit Eric | 3 Feb 14:11 2010
Picon

Re: Finding the tabindex of a label

i don't really know, but did yu try something like
Label Buff = sender as label
or
Label Buff = new label(
Buff = (Label)sender.TabIndex;

2010/2/3 PFJ <pjohnson1 <at> uclan.ac.uk>:
>
> Hi,
>
> I have a large number of labels in a window all of which point to the same
> event and all of which work (in other words, they call the event).
>
> Only problem is that I don't seem to be able to find the tabindex of the
> label clicked
>
> Normally I'd have something like
>
> public void dosomething(object sender, EventArgs e)
> {
>   int foo = (Label)sender.TabIndex;
>   ...
> }
>
> but casting sender isn't showing the TabIndex property.
>
> Is there a way to do this?
>
> Paul
> --
(Continue reading)

PFJ | 3 Feb 14:43 2010
Picon

Re: Finding the tabindex of a label


Hi,

Petit Eric wrote:
> 
> i don't really know, but did yu try something like
> Label Buff = sender as label
> or
> Label Buff = new label(
> Buff = (Label)sender.TabIndex;
> 

Yep, doesn't give me the TabIndex method either.

TTFN

Paul
--

-- 
View this message in context: http://old.nabble.com/Finding-the-tabindex-of-a-label-tp27435810p27436432.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Diego Frata | 3 Feb 14:43 2010
Picon

Re: Finding the tabindex of a label

Shouldn't it be: 


int tabIndex = ((Label)sender).TabIndex;

?

Diego Frata
diego.frata <at> gmail.com


On Wed, Feb 3, 2010 at 11:11 AM, Petit Eric <surfzoid <at> gmail.com> wrote:
i don't really know, but did yu try something like
Label Buff = sender as label
or
Label Buff = new label(
Buff = (Label)sender.TabIndex;

2010/2/3 PFJ <pjohnson1 <at> uclan.ac.uk>:
>
> Hi,
>
> I have a large number of labels in a window all of which point to the same
> event and all of which work (in other words, they call the event).
>
> Only problem is that I don't seem to be able to find the tabindex of the
> label clicked
>
> Normally I'd have something like
>
> public void dosomething(object sender, EventArgs e)
> {
>   int foo = (Label)sender.TabIndex;
>   ...
> }
>
> but casting sender isn't showing the TabIndex property.
>
> Is there a way to do this?
>
> Paul
> --
> View this message in context: http://old.nabble.com/Finding-the-tabindex-of-a-label-tp27435810p27435810.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>



--
 Cordially.

Deploy your softwares for all platforms and finally update them in 3 clicks.
Try now the OpenSource MonoOSC tool
http://monoosc.sourceforge.net/
http://download.opensuse.org/repositories/home:/surfzoid/
http://download.opensuse.org/repositories/home:/surfzoid:/DebianUbuntu/
http://download.opensuse.org/repositories/home:/surfzoid:/DebianUbuntu:/Mono/

windows take you more($), Linux give you more!!
Political Power cannot be wisdom!

 Small Eric Quotations of the days:
 ---------------------------------------------------------------------------
 I have no special talents. I am only passionately curious
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
PFJ | 3 Feb 15:44 2010
Picon

PictureBox, Resources and RTF text box problems


Hi,

Two questions which my frazzled brain isn't coping with...

I have a pile of resources for a project which the resource manager handles
quite nicely. I have an XML file which contains the name of the resource,
but stored as a string rather than as an Image (it's the name of the
resource).

Is there a way that I can have

pictureBox1.Image = foo.Properties.Resources.filename where filename is the
string that contains the filename? I've tried casting the string, but
nothing.

foo.Properties.Resources is showing all of the resources available and the
files are there.

Second...

I have an rtf text box and I have two rtf files held in the resources. I
created the rtf files in OpenOffice and can load them back in and the
formatting is there.

I try to load them into a form using

helptext.LoadFile(global::molarity.Properties.Resources.molarmass,
RichTextBoxStreamType.RichText);

and it comes out in plain text. No formatting or anything like that.

Am I missing something here?

TTFN

Paul
					
--

-- 
View this message in context: http://old.nabble.com/PictureBox%2C-Resources-and-RTF-text-box-problems-tp27437394p27437394.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

PFJ | 3 Feb 15:45 2010
Picon

Re: Finding the tabindex of a label


Hi,

Diego Frata wrote:
> 
> Shouldn't it be:
> 
> int tabIndex = ((Label)sender).TabIndex;
> 
> ?
> 

That got it...

Thanks

TTFN

Paul

--

-- 
View this message in context: http://old.nabble.com/Finding-the-tabindex-of-a-label-tp27435810p27437403.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Robert Jordan | 3 Feb 16:06 2010
Picon
Picon

Re: PictureBox, Resources and RTF text box problems

On 03.02.2010 15:44, PFJ wrote:
>
> I have a pile of resources for a project which the resource manager handles
> quite nicely. I have an XML file which contains the name of the resource,
> but stored as a string rather than as an Image (it's the name of the
> resource).
>
> Is there a way that I can have
>
> pictureBox1.Image = foo.Properties.Resources.filename where filename is the
> string that contains the filename? I've tried casting the string, but
> nothing.

pictureBox1.Image = Image.FromFile(foo.Properties.Resources.filename);

> I have an rtf text box and I have two rtf files held in the resources. I
> created the rtf files in OpenOffice and can load them back in and the
> formatting is there.
>
> I try to load them into a form using
>
> helptext.LoadFile(global::molarity.Properties.Resources.molarmass,
> RichTextBoxStreamType.RichText);
>
> and it comes out in plain text. No formatting or anything like that.
>
> Am I missing something here?

Maybe OOO's RTF output is too complex for RichTextBox' little brain.
Try to edit this RTF file with WordPad (it comes with Windows).
This tool is known to generate suitable RTFs.

Robert

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Paul | 4 Feb 20:15 2010
Picon

Re: PictureBox, Resources and RTF text box problems

Hi,

> > pictureBox1.Image = foo.Properties.Resources.filename where filename is the
> > string that contains the filename? I've tried casting the string, but
> > nothing.
> 
> pictureBox1.Image = Image.FromFile(foo.Properties.Resources.filename);

Must be doing something wrong as I keep getting a file not found
error...

When I type foo.Properties.Resources. I get the list of resources
stored. They don't have extensions listed. I've tried the filename with
and without the extension, but it still throws the error

> > and it comes out in plain text. No formatting or anything like that.
> >
> > Am I missing something here?
> 
> Maybe OOO's RTF output is too complex for RichTextBox' little brain.
> Try to edit this RTF file with WordPad (it comes with Windows).
> This tool is known to generate suitable RTFs.

Thanks. Am I loading it in correctly though?

helptext.LoadFile(global::molarity.Properties.Resources.molarmass,
RichTextBoxStreamType.RichText);

TTFN

Paul

--

-- 
Sie können mich aufreizen und wirklich heiß machen!
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Natalia Portillo | 6 Feb 22:36 2010

Re: PictureBox, Resources and RTF text box problems

Hi

El 04/02/2010, a las 19:15, Paul escribió:

> Hi,
>
>>> pictureBox1.Image = foo.Properties.Resources.filename where  
>>> filename is the
>>> string that contains the filename? I've tried casting the string,  
>>> but
>>> nothing.
>>
>> pictureBox1.Image = Image.FromFile 
>> (foo.Properties.Resources.filename);
>
> Must be doing something wrong as I keep getting a file not found
> error...
>
> When I type foo.Properties.Resources. I get the list of resources
> stored. They don't have extensions listed. I've tried the filename  
> with
> and without the extension, but it still throws the error

There is a function to create a stream from a file, I suggest you to  
create the stream from the file and then the image from the steam.

>>> and it comes out in plain text. No formatting or anything like that.
>>>
>>> Am I missing something here?
>>
>> Maybe OOO's RTF output is too complex for RichTextBox' little brain.
>> Try to edit this RTF file with WordPad (it comes with Windows).
>> This tool is known to generate suitable RTFs.
>
> Thanks. Am I loading it in correctly though?
>
> helptext.LoadFile(global::molarity.Properties.Resources.molarmass,
> RichTextBoxStreamType.RichText);

RichTextBox can load correct OOo's RTF, just if I remember well the  
method for loading with format is not LoadFile(), check MDSN  
documentation.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Gmane