:: Automated Message :: Added Element Saving, Animations, Etc
|
ObscuritySRL updated on Saturday, December 26, 2015 |
|
Added Element Saving, Animations, Etc |
|
Added animation methods. This will work for certain properties such as color, height, offsetleft, offsettop, width, and more.
Added the eZElement.children() method.
Added the eZElement.load() and eZElementArray.load() methods. These will load the previously saved values or selected text for checkboxes, comboboxes, edits, and listboxes. To load an element, it must be given an ID.
Added eZElement.offsetBottom() and eZElement.offsetRIght() methods. These will return the bottom and right-most coordinates respectively.
Added the eZElement.save() and eZElementArray.save() methods. These will save the current values or selected text for checkboxes, comboboxes, edits, and listboxes. To save an element, it must be given an ID. |
|
|
Edit:
Here's a script to demonstrate animations and saving.
Simba Code:
program form;
{$i ezForm.simba}
var
form:eZForm;
height:int32;
procedure pSave();
begin
form.find().save();
end;
begin
form.create('Form');
form.addMemo('','s10','memo',[10,10],[200,25],nil);
form.addCombobox(['Combobox1','Combobox2','Combobox3'],'s10','combobox',[10,45],200,nil).readOnly(true);
form.addCheckbox('Checkbox','s10','checkbox',[10,80],nil);
form.addListbox(['Listbox1','Listbox2','Listbox3'],'s10','listbox',[10,105],[200,85],nil);
form.show().find().load();
height:=form.height();
addOnTerminate('pSave');
repeat
wait(100);
form.animate('height',height+75,500);
form.find('#memo')[0].animate('color',255,500);
form.animate('height',height,500);
form.find('#memo')[0].animate('color',0,500);
until false;
end.
Run it. Play with it, filling in some boxes, selecting list options, etc. Then, end it and restart it.