| View previous topic :: View next topic |
| Author |
Message |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Wed Jan 08, 2014 12:35 pm Post subject: Weird CEForm, FormDesigner bug? [CE bug] |
|
|
This form initially was created by faizangmc (game "Cricket Captain 2013"). After many FormDesigner operations, he can not upload his CT.
I used his form in my own project. This an empty Form, without any controls, with small icon only.
CT file is still over 2MB.
Probably there are leftovers from previous icons or CEImage bitmaps. I don't know. Maybe it is FormDesigner bug.
https://drive.google.com/uc?export=download&id=0BwMAnE6mjogMUWJZZGdNRUNZc2M _________________
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25821 Location: The netherlands
|
Posted: Wed Jan 08, 2014 1:49 pm Post subject: |
|
|
fixed in the svn
Just open the table, edit the form and close the designer. Then save the table and all useless garbage should be gone _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Wed Jan 08, 2014 3:13 pm Post subject: |
|
|
Thank you.
Small request, if you will. Advanced anchoring inside FormDesigner.
I figured out I can use anchoring with Lua. Should be easier with FormDesigner than with Lua:
| Code: | label1.Caption = 'very very long caption'
label1.Anchors = '[akRight, akBottom]'
label2.Caption = 'short caption'
label2.BorderSpacing.Top = 2
label2.AnchorSideLeft.Control = label1 -- set sibling
label2.AnchorSideLeft.Side = 'asrCenter'
label2.AnchorSideTop.Control = label1
label2.AnchorSideTop.Side = 'asrBottom'
-- AnchorSideTop asrTop
-- Anchor top side to top side of sibling. Use BorderSpacing to set a distance.
-- BorderSpacing of sibling is ignored.
-- AnchorSideTop asrBottom
-- Anchor top side to bottom side of sibling. The kept distance is defined
-- by both BorderSpacing properties of this and sibling.
-- AnchorSideTop AnchorSideBottom asrCenter
-- Center control vertically relative to the given sibling.
-- BorderSpacing is ignored.
-- AnchorSideBottom asrTop
-- Anchor bottom side to top side of sibling. The kept distance is defined
-- by both BorderSpacing properties of this and sibling.
-- AnchorSideBottom asrBottom
-- Anchor bottom side to bottom side of sibling. Use BorderSpacing to set
-- a distance. BorderSpacing of sibling is ignored.
-- AnchorSideLeft asrTop
-- Anchor left side to left side of sibling. Use BorderSpacing to set
-- a distance. BorderSpacing of sibling is ignored.
-- AnchorSideLeft asrBottom
-- Anchor left side to right side of sibling. The kept distance is defined
-- by both BorderSpacing properties of this and sibling.
-- AnchorSideLeft AnchorSideRight asrCenter
-- Center control horizontally relative to the given sibling.
-- BorderSpacing is ignored.
-- AnchorSideRight asrTop
-- Anchor right side to left side of sibling. The kept distance is defined
-- by both BorderSpacing properties of this and sibling.
-- AnchorSideRight asrBottom
-- Anchor right side to right side of sibling. Use BorderSpacing to set
-- a distance. BorderSpacing of sibling is ignored.
-- * "The kept distance is defined by both BorderSpacing properties of this and sibling"
-- for example for AnchorSideTop asrBottom
-- spacing = max(this.BorderSpacing.Top, sibling.BorderSpacing.Bottom) |
I think I found another "bug".
It happens when we have two or more controls with the same name. I found this after I selected few controls from UDF1, copied them to clipboard, and pasted to UDF2.
If we somehow save CT file, CEForm with two or more controls which have the same name, we are doomed (we have to design CEForm from the beginning). _________________
|
|
| Back to top |
|
 |
|