[Mono-list] Windows.Forms/Local mono installation on Ubuntu/Xserver freezes
Wiktor Grębla
greblus at gmail.com
Tue Aug 22 11:00:59 EDT 2006
Hi.
I'm playing with Windows.Forms on Mono (1.1.16.1 locally installed in
$HOME) and I've two problems (max. three).
First, general question about Form Layout. I found Anchor and Dock
properties unwilling to do it's job (ok, to be honest, i got bored after
half an hour of compulsive trying) as described in the SDK's docs, so
I did it using Location and ClientSize, but I hate it :) Later I tried
TableLayoutPanel but not everything seemed to work (columns spanning).
And here's my question, could you show me some more advanced layout
examples (working on mono)?
Here's my really simple first MWF app:
http://greblus.go.pl/stuff/dllbrowser.png
source is here:
http://greblus.go.pl/stuff/dllbrowser-mwf.tar.gz
I'd be happy if somebody could show me the right way to do a nice layout
(with Gtk it's so easy and logical, but here I'm a bit lost).
Next problem is something really strange. When I expand treeview's nodes
my Xserver freezes. I guess it's a problem with binary Nvidia's driver,
but it may also be related to the fact that I've installed mono in
$HOME/local directory using graphical installer. The problem with it is
that some libraries in Ubuntu have different names, and in order to get
for example OpenFileDialog to work I had to link a few things:
ln -s /usr/lib/libgdk-x11-2.0.so.0.800.20
/home/greblus/local/mono-1.1.16.1/lib/libgdk-x11-2.0.so
ln -s /usr/lib/librsvg-2.so.2.14.4
/home/greblus/local/mono-1.1.16.1/lib/librsvg-2.so
ln -s /usr/lib/libglib-2.0.so.0.1000.3
/home/greblus/local/mono-1.1.16.1/lib/libglib-2.0.so
ln -s /usr/lib/libgobject-2.0.so.0.1000.3
/home/greblus/local/mono-1.1.16.1/lib/libgobject-2.0.so
ln -s /usr/lib/libgobject-2.0.so.0.1000.3
/home/greblus/local/mono-1.1.16.1/lib/libgobject-2.0.so
Usually I set a few variables like this:
export MOZILLA_FIVE_HOME="/usr/lib/firefox"
export PATH="/home/greblus/local/mono-1.1.16.1/bin:$PATH"
export
PKG_CONFIG_PATH="/home/greblus/local/mono-1.1.16.1/lib/pkgconfig:$PKG_CONFIG_PATH"
export MANPATH="/home/greblus/local/mono-1.1.16.1/share/man:$MANPATH"
export
LD_LIBRARY_PATH="/home/greblus/local/mono-1.1.16.1/lib:$LD_LIBRARY_PATH"
export MONO_THEME=clearlooks
and I can enjoy newer (latest) mono builds, but is it possible that this
is the reason why my Xserver crashes?
Ok, no more questions.
Cheers,
W.
--
Talkers are no good doers.
http://greblus.go.pl
More information about the Mono-list
mailing list