No. I have the problem even with a simple test like the attached. But
it works fine in other machine with an old Ubuntu system. I will update
and rebuild IUP to see if the problem persist. Or maybe update my
system to Leap 15.0
Germán
El jue, 28-02-2019 a las 14:45 -0300, Antonio Scuri escribió:
>   I could not reproduce the problem here. I'm using Ubuntu 18.04 with
> GTK 3.22
>   Are you using some special background color or foreground color in
> the IupMatrix or dialog?
> 
> Best,
> Scuri
> 
> 
> 
> Em qui, 28 de fev de 2019 às 13:43, Antonio Scuri <antonio.scuri@gmai
> l.com> escreveu:
> >   This looks like a problem in IupText FGCOLOR+BGCOLOR. I'll take a
> > look.
> > Best,
> > Scuri
> > 
> > 
> > Em qui, 28 de fev de 2019 às 04:52, Germán Arias <germanandre@gmx.e
> > s> escreveu:
> > > Hi,
> > > 
> > > 
> > > 
> > > On OpenSUSE Leap 42.3 with Gtk 3.20.10 I have a problem with
> > > IupMatrix.
> > > 
> > > When you type something in one of the textfields, you don't see
> > > what
> > > 
> > > you are typing. The text you enter appears after press RETURN.
> > > But this
> > > 
> > > was not the behavior at IUP 3.24. Is this a bug? I have IUP
> > > updated to
> > > 
> > > SVN.
> > > 
> > > 
> > > 
> > > Germán
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > 
> > > Iup-users mailing list
> > > 
> > > Iup-users@lists.sourceforge.net
> > > 
> > > https://lists.sourceforge.net/lists/listinfo/iup-users
> > > 
> > > 
> 
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <iup.h>
#include <iupcontrols.h>
#include <cd.h>

int editTable_cb(Ihandle *ih, int lin, int col, char* newval)
{
  printf("Edited \n");
  
  return IUP_DEFAULT;
}

Ihandle *create_mat(void)
{
  Ihandle *mat = IupMatrix(NULL); 
  
  IupSetAttribute(mat,"NUMCOL","5"); 
  IupSetAttribute(mat,"NUMLIN","10"); 
  
  IupSetAttribute(mat,"NUMCOL_VISIBLE","3");
  IupSetAttribute(mat,"NUMLIN_VISIBLE","4");
  
  IupSetAttribute(mat,"RESIZEMATRIX","YES");
  IupSetCallback(mat, "VALUE_EDIT_CB", (Icallback)editTable_cb);

  return mat;
}

/* Main program */
int main(int argc, char **argv)
{
  Ihandle *dlg;
  IupOpen(&argc, &argv);       
  IupControlsOpen ();

  dlg = IupDialog(create_mat());
  IupSetAttribute(dlg, "TITLE", "IupMatrix test");
  IupShowXY (dlg,IUP_CENTER,IUP_CENTER);
  IupMainLoop ();
  IupClose ();  
  return EXIT_SUCCESS;

}
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to