[Iup-users] Minor problem with IupPlotInsert/AXS_YMAX/AXS_YAUTOMAX after empty dataset.

2017-08-08 Thread Pete Lomax via Iup-users
Adding values via IupPlotInsert does not update AXS_YMAX under AXS_YAUTOMAX properly, in one case. I have four tabs, each with a plot of 7 datasets on it, updated dynamically (it looks for the previously quickest and extends that set). The AXS_YAUTOMAX works fine on tabs 2..4, just not on the

[Iup-users] Silence Alt-keys

2017-11-30 Thread Pete Lomax via Iup-users
Does anyone know how to silence Alt keys? I have tried returning IUP_IGNORE from K_ANY, KEYPRESS_CB, GLOBALKEYPRESS_CB, and K_mC but it still sounds the bell, unless there is a matching accelerator key on a menu, mind you I also want to be able to process keys such as Alt + ',' (and I have

[Iup-users] Possible bug in IupReparent or IupLayoutDialog

2017-11-25 Thread Pete Lomax via Iup-users
For information only. I am still using 3.21, apologies if this is already fixed. I am writing something not dissimilar to IupLayoutDialog, though in my version the hidden IupBackgroundBox of an IupExpander is genuinely hidden, and I fixed this problem by quietly fetching that and dropping as a

Re: [Iup-users] 7GUIs GUI comparison

2017-11-20 Thread Pete Lomax via Iup-users
All seven Phix/pGUI samples can now be found in demo\rosetta\7guis at https://bitbucket.org/petelomax/phix/src or try this direct link: https://bitbucket.org/petelomax/phix/src/51b43e4434275f263306583ccaebc837bbf78104/demo/rosetta/7guis/?at=default Permission granted to copy/reuse/whatever,

Re: [Iup-users] 7GUIs GUI comparison

2017-11-18 Thread Pete Lomax via Iup-users
Challenge accepted, I am going to do Phix/pGUI. On Fri, 17/11/17, Eric Wing wrote: Subject: [Iup-users] 7GUIs GUI comparison To: "IUP discussion list." Date: Friday, 17 November, 2017, 1:19

[Iup-users] Fw: Re: Silence Alt-keys

2017-12-01 Thread Pete Lomax via Iup-users
any > application. The > system rings a bell exactly to notify > the user that it is a > hot key that does nothing. >   You can try that in Word, Excel, > Notepad, etc... > Best,Scuri > > 2017-11-30 22:20 GMT-02:00 > Pete Lomax via Iup-users <iup-users@lists.sourcefo

[Iup-users] Fw: Re: Silence Alt-keys

2017-12-01 Thread Pete Lomax via Iup-users
       break; > > According with IUP online > help: > If returns IUP_DEFAULT the key is > processed but it is not propagated. > > If key is processed, maybe solve your > case. > > Best, > > Ranier Vilela > >

[Iup-users] Silence Alt keys

2017-12-21 Thread Pete Lomax via Iup-users
I have finally figured out a solution (this is written in Phix, btw): In key_cb: if alt and find(base,"BCDILUX") then string Yelp = "" Yelp[2] = base IupSetStrAttribute(main_help_menu,"TITLE",Yelp) reset_help = true end if In main_help_menu_open_cb:

Re: [Iup-users] CID 210573 (#1 of 1): Dereference after null check (FORWARD_NULL)

2018-01-19 Thread Pete Lomax via Iup-users
On Fri, 19/1/18, Antonio Scuri wrote: >then they are equal and not NULL at: >       >     (afunc->call_global_default && > iupGlobalDefaultColorChanged(afunc->default_value))) By that logic you could/should/may as well change it to:     (afunc->default_value &&

Re: [Iup-users] CID 210519 (#1 of 1): Logically dead code (DEADCODE)

2018-01-19 Thread Pete Lomax via Iup-users
perhaps inNames should be made static? On Fri, 19/1/18, Ranier VF wrote: Subject: [Iup-users] CID 210519 (#1 of 1): Logically dead code (DEADCODE) To: "IUP discussion list." Date: Friday,

Re: [Iup-users] About using IUP.Text:action in Lua

2018-01-16 Thread Pete Lomax via Iup-users
Hi there Hernan, You might want to visit https://bitbucket.org/petelomax/phix/src and then click on demo, rosetta, 7guis Although written in a different language, all 7 entries are completed. The temperature converter is named Converter.exw, and I used the valuechanged callback to achieve the

[Iup-users] IupSetAttributes FGCOLOR

2018-03-11 Thread Pete Lomax via Iup-users
Quick query: Is this supposed to work? Is it a bug in my wrapper? (I am still using 3.23) Ihandle buy_label = IupLabel("BUY") IupSetAttribute(buy_label,"FGCOLOR","#008000") -- works IupSetAttributes(buy_label,"FGCOLOR=#008000") -- does not work

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

2018-04-19 Thread Pete Lomax via Iup-users
Hi there Eric, Thank you for looking at this - I just wanted to add my approval. I certainly get the point about battery life. The project I am currently working uses a background thread to handle a websocket feed, which arrives every 10s or so. While an IupTimer works, I run it at 10 times a

Re: [Iup-users] Regression bug in iup_config.c? (Crash if there is no config file)

2018-03-31 Thread Pete Lomax via Iup-users
I reported this privately last week, and that call was promptly removed in SVN On Sat, 31/3/18, Eric Wing wrote: Subject: [Iup-users] Regression bug in iup_config.c? (Crash if there is no config file) To: "IUP discussion

Re: [Iup-users] Naming for proposed "Tecgraf Assistant"

2019-06-11 Thread Pete Lomax via Iup-users
On Sun, 9/6/19, Antonio Scuri wrote: It could include something in the name that indicates what it actually does.  Good point. "IUP build script for Mint" immediately springs to mind. ___ Iup-users

Re: [Iup-users] Request

2019-11-30 Thread Pete Lomax via Iup-users
On Saturday, 30 November 2019, 18:49:55 GMT, Antonio Scuri wrote: ... need conversion functions to/from UTF-8 and the filesystem encoding. Would be nice to have a solution for that inside IUP, but for now we still don't have one. My own routines in Phix are 360 lines, a quick search yielded

Re: [Iup-users] Request

2019-11-30 Thread Pete Lomax via Iup-users
Might be worth checking out https://bitbucket.org/knight666/utf8rewind/src/default/ as well... On Sunday, 1 December 2019, 06:41:57 GMT, Pete Lomax via Iup-users wrote: On Saturday, 30 November 2019, 18:49:55 GMT, Antonio Scuri wrote: ... need conversion functions to/from UTF-8

Re: [Iup-users] Using the iup.scrollbox

2020-03-11 Thread Pete Lomax via Iup-users
Not an expert, but I clocked this bit in the middle with some suspicion: scrollbar = "VERTICAL", xmax = "0", dy = "334", ymax = "583", I wondered about expand = "VERTICAL" and/or getting rid of that ymax setting. Have not tried either here, my apologies if neither helps. On Tuesday, 10

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

2020-05-17 Thread Pete Lomax via Iup-users
On Sunday, 17 May 2020, 23:05:05 BST, Ranier Vilela wrote: The big question is how to catch the double free that may exist. Because this not to protect against double free. if (ptr) {   free(ptr); } One tactic I have just recently started adopting, entirely independent of this and in fact

[Iup-users] IupProgressDlg request

2020-08-29 Thread Pete Lomax via Iup-users
On http://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupprogressdlg.html could(/should) the invocation of update_progress() be triggered via say IupSetCallback(dlg, "PROGRESS_CB", update_progress); Thanks, Pete ___ Iup-users mailing list

Re: [Iup-users] Inline editing items in IupList

2020-09-14 Thread Pete Lomax via Iup-users
Don't think you can do exactly that (in-place edit) with an IupList, but you certainly can with an IupMatrix, and probably with a single-level IupTree. On Monday, 14 September 2020, 22:20:37 BST, Cezary Drożak wrote: Hello, I am considering switching from Qt to IUP and one thing I

[Iup-users] Layout suggestions

2020-06-23 Thread Pete Lomax via Iup-users
Open this pen: https://codepen.io/chriscoyier/pen/zYvoQEQ and resize the result panel to see the effect. (I am assuming Editor View with the result full height and html/css/js stacked on the left or right.) The four (blank/grey) aside/sidebar-module boxes should at some point jump to below

[Iup-users] IupDrawGetTextSize() docs missing len

2020-08-16 Thread Pete Lomax via Iup-users
On http://webserver2.tecgraf.puc-rio.br/iup/en/func/iupdraw.html void IupDrawGetTextSize(Ihandle* ih, const char* str, int *w, int *h); [in C] should be (I think) void IupDrawGetTextSize(Ihandle* ih, const char* str, int len, int *w, int *h); [in C] Pete

[Iup-users] IupFileDlg(DIALOGTYPE=DIR) issues

2021-01-08 Thread Pete Lomax via Iup-users
When the IupFileDlg opens, it expands to the specified directory but then appears to perform an ensure_visible(node0) operation, making "C:" top line and said target directory off-screen (but still somehow with focus). Clearly the keyboard handling of Alt-M for Make new folder, DEFAULTENTER and

[Iup-users] IupMultiLine: FORMATTING disables Unicode

2021-03-23 Thread Pete Lomax via Iup-users
If I comment-out the FORMATTING=YES line and re-run, I can paste unicode into it again. Windows 10, IUP 3.29 ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users

[Iup-users] Canvas X/YHIDDEN glitch?

2021-12-12 Thread Pete Lomax via Iup-users
Hi there. I am emulating a 640x480 window onto a 1280x960 canvas, all working fine and perfectly happy to leave this as-is, however I just thought I should say something. function resize_cb(Ihandle /*ih*/) for twice=1 to 2 do -- -- twice in case X/YHIDDEN change aka

[Iup-users] libftgl.so not installed

2022-02-01 Thread Pete Lomax via Iup-users
The iup install script (two lines below "# Do NOT overwrite for FreeType", 3.29) contains #cp -fv $1libftgl.so $TEC_SYSTEM_LIB should that instead be cp -nv $1libftgl.so $TEC_SYSTEM_LIB In fact I ended up having to do 'sudo cp iup/ftgl/lib/Linux54_64/libftgl.so /lib/x86_64-linux-gnu'

Re: [Iup-users] libftgl.so not installed

2022-02-02 Thread Pete Lomax via Iup-users
Lomax via Iup-users wrote: The iup install script (two lines below "# Do NOT overwrite for FreeType", 3.29) contains   #cp -fv $1libftgl.so $TEC_SYSTEM_LIB should that instead be   cp -nv $1libftgl.so $TEC_SYSTEM_LIB In fact I ended up having to do 'sudo cp iup/ftgl/lib/

Re: [Iup-users] New Go bindings

2022-05-31 Thread Pete Lomax via Iup-users
I've been looking for something like this for years! >I know there were previous attempts aye, I'd found three of 'em, and couldn't get any of them to work It only worked (on Windows, "go get github.com/gen2brain/iup-go/iup") after I upgraded Go from 1.16 to 1.18.2, the requirements should