Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: how do you control transitions in .Net

  1. #1
    Newbie
    Join Date
    May 2007
    Posts
    12

    how do you control transitions in .Net

    How do you change the transitions of items you add in a dotNet addin. What command do I use? Thanks.

  2. #2
    Maximum Bitrate galvitron's Avatar
    Join Date
    Mar 2007
    Location
    Socal
    Posts
    719
    Can you elaborate?
    2006 Lancer Evolution IX MR In-Dash PC Project - WIP

    Planning:
    [----------] 100%
    Purchasing:
    [----------] 90%
    Installation/Fab/Assembly (Revised v2):
    [----------] 90%


  3. #3
    Newbie
    Join Date
    May 2007
    Posts
    12
    I'm building a dotnet app and I added some objects to the module. When I run the app and exit and enter my app the objects don't fly in or fly out. Within the Dev environment I can change the "transition" properties for each object. But in Dotnet I can't find the call to change the transition. I can change the Height, width, top, left, focus, caption......NO Transition.
    example:
    lblHome.Height = 25
    lblHome.visible = true
    lblHome.transition = ?....this property doesn't exist

    I'm using VB.net.

  4. #4
    Low Bitrate RickS's Avatar
    Join Date
    Nov 2005
    Location
    Bethesda, MD
    Posts
    86
    There's no such attribute that I know of. You have to run a timer and increment the location on each tick...there may be a class built to do it that you can download somewhere though.

  5. #5
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    You should be able to change transitions through the skin editor in the next update.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  6. #6
    Low Bitrate
    Join Date
    Sep 2005
    Location
    Sweden (South)
    Posts
    111
    Quote Originally Posted by god_of_cpu View Post
    You should be able to change transitions through the skin editor in the next update.
    I might be kidnapping this thread, but it's a similar "problem":

    Will it also be possible to access skin items created in the Dev Env (e.g buttons, lists etc) from the .Net addin?

    The fact that you cannot do this today, make the more elaborate addins unskinnable.

    /A

  7. #7
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Quote Originally Posted by aeroanderz View Post
    I might be kidnapping this thread, but it's a similar "problem":

    Will it also be possible to access skin items created in the Dev Env (e.g buttons, lists etc) from the .Net addin?

    The fact that you cannot do this today, make the more elaborate addins unskinnable.

    /A
    You can already do this through using GetHeadPanelPos and GetNextPanel
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  8. #8
    Low Bitrate
    Join Date
    Sep 2005
    Location
    Sweden (South)
    Posts
    111
    Quote Originally Posted by god_of_cpu View Post
    You can already do this through using GetHeadPanelPos and GetNextPanel
    And it is obvious to everyone but me how to use these? According to the .idl file, they aren't there so an updated .idl file would be nice, but..

    what "position" is GetNextPanel(int position) requiring?
    what does GetHeadPanelPos() give me? (an int of course, but is it a "position"? of what?)
    Are the panels in a module in a list and the "position" is the index in the list? So it is possible to just loop through the list and find my panel? And a getNextPanel call with a "position" larger than the number of available panels will give me null? I guess I can identify my panels by using GetFunctionName() and that will get me the name of the panel from the Dev Env?

    (Would have been so much easier to have a GetPanel(str FunctionName), but...)

    If this is true, the NICE.. I will have to do some refactoring.. Thanks g_o_c!

  9. #9
    Low Bitrate
    Join Date
    Sep 2005
    Location
    Sweden (South)
    Posts
    111
    Quote Originally Posted by aeroanderz View Post
    And it is obvious to everyone but me how to use these?
    Ok.. so these are my findings (C#):

    Code:
    uint pos = module.GetHeadPanelPos();
    IDualPanel panel = module.GetNextPanel(ref pos);
    
    while (panel != null) // could be just about anything
    {
        if (panel.GetFunctionName().Equals("presetList")) //last panel in the module
            break;
        panel = module.GetNextPanel(ref pos);
    }
    This will get me all panels in the module. The problems:
    ONE:
    The only way I have found to avoid exceptions in the StreetDeck API is to break the loop when you know that you have found the last component. My assumption that a call to GetNextPanel() where the "list pointer" or whatever is at the end of available panels would return null, doesn't work. It just crashes.

    TWO:
    After doing the above (without crashes) the module doesn't render ANY panels at all. Why? I tried doing a GetHeadPanelPos() at the end just to "reset the pointer" but that doesn't work either.

    I would happily add code snippets to the addin wiki page to help others create their addins. If could just get some hints on how to solve common problems.. please..

    /A

  10. #10
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Panel iteration works just like MFC CList iteration, since well thats what its actually doing.

    Position is actually just a pointer to an object in the list. Whenever GetNextPanel is called, it returns the panel at the position you passed in and increments the position and returns it by reference. The reason why it is crashing is because you are passing in a NULL position at the end, so it tries to dereference the panel at the NULL pointer position. YOu should just be able to make your code work by simply checking to see if pos != NULL rather then panel. The following code also works.
    Code:
    for (uint iPos = module.GetHeadPanelPos();
                        iPos != 0;)
                    {
                        StreetDeck.IDualPanel p =  module.GetNextPanel(ref iPos);
                        module.MsgBox(p.GetFunctionName(), "Panel  Name");
                    }
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

Page 1 of 3 123 LastLast

Similar Threads

  1. Help with Climate Control.....
    By map_auto in forum General Hardware Discussion
    Replies: 1
    Last Post: 06-07-2006, 06:07 AM
  2. How to control the wave output in ME
    By d.a.one in forum Media Engine
    Replies: 3
    Last Post: 05-06-2006, 12:41 PM
  3. Feature Request: Advanced Volume Control
    By skeeter007 in forum Road Runner
    Replies: 6
    Last Post: 03-20-2006, 06:23 PM
  4. no sound control with emulators
    By selmerguy in forum Mobile Impact
    Replies: 2
    Last Post: 02-04-2006, 08:58 PM
  5. My LPT Relay Control Software
    By wizardPC in forum Software & Software Development
    Replies: 23
    Last Post: 02-13-2005, 01:10 PM

Bookmarks

Posting Permissions

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