Hi,

On 31.12.2012 15:41, Zsolt Udvari wrote:
> How can I create textboxes with fixed width? I've tried
> 
> textboxes["cpu1"]:fit(20,20)
> 
> but doesn't work.

fit() does "if you have a space of 20x20px available, how much of that do you
want?". This just returns some numbers and doesn't actually set anything.

> It's not good when the whole content of wibox will move left and move
> right depend on textboxes["cpu1"]'s content.

If you really just want a fixed width (the height shouldn't matter much in
"normal" wiboxes, hence this just uses all the available vertical space):

textboxes["cpu1"].fit = function(widget, w, h) return 20, h end

But isn't 20px a little small?

Uli
-- 
my $key = "\x49\x03\x93\x08\x19\x94\x96\x94\x28\x93\x83\x04\x68\x28\xa8\xf5".
          "\x0a\xb9\x94\x02\x45\x81\x93\x1f\xbc\xd7\xf3\xad\x93\xf5\x32\x93";
my $cipher = Crypt::Rijndael->new( $key, Crypt::Rijndael::MODE_ECB() );
my $plain = $ciper->decrypt($daten);

-- 
To unsubscribe, send mail to [email protected].

Reply via email to