Questions tagged [iup]

This tag is for questions related to the portable user interface toolkit known as IUP. IUP is a portable toolkit for building graphical user interfaces offering a configuration API in three basic languages: C, Lua and LED. IUP's purpose is to allow a program to be executed in different systems without any modification, therefore it is highly portable.

This tag is for questions related to the portable user interface toolkit known as IUP. From that link:

IUP is a portable toolkit for building graphical user interfaces. It offers a configuration API in three basic languages: C, Lua and LED. IUP's purpose is to allow a program to be executed in different systems without any modification, therefore it is highly portable. Its main advantages are:

  • high performance, due to the fact that it uses native interface elements.
  • fast learning by the user, due to the simplicity of its API.
85 questions
1
vote
1 answer

IUP, button, tree, matrix

1) I try to load ico image to IUPbutton but with no success. After linking IM dll's and add proper header this is my approach: Ihandle *btn1, *btn2; Ihandle* img1; btn1 = IupButton("", NULL); IupSetAttribute(btn1, "MINSIZE", "24x24"); btn2 =…
Wine Too
  • 4,515
  • 22
  • 83
  • 137
1
vote
1 answer

IUP customizing/localizing controls

Is it possible to subclass or similar IUP controls to get modification in functionality on lower level so changes can apply to whole project (all instances of controls). 1) For example, in my locale we don't have decimal point but decimal coma sign…
Wine Too
  • 4,515
  • 22
  • 83
  • 137
0
votes
1 answer

IUP for Lua stopped working on Windows XP

I get the following error from require "iuplua" lua: budgelua5.lua:3: module 'iuplua' not found: no field package.preload['iuplua'] no file 'z:\Program Files\Lua\5.1\lua\iuplua.lua' no file 'z:\Program Files\Lua\5.1\lua\iuplua.luac' …
0
votes
0 answers

How do I install and add the IUP library to GCC on Windows for a C program?

I want to learn IUP https://www.tecgraf.puc-rio.br/iup/ I hastily went straight trying to run HelloWorld (hello.c) program as below: #include #include int main(int argc, char **argv) { IupOpen(&argc, &argv); …
mshahrim
  • 55
  • 11
0
votes
0 answers

Manipulating IUP Gridbox contents

Is there a technique by which I can freeze (say) the leftmost two columns in a wide Gridbox when scrolling across it? I know that I can do it using a MatrixEx control, but I need the cells in my grid to hold more than just alphanumeric data but…
ColeValleyGirl
  • 577
  • 15
  • 40
0
votes
0 answers

IUP is not working for Lua and throws an error that the module is not found, even if the file IUP is calling is in the same file

I have installed the IUP GUI for Lua (https://www.tecgraf.puc-rio.br/iup/, the website is in English, although it doesn't look like it). I have tried running IUP on my computer using their tutorial code: require("iuplua") iup.Message("Hello World…
Stacky
  • 1
  • 1
0
votes
1 answer

is there any way to handle KeyRelease event in IUP library?

i only found K_ANY event in the doc(Events and Callbacks -> Common -> K_ANY). how do i handle keypress and keyrelease events separately? is it possible in this library? can anyone help?
monkbeta
  • 35
  • 3
0
votes
1 answer

How to efficiently extract all values in a large master table that start with a specified string

I'm designing the UI for a Lua program, one element of which requires the user to either select an existing value from a master table or create a new value in that table. I would normally use an IUP list with EDITBOX = "YES". However, the number of…
ColeValleyGirl
  • 577
  • 15
  • 40
0
votes
0 answers

Why Do the Lua Binaries Contain .h and .c Files, but Lua IUP Binaries Contain .DLLs?

I'm trying to update an old app that uses Lua and IUP, but I'm not very experienced, so I'm wondering if I have too many files. I originally downloaded Lua 5.4.3 and followed a tutorial on how to turn those .c and .h files into Lua.dll, Lua.exe,…
Tailcoat
  • 13
  • 5
0
votes
1 answer

How Do I Update An Existing App's Lua Libraries?

I've been working on updating an old app that uses Lua 5.1 and IUP 2.5.1, and I want to update the versions of Lua and IUP it uses, but I'm a novice at this stuff, so I don't know how. I tried Googling for answers, but I had trouble understanding…
Tailcoat
  • 13
  • 5
0
votes
1 answer

How do I use the IUP THEME attribute/DEFAULTTHEME global attribute

IUP 3.26 introduced a THEME attribute: THEME common attribute and DEFAULTTHEME global attribute that works for all controls to apply a set of attributes at once. I'm using IUP 3.28 and have followed (I think) the documentation to standardise the…
ColeValleyGirl
  • 577
  • 15
  • 40
0
votes
1 answer

How to display arrays declared as vbox/hbox into main window?

I was creating a function that was supposed to display elements into the Main window after a certain function is performed in IUP for Lua. The problem was that whenever I run the function without arrays for vbox/hbox, the program displays the GUI…
ITmaster
  • 29
  • 7
0
votes
1 answer

IupText MASK attribute for hex string input

What should be the mask for iupText attribute MASK for entering a hexadecimal string of a certain length, for example, the 16-character sequence like 5A18F077D90ABB39? All I could think of was 16 times [0-9a-fA-F].
alemv
  • 1,088
  • 1
  • 14
  • 20
0
votes
0 answers

How do I arrange a group of buttons at the right side of the dialog box?

How do I arrange a group of buttons at the right side of the dialog box? Below is the sample source code but it does not work as expected: #include #include #include int main(int argc, char **argv) { IupOpen(&argc,…
alemv
  • 1,088
  • 1
  • 14
  • 20
0
votes
1 answer

Using IUP library with Lua For Windows, how do I force iup.getparam and other predefined dialogs to always be on top?

I have several lua programs that use only the predefined dialogs of IUP. Using IUP library with Lua For Windows, how do I force iup.getparam and other predefined dialogs to always be on top of other windows? Here is a simple…
FireyMerlin
  • 75
  • 1
  • 9