Re: [Iup-users] Repeat of IM's "process/im_analyze.cpp allow free(NULL); " patch...

2020-05-17 Thread Jörg F . Wittenberger
On May 17 2020, sur-behoffski wrote: and are in strict conformance with C's definition of how free(3) is mandated to work when its parameter is NULL (codified in C89 standard, and included in all C and C++ standards since). IMHO it's still better to NOT call free(3) if there is no memory to be

Re: [Iup-users] Request

2019-12-07 Thread Jörg F. Wittenberger
Hi Andrew, On Sun, 1 Dec 2019 17:09:57 -0700 "Andrew Robinson" wrote: > Antonio, > > If you don't feel like having this discussion, let me know and I can > save it for another time... Frankly, I don't want to really enter into this discussion. Just I strongly disagree. > [...] > work, otherw

Re: [Iup-users] Formal proposal for a "postMessage" API to send messages to run on the UI thread

2018-04-19 Thread Jörg F . Wittenberger
Eric, I'm afraid your comment bdelow does not make much sense to me. Also I did not suggest any polling. On Apr 19 2018, Eric Wing wrote: On 4/19/18, Jörg F. Wittenberger wrote: On Apr 19 2018, Eric Wing wrote: Since there seems to be so much concern and speculation about the

Re: [Iup-users] Formal proposal for a "postMessage" API to send messages to run on the UI thread

2018-04-19 Thread Jörg F . Wittenberger
On Apr 19 2018, Eric Wing wrote: Since there seems to be so much concern and speculation about the size, complexity, and implementation of what the patch might look like, I went ahead and implemented a fully working version for Windows and GTK to provide something completely concrete to review.

Re: [Iup-users] Formal proposal for a "postMessage" API to send messages to run on the UI thread

2018-04-19 Thread Jörg F . Wittenberger
On Apr 18 2018, Matt Welland wrote: On Wed, Apr 18, 2018 at 1:23 AM, Jörg F. Wittenberger < joerg.wittenber...@softeyes.net> wrote: Hi, just my two cents. On Apr 16 2018, Eric Wing wrote: This is a proposal to introduce a way to post and run events on the main UI thread. Current

Re: [Iup-users] Formal proposal for a "postMessage" API to send messages to run on the UI thread

2018-04-19 Thread Jörg F . Wittenberger
Eric, sorry, you missunderstood my proposed solution. I wanted to suggest to NOT put additional events into whatever queue Iup uses behind the scenes. Instead better maintain you own queue and process this before you complete Iup's queue once using IupFlush. On Apr 18 2018, Eric Wing wrote

Re: [Iup-users] Formal proposal for a "postMessage" API to send messages to run on the UI thread

2018-04-18 Thread Jörg F . Wittenberger
Hi, just my two cents. On Apr 16 2018, Eric Wing wrote: This is a proposal to introduce a way to post and run events on the main UI thread. Currently (as far as I know), IUP is hands-off on threads. ... It's easy to see the problem you're facing. I'm no IUP expert, however I'm pretty posi

Re: [Iup-users] Silence gcc warning: 'vert_alignment' may be used uninitialized in this function

2017-12-11 Thread Jörg F . Wittenberger
Is it actually worth the time to discuss whether or not the compiler is smart enough to figure out whether or not a particular variable is used uninitialized or not? It is always better to silence those warnings by initializing those variables. In some environments the uninitialized variable

Re: [Iup-users] 7GUIs GUI comparison

2017-11-18 Thread Jörg F . Wittenberger
On Nov 17 2017, Eric Wing wrote: On 11/17/17, Antonio Scuri wrote: Very interesting indeed. I think we should implement those samples in C and Lua. Best, Scuri I also think LED example alternatives would be valuable too. A lot of frameworks now allow layout to be done separate from co

Re: [Iup-users] IUP event loop modification proposal (due to new platforms like Android, iOS, Mac)

2017-01-09 Thread Jörg F . Wittenberger
Hi all, let me add my $ 0.02 here. On Jan 8 2017, Andrew Robinson wrote: >Hi Eric, > > IUP is extremely healthy the way it is now, so protecting IUP's health is > the more important of all things to consider. > > Talking about the different specific event loops is like talking about > app

Re: [Iup-users] GTK3 layout cut-off

2016-02-08 Thread Jörg F . Wittenberger
Am 06.02.2016 um 06:16 schrieb John Spikowski: > Hi Eric, > > I have seen the same alignment problem and it really show it's ugly head > if I try to use IUP in a threaded environment. "threaded" environment? Do you mean by this "multiple pthreads calling iup procedures"? AFAIK IUP is *not* ree

Re: [Iup-users] a bug I can't resolve myself

2016-01-14 Thread Jörg F . Wittenberger
Am 14.01.2016 um 13:49 schrieb Eric Wing: > On 1/2/16, Jörg F. Wittenberger wrote: >> preliminary web search suggests that -lX11 is missing somewhere. >> >> Though I can't find out where to add it. >> >> (Raspberian, gtk 3.0) >> >> >> &

[Iup-users] a bug I can't resolve myself

2016-01-02 Thread Jörg F . Wittenberger
preliminary web search suggests that -lX11 is missing somewhere. Though I can't find out where to add it. (Raspberian, gtk 3.0) Tecmake: linking iuplua51 ... g++ -o ../bin/Linux41/Lua51/iuplua51 ../obj/iuplua51/Linux41/Lua51/iup_lua.o ../lib/Linux41/Lua51/libiuplua51.a /usr/lib/arm-linux-gnuea

Re: [Iup-users] building iup from sources

2016-01-02 Thread Jörg F . Wittenberger
Me too ;-) I did some deb packaging in the past. But I can#t claim that I'm very experienced with this. To the contrary. If I had a less hard time to get iup compiled at all, I had packaged it already. But as it is, I don't foresee me succeeding in a reasonable timespan. Am 02.01.2016 um 12:

[Iup-users] code suggestion

2016-01-02 Thread Jörg F . Wittenberger
in iup/srcweb/config.mak around line 21 insert something like ifneq ($(findstring Linux4, $(TEC_UNAME)), ) USE_GTK3 = Yes LIBS += webkitgtk-3.0 INCLUDES += $(GTK)/include/webkitgtk-3.0 else (and close the ifneq 11 lines later).

[Iup-users] building iup from sources

2016-01-02 Thread Jörg F . Wittenberger
Hi, I'm still trying to build (again) iup from sources. It's a nightmare. Even though I did keep the .bash_history from last time. (And since I lack a machine where I could set up a reasonable cross compile envt, I'm building *on* a raspberry pi. Thus it really takes forever.) Am I missing so

[Iup-users] just compiling anew - strange (frightening) warning

2015-12-31 Thread Jörg F . Wittenberger
[[just to report it, no reply needed]] for instance (in im): In file included from im_file.cpp:16:0: ../include/im_plus.h: In function ‘int im::Process::RenderFloodFill(im::Image&, int, int, float*, float)’: ../include/im_plus.h:1191:96: warning: no return statement in function returning non-void

Re: [Iup-users] Is Iup pthread safe?

2015-10-06 Thread Jörg F. Wittenberger
Am 06.10.2015 um 12:25 schrieb Ranier VF: > Hi,Well, your implementation must be:one consumer (GUI thread)many producers > (GUI events) > You can use mutex-condition pair (classic), sockets or a new way pipes. As I understand Andys question he wants to know how to unblock the GUI thread while it

Re: [Iup-users] UTF-8 GTK2/Linux: action callback in IupText broken.

2015-09-21 Thread Jörg F. Wittenberger
n/Testing here and the locale is configured to UTF-8. But as mentioned: it's not only on the debug output, the control itself ended up with the mangled content too. Best /Jörg > > Best, > Scuri > > > On Sat, Sep 19, 2015 at 7:13 AM, "Jörg F. Wittenberger" <

Re: [Iup-users] UTF-8 GTK2/Linux: action callback in IupText broken.

2015-09-19 Thread Jörg F. Wittenberger
as NOT exclusively seen in the printf debug output. The same mangled string was displayed by the IupText control. Best /Jörg > > Best, > Scuri > > > On Fri, Sep 18, 2015 at 4:55 PM, "Jörg F. Wittenberger" < > joerg.wittenber...@softeyes.net> wrote: > >

Re: [Iup-users] UTF-8 GTK2/Linux: action callback in IupText broken.

2015-09-18 Thread Jörg F. Wittenberger
e problem here. > > Best, > Scuri > > > On Thu, Aug 27, 2015 at 10:21 AM, Antonio Scuri > wrote: > >> ok I'll check that. >> >> Thanks, >> Scuri >> >> >> On Wed, Aug 26, 2015 at 6:22 PM, "Jörg F. Wittenberger" &l

Re: [Iup-users] IupRefresh - how to use it properly

2015-09-09 Thread Jörg F. Wittenberger
Am 02.09.2015 um 19:18 schrieb Antonio Scuri: >IupRefresh does not affects a single control. It affects all the dialog. > All the dialog layout, for all controls inside it, is recomputed when > IupRefresh is called, even is the parameter is a label deep down the dialog > hierarchy. If for every

[Iup-users] IupRefresh - how to use it properly

2015-08-29 Thread Jörg F. Wittenberger
Hi, the subject say it all. I need some better understanding when there should be a refresh and when not. I gather IupRefresh is for re-calculating the size of objects. (Correct?) Thus when I change say the TITLE attribute of a IupLabel, then the label may become larger, have a different numbe

[Iup-users] UTF-8 GTK2/Linux: action callback in IupText broken.

2015-08-26 Thread Jörg F. Wittenberger
I'm trying to use the ACTION callback on a IupText. The callback receives wierd values for the 3rd (char* new_value) argument. Here what I get when I enter "merkwürdig": SearchV: "m" SearchV: "me" SearchV: "mer" SearchV: "merk" SearchV: "merkw" SearchV: "merkwü" SearchV: "merkw�r�" SearchV: "mer

Re: [Iup-users] Normalizers

2015-08-26 Thread Jörg F. Wittenberger
eventually learn how to best cope with those.) But which of the size attributes SHOULD I actually set to NULL? Thanks /Jörg Am 26.08.2015 um 17:28 schrieb "Jörg F. Wittenberger": > Hi, > > it seems that the normalizers don't like me. > > I created a matrix from

[Iup-users] Normalizers

2015-08-26 Thread Jörg F. Wittenberger
Hi, it seems that the normalizers don't like me. I created a matrix from vbox/hbox having a label and a multiline text. All labels added to a normalizer. When I set the NORMALIZE to HORIZONTAL the first time all works well and the left column has the correct width. Than I change all the titles

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Jörg F. Wittenberger
27;s a wild guess at the moment. Maybe it's a bad idea like excessively calling IupFlush. Thanks again for your help! Best /Jörg > > Best, > Scuri > Em 11/08/2015 11:52, Jörg F. Wittenberger > escreveu: > >> Am 11.08.2015 um 16:31 schrieb "Jörg F. Wittenberger&quo

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Jörg F. Wittenberger
Am 11.08.2015 um 16:31 schrieb "Jörg F. Wittenberger": > Am 11.08.2015 um 16:27 schrieb Antonio Scuri: >> Maybe you can try the IDLE and see how it behaves. >> >> There is also another possibility. The IDLE callback is somewhat >> equivalent of &

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Jörg F. Wittenberger
high CPU consuming. > > So, to avoid this, you can try: > > while(IupLoopStepWait() != IUP_CLOSE) > { > do something > } > > But I would start with the IDLE. In GTK is much better handled than in > Windows. > > Best, > Scuri > > > On Tue, Aug

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Jörg F. Wittenberger
ly before. /Jörg > > Best, > Scuri > > > > > On Tue, Aug 11, 2015 at 10:11 AM, "Jörg F. Wittenberger" < > joerg.wittenber...@softeyes.net> wrote: > >> Sorry for following up on my own message. >> >> I just considered the problem again a

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Jörg F. Wittenberger
from time to time if there is something to be > processed on it (limited by a minimum time interval for not too fast > processing) > - Use the IDLE callback to process it (high CPU use since it will be > running all the time) > > Best, > Scuri > > > > > On T

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Jörg F. Wittenberger
Sorry for following up on my own message. I just considered the problem again and got stuck. Am 11.08.2015 um 14:04 schrieb "Jörg F. Wittenberger": > Am 10.08.2015 um 19:20 schrieb Antonio Scuri: >> Well, I really don't know. >> >> Just know that the calls

Re: [Iup-users] How to help debug this segfault?

2015-08-11 Thread Jörg F. Wittenberger
it as "personal wiki" for my notes too. The original is a web app. I'm trying replace the Web-Interface with a native GUI. /Jörg > Best, > Scuri > > > On Sat, Aug 8, 2015 at 9:58 AM, "Jörg F. Wittenberger" < > joerg.wittenber...@softeyes.net

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

2015-08-11 Thread Jörg F. Wittenberger
M). Thomas tried the very same code I ran linked against gtk 3.10 libgtk 2.24 on Mint 17.2 x86 Iup 3.14. Different results: border works as expected but the button placement is suboptimal. (See attached.) Best /Jörg > Best, > Scuri > > > > On Sat, Aug 8, 2015 a

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

2015-08-08 Thread Jörg F. Wittenberger
single lines would have border=Yes. That a mistake of mine. Am 08.08.2015 um 08:32 schrieb "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

Re: [Iup-users] How to help debug this segfault?

2015-08-08 Thread Jörg F. Wittenberger
will result in the segfault. More flushes make it appear to work. Even more flushes confuse the layout logic. How should this being done right? Thanks /Jörg Am 05.08.2015 um 10:50 schrieb "Jörg F. Wittenberger": > Hi Antonio, > > during IupFlush my program dumped a core

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

2015-08-07 Thread Jörg F. Wittenberger
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 >

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 >

[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 m

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: >

Re: [Iup-users] How to help debug this segfault?

2015-08-06 Thread Jörg F. Wittenberger
all. This does at least not segfault. But it's nowhere near perfection. I can feel the app being slowed down now. And it flickers now, intermediately drawing wrong sized controls over perfect areas just to update them a split second later. /Jörg > > Scuri > > > On Wed

Re: [Iup-users] How to help debug this segfault?

2015-08-05 Thread Jörg F. Wittenberger
> not there. > > What did you do before calling IupFlush. Is the canvas still valid during > the flush? > > Best, > Scuri > > > On Wed, Aug 5, 2015 at 5:50 AM, "Jörg F. Wittenberger" < > joerg.wittenber...@softeyes.net> wrote: > >&g

[Iup-users] How to help debug this segfault?

2015-08-05 Thread Jörg F. Wittenberger
Hi Antonio, during IupFlush my program dumped a core like this: Program terminated with signal SIGSEGV, Segmentation fault. #0 0x4097693a in gtkCanvasSetDXAttrib.part.3 () from /usr/local/lib/libiup.so (gdb) bt #0 0x4097693a in gtkCanvasSetDXAttrib.part.3 () from /usr/local/lib/libiup.so #1 0x

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

2015-08-04 Thread Jörg F. Wittenberger
umn. The third is how to format the right hand side. Often it's short text too. But there is also long single line text, which could really benefit from word wrapping. And there is text with embedded newlines, which in turn needs to be displayed "as is". It's easy to use

[Iup-users] A bag of questions.

2015-08-03 Thread Jörg F. Wittenberger
Hi, I'm trying to find a replacement formatting for what my current web app does using an html table. The table is simply two columns: a label in the left and value in the right column. I want/need it to look mostly like readable text, not so much like a separate GUI elements. At least the valu

Re: [Iup-users] Integrating Iup with poll(2) based message loop

2015-07-27 Thread Jörg F. Wittenberger
Which driver are you using? Windows? I'm currently struggling. It just does not want to work. Am 27.07.2015 um 16:29 schrieb Nodir Temirkhodjaev: >> I thought that the docs mentioned that IupLoopStep would be *no* >> substitute to running the main loop. > >> Actually I recall having tried this

Re: [Iup-users] Integrating Iup with poll(2) based message loop

2015-07-27 Thread Jörg F. Wittenberger
Am 27.07.2015 um 15:54 schrieb Nodir Temirkhodjaev: >> Somehow my attempts to do something alike (though I'm using the gtk >> version on Linux), fail. > >> The point is: where to run the IupLoopStep, ~flush etc. > >> I gather that should be done from the same thread running the >> IupMainLoop. T

Re: [Iup-users] Integrating Iup with poll(2) based message loop

2015-07-27 Thread Jörg F. Wittenberger
Am 27.07.2015 um 12:48 schrieb Nodir Temirkhodjaev: > Monday, July 27, 2015, 3:07:18 PM, Jörg F. Wittenberger wrote: >> Am 25.07.2015 um 16:24 schrieb Nodir Temirkhodjaev: >>>> The best thing I could hope for would be if I could ask Iup for a file >>>> descripto

Re: [Iup-users] Integrating Iup with poll(2) based message loop

2015-07-27 Thread Jörg F. Wittenberger
I see. This should do the trick. Agreed, that's what we'd need in Iup. /Jörg Am 27.07.2015 um 12:48 schrieb Nodir Temirkhodjaev: > Monday, July 27, 2015, 3:07:18 PM, Jörg F. Wittenberger wrote: >> Am 25.07.2015 um 16:24 schrieb Nodir Temirkhodjaev: >>>> The best

Re: [Iup-users] Two problems with matrix formatting.

2015-07-27 Thread Jörg F. Wittenberger
yes, limitexpand: yes, numlin: , numcol: 11, cursor "ARROW", readonly: yes. ALIGNMENT1... ALIGNMENT3: ALEFT FONT*:2 and FONT*:3 : "Monospace, 10" WITDH1 ...WIDTH11 : Thant's it. > > Scuri > > > On Sat, Jul 25, 2015 at 5:15 AM, "Jörg F. Wittenberger&

Re: [Iup-users] Integrating Iup with poll(2) based message loop

2015-07-27 Thread Jörg F. Wittenberger
end up with a thread in a busy loop calling IupLoopStep and then pausing for a while. Possible, but dissatisfying. I'm going to do so, but first I want to be certain that I'm not overlooking some better way. Thanks /Jörg > > Best, > Scuri > > > > On Sat, J

Re: [Iup-users] Integrating Iup with poll(2) based message loop

2015-07-27 Thread Jörg F. Wittenberger
Am 25.07.2015 um 16:24 schrieb Nodir Temirkhodjaev: >> The best thing I could hope for would be if I could ask Iup for a file >> descriptor to listen on. Whenever data is ready to read on this fd, I >> would know that Iup wants to become active and I should call the stepper >> until it eat up all

[Iup-users] Integrating Iup with poll(2) based message loop

2015-07-25 Thread Jörg F. Wittenberger
Hi Antonio & all, these days I wrote, changed, rewrote, modified etc. an ugly piece of code. A workaround for me not knowing how to integrate Iup with a poll(2) based message loop. All I could come up with where variations of a busy loop. And thus I ended up with two IupVal controls to trade re

[Iup-users] Two problems with matrix formatting.

2015-07-25 Thread Jörg F. Wittenberger
Hi, I have two problems with matrix formatting. A) There is an attribute to control the horizontal alignment of matrix cells. But I did not find the equivalent for vertical alignment. The attached "MultilineProblem.png" shows how horrible content with embeded newlines ends up. (Here an excerpt

Re: [Iup-users] IupProgressDlg with IupPopup?

2015-07-16 Thread Jörg F. Wittenberger
Just a warning. I observed that forking a process while iup is running is prone to error. So I forked one child early on to process async stuff and use nanomsg to talk to it. Further forks are handled by that child. Much safer to use. Am 14.07.2015 um 17:38 schrieb Antonio Scuri: > It could

Re: [Iup-users] GridBox slowness and more - Was: Re: Can I get my labels and fields to vertically ACENTER in an hBox?

2015-07-16 Thread Jörg F. Wittenberger
PM, Antonio Scuri > wrote: > >>Ok. So it is not exclusive to the gridbox. I will do some tests here to >> compute the time. But only on monday... >> >> Best, >> Scuri >> >> >> On Sat, Jul 11, 2015 at 3:22 PM, "Jörg F. Wittenberger" <

Re: [Iup-users] GridBox slowness and more - Was: Re: Can I get my labels and fields to vertically ACENTER in an hBox?

2015-07-11 Thread Jörg F. Wittenberger
eling a guess?). > > Best, > Scuri > > > On Fri, Jul 10, 2015 at 2:24 PM, "Jörg F. Wittenberger" < > joerg.wittenber...@softeyes.net> wrote: > >> Am 10.07.2015 um 14:52 schrieb Antonio Scuri: >>> Hi Jörg, >>> >>> Please start

[Iup-users] GridBox slowness and more - Was: Re: Can I get my labels and fields to vertically ACENTER in an hBox?

2015-07-10 Thread Jörg F. Wittenberger
Am 10.07.2015 um 14:52 schrieb Antonio Scuri: > Hi Jörg, > > Please start a new thread, instead of replying an existing one to ask > different questions. Or the answers will get mix up, and it will be harder > from me to process them all. Sorry. Done. I felt it being related. > About the

Re: [Iup-users] Can I get my labels and fields to vertically ACENTER in an hBox?

2015-07-10 Thread Jörg F. Wittenberger
Hi all, I'm new here and to iup - which I think is great. Though I've been about to ask a couple of newbe questions. One related here: Am 09.07.2015 um 23:24 schrieb Ariset: > solution with iupFill and h/v boxes are only for smaller forms. For larger > ones you should use GridBox. Attached exam