LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resize cluster including elements inside ?

Solved!
Go to solution
Highlighted

I do have a cluster with some elements inside on my GUI. I'd like to resize cluster (manually with mouse) including all elements inside. Is it possible ? Or at least partially (so frames of elements change and I manually change e.g. text size or so afterwards) ?


*** LV2018 ***
0 Kudos
Message 1 of 14
(325 Views)
Highlighted

Hi petr,

 


@petrnowak wrote:

I do have a cluster with some elements inside on my GUI. I'd like to resize cluster (manually with mouse) including all elements inside. Is it possible ? Or at least partially (so frames of elements change and I manually change e.g. text size or so afterwards) ?


You can change/resize any cluster element using the mouse.

You can resize the cluster using the mouse or by using it's "Resize" properties to adapt automatically…

You can also change any labels as you like.

 

I recommend to create a strict typedefinition for this cluster: use always typedefinitions for cluster, use strict ones for FP elements visible to the user…

 

P.S.: the image in your signature is "not found"…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 14
(321 Views)
Highlighted

Ofcourse it's possible, but it's pretty manual and messy.

You'll basically have to Catch the Mouse down to start a resize state, then use Mouse move-events to resize stuff until you get a mouse up-event at which you end the state. Attached is a starting Point that resizes the cluster, it can 'easily' be expanded with dynamic Control resizing.

If the dynamic resize isn't needed, you can resize the Controls in the mouse up-event if it's in the resize-state.

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 14
(304 Views)
Highlighted

I'm afraid you TOTALLY don't understand my question. I asked if cluster could be resized including its internal elements SIMULTANEOUSLY !!!!!!!! I dont want to resize cluster first and then all of its elements one by one. Do you get it now ? An I want to do it in development phase (not programmatically).

Reason: I do have some prepared cluster with control elements like buttons etc. During deploy phase I should adapt the cluster to target display and target control like for example touch screen. So I need to enlarge cluster including elements so they are big. I can do it element by element but its to laborious. Is it a way to do it at once? To rezice cluster including elements in one hold a drag operation? This operation doesn't need to be perfect, I can correct minor inaccuraties or so later.
Do it element by element is a tedious job....

 


*** LV2018 ***
0 Kudos
Message 4 of 14
(282 Views)
Highlighted
Solution
Accepted by petrnowak

@petrnowak wrote:

I'm afraid you TOTALLY don't understand my question. I asked if cluster could be resized including its internal elements SIMULTANEOUSLY !!!!!!!! I dont want to resize cluster first and then all of its elements one by one. Do you get it now ? An I want to do it in development phase (not programmatically).

Reason: I do have some prepared cluster with control elements like buttons etc. During deploy phase I should adapt the cluster to target display and target control like for example touch screen. So I need to enlarge cluster including elements so they are big. I can do it element by element but its to laborious. Is it a way to do it at once? To rezice cluster including elements in one hold a drag operation? This operation doesn't need to be perfect, I can correct minor inaccuraties or so later.
Do it element by element is a tedious job....

 


Do you interact with people often?  Just sayin'...

One way to do this (kind of) is to group all the elements together and resize the group.  Have the cluster resize to fit.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 5 of 14
(272 Views)
Highlighted

Hi Bill, I interact with people quite often. I have stated in my first question clearly I want to change all elements of cluster at once and that I want to do it with mouse. First answer was about simple resizing cluster. The second one was programmatic way. I'm sorry my answer to these was maybe a little bit rough.

Thanks for your answer that was exactly to the matter. "Grouping" is exactly what I need.


*** LV2018 ***
0 Kudos
Message 6 of 14
(232 Views)
Highlighted

Hi Petr,

 


@petrnowak wrote:

I have stated in my first question clearly I want to change all elements of cluster at once and that I want to do it with mouse.


Well, you wrote:


@petrnowak wrote:

I'd like to resize cluster (manually with mouse) including all elements inside.


You didn't say you want to do this "at once", so I told you to resize/change any cluster element as needed!

Maybe you should write your questions with all details?

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 7 of 14
(221 Views)
Highlighted

GerdW, yes, I should make my question clearer. Sorry for that.


*** LV2018 ***
0 Kudos
Message 8 of 14
(217 Views)
Highlighted

Hi Petr,

 

the image in your signature still is broken:

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 9 of 14
(209 Views)
Highlighted

EDIT: nevermind. Signature problem solved. Thanks for remind me, Gerd...

 

 

GerdW, I have tried to correct my signature however it doesnt work. I cant find how to format it correctly. I see your one works ok.
Is it correct?

<img src="https://uloz.to/file/5eM7MEEl1mS8/cldsmall-jpg" border=0>

???


*** LV2018 ***
0 Kudos
Message 10 of 14
(198 Views)