Page 3 of 3 FirstFirst 123
Results 51 to 73 of 73

Thread: ezForm

  1. #51
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Fixed Tab Event Handlers and Form Methods
    :: Automated Message ::

    ObscuritySRL updated on Tuesday, December 08, 2015
    Fixed tab event handlers to occur after the tab has been switched.
    Previously, it would supply the last tab rather than the current.

    Fixed form window styles.

    Fixed eZForm.prop('width') and eZForm.width() to return the correct
    values.

    Fixed eZElement.parent() methods to ensure that the elements are owned
    by the same form.

    Fixed eZElement.offsetTop() to return the correct value for tabs.

    Added the tComponent.getForm() method to be used internally. This
    differs from tComponent.getOwner() in that if the component is a child
    or grandchild of a tab, the tab's tPageControl would be returned.

    43 additions, 11 deletions.
    A total of 1 files were affected:



    Last edited by Obscurity; 12-10-2015 at 04:38 AM.

  2. #52
    Join Date
    Feb 2015
    Posts
    422
    Mentioned
    41 Post(s)
    Quoted
    226 Post(s)

    Default

    I wasn't sure where I should post this.

    The prosocks.dll linked from the oglib setup thread doesn't work with ezForm. shoots an error in line 1664 unknown declaration "init" in ezForm.simba, the line is _Socket.init();

    and the prosocks.dll linked from the ezForm thread doesn't work with the oglib setup script from the oglib thread. shoots an error at line 41 of the setup script, Unknown declaration "pro_initSocket"

    Just thought I'd let you know in case you weren't aware.

    Edit: Also the prosocks.dll from the ezForm thread is 1996 KB, while the one from the oglib thread is 2054 KB, so I'm assuming its just different versions.

  3. #53
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    @fady; Yes, ezForm requires the newest. I don't recall what ogLib uses ProSocks for - I'll take a look at it over the next few days.




    Skype: obscuritySRL@outlook.com

  4. #54
    Join Date
    Jan 2012
    Location
    East Coast
    Posts
    733
    Mentioned
    81 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Obscurity View Post
    recall what ogLib uses ProSocks for
    auto-updater.

  5. #55
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    :: 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.
    Last edited by Obscurity; 01-03-2016 at 06:40 AM.

  6. #56
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    :: Automated Message ::
    Added Default Handler Param, New Methods

    ObscuritySRL updated on Sunday, January 03, 2016
    Added Default Handler Param, New Methods
    Added default event handlers for creating elements. From now on, you'll
    no longer need to specify nil if the element has no handler specified.

    Added the eZForm.children() method. Unlike the eZForm.find() method,
    this method will not return grand-children.

    Added the eZElement.cols() method to go along with the cols property for
    listboxes.
    Fixed Out Of Memory Error, eZElement.parent(), Etc
    Fixed a bug which was causing the eZElement.parent() method to return
    the incorrect element.

    Fixed an error caused internally when tComponent.getForm() was called.

    Fixed a bug where getting or setting certain element properties, such as
    height, on tabs would cause an infinite loop.



  7. #57
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    Thank you; i didn't even notice the 26th revision - 'pSave'.

    Great work.

    <------------------>



  8. #58
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    :: Automated Message ::
    Added Methods, Fixed Flashing, Etc

    ObscuritySRL updated on Wednesday, February 17, 2016
    Added Methods, Fixed Flashing, Etc
    Added eZElement.empty() for edit and memo.

    Added eZElement.readOnly() method.

    Fixed flashing issues when rapidly changing or assigning selections to
    combobox and listboxes.



  9. #59
    Join Date
    Jan 2012
    Location
    Long Island, NY
    Posts
    413
    Mentioned
    5 Post(s)
    Quoted
    95 Post(s)

    Default

    Awesome work, using this for setups from now on!


  10. #60
    Join Date
    Feb 2016
    Posts
    14
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Hey guys
    Anyone know of a simpler way to edit the image in an image element?

    At the moment I've been doing
    Simba Code:
    DrawBitmap(MyBitmap,tImage(mapImage).getCanvas(),10,10);
    But this really likes to give access violation exceptions, so I'm a bit at a loss.
    (If anyone's curious i'm rewriting this Radial Walker Utility by tls in EZForm)

  11. #61
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    269
    Mentioned
    17 Post(s)
    Quoted
    161 Post(s)

    Default

    I'm not sure I understood it right, but I cannot seem to assign a procedure to the vEventHandler parameter? I tried this but it only crashed Simba:
    Simba Code:
    program new;
    {$I ezForm.simba}
    var
      Form : ezForm;

    procedure buttonPressed();
    begin
      Writeln('Yay you pressed me!');
    end;

    procedure loadForm();
    begin
      Form.create('Test');
      Form.addButton('Press me', 's12', '', [10, 10], [100, 25], @buttonPressed);
      Form.show();

      while true do
        Wait(1);
    end;

    begin
      loadForm();
    end.
    "Once you begin to think, you can't stop."

    Life > 0

  12. #62
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    Quote Originally Posted by kristi View Post
    snip
    I forget the reason, i remember obs told me awhile back that it had to be native. Try something like this.

    Simba Code:
    program new;
    {$i ezForm.simba}
    var
      Form : ezForm;

    procedure buttonPressed; native;
    begin
      //whatever you want here
    end;

    procedure loadForm();
    begin
      Form.create('Test');
      Form.addButton('Press me', 's12', '', [10, 10], [100, 25], buttonPressed);
      Form.show();
    end;

    begin
      loadForm();
      repeat
        wait(100);
      until false;
    end.
    Tsunami

  13. #63
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    269
    Mentioned
    17 Post(s)
    Quoted
    161 Post(s)

    Default

    Quote Originally Posted by Lucidity View Post
    I forget the reason, i remember obs told me awhile back that it had to be native. Try something like this.

    Simba Code:
    program new;
    {$i ezForm.simba}
    var
      Form : ezForm;

    procedure buttonPressed; native;
    begin
      //whatever you want here
    end;

    procedure loadForm();
    begin
      Form.create('Test');
      Form.addButton('Press me', 's12', '', [10, 10], [100, 25], buttonPressed);
      Form.show();
    end;

    begin
      loadForm();
      repeat
        wait(100);
      until false;
    end.
    Tried that before, it solves the crashing but pressing the button doesn't do anything.

    Simba Code:
    program new;
    {$I ezForm.simba}
    var
      Form : ezForm;

    procedure buttonPressed(); native;
    begin
      Writeln('Yay you pressed me!');
    end;

    procedure loadForm();
    begin
      Form.create('Test');
      Form.addButton('Press me', 's12', '', [10, 10], [100, 25], buttonPressed);
      Form.show();

      while true do
        Wait(1);
    end;

    begin
      loadForm();
    end.
    "Once you begin to think, you can't stop."

    Life > 0

  14. #64
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    Quote Originally Posted by kristi View Post
    snip
    because when it's called natively i don't think you're able to do that. It does call the procedure though, I had it set a boolean to true and i had writeLn(boolean); and it changed its values
    Tsunami

  15. #65
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    @Brotein;
    Looks nice, mate!


    @Wolfskull;
    I haven't used EZForm in a while but I think it's the src method:
    Simba Code:
    someImage := Form.AddImage(...);

    //~ ...

    SomeImage.src('http://...');


    @kristi; @Lucidity;
    Open your Simba console:
    Last edited by Obscurity; 05-01-2016 at 01:37 AM.




    Skype: obscuritySRL@outlook.com

  16. #66
    Join Date
    Apr 2016
    Location
    New Zealand
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    32 Post(s)

    Default

    Thanks for the include Obscurity, really awesome! Can't post a picture because I don't have enough posts yet...

    Quick feature request: would it be possible to add a slider of some sort? I would like to be able to select from a predefined range of values for setting mouse speeds

  17. #67
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    Quote Originally Posted by Dissimulo View Post
    Thanks for the include Obscurity, really awesome! Can't post a picture because I don't have enough posts yet...

    Quick feature request: would it be possible to add a slider of some sort? I would like to be able to select from a predefined range of values for setting mouse speeds
    You can always do a combo box!

    ezForm.addCombobox(['Option 1', 'Option 2']... etc
    Tsunami

  18. #68
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    269
    Mentioned
    17 Post(s)
    Quoted
    161 Post(s)

    Default

    Quote Originally Posted by Lucidity View Post
    You can always do a combo box!

    ezForm.addCombobox(['Option 1', 'Option 2']... etc
    Aha, interesting. How would I go about using the built-in debug box in Simba?
    "Once you begin to think, you can't stop."

    Life > 0

  19. #69
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by kristi View Post
    Aha, interesting. How would I go about using the built-in debug box in Simba?

    Simba Code:
    procedure buttonPressed;
    begin
      GetTClient().WriteLn('Yay you pressed me!');
    end;
    I am Ggzz..
    Hackintosher

  20. #70
    Join Date
    Apr 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    M8, code doesnt talk for itself. Add some fking descriptions

    aids



  21. #71
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Quote Originally Posted by Leafy View Post
    M8, code doesnt talk for itself. Add some fking descriptions

    aids
    Please spread your cancer somewhere else. There are 10 examples in the OP. If that isn't enough then maybe learning isn't for you.

  22. #72
    Join Date
    Apr 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Quote Originally Posted by Citrus View Post
    Please spread your cancer somewhere else. There are 10 examples in the OP. If that isn't enough then maybe learning isn't for you.
    The examples are cool, but I need spoilers for my cancer



  23. #73
    Join Date
    Dec 2013
    Location
    Pitcairn Island
    Posts
    288
    Mentioned
    20 Post(s)
    Quoted
    166 Post(s)

    Default

    Quote Originally Posted by Leafy View Post
    The examples are cool, but I need spoilers for my cancer
    Don't did up these garbage threads mate, let them die.

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •