Re: [Iup-users] A bag of questions.

2015-08-07 Thread Jörg F. Wittenberger
Am 07.08.2015 um 23:04 schrieb Milind Gupta:
> Multiline is no by default so border worked for the code I sent. Is your
> code in lua? Can you send a sample case showing the problem. That will be
> the best way to fix it quickly if others can replicate it.

It's not in Lua.  I'm using the Chicken-bindings.  So it's either
compiled to C or interpreted.  (Doesn't make a difference.)

Attached a screen shot showing the situation.

You can see: the multiline text has no border.  The left hand single
line text has a border as requested.  The right hand text, which was
created with border=No, however does not have the additional padding
around the text (which is good) but still has the border as a darker
line around the text area.

The second attachment is the same with the bgcolor set to global
dlgbgcolor to make the line more obvious.

Regards

/Jörg


> Milind
> On Aug 7, 2015 1:42 PM, Jörg F. Wittenberger <
> joerg.wittenber...@softeyes.net> wrote:
> 
>> More Info:
>>
>> I've got a text without a border - as I want it.  It works for
>> multiline=yes.  Seems that only the combination of multiline=No and
>> border=No is not working for me.
>>
>> Am 04.08.2015 um 17:00 schrieb Antonio Scuri:
>>>   I just tested BORDER under Windows, GTK2 (Ubuntu 10) and GTK3 (Ubuntu
>>> 14). And they all work fine. But notice that border is a creation only
>>> attribute, so it must be set before mapping into the native system. The
>>> Milind example does that.

--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] A bag of questions.

2015-08-07 Thread Milind Gupta
Multiline is no by default so border worked for the code I sent. Is your
code in lua? Can you send a sample case showing the problem. That will be
the best way to fix it quickly if others can replicate it.

Milind
On Aug 7, 2015 1:42 PM, Jörg F. Wittenberger <
joerg.wittenber...@softeyes.net> wrote:

> More Info:
>
> I've got a text without a border - as I want it.  It works for
> multiline=yes.  Seems that only the combination of multiline=No and
> border=No is not working for me.
>
> Am 04.08.2015 um 17:00 schrieb Antonio Scuri:
> >   I just tested BORDER under Windows, GTK2 (Ubuntu 10) and GTK3 (Ubuntu
> > 14). And they all work fine. But notice that border is a creation only
> > attribute, so it must be set before mapping into the native system. The
> > Milind example does that.
>
>
>
> --
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] A bag of questions.

2015-08-07 Thread Jörg F. Wittenberger
More Info:

I've got a text without a border - as I want it.  It works for
multiline=yes.  Seems that only the combination of multiline=No and
border=No is not working for me.

Am 04.08.2015 um 17:00 schrieb Antonio Scuri:
>   I just tested BORDER under Windows, GTK2 (Ubuntu 10) and GTK3 (Ubuntu
> 14). And they all work fine. But notice that border is a creation only
> attribute, so it must be set before mapping into the native system. The
> Milind example does that.


--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] IupText with wordwrap=yes

2015-08-07 Thread Jörg F. Wittenberger
Hi,

I've got little success to get IupText with wordrwap=yes (and
mutliline=yes) to work.

I want the multiline text to be large enough to hold all the text (i.e.,
no vertical scroll bar), but _not_ expand=yes so it's not using more
space than required.

I'e got this working with expand=no and a map_cb, which sets
VISIBLELINES to the value of the LINECOUNT attribute.  (I could have
counted those lines "myself" and set visiblelines right from the start,
but...) I intented this to work for wordwrap=yes as well.  But it does not.

At this point I don't see how to control the vertical space for
wordwrap'ed text.

Thanks for any hint.

/Jörg

--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] A bag of questions.

2015-08-07 Thread Jörg F. Wittenberger
I just tripple-checked my code, it never tries to change the border
after mapping.  Only right after creation.  Even before requesting
multiline=yes - which works.  (Debian, gtk2)

So the problem must be something else.  But how to nail it?

/Jörg

Am 04.08.2015 um 17:00 schrieb Antonio Scuri:
>   I just tested BORDER under Windows, GTK2 (Ubuntu 10) and GTK3 (Ubuntu
> 14). And they all work fine. But notice that border is a creation only
> attribute, so it must be set before mapping into the native system. The
> Milind example does that.


--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users