Page 1 of 1
Set width according to module
Posted: Thu Jul 11, 2013 12:22 pm
by CoreStylerz
Hi!
Im starting learning some basic change of ruby modules.
Is possible to change the with of a ruby based gui according to the module area? Like it was possible with primitives?
Re: Set width according to module
Posted: Thu Jul 11, 2013 1:30 pm
by digitalwhitebyte
Chapter 8 - page 164
you can use the method
getViewSize
you have to pass the index input of view connector
getViewSize 0 ( zero indicate the first input of ruby edit )
it return an array of width e height
viewSizeVar = getViewSize 0
module_width , module_height = viewSizeVar[0], viewSizeVar[1]
or
module_width = viewSizeVar[0]
module_height = viewSizeVar[1]
just an example
Re: Set width according to module
Posted: Thu Jul 11, 2013 1:45 pm
by CoreStylerz
Thanks DWB.
I shall start study ruby rigth now. I have the time for doing it now.
Mi suggerisci un libro?
Re: Set width according to module
Posted: Thu Jul 11, 2013 8:50 pm
by digitalwhitebyte
Re: Set width according to module
Posted: Thu Jul 11, 2013 9:22 pm
by RJHollins
Thanks DWB !
educational material always appreciated

Re: Set width according to module
Posted: Fri Jul 12, 2013 9:25 am
by digitalwhitebyte
in order of complexity interactive online learning tutorials.
beginners.intermediates.advanced.