09-14-2020 08:52 AM
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) ?
Solved! Go to Solution.
09-14-2020 09:02 AM - edited 09-14-2020 09:04 AM
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"…
09-14-2020 09:19 AM
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.
09-14-2020 10:09 AM - edited 09-14-2020 10:26 AM
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....
09-14-2020 10:40 AM - edited 09-14-2020 10:42 AM
@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.
09-14-2020 01:17 PM
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.
09-14-2020 01:51 PM
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?
09-14-2020 02:18 PM
GerdW, yes, I should make my question clearer. Sorry for that.
09-14-2020 02:49 PM - edited 09-14-2020 02:50 PM
09-14-2020 03:47 PM - edited 09-14-2020 04:03 PM
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>
???