Re: [Iup-users] GridBox slowness and more - Was: Re: Can I get my labels and fields to vertically ACENTER in an hBox?

2015-07-15 Thread Antonio Scuri
Hi,

  I was thinking. When you resize the dialog it takes the same long time?

Best,
Scuri


On Sat, Jul 11, 2015 at 4:08 PM, Antonio Scuri sc...@tecgraf.puc-rio.br
wrote:

Ok. So it is not exclusive to the gridbox. I will do some tests here to
 compute the time. But only on monday...

 Best,
 Scuri


 On Sat, Jul 11, 2015 at 3:22 PM, Jörg F. Wittenberger 
 joerg.wittenber...@softeyes.net wrote:

 Am 10.07.2015 um 20:27 schrieb Antonio Scuri:
  Hi,
 
We have here dialogs with literally hundreds of controls with many
 vbox
  and hbox. And it is amazingly fast, so it does not make sense gridbox
 being
  slow and vbox or hbox not. This could be really a bug.
 
Can you do a simple test? Simply rename the IupGridBox to IupVbox on
 your
  code. It will look odd but all the controls will be here and it will be
  almost the same computational work for both cases. If this configuration
  turns out to be slow too then it is something else. If works ok (despite
  visual arrange) then there is something wrong in gridbox and I should
  investigate further.

 Indeed.  When I change gridbox to vbox, it will still need about a
 second to format the 11x13 table.  If I use matrix, it takes maybe maybe
 50-100ms (how would I measure this instead of feeling a guess?).

 
  Best,
  Scuri
 
 
  On Fri, Jul 10, 2015 at 2:24 PM, Jörg F. Wittenberger 
  joerg.wittenber...@softeyes.net wrote:
 
  Am 10.07.2015 um 14:52 schrieb Antonio Scuri:
   Hi Jörg,
 
Please start a new thread, instead of replying an existing one to
 ask
  different questions. Or the answers will get mix up, and it will be
  harder
  from me to process them all.
 
  Sorry.  Done.  I felt it being related.
 
About the original thread
  ...
About the GridBox, that is not normal. GridBox is just a
 combination of
  Vbox and Hbox algorithms. But it is a relatively new control, so maybe
  there is a bug that I didn't know of.
 
  Ah, OK.  That explains it.  After I sent the message I learned that
  matrixex != matrix ;-) and tried the same thing as a matrix.
  Reasonably responsive.  So maybe that's showing that LaTeX alike
  algorithms have their cost.  I shall be careful when feeding many cells
  into GridBox.  (Maybe it's worth to note this in the docs.  GridBox
  looks simple - that's cool - but may be computationally expensive.)
 
  Have you used other boxes to check if they have the same behavior?
 
  Sort of.  I'm new.  Everything else I tried so far is about as
  responsive as I'd expect it to be from experience.
 
  Is it Lua or C? Can you send me a sample code?
 
  Assume C.  That's what it boils down to eventually.  A single pthread
  running C code.
 
  For the pedantic, that's a bit superficial.  It's neither C or Lua what
  I actually wrote.  It's Chicken Scheme.  I started here:
  http://wiki.call-cc.org/iup-tutor
  and ended up calling iup the second best thing since sliced bread (or
  something alike).
 
About MatrixEx I notice that I forgot to add it to the Makefile in
 the
  iup root folder. Just go to the srcmatrixex folder and type make.
 
  Thanks.  Will do.
 
  First let me see why the hell those non-modal dialogs appear to be
  problematic.  (But I wouldn't be surprised if the problem's reason
 turns
  out to be looking at my screen.)
 
  Best
 
  /Jörg
 
 
 
 
 --
  Don't Limit Your Business. Reach for the Cloud.
  GigeNET's Cloud Solutions provide you with the tools and support that
  you need to offload your IT needs and focus on growing your business.
  Configured For All Businesses. Start Your Cloud Today.
  https://www.gigenetcloud.com/
  ___
  Iup-users mailing list
  Iup-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/iup-users
 
 
 
 
 
 
 --
  Don't Limit Your Business. Reach for the Cloud.
  GigeNET's Cloud Solutions provide you with the tools and support that
  you need to offload your IT needs and focus on growing your business.
  Configured For All Businesses. Start Your Cloud Today.
  https://www.gigenetcloud.com/
 
 
 
  ___
  Iup-users mailing list
  Iup-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/iup-users
 



 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/
 ___
 Iup-users mailing list
 Iup-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/iup-users



--

Re: [Iup-users] GridBox slowness and more - Was: Re: Can I get my labels and fields to vertically ACENTER in an hBox?

2015-07-11 Thread Antonio Scuri
   Ok. So it is not exclusive to the gridbox. I will do some tests here to
compute the time. But only on monday...

Best,
Scuri


On Sat, Jul 11, 2015 at 3:22 PM, Jörg F. Wittenberger 
joerg.wittenber...@softeyes.net wrote:

 Am 10.07.2015 um 20:27 schrieb Antonio Scuri:
  Hi,
 
We have here dialogs with literally hundreds of controls with many vbox
  and hbox. And it is amazingly fast, so it does not make sense gridbox
 being
  slow and vbox or hbox not. This could be really a bug.
 
Can you do a simple test? Simply rename the IupGridBox to IupVbox on
 your
  code. It will look odd but all the controls will be here and it will be
  almost the same computational work for both cases. If this configuration
  turns out to be slow too then it is something else. If works ok (despite
  visual arrange) then there is something wrong in gridbox and I should
  investigate further.

 Indeed.  When I change gridbox to vbox, it will still need about a
 second to format the 11x13 table.  If I use matrix, it takes maybe maybe
 50-100ms (how would I measure this instead of feeling a guess?).

 
  Best,
  Scuri
 
 
  On Fri, Jul 10, 2015 at 2:24 PM, Jörg F. Wittenberger 
  joerg.wittenber...@softeyes.net wrote:
 
  Am 10.07.2015 um 14:52 schrieb Antonio Scuri:
   Hi Jörg,
 
Please start a new thread, instead of replying an existing one to ask
  different questions. Or the answers will get mix up, and it will be
  harder
  from me to process them all.
 
  Sorry.  Done.  I felt it being related.
 
About the original thread
  ...
About the GridBox, that is not normal. GridBox is just a combination
 of
  Vbox and Hbox algorithms. But it is a relatively new control, so maybe
  there is a bug that I didn't know of.
 
  Ah, OK.  That explains it.  After I sent the message I learned that
  matrixex != matrix ;-) and tried the same thing as a matrix.
  Reasonably responsive.  So maybe that's showing that LaTeX alike
  algorithms have their cost.  I shall be careful when feeding many cells
  into GridBox.  (Maybe it's worth to note this in the docs.  GridBox
  looks simple - that's cool - but may be computationally expensive.)
 
  Have you used other boxes to check if they have the same behavior?
 
  Sort of.  I'm new.  Everything else I tried so far is about as
  responsive as I'd expect it to be from experience.
 
  Is it Lua or C? Can you send me a sample code?
 
  Assume C.  That's what it boils down to eventually.  A single pthread
  running C code.
 
  For the pedantic, that's a bit superficial.  It's neither C or Lua what
  I actually wrote.  It's Chicken Scheme.  I started here:
  http://wiki.call-cc.org/iup-tutor
  and ended up calling iup the second best thing since sliced bread (or
  something alike).
 
About MatrixEx I notice that I forgot to add it to the Makefile in
 the
  iup root folder. Just go to the srcmatrixex folder and type make.
 
  Thanks.  Will do.
 
  First let me see why the hell those non-modal dialogs appear to be
  problematic.  (But I wouldn't be surprised if the problem's reason turns
  out to be looking at my screen.)
 
  Best
 
  /Jörg
 
 
 
 
 --
  Don't Limit Your Business. Reach for the Cloud.
  GigeNET's Cloud Solutions provide you with the tools and support that
  you need to offload your IT needs and focus on growing your business.
  Configured For All Businesses. Start Your Cloud Today.
  https://www.gigenetcloud.com/
  ___
  Iup-users mailing list
  Iup-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/iup-users
 
 
 
 
 
 
 --
  Don't Limit Your Business. Reach for the Cloud.
  GigeNET's Cloud Solutions provide you with the tools and support that
  you need to offload your IT needs and focus on growing your business.
  Configured For All Businesses. Start Your Cloud Today.
  https://www.gigenetcloud.com/
 
 
 
  ___
  Iup-users mailing list
  Iup-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/iup-users
 



 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/
 ___
 Iup-users mailing list
 Iup-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/iup-users


--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your