Set width according to module

For general discussion related FlowStone
Post Reply
User avatar
CoreStylerz
Posts: 327
Joined: Sun Jan 22, 2012 2:19 am
Location: italy
Contact:

Set width according to module

Post 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?
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
User avatar
digitalwhitebyte
Posts: 106
Joined: Sat Jul 31, 2010 10:20 am

Re: Set width according to module

Post 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
Last edited by digitalwhitebyte on Thu Jul 11, 2013 8:37 pm, edited 1 time in total.
User avatar
CoreStylerz
Posts: 327
Joined: Sun Jan 22, 2012 2:19 am
Location: italy
Contact:

Re: Set width according to module

Post by CoreStylerz »

Thanks DWB.
I shall start study ruby rigth now. I have the time for doing it now.

Mi suggerisci un libro?
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Set width according to module

Post by RJHollins »

Thanks DWB !

educational material always appreciated 8-)
User avatar
digitalwhitebyte
Posts: 106
Joined: Sat Jul 31, 2010 10:20 am

Re: Set width according to module

Post by digitalwhitebyte »

in order of complexity interactive online learning tutorials.

beginners.
intermediates.
advanced.
Post Reply