how do i change frame size dimension in the properties? - anylogic

i do not know why i cannot change the height and and wight in the frame properties.Any suggestion?

As Felipe said, it depends on the version.
In AnyLogic 8, You can change it directly as below:
In older versions, you change it in the experiment settings. Click on the experiment you want to run and amend as below:

Related

Flutter CupertinoNavBar make leading content expand?

How to make CupertinoNavBar leading widget Expand:
Currently, it fixed leading width, even make middle to be None, it still fix.
I know this is opposite with Apple Design princeples but there many APP such as Facebook messenger using same design.
Any way to achieve this?
I was seeing this problem and decided to look for the source code.
I found that it can be solved by changing the value of the maxWidth(by default is 300) to a bigger one inside navigation_toolbar.dart, line 113, class _ToolbarLayout and function performLayout.
But it's not a good idea to change an inbuilt class, so I recommend to change it in a copy of those classes.
Hope this helps!

Mupdf: how to reset the resolution of pdf view page PROPERLY when the CDialogEx(MFC) OnSize?

my pdf file is rendering in a CDialogEx(it's MFC Class),and what i want is to reset the resolution when the Dialog resized.....
I find a solution via the mupdf offical downloads site:first set the desired resolution with pdfapp_setresolution(...), then call pdfapp_reloadpage(...). This reaches my goal but not perfect, with this method the displaying dialog gets a conspicuous redrawing (first the background color, then recovered back normal)...
anybody have a better optimization? thanks
1st. resize the pdfapp_t object according to the view_window size via API pdfapp_onresize()
2nd. adjust the resolution of pdfapp_t object//#attentison# here the resolution needs some transformation on the basis of yr actual requirement, referencing the API pdfapp_autozoom() in pdfapp.c source file.
3rd. show page via pdfapp_showpage()
thats all :) maybe helpful to sb.
PS:lesson is that referencing the official document or example in details first :)

Bild vergrößern mit Fancybox

I use ModX and would like to change the size of a displayed image under "fancybox". However, I can not find the CSS file in which the details are.
Code-Picture
The "element.style" can be seen in the picture. This is likely to be created. What I want to change is the "width: 494px;" To adjust the overall size of the image. Where can I find that ?
If you need to change that width - than change it in fancybox options - http://fancybox.net/api
Let me know if you need further help with that. You can and should use pthumb for the resizing and caching before passing into a slider or lightbox tool.
pthumb is the fork of phpthumbof.
https://modx.com/extras/package/pthumb

UILabel "vibrates" all the time

I recently noticed that my UILabels in my project became "vibrating", which means their widths (or maybe locations) change all the time and never stop.
All these "vibrating" labels are using dynamic font, set as ShrinkContent.
I would like to ask how to solve this problem, or just I shouldn't use UILabel in such a way?
Thank you.

Xcode6: Is there any easy way to copy constrains between size classes?

I setup constrains in wAny hAny size class, and it worked on iPhone & iPad simulators.
Then I switched to wAny hCompact size class and made some changes
It looks good in iPhone landscape mode, but change nothing in iPad, because iPad is wRegular hRegular. I try to apply these constrains to wRegular hAny size class, but can't find a quick way to do that. It makes no sense to manually modify all the constrains again.
I found that if I double click a constrain in Inspector panel, there's a option to install the constrain to other size classes. But this is only for a single constrain...
So, is it possible to apply all the constraints from one size class to another?
Thought i'd post this even though Hannes answer was accepted as it might be of use to somebody. You can bulk update the size classes for your constraints by editing the source code directly. Generally a bad idea to edit IB generated XML directly but I have performed an update using good old find and replace and it's saved me a lot of time.
Obvious disclaimer: make a backup of the file in case something goes horribly wrong ...
Look for the nodes like:
<variation key="heightClass=(Size Class)-widthClass=(Size Class)">
In my case I wanted to transplant all my 'Compact Width/Compact Height' constraints to 'Any Width/Compact Height', and was able to achieve this by doing a find/replace of '-widthClass=compact' with an empty string to change 'heightClass=compact-widthClass=compact' to just "heightClass=compact".
To get to source code view right click the storyboard file in xcode and select 'Open As > Source Code'
Pretty straightforward in this instance and a lot easier than doing it in IB as I had lots of constraints to update.
Select the Constrains on the left panel.(Select all the constraints). Then tap on Attribute Inspector on the right panel. Then add the class you want to add like how we add the UI elements.
Ref Image
No, you cannot edit all the constraints together.
But for each, you simply click that plus button in front of Installed and add wAny hAny and select that. Then your constraint will apply to all size classes. You can add more options and thus, decide when constraints apply.
Find and replace story board code:
I did this to migrate from compact-regular to any/any . Works for me .
Find - heightClass=regular-widthClass=compact
Replace - default
For other size clasees find the size string appropriately and resize.
Kudos!!
Update constraints at the end. Else everything would be not as expected.