Re: [Iup-users] iup.list feature request: valuestring attribute

2014-10-11 Thread Benoit Germain
2014-10-10 14:56 GMT+02:00 Antonio Scuri : > > Just committed to SVN. > > Thanks :). -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Repo

[Iup-users] iup.list feature request: valuestring attribute

2014-10-08 Thread Benoit Germain
Hello, According to the iup.list documentation, we have: *VALUE* (non inheritable): Depends on the DROPDOWN+EDITBOX combination: - DROPDOWN=YES or MULTIPLE=NO: Integer number representing the selected item in the list (begins at 1). It can be zero if there is no selected item. The value

[Iup-users] small Lua iup.GetParam issue on windows (IUP 3.10.1)

2014-09-18 Thread Benoit Germain
Hello, I've just noticed that the callback we provide to iup.GetParam doesn't get called when I editing a string parameter to add characters obtained with AltGr ('\' '|', '[', '@', etc.). It does get called for other changes, such as adding other characters, or when removing a character. Regards,

Re: [Iup-users] [IUP 3.10.1, Windows 7 64 bits] Problem selecting a branch in IupTree

2014-02-28 Thread Benoit Germain
Hello, I've changed my code to use branchopen_cb and it works fine. I've had an issue though: if I remove the dummy child of the branch (here so that the branch can be opened, as you suggested) before adding the ones I want, the branch closes automagically. No problem, I can do it the other way ar

Re: [Iup-users] [IUP 3.10.1, Windows 7 64 bits] Problem selecting a branch in IupTree

2014-02-27 Thread Benoit Germain
Hi, Ok I'll try that, thanks for the info and the fix. 2014-02-25 19:45 GMT+01:00 Antonio Scuri : > Hi, > > > > I just fixed the following problem: > > > > Fixed: first item in single selection IupTree was not showing that it is > selected. > > > > This may have lead you to think that the

Re: [Iup-users] [IUP 3.10.1, Windows 7 64] iup.Refresh() causes a Lua APICHECK assertion

2014-02-19 Thread Benoit Germain
the iup*52 DLLs? 2014-02-18 22:40 GMT+01:00 Benoit Germain : > Ah ok my bad. I'll check again, but AFAIR, I didn't get a Lua error with a > runtime built without APICHECK. In that case, this means that malicious > code intentionally forgetting the ihandle parameter corr

Re: [Iup-users] [IUP 3.10.1, Windows 7 64] iup.Refresh() causes a Lua APICHECK assertion

2014-02-18 Thread Benoit Germain
egular Lua run will trigger a Lua error. > > > > Your call should be > > > > iup.Refresh(self) > > > > for instance. > > > > Best, > > Scuri > > > > > > > > *From:* Benoit Germain [mailto:bnt.germ...@gmail.com] > *Sent:*

[Iup-users] [IUP 3.10.1, Windows 7 64 bits] Problem selecting a branch in IupTree

2014-02-03 Thread Benoit Germain
Hello, I have an application where I populate dynamically a tree with branches and leaves based on the exploration of external resources, that worked fine with IUP 3.8 (as far as I can remember). I populate a branch with its children when said branch is selected ans has no child, in selected_cb().

[Iup-users] [IUP 3.10.1, Windows 7 64] iup.Refresh() causes a Lua APICHECK assertion

2014-01-30 Thread Benoit Germain
Hello, With the attached script run with a Lua runtime I built with APICHECK enabled, I get an assertion coming from iuplua52.dll when calling iup.Refresh(). There must be a missing lua_checkstack() somewhere :-). Regards, -- Benoit. IupRefreshApiCheckProblem.lua Description: Binary data

[Iup-users] [IUP 3.1][WIN64] Assertion when trying to use IupBackgroundBox

2014-01-23 Thread Benoit Germain
Hello, I've just downloaded IUP 3.10 to test the backgroundbox, and I've got the following error with the attached script: lua52: [string "backgroundbox.lua"]:13: attempt to call field 'Background' (a nil value) stack traceback: [string "backgroundbox.lua"]:13: in function 'createElement'

Re: [Iup-users] zbox and expander don't mix well

2014-01-08 Thread Benoit Germain
In fact this is solved by having frames as the zbox child. But then maybe some attribute to make the frame borderless would be helpful to reduce interface cluttering when they are used to hack around these kind of issue? 2014/1/8 Benoit Germain > Well, as it happens, my expander child is

Re: [Iup-users] zbox and expander don't mix well

2014-01-08 Thread Benoit Germain
IupFrame and IupScrollBox are native containers. > > > > Best, > > Scuri > > > > *From:* Benoit Germain [mailto:bnt.germ...@gmail.com] > *Sent:* terça-feira, 7 de janeiro de 2014 12:02 > *To:* IUP discussion list > *Subject:* [Iup-users] zbox and expander don&#

[Iup-users] zbox and expander don't mix well

2014-01-07 Thread Benoit Germain
Hello and happy new year, Because both manipulate the VISIBLE attribute, it is not possible to put an expander inside a zbox. If the expander says its child is visible, then when we tell the zbox to show some other child, the child that contains the expander will hide the expander, but the expande

Re: [Iup-users] IupGridBox issues with IUP 3.9 Windows 7 64 bits.

2013-12-12 Thread Benoit Germain
Hi, Indeed all is well with the changes you suggested. Now onwards to more complex data items with checkboxes, dropdown lists, etc. Regards, -- Benoit 2013/12/12 Antonio Scuri > Hi, > > > > I noticed two problems. > > > ... > > > > Best, > > Scuri > > > > -

Re: [Iup-users] Text formatting issue with version 3.9, Windows 7 64 bits

2013-12-10 Thread Benoit Germain
Hi, I am using IUP dll11 binaries along with my own lua binaries that I built from LuaDist-generated VS 2012 projects with little changes (Lua 5.2.3 sources, with package.path/cpath tweaks taken from LuaBinaries, output file names changed to xx52). I also changed a bit wmain.c to add #pragma comm

[Iup-users] Text formatting issue with version 3.9, Windows 7 64 bits

2013-12-04 Thread Benoit Germain
Hello, The documentation says: "*SELECTION/**SELECTIONPOS*: same as the *IupText* SELECTION/SELECTIONPOSattributes. If not defined the *IupText* attribute will be used. If the *IupText* attribute is also not defined then the curren

[Iup-users] IUP 3.7 and child.tabtitle

2013-02-26 Thread Benoit Germain
Hello, I have Lua application where I create an iup.tabs() with several iup.text children. I want the user to be able to add/remove/rename tabs, so it is cumbersome to maintain a several TABTITLEn attributes in sync with the children at the iup.tabs level. Therefore I decided to set the tab title

Re: [Iup-users] [IUP 3.6 Windows 7] IupTree DELNODE and LASTADDNODE

2012-11-21 Thread Benoit Germain
2012/11/20 Antonio Scuri > Hi, > > ** ** > > Just did a sanity check for LASTADDNODE when one or more nodes are > removes in IupTree. > > ** ** > > Already committed to CVS. IUP next version is scheduled for this month.* > *** > > ** ** > > Best, > > Scuri > > > Hello Antoni

Re: [Iup-users] [Windows 7 64 bits, IUP 3.6] How can I prevent a list from expanding beyond dialog dimensions?

2012-08-23 Thread Benoit Germain
2012/8/22 Antonio Scuri > > > More generally, provided I don't shrink a dialog, and provided I don't > force > > control dimensions to something too big, it is normal for the layout to > ever > > compute control dimensions larger than the available space? > > Yes, because the default behavior f

[Iup-users] [Windows 7 64 bits, IUP 3.6] Problem with layout recomputation at window restoration

2012-08-22 Thread Benoit Germain
Hello, Run the attached script to observe the following: A dialog is created that contains a list prefilled with some values, and a text control. Press the "populate" button to add lines to the list so that the contents don't fit in the visible area and the scrollbar appears. Minimize, then resto

[Iup-users] [Windows 7 64 bits, IUP 3.6] How can I prevent a list from expanding beyond dialog dimensions?

2012-08-22 Thread Benoit Germain
Hello, I have a dialog in which I put a list pre-filled with some values. The dialog dimensions are such that all the lines of the list don't fit in its height. However, instead of the list size being clamped to fit the dialog's client area, I get a list control higher than the dialog. If the list

Re: [Iup-users] [IUP 3.6 Windows 7] IupTree DELNODE and LASTADDNODE

2012-07-12 Thread Benoit Germain
o also clear that > value when all nodes are removed. But I don’t know if I will catch all > situations. The idea behind the last added node is for it to be used right > after the node was added. > > ** ** > > Best, > > Scuri > > ** ** > > *From:* B

[Iup-users] [IUP 3.6 Windows 7] IupTree DELNODE and LASTADDNODE

2012-07-10 Thread Benoit Germain
Hello, When I have a tree that contains some nodes and I delete them with tree.delnode = "ALL", I notice that tree.lastaddnode still contains some non-nil value though it is no longer relevant. When nodes are removed in a way that affects the id of the last added node, shouldn't tree.lastaddnode b

[Iup-users] [IUP 3.6 Windows 7] Can I change the image in a list after it is set?

2012-07-05 Thread Benoit Germain
Hello, I have a list of objects where I want to change the associated icon depending on the object's availability. The attached script shows that once I have set an image to a list item, I can't change it afterwards. Documentation doesn't mention such a limitation. Is it a bug or a feature? Reg

Re: [Iup-users] [IUP 3.6 Windows 7] problem with IupTree dynamic filling

2012-07-03 Thread Benoit Germain
2012/7/2 Antonio Scuri > Hi Benoit, > > ** ** > > As Daniel pointed out, the -1 becomes obligatory for an empty tree with > no root. > > ** > Ok I understand. But with either IUP 3.5 or IUP 3.6, a rootless tree start with no node at all, right? Then, since insertbranch0 adds a node at

[Iup-users] [IUP 3.6 Windows 7] problem with IupTree dynamic filling

2012-07-02 Thread Benoit Germain
Hello, I have drop-replaced IUP 3.5 libraries with IUP 3.6. With this change, a custom dialog making use of an IupTree no longer works as before. Run the attached script to see the problem: with IUP 3.5, the IupTree on the right displays 4 folders. Each time you click on a folder, 2 subfolders ar

[Iup-users] [Windows 7, IUP 3.6] prebuilt 32 bits iup.dll version

2012-06-27 Thread Benoit Germain
Hello, This is really minor, but DLL details version info read 3.1.0.0. The other prebuilt DLLs don't say anything about their version. Keep up the good work, looking forward to the scrollbox and gridbox :-). Regards, -- Benoit. -

[Iup-users] [IUP 3.5 Windows7] separator labels with size and tabs

2012-06-08 Thread Benoit Germain
Hello, I have just noticed that when I give a size to a separator label, the client area isn't cleared properly when switching tabs. See attached script for a repro. BTW, how can I cause the separator label to expand symetrically around the separating line? I thought I could use PADDING, but unfo

Re: [Iup-users] [Iup 3.5, Windows 7] Questions about finding and highlighting substrings in a multiline text

2012-06-06 Thread Benoit Germain
2012/6/6 Antonio Scuri > Hi, > > ** ** > > There is a small error on your script: > > ** ** > >local i,j = string.match( caret, "(%d),(%d)") > > should be: > >local i,j = string.match( caret, "(%d+),(%d+)") > > ** > DOH! BTW, the original goa

Re: [Iup-users] [IUP 3.5, Windows 7] little problem with threading model passed to CoInitializeEx

2012-06-05 Thread Benoit Germain
2012/6/5 Antonio Scuri > Hi Benoit, > > > > I was not aware that this would affect also the Visual Styles. I > searched through the Win32 API documentation and found no relation between > the two. > In fact I observe the same thing when switching between LfW's lua.exe and wlua.exe to

[Iup-users] [IUP 3.5, Windows 7] little problem with threading model passed to CoInitializeEx

2012-06-05 Thread Benoit Germain
Hello, I have a Lua binding that initializes the services it binds by calling CoInitializeEx( 0x0, COINIT_MULTITHREADED|COINIT_SPEED_OVER_MEMORY); If I require iuplua before my module, my call to CoInitializeEx fails with error 0x80010106 (Can't change threading model after it was set). I've tr

[Iup-users] [Windows 7, IUP 3.5] setting iupclipboard.text can crash the application

2012-06-04 Thread Benoit Germain
Hello, Just to say that iup.clipboard{}.text = nil crashes, when iup.clipboard{}.text = "" does not. Maybe allowing nil to clear the clipboard just like we can do for text controls would be a good idea :-). Also, even when doing iup.clipboard{}.text = "" I still have iup.clipboard{}.textav

Re: [Iup-users] [Iup 3.5, Windows 7] Questions about finding and highlighting substrings in a multiline text

2012-06-04 Thread Benoit Germain
2012/5/28 Antonio Scuri > > Is it possible to format parts of the text already present in the > control? > > Yes. In fact, it shouldn't work the other way. From the documentation: > > "The formatting depends on the existing text, so if VALUE attribute is set, > all formatting is lost. You must

[Iup-users] [Iup 3.5, Windows 7] Questions about finding and highlighting substrings in a multiline text

2012-05-28 Thread Benoit Germain
Hello, I have a multiline text that collects logs and other interesting tags for debugging purposes. Stats help me identify the most interesting tags, and I want to find them in the detailed logs. To find a string in the control, I must get its VALUE attribute (which interns its contents as a big

Re: [Iup-users] [IUP 3.5, Windows 7] Tray notifications?

2012-04-27 Thread Benoit Germain
2012/4/26 Antonio Scuri : > >  Just added to 3.6: > > New: TRAYTIPBALLOON, TRAYTIPBALLOONDELAY, TRAYTIPBALLOONTITLE and > TRAYTIPBALLOONTITLEICON IupDialog attributes on Windows. And TRAYTIPMARKUP > on GTK. Great, thanks! >  If you want to test it I can upload a pre-compiled binary. No need, I'l

[Iup-users] [IUP 3.5, Windows 7] Tray notifications?

2012-04-25 Thread Benoit Germain
Hello, I have an application that can occasionally detect that a newer version is available. I would like to be able to show this as a tray notification popup, but I don't see anything to do so. An alternate solution would have been to change the traytip attribute, but this doesn't cause the tip t

[Iup-users] IUP 3.5: missing IupButton:destroy()?

2012-03-01 Thread Benoit Germain
Hello, IUP 3.5 doc says that IupDestroy exists in Lua under the forms: iup.Destroy(ih: ihandle) [in Lua] or ih:destroy() [in Lua] I implement a button strip with a hbox where I want to dynamically add and remove buttons. The strip contains a label that reacts to mouse buttons to show a popup tha

Re: [Iup-users] IupText MULTILINE and SCROLLBAR attributes (IUP 3.5, Windows 7)

2011-10-19 Thread Benoit Germain
2011/10/19 Antonio Scuri > Hi, > > ** ** > > Don’t worry about the IupMultiline being deprecated. It will never be > removed from IUP. There are some many applications using it that I can not > remove it. In fact should remove that “deprecated”. > > ** ** > > And there is no such t

Re: [Iup-users] IupText MULTILINE and SCROLLBAR attributes (IUP 3.5, Windows 7)

2011-10-19 Thread Benoit Germain
The problem is that IupMultiLine is deprecated as of version 3.0, so in theory it can disappear anytime (maybe in the 3.6 release even :-)). Also, it happens that I want to set MULTILINE to "HORIZONTAL" because I don't want the vertical scrollbar, so IupMultiLine doesn't do what I need anyway. OTO

[Iup-users] IupText MULTILINE and SCROLLBAR attributes (IUP 3.5, Windows 7)

2011-10-18 Thread Benoit Germain
Hello, I am trying to create a dialog where I have a multiline text control without scrollbars. To do so I set the SCROLLBAR attribute to "NO", but the text control displays scrollbars anyway whenever its contents require it to. Also, if AUTOHIDE is not set, the scrolling areas are always shown. I