Re: [Mono-winforms-list] C# 2008 - Buttons not showing up on RHEL 5

2009-06-09 Thread Aatif_Chaudhry

can u guide me how to upgrade? direct from within mono or installing
something new...

thanx



Carlos Alberto wrote:
> 
> That's a very old version. Try the last version, or one of the 2.4.x
> series
> at least ;-)
> 
> Thanks,
> Carlos.
> 
> 2009/6/9 Aatif_Chaudhry 
> 
>>
>>
>> well, its versions is 1.9.1
>>
>>
>> Thanx
>>
>>
>> Carlos Alberto wrote:
>> >
>> > Hey!
>> >
>> > Well, it sounds like a bug, but it sounds like an old version, too.
>> Would
>> > you mind running "mono --version"?
>> >
>> > Carlos.
>> >
>> > 2009/6/4 Aatif_Chaudhry 
>> >
>> >>
>> >> I have a simple form application made in C# (MS VS 2008), it has two
>> >> buttons,
>> >> but when I run it on RH Linux 5 through mono, the buttons are not
>> visible
>> >> on
>> >> the form. What I see is two black lines which on click, initiate the
>> >> respective button's event.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/C--2008---Buttons-not-showing-up-on-RHEL-5-tp23864848p23864848.html
>> >> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>> >>
>> >> ___
>> >> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
>> >> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>> >>
>> >
>> > ___
>> > Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
>> > http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/C--2008---Buttons-not-showing-up-on-RHEL-5-tp23864848p23941533.html
>> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>>
>> ___
>> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>
> 
> ___
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> 
> 

-- 
View this message in context: 
http://www.nabble.com/C--2008---Buttons-not-showing-up-on-RHEL-5-tp23864848p23956214.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] ListView vs DataGridView - which is more stable?

2009-06-09 Thread Ivan N. Zlatev
Hi,

Please file a bug with the problem and with a test case and I will
look into it - http://mono-project.com/Bugs

Kind Regards,

Ivan N. Zlatev
http://ivan-zlatev.com



On Sun, Jun 7, 2009 at 1:22 AM, jmauster wrote:
>
> Thanks for the help.:-)
>
> But, it turns out that I need to have rows of varying height, which I
> believe is impossible in a list view, therefore I have gone with a
> DataGridView.
>
> However, this row sizing is behaving a little strangely.  When I use the
> code before, my text does not wrap and it does not autosize the rows,
> although that seems like it is what should happen.
>
> public DataGridViewForm()
>                {
>                        DataGridView dgv = new DataGridView();
>                        dgv.Parent = this;
>                        DataGridViewTextBoxColumn colDisplayDate = new
> DataGridViewTextBoxColumn();
>                        DataGridViewTextBoxColumn colDisplayText = new
> DataGridViewTextBoxColumn();
>                        colDisplayDate.Name = "Display Date";
>                        colDisplayDate.Width = 100;
>                        colDisplayText.Name = "Note Text";
>                        colDisplayText.Width = 150;
>                        dgv.Columns.Add(colDisplayDate);
>                        dgv.Columns.Add(colDisplayText);
>                        dgv.Rows.Add("Display Date 1", "Display Note");
>                        dgv.Rows.Add("Second Date", "Lorem ipsum dolor  ... [a 
> long string]
> ...");
>                        dgv.Dock = DockStyle.Fill;
>                        dgv.DefaultCellStyle.WrapMode = 
> DataGridViewTriState.True;
>                        dgv.AutoSizeRowsMode  = 
> DataGridViewAutoSizeRowsMode.AllCells;
>
>                }
>
>
> Any other thoughts?
>
> Thanks again,
>
>
>
> Carlos Alberto wrote:
>>
>> ListView should do enough for that you need - also, take into account that
>> *some* features of DataGridView hadn't been implemented yet.
>>
>> Carlos.
>>
>> 2009/6/5 jmauster 
>>
>>>
>>> Hi,
>>>
>>> I am new to Mono and I am building a simple application that will display
>>> a
>>> two-column table with no more than 100 rows at a time. I believe I can do
>>> this equally well with ListView and DataGridView, however - I was
>>> wondering
>>> which of these is more stable.
>>>
>>> Any thoughts?
>>>
>>> Thanks,
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/ListView-vs-DataGridView---which-is-more-stable--tp23891679p23891679.html
>>> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>>>
>>> ___
>>> Mono-winforms-list maillist  -  mono-winforms-l...@lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>>
>>
>> ___
>> Mono-winforms-list maillist  -  mono-winforms-l...@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/ListView-vs-DataGridView---which-is-more-stable--tp23891679p23906831.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> ___
> Mono-winforms-list maillist  -  mono-winforms-l...@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] C# 2008 - Buttons not showing up on RHEL 5

2009-06-09 Thread Carlos Alberto Cortez
That's a very old version. Try the last version, or one of the 2.4.x series
at least ;-)

Thanks,
Carlos.

2009/6/9 Aatif_Chaudhry 

>
>
> well, its versions is 1.9.1
>
>
> Thanx
>
>
> Carlos Alberto wrote:
> >
> > Hey!
> >
> > Well, it sounds like a bug, but it sounds like an old version, too. Would
> > you mind running "mono --version"?
> >
> > Carlos.
> >
> > 2009/6/4 Aatif_Chaudhry 
> >
> >>
> >> I have a simple form application made in C# (MS VS 2008), it has two
> >> buttons,
> >> but when I run it on RH Linux 5 through mono, the buttons are not
> visible
> >> on
> >> the form. What I see is two black lines which on click, initiate the
> >> respective button's event.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/C--2008---Buttons-not-showing-up-on-RHEL-5-tp23864848p23864848.html
> >> Sent from the Mono - WinForms mailing list archive at Nabble.com.
> >>
> >> ___
> >> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> >> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> >>
> >
> > ___
> > Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/C--2008---Buttons-not-showing-up-on-RHEL-5-tp23864848p23941533.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> ___
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] C# 2008 - Buttons not showing up on RHEL 5

2009-06-09 Thread Aatif_Chaudhry


well, its versions is 1.9.1


Thanx


Carlos Alberto wrote:
> 
> Hey!
> 
> Well, it sounds like a bug, but it sounds like an old version, too. Would
> you mind running "mono --version"?
> 
> Carlos.
> 
> 2009/6/4 Aatif_Chaudhry 
> 
>>
>> I have a simple form application made in C# (MS VS 2008), it has two
>> buttons,
>> but when I run it on RH Linux 5 through mono, the buttons are not visible
>> on
>> the form. What I see is two black lines which on click, initiate the
>> respective button's event.
>> --
>> View this message in context:
>> http://www.nabble.com/C--2008---Buttons-not-showing-up-on-RHEL-5-tp23864848p23864848.html
>> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>>
>> ___
>> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>
> 
> ___
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> 
> 

-- 
View this message in context: 
http://www.nabble.com/C--2008---Buttons-not-showing-up-on-RHEL-5-tp23864848p23941533.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-winforms-list] Two XplatUIX11 P/Invoke on 64bits system questiones.

2009-06-09 Thread Matt Guo
Oh, now I understand why.
According to gcc, "int" is always 32bits on both 32 and 64bits sys. "long"
is 32bits on 32 bits sys, and 64bits on 64bits sys. that's
compiler-specific, and if I use other compilers, such as  visual c++, the
result could be different.

On Tue, Jun 9, 2009 at 2:43 PM, Matt Guo  wrote:

> 1. in Xlib.h, the c declaration of XDefaultDepth is
> extern int XDefaultDepth (Display*, int);
>   ~~~~~~
> and in XplatUIX11.cs, the c# declaration of XDefaultScreen is
> internal static extern uint XDefaultDepth (IntPtr display, int
> screen_number);
>~~~
> so as I think, in 64bits system, XDefaultDepth will actually return a
> 64bits value, and expect the 2nd param is 64bits, however the dllimported
> function will return a 32bit number and pass in a 32bit number as the 2nd
> param, and wouldn't it cause any problem? There are many other similiar
> situation exist when importing other xlib methods.
>
> 2. in XplatUIX11.cs,
> internal extern static IntPtr XWhitePixel(IntPtr display, int screen_no);
> ~~
> internal extern static IntPtr XSetBackground(IntPtr display, IntPtr gc,
> UIntPtr background);
>
> ~~~
>
> but in Xlib.h, the c declaration of a color is always "unsigned long", so
> why not just use uint to represent a color in c#, and wouldn't IntPtr cause
> a problem in 64bits system? (since IntPtr is 64bits in 64bits system,
> however "unsigned long" is still 32 bits).
>
>
> BTW, as I watched, winform seems work fine on 64bits x system (open suse
> 11.1 64bits), I'm curious why the expected problems are not triggered? And
> I'd appreciate it if someone can help to resolve the confusion, thank you.
>
> --
> B.R.
> GUO Rui (Matt)
>
>


-- 
B.R.
GUO Rui (Matt)
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list