Re: [Iup-users] iup plot not respecting AXS_YMIN and AXS_YMAX

2017-02-07 Thread Karagy
Hi, Milind. In attach. require("iuplua") require("iuplua_plot") plot = iup.plot{ MARGINBOTTOM = 20, AXS_YAUTOMIN = "NO", AXS_YAUTOMAX = "NO", } plot:Begin(0) plot:Add(0, 109.9) plot:Add(1, 109.91) plot:Add(1, 109.92) plot:End() plot.AXS_YMIN = 109.80 plot.AXS_YMAX = 110.00 --plot.

Re: [Iup-users] Re: K_sXXX / iup.XkeyShift in SetGlobal "KEY" don'twork [Lua]

2016-03-15 Thread Karagy
3/15/2016 15:18, Robert Lin wrote: > It only move caret one character towards right, and won't select anything as > shift didn't press. > My final purpose is to use Ctrl+Shift+Right/Left to select word. Looks like an input language autoswitcher installed in system. --

Re: [Iup-users] Re: K_sXXX / iup.XkeyShift in SetGlobal "KEY" don'twork [Lua]

2016-03-15 Thread Karagy
3/15/2016 15:18, Robert Lin wrote: > On my Win7 64, IUP 3.17, Lua5.1 Can't reproduce problem on Win7 64, IUP 3.17, via lua5.1.exe/wlua5.1.exe/iuplua51.exe (both 32/64 bit versions). -- Transform Data into Opportunity.

Re: [Iup-users] K_sXXX / iup.XkeyShift in SetGlobal "KEY" don't work [Lua]

2016-03-15 Thread Karagy
Hi, 云履 . You example with iup.SetGlobal('KEY', iup.K_sRIGHT) - worked ok. With sequence: iup.SetGlobal('KEYPRESS', iup.K_LSHIFT) iup.SetGlobal('KEY', iup.K_RIGHT) iup.SetGlobal('KEYRELEASE', iup.K_LSHIFT) - it worked ok for me in you example (WinXP 32, IUP 3.17, via lua5.1). I.e. When pressed

Re: [Iup-users] About Spinmin and Spinmax of Text with Spin

2016-02-09 Thread Karagy
Hi. You can init spin with big range, and just update spinvalue (example in attach). Why not? require "iuplua" dlg = iup.dialog{ iup.frame{ iup.vbox{ NMARGIN = "8x8", iup.text{ SPIN = 'YES', SPINMIN = -1,

Re: [Iup-users] Question: Use natural size for minsize

2016-02-09 Thread Karagy
Hi, 云履! Try dialog.size = nil; iup.Refresh(dialog); -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web trans

Re: [Iup-users] iuplua matrixlist: toggle checkbox from code

2015-11-11 Thread Karagy
Thanks a lot, Antonio! 11/11/2015 22:17, Antonio Scuri wrote: >Hi, > >IupMatrixList inherits from IupMatrix. And in IupMatrix attributes are > cached until a redraw is force using the REDRAW attribute. So, right after > changing IMAGEVALUE, just call > > APP.mxlist.redraw

[Iup-users] iuplua matrixlist: toggle checkbox from code

2015-11-11 Thread Karagy
Hi, all! I about programmatically check/uncheck the iup.matrixlist entries. It's can be toggled (from code) immediately only when entry value updated. Else needed user's mouse-click to matrixlist area for redraw. It's ok? Play with example in attach. -- With best regards, Ka

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Karagy
Hi. You want do resize with alive scrollbars? 6/17/2015 10:41, Milind Gupta пишет: > Hi, > I have this sample attached. The aim is to resize the matrix > columns and cells automatically depending on the weight assigned to the > columns whenever the dialog is resized. The sizing algorith

Re: [Iup-users] Checkbox gap still present even with no text?

2015-06-17 Thread Karagy
Yes. But, for non-labeled toggles, extra gap can be eliminated via setting explicit rastersize. In any case, it already fixed by You. 6/18/2015 1:41, Antonio Scuri пишет: >No. The checkbox of the toggle has a fixed size in all native systems. I > don't recall seeing a way to change that nei

Re: [Iup-users] Checkbox gap still present even with no text?

2015-06-17 Thread Karagy
Hi. You can set explicit size for checkbox (example in attach). At least in iuplua. require "iuplua" iup.dialog({ iup.vbox{ NGAP = 24, ALIGNMENT = "ACENTER", iup.frame{iup.toggle{ TITLE = "With Title", },}, iup.frame{iup.toggle{},}, iup.frame{iup.togg

Re: [Iup-users] IUP 3.14- Windows Error

2015-05-27 Thread Karagy
fault package.cpath is missed semicolon between ".\?.dll" and "!\?53.dll" wbr, Karagy -- ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://l

Re: [Iup-users] Lua 5.3 with iup 3.14

2015-05-25 Thread Karagy
Hi, Milind. Check exactly name for luaL_openlib in your compiled dll and in official dll (via an hex editor). See also http://www.willus.com/mingw/yongweiwu_stdcall.html -- One dashboard for servers and applications acr

[Iup-users] IUP 3.13, iup.plot CLEAR not worked

2015-04-21 Thread Karagy
Hi, all. IUP 3.13, official bin, iuplua. In iup.plot the plot.CLEAR not worked. See example in attach. After several button clicks - it crashes. -- wbr, Karagy local iup = require("iuplua") require("iupluacontrols") require("iuplua_plot") local T = {

[Iup-users] iup.plot: wrong zoom for plot w/o title

2015-02-05 Thread Karagy
Hi, all. IUP 3.13, iuplua, iup.plot. For plot with undefined TITLE and explicit MARGINBOTTOM - all zooming operations scrolls-up away the X axis. See example in attach. Also, in iup-3.13_Docs.chm, for iup.PlotAddSamples missed 5-th argument (counter). -- With best regards, Karagy

[Iup-users] iuplua plot sometimes crashes

2015-02-02 Thread Karagy
Hi, all. WinXP 32bit. IUP 3.12. Used official binaries form sf.net. New iup.plot control (replacement for iup.pplot) sometimes crashes. Even simplest example, as i nattach. Can't stable reproduce. require("iuplua") require("iuplua_plot") plot = iup.plot{ TITLE = "Plot Test", MARGINBOTT

Re: [Iup-users] Create a dialog which hides on loosing focus

2014-12-29 Thread Karagy
Hi, Milind. You want hide main dialog or an dilog - the child of main dialog? -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media,

Re: [Iup-users] divider line

2014-12-23 Thread Karagy
Hi. Look to iup.label{SEPARATOR="HORIZONTAL",} and iup.label{SEPARATOR="VERTICAL",}. 12/23/2014 23:58, Milind Gupta пишет: > Hi, > I see in the iupcolordlg there is a divider line in the dialog that neatly > separates out some areas. How is that line drawn? Is it done using a canvas > or is th

Re: [Iup-users] iuptabs

2014-12-19 Thread Karagy
Yep. See "on_leave" callback for second tab in attached example. When you leave tab, it print value of edited text field. 12/19/2014 11:02, Milind пишет: Is it possible to read the current value in the editing text box? If I can read that then I can track the edition and read the current valu

Re: [Iup-users] iuptabs

2014-12-18 Thread Karagy
Hi, Antonio. Hi, Milind. 12/17/2014 19:35, Antonio Scuri пишет: Amazing.. I haven't notice that effect. Indeed the edition should have end when the user clicks on another control. Not always. In some of cases, user can be confused by visible behaviour. For example, editable empty dropdown li

Re: [Iup-users] wish for tabtitles size

2014-11-27 Thread Karagy
Thanks. I play with it via alien. And can change only height of tabs titles. Example in attach (valid only for win32 environment, TCM_SETITEMSIZE sent only by spin changes, text input not handled). 11/26/2014 19:16, Antonio Scuri пишет: This is possible only in Windows. And only when tabs i

[Iup-users] wish for tabtitles size

2014-11-24 Thread Karagy
Hi, all. It is possible (in future builds) to make tabtitles size can be explicitly specified? At least width (or rasterwidth) for horizontal tabtitles. -- with best regards, Karagy -- Download BIRT iHub F-Type

Re: [Iup-users] iuplabel natural size problem

2014-11-22 Thread Karagy
Hi. Let use explicit minsize, maxsize for greedy elements. Or, even explicit rastersize. For resize, the autocorrection for childs size is possible, but cumbersone. In attach example for busPane.ins. In general - this is wrong way. 11/21/2014 23:01, Milind Gupta пишет: Please help me figure out

Re: [Iup-users] iupfiledlg with filter

2014-11-13 Thread Karagy
Hi, Milind Gupta. It make sense only for non-multiple filters. For single filter you can perform custom check for file existence, and, if file exist - mimic warning dialog. Example in attach. But I can't setup properly PARENTDIALOG. 11/12/2014 2:14, Milind Gupta пишет: When using the filedlg

[Iup-users] example for iup.CopyClassAttributes

2014-10-20 Thread Karagy
Just for fun. -- -- Shared Lists factory -- local iup = require("iuplua") local SHList = {} function SHList:new(list) o = {} setmetatable(o, self) self.__index = self o.lists = {} -- holder for clones o.list = list -- source model return o end local function set_act

[Iup-users] call iup.Destroy() from child's callback

2014-09-28 Thread Karagy
Hi, all. In general, it is correct to call iup.Destroy(AnElement) from AnElemet's child callback? For sample: hbox = iup.hbox{} iup.Append({hbox, iup.button{ -- ... action = function(this) -- ... iup.Destroy(hbox) end, })

Re: [Iup-users] Using IUP element handle as a lua table key looses value

2014-09-06 Thread Karagy
Hi, Milind. First, print(obj) is, literally, print(tostring(obj)). Second, http://stackoverflow.com/questions/8683144/light-userdata-as-table-keys wbr, Karagy. -- Slashdot TV. Video for Nerds. Stuff that matters

[Iup-users] iup site

2014-09-06 Thread Karagy
Sorry for (in some way) offtop. Trying via browser http://www.tecgraf.puc-rio.br/iup/ I received: Forbidden You don't have permission to access /iup/ on this server. -- Slashdot TV. Video for Nerds. Stuff that matter

Re: [Iup-users] iuptree inside iuptabs in a iupsplit

2014-08-29 Thread Karagy
What about initial rastersize="0x0" w/o shrink="YES" ? comps.contentTree = iup.tree{expand="YES", tabtitle = "Contents", minsize="0x0", rastersize="0x0"} comps.structTree = iup.tree{expand="YES", tabtitle = "Structure", minsize="0x0", rastersize="0x0"} Then, you can setup necessary minsize ins

Re: [Iup-users] iuptree inside iuptabs in a iupsplit

2014-08-29 Thread Karagy
If You still needed limit min width for tabs with shrink = "YES" - just set iup.split minmax="200:1000", for sample, instead of "0:1000". 8/30/2014 0:19, Milind Gupta пишет: > Thanks for the replies. Thank you Karagy, by just adding shrink="YES" in > the

Re: [Iup-users] iuptree inside iuptabs in a iupsplit

2014-08-29 Thread Karagy
Thanx for iup.LayoutDialog() hint. 8/30/2014 0:30, Antonio Scuri пишет: > Thanks Karagy. I Forgot To mention That. > > Best, > Scuri -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.

Re: [Iup-users] iuptree inside iuptabs in a iupsplit

2014-08-29 Thread Karagy
What about iup.dialog{ ... shrink = "YES", ...} ? And no BORDER attribute in hbox or vbox. Enclose content to frame. 8/29/2014 11:23, Milind Gupta пишет: Hi, I have 2 iuptree elements in an iuptabs control which is in a iupsplit element. Somehow this combination makes the split bar not

[Iup-users] statically linked iuplua-pplot

2014-08-20 Thread Karagy
precompiled libs *_Win32_mingw4_lib? 3. What the optimal choices for threading model and exception handling for statically linked iuplua app? Note: mingw-builds joined mingw-w64 msys2 looks nice and is gaining popularity -- With best regards, Karagy

Re: [Iup-users] Dynamic Rich text document

2014-08-16 Thread Karagy
I ran this example using iuplua5.1.exe version 3.11. 8/16/2014 18:16, Milind Gupta пишет: > Hi Karagy, >Thanks for looking at it. I tried running the file you send but I > get the following error: > > lua: cd_buttons.wlua:112: attempt to call field 'backgroun

Re: [Iup-users] Dynamic Rich text document

2014-08-15 Thread Karagy
> Maybe it was a bad idea to make a call Refresh() within action() cb? within motion_cb(), of cource. -- ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.

Re: [Iup-users] Dynamic Rich text document

2014-08-15 Thread Karagy
Hi. In attach some example. But "but something went wrong" ... Maybe it was a bad idea to make a call Refresh() within action() cb? I not experienced in messages processing. require "cdlua" require "iuplua" require "iupluacd" --require "iupluacontrols" local function hex2cdcolor(s) local r,

Re: [Iup-users] MDI GUI question with iuplua 3.5 WinXP 32 bits.

2013-12-20 Thread Karagy
Hi, 阳光. If you want preserve titlebar for maximized MDI childs - just set menu for MDIFRAME dialog, and attach it to canvas MDIMENU attribute. See example in attach. Regards, Karagy APPNAME = 'MDI Demo' require('iuplua') MDIMenu = iup.menu{} MainForm = iup.dialog

Re: [Iup-users] canvas line

2013-12-16 Thread Karagy
asymmetry of half-circles on the edges of the line for an even thickness. I believe that if this was a bug - it is very low priority. Sorry to take away your time. -- Regards, Karagy. -- Rapidly troubleshoot problems before

Re: [Iup-users] canvas line

2013-12-14 Thread Karagy
lines. (not realised in this example) -- Regards, Karagy. require "cdlua" require "iuplua" require "iupluacd" local cnv = iup.canvas { rastersize = "80x80", expand = "NO", --border = "NO", -- user-defined attr

Re: [Iup-users] canvas line

2013-12-12 Thread Karagy
Sorry, I forgot to explain - in this example, a line will appear if you press the left mouse button on canvas. -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear p

Re: [Iup-users] canvas line

2013-12-12 Thread Karagy
In attach. Please send me a screenshot so I know what to expect here. WBR, Karagy <>-- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear pic

Re: [Iup-users] canvas line

2013-12-12 Thread Karagy
Failed to specify: only for cd.XOR WriteMode. -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. Wit

[Iup-users] canvas line

2013-12-12 Thread Karagy
end of the line appears vertical indentation height 1. Effect does not depend on the presence of border canvas. See example in attach. -- Regards, Karagy require "cdlua" require "iuplua" require "iupluacd" local debug_width = iup.label{ size = "5

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

2013-12-05 Thread Karagy
yLabel, fill{}, text{... And see how to actually behave within the grid boxes. Regards, Karagy. -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for fr

Re: [Iup-users] IUP 3.9 Released

2013-11-28 Thread Karagy
His problem: Needed "return iup.IGNORE" for block "if c == iup.K_CR then ... ". Sorry for subj offtop. WBR, Karagy. -- Rapidly troubleshoot problems before they affect your business. Most IT o

Re: [Iup-users] iuplua scrollbox example and questions

2013-10-31 Thread Karagy
> 3. Left mouse click on free scrollbox's space cause, sometime, realign > for content like "ADOWN". It's ok? More precise: content realingned to ABOTTOM when mouse moved under free space, while left mouse button is pressed. ---

[Iup-users] iuplua scrollbox example and questions

2013-10-31 Thread Karagy
Hi, all. For example in attach. 1. Setup scrollbox's size greater than the size of it contens. For example 200 x 200 via valuators max values. 2. Add few buttons. 3. Left mouse click on free scrollbox's space cause, sometime, realign for content like "ADOWN". It's ok? For next mouse-wheel's s

[Iup-users] wish for "close box" on tabs titles

2013-10-29 Thread Karagy
Hi all! It is possible to make subj functionality in future builds? For example as in firefox tabs. With best regards, Karagy. -- Android is increasing in popularity, but the open development platform that

[Iup-users] timer's cb overlap question

2013-10-18 Thread Karagy
Hi! I try to catch for iup.timer action_cb() overlap. But fail (example in attach). It's can overlap for same timer? require "iuplua" local LIMIT = 1 local MAX_LIMIT = 1000 lbl_lim = iup.label{ rastersize = "200x30", alignment = "acenter:acenter", title = LIMIT, } val = iup.va

Re: [Iup-users] docs improvement

2013-10-16 Thread Karagy
Hi. I confirm, for both win7 - x32 and x64 - the IupColorBrowser is working properly. Best, Karagy -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore

Re: [Iup-users] progressbar fgcolor in windows

2013-10-16 Thread Karagy
I want to warn against the removal of the IupGauge. At least in the docs it is marked as "Deprecated since 3.0, will be removed in a future version". On win7 with enabled visual styles, IupProgressBar is noticeably late showing its values. With disabled visual styles - all ok. See my example

Re: [Iup-users] docs improvement

2013-10-13 Thread Karagy
send the report as soon as the information will be able to organize. WBR, Karagy. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP,

[Iup-users] docs improvement

2013-10-11 Thread Karagy
Restrictions for PREDRAW_CB: It is bad idea to change axs_ymax inside this callback while axs_yautomax == "YES". It caused incorrect result for iup.PPlotTransform function (by incorrect margin

Re: [Iup-users] pplot TICKFORMAT

2013-10-09 Thread Karagy
ion (it looks horrible for me). With Best Regards, Karagy. >You can set it anywhere you like. But when AXS_XAUTOTICK=Yes then PPlot > can change the AXS_XTICKFORMAT to better represent the number. The > documentation was not clear on this, just added the following: > > "

[Iup-users] pplot TICKFORMAT

2013-10-09 Thread Karagy
Hi, all! WinXP 32bit IUP precompiled binaries form sf.net Versions 3.6 - 3.8. I can't overload tickformat. I set the values for AXS_XTICKFORMAT or/and AXS_YTICKFORMAT to "%02x", "%05i", but axes ticks shown as for default "%0.1f". I was trying to set attributes in the following locations: - on

[Iup-users] progressbar fgcolor in windows

2013-10-08 Thread Karagy
Hi! System: Windows XP 32 bit. Bug: fgcolor for iup.progressbar not worked. See my example in attach. Tested in IUP 3.6, 3.7, 3.8. With Best Regards, Karagy. require "iuplua" require "iupluacontrols" gauge = iup.gauge{ min = 0, max = 100, show_text = &

[Iup-users] delete tab in 3.8

2013-10-04 Thread Karagy
Hi, All! Tell me, please, how to delete the tab from tabs in iup 3.8? See my example in attach. It worked for 3.6 and 3.7. Any suggestion, comment is appreciated. With Best Regards, Karagy. --[[ Add / Remove tabs example 2012, by Karagy. Note: it's ok only for tonumbe