I can't modify constraints using PaintCode 2.
After selecting group or a single shape I am clicking on constraints I want to change but nothing happens.
Anyone knows how to deal with it???
I believe you need to add a frame to the canvas for constraints to be available.
Related
I'm new to alloy and i'm doing a little project. In the project i have some instances with different attributes that, with magic layout, i can put in the instance when showing the model. Is there a way to do the same thing with integers? I attach an image that i hope can describe better my issue, in the image you can see that the attributes occupied and type are in the socket, but the socketID no. So, i also wanted to put the integers (for example) in the socket to have a show without some useless instances/relations. I tried with the same approach used for the other attributes but is not working. I think it's because is an integer and not a custom sig.
I hope that the question is clear and thanks a lot in advance.
Not sure it's due to Magical Layout, unless they have implemented a special treatment for ints.
Anyway, the solution is to customize the "theme" yourself:
open the theme customization panel (e.g. by clicking the Theme icon).
Now two trees are displayed on the left, representing (top) the signature hierarchy and (bottom) all relations in your model: click there on socketId and then, at the top of the left panel, tick "Show as attribute" and untick "Show as arc", then apply your new theme by clicking Apply (top right), then click Close to close theme customization.
I'm using Draggabilly and Packery to build a optimized draggable layout as shown in this Codepen: https://codepen.io/rafaF/pen/MWjvjqO
I have some doubts about how to use Packery/Draggabily.
The first one is how to convert en element "no-draggable", i.e., avoid to be dragged. I've achieved this by no initializing its Draggabilly instance, but I would like also to not be sorted when dragging others elements.
In the other hand, I have not been able to set a fixed height on my Packery layout in order to limit how many elements fits in a column. My idea is that if you move an element to a column that has no free space, the most bottom element should be moved to the other column. I have not found any way to do this.
There is enabled and disable switch in Draggabilly instance that you create. So just disable it if you do not need it.
The second part has to be manually solved becuase the Packery and draggabily would try to adjust in the same layout giving you best possible fit. If you want to limit the height then you have to set and run the ShiftLayout() on pakery. Ideally I would leave it to packery to determine the best layout.
I’m configuring the layout for the UIView in the photo (photo in the link because I don’t have the points to upload it) and I’m having trouble configuring the constraints of the marked elements, which are the constraints for the two lines of buttons, the label that is between them and the label that is on the middle of the large image. The other elements are working correctly. I’ve tried different things but still don’t get it right. I’ll appreciate if you could help me with which are the correct constraints I have to add.
https://www.dropbox.com/s/6v1fsik9duvn0d7/Photo%20Apr%2023%2C%208%2042%2021%20AM.jpg?dl=0
Thanks
Added the buttons inside a view and add the constraints to the view and the buttons. It is working correctly now
I am newbie in Powerpoint and have a very weird problem. Is it possible somehow to add my own shape styles to Quick Styles? If I choose one of presets and then change something (color fill for example) this style is not anymore linked to quick style. And I can't find how to add on my own. And delete all that I don't need.
Any thoughts how to achieve that? I want to create my own shape styles. And link them all over the presentation in order to change quickly color schemes of all elements in presentation. I want to change one linked style to automatic apply to all shapes. Is it possible somehow?
Thanks,
Peter
We are building a PowerPoint add-in to do that. You are able to create styles (and select the attributes like color position etc.) then store them to a Library for later use / sharing. Let me know if you are interested to test the current version.
I am using Visual Studio 6.0 (VC++ with MFC) in Windows XP platform. I am trying to create a group box with the title of the group box as a check box. My intention is this: If the check box is enabled, the controls inside the group box should be enabled; or else disabled.
Is this possible to accomplish? If yes, please give me some directions.
Thanks.
There are a few things you can try, depending on how true you want to stay to your idea and how much work you are prepared to put into the effort:
Simple method
Use a normal group box, and then inside this make the first item be the checkbox. This is simple to accomplish, but you lose the goal of having the checkbox as the title.
Funky drawing method 1
Use a normal group box, then in the space over where you know the title is to go, place your checkbox. You will have to perform some tricky calculation to get it to fit in nicely and draw well without flicker.
Funky drawing method 2
Use some form of superclass or subclass/subclass on the group box. You can override the WM_PAINT handler to draw in only the frame for the group box. Place a normal checkbox in the place where you know the title is to go. This should work better because you will have more control over the drawing, but it is likely to be tricky to get right. In my experience, subclassing is lower risk to implement than superclassing.
Are you using the Dialog editor? If so, put down the group box. Next, on top of it, put a check box over the line of the group box. Edit the resource to set the Z order, or do it in code. You want the checkbox to be on top of the group box. Add a handler for the checkbox and enable / disable controls depending on the check box state.
I wrote one called CGroupCheck a few years back and it's available from CodeProject: http://www.codeproject.com/KB/buttons/groupcheck123.aspx