Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Jul 2009
    Posts
    137

    how to make a command deal with all pages

    how to make a command deal with all the pages . all i want is to create a button in the main menu (first page) which change images or text in all the pages of the project . like a changing language button which change text and images in all the pages of my project . so please help and if there are any example for it that would be very helpful .

  2. #2
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    Oh, the Class Action Plugin just might do it...
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  3. #3
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Another way would be to set up tables with the object names and properties you need to change for the appropriate objects and the related functions in the global functions section.

    On Page preload of each page, enumerate the objects and execute the appropriate global functions.

    An attached example shows the ability of changing images and labels on 2 different pages. (this is a bit cryptic but shows violin and piano images and text interchangeable; and should give you ideas for your project.)

    hth
    Attached Files

  4. #4
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    That's what the Class plugin does. Combine it with the Group plugin and he would have exactly what you have described, holtgrewe, but a much easier time of it.
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  5. #5
    Join Date
    Jul 2009
    Posts
    137

    thanks

    thanks, i will give both of them a try.

  6. #6
    Join Date
    Jul 2009
    Posts
    137

    well

    i tried combination between class and group plugins . but i don't know what to do after that .

  7. #7
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    First, a new version of Class and GlobalPaths are out...get the latest versions.

    Create a table with your desired page properties and use the Class.PageDefine() action.
    Then use the Class.PageInherit() action to apply the changes to all of your pages using a loop with the Application.GetPages() action to create a list of pages with which to work.

    e.g.
    Code:
    --list all desired page properties in this table
    tPageProps = {};
    --blah blah blah (YOU NEED TO PUT SOME PROPERTIES HERE)
    
    
    --define the class
    Class.PageDefine("Page Class", tPageProps);
    
    --list all project pages
    tAllPages = Application.GetPages();
    
    for nIndex, sPage in tAllPages do
    --assign the class to the current page
    result = Class.PageInherit("Page Class", sPage, true);
    end
    The Group plugin would come in handy for assigning classes to multiple objects.

    NOTE: In order to ensure that new plugin versions are updated, you must remove the old versions form your project's plugin folder as well as your AMS Plugins folder.
    Last edited by Centauri Soldier; 08-18-2009 at 03:38 PM.
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  8. #8
    Join Date
    Jul 2009
    Posts
    137

    thank u

    so what will the example be , if i have page called (1feel) and i want to set an image called (1) invisible in it and an image called (2) visible in the same page .

  9. #9
    Join Date
    Jul 2009
    Posts
    137

    this what i am trying to do

    i attached example of what i want to do exactly please help me with the script for doing this .
    i uploaded it to rapidshare (no viruses be sure 100%)

    http://rapidshare.com/files/26911900...ample.rar.html

  10. #10
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Quote Originally Posted by Centauri Soldier View Post
    That's what the Class plugin does. Combine it with the Group plugin and he would have exactly what you have described, holtgrewe, but a much easier time of it.
    I'm all about "easier"; however if you need to install 2 or more plugins, then through "trial and error" try to figure out how the plugins work...IMHO that's not exactly "easier".
    If you could put together a mini-example of the usage of the plugins, it would probably be quite helpful to many users.

    Respectfully,
    holtgrewe

  11. #11
    Join Date
    Jul 2009
    Posts
    137

    what about ??

    so , what about the example i uploaded to rapidshare ??. no downloads to it at all till now . why it is just 2 mega . please help me with it .

Posting Permissions

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