Page 1 of 15 1234567891011 ... LastLast
Results 1 to 10 of 146

Thread: VisualDesigner for creating other skins

  1. #1
    Phone Control Moderator zorro's Avatar
    Join Date
    Mar 2004
    Location
    Munich, Germany
    Posts
    1,902

    VisualDesigner for creating other skins

    Hi folks,

    I've added some code to (PhoCo's) VisualDesigner to make it a bit more versatile.

    By applying the command line parameter -Other=xxx users are now able to create a new design from scratch by adding controls (Buttons, Panels, Listboxes) and export that new design to any format needed.

    The export constsist of two major functions:
    1. All elements on the main form will be merged with the background and saved as two bitmaps (Jpeg or Png), one for the normal state and one for the clicked state.

    2. A Export-Provider is called (using COM) and all elements contained on the form will be reported to the Export-Provider. The provider is responsible to create a customized INI file that can be used with any other application.

    Since the design is not only exported but also saved in a VD format (XML), designers are able to reload the skin and apply changes whenever needed very quickly.

    At this stage, there is only one sample Export-Provider which doesn't really do anything but shows how to use it.

    Developers who are interessted in making Export-Providers for their apps, please let me know.

    Designers can use is to create / edit skins for any app but they have to wait for Export-Providers to become available.

    Here's a short instruction what you gotta do to get this VD version:
    • Download and install the latest version of PhoneControl.NET if you didn't already (VD is a part of it)



    Attached Images Attached Images  
    Skinning to go... VisualDesigner2!

  2. #2
    My Village Called 0l33l's Avatar
    Join Date
    Jul 2004
    Location
    Berkeley, CA
    Posts
    10,516
    Looks awesome! But can we also get a permanent clicked state? So say if we're having relays that are on, you don't want the button to turn to the original state. Then that would require 2 more images

    This would be a great way to create "universal" skins

  3. #3
    Phone Control Moderator zorro's Avatar
    Join Date
    Mar 2004
    Location
    Munich, Germany
    Posts
    1,902
    What is the difference between a clicked state and a permanent clicked state (seen from the graphics side)?
    Skinning to go... VisualDesigner2!

  4. #4
    My Village Called 0l33l's Avatar
    Join Date
    Jul 2004
    Location
    Berkeley, CA
    Posts
    10,516
    Quote Originally Posted by zorro
    What is the difference between a clicked state and a permanent clicked state (seen from the graphics side)?
    Well, say that you have an "LED" on one of the buttons to know if a relay is on.

  5. #5
    Phone Control Moderator zorro's Avatar
    Join Date
    Mar 2004
    Location
    Munich, Germany
    Posts
    1,902
    Well... think about... I'm sure you'll find the answer.
    Skinning to go... VisualDesigner2!

  6. #6
    My Village Called 0l33l's Avatar
    Join Date
    Jul 2004
    Location
    Berkeley, CA
    Posts
    10,516
    Quote Originally Posted by zorro
    Well... think about... I'm sure you'll find the answer.
    Hopefully

    This project would really help me. My skin designer suxed.

    BTW: Exporting to INI won't be required.. right?

  7. #7
    Phone Control Moderator zorro's Avatar
    Join Date
    Mar 2004
    Location
    Munich, Germany
    Posts
    1,902
    No, this is just a suggestion. Whatever the Export-Provider does, this is up to you.
    Skinning to go... VisualDesigner2!

  8. #8
    My Village Called 0l33l's Avatar
    Join Date
    Jul 2004
    Location
    Berkeley, CA
    Posts
    10,516
    Quote Originally Posted by zorro
    No, this is just a suggestion. Whatever the Export-Provider does, this is up to you.
    Great! Can't wait to test it
    My email

  9. #9
    Maximum Bitrate kiltjim's Avatar
    Join Date
    Feb 2004
    Location
    PA, USA
    Posts
    805
    Seems pretty cool. So, if I understand correctly, you can use this to export skins to any other program, and then simply use the exported file in another program? I would love to try it out, I've been looking at some way to do this, as opposed to using a skinner made to work with one program, and then going back to edit the whole file to work for mine.

    My email.
    2000 Subaru OBS

    Dell P3 @ 900 Mhz
    7" Lilliput TS w/DigitalWW in-dash mount
    80GB External HD

    I am Zero Bitrate....

  10. #10
    My Village Called 0l33l's Avatar
    Join Date
    Jul 2004
    Location
    Berkeley, CA
    Posts
    10,516
    Some suggestions:
    Have create buttons/listboxes/etc on a toolbar.
    I didn't really find a setting for a "selected" image. Some designers use just 2 images, and create "hotspots" on the forums. I'm guessing that a panel can act as a hotspot.

    The scale mode also doesn't work, just as you said:
    Code:
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.ArgumentException: Invalid parameter used.
       at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
       at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
       at System.Drawing.Bitmap..ctor(Image original, Int32 width, Int32 height)
       at System.Drawing.Bitmap..ctor(Image original, Size newSize)
       at PhoneCtlDesigner.frmMain.pnlWindow_Resize(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnResize(EventArgs e)
       at System.Windows.Forms.Panel.OnResize(EventArgs eventargs)
       at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
       at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
       at System.Windows.Forms.Control.UpdateBounds()
       at System.Windows.Forms.Control.WmMove(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 1.0.5000.0
        Win32 Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
    ----------------------------------------
    PhoneCtlDesigner
        Assembly Version: 1.1.1939.40187
        Win32 Version: 1.1.1939.40187
        CodeBase: file:///C:/Program%20Files/PhoneControl.NET/PhoneCtlDesigner.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 1.0.5000.0
        Win32 Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
    ----------------------------------------
    System
        Assembly Version: 1.0.5000.0
        Win32 Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 1.0.5000.0
        Win32 Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
    ----------------------------------------
    Infragistics.Win.UltraWinToolbars.v3.1
        Assembly Version: 3.1.20041.15
        Win32 Version: 3.1.20041.15
        CodeBase: file:///C:/Program%20Files/PhoneControl.NET/Infragistics.Win.UltraWinToolbars.v3.1.DLL
    ----------------------------------------
    Infragistics.Shared.v3.1
        Assembly Version: 3.1.20041.15
        Win32 Version: 3.1.20041.15
        CodeBase: file:///C:/Program%20Files/PhoneControl.NET/Infragistics.Shared.v3.1.DLL
    ----------------------------------------
    Infragistics.Win.v3.1
        Assembly Version: 3.1.20041.15
        Win32 Version: 3.1.20041.15
        CodeBase: file:///C:/Program%20Files/PhoneControl.NET/Infragistics.Win.v3.1.DLL
    ----------------------------------------
    Infragistics.Win.UltraWinDock.v3.1
        Assembly Version: 3.1.20041.15
        Win32 Version: 3.1.20041.15
        CodeBase: file:///C:/Program%20Files/PhoneControl.NET/Infragistics.Win.UltraWinDock.v3.1.DLL
    ----------------------------------------
    Accessibility
        Assembly Version: 1.0.5000.0
        Win32 Version: 1.1.4322.573
        CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
    ----------------------------------------
    System.Design
        Assembly Version: 1.0.5000.0
        Win32 Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system.design/1.0.5000.0__b03f5f7f11d50a3a/system.design.dll
    ----------------------------------------
    System.Runtime.Serialization.Formatters.Soap
        Assembly Version: 1.0.5000.0
        Win32 Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system.runtime.serialization.formatters.soap/1.0.5000.0__b03f5f7f11d50a3a/system.runtime.serialization.formatters.soap.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 1.0.5000.0
        Win32 Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
    ----------------------------------------
    zyg9noqk
        Assembly Version: 0.0.0.0
        Win32 Version: 1.1.4322.2032
        CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    zControls
        Assembly Version: 1.0.1939.35709
        Win32 Version: 1.0.1939.35709
        CodeBase: file:///C:/Program%20Files/PhoneControl.NET/zControls.DLL
    ----------------------------------------
    Microsoft.DirectX.DirectSound
        Assembly Version: 1.0.1901.0
        Win32 Version: 5.3.0000001.1126 built by: DIRECTX
        CodeBase: file:///C:/Program%20Files/PhoneControl.NET/Microsoft.DirectX.DirectSound.DLL
    ----------------------------------------
    System.Drawing.Design
        Assembly Version: 1.0.5000.0
        Win32 Version: 1.1.4322.573
        CodeBase: file:///c:/windows/assembly/gac/system.drawing.design/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.design.dll
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just in time (JIT) debugging, the config file for this
    application or machine (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the machine
    rather than being handled by this dialog.

Page 1 of 15 1234567891011 ... LastLast

Similar Threads

  1. Skins, skins, skins and... skins (and NOTHING MORE)
    By netsuo in forum NeoCar Media Center
    Replies: 42
    Last Post: 12-21-2005, 07:12 AM
  2. Replies: 4
    Last Post: 01-21-2005, 08:21 PM
  3. Replies: 3
    Last Post: 12-02-2004, 01:02 AM
  4. Sigh...wish skins worked.
    By Carter in forum FrodoPlayer
    Replies: 4
    Last Post: 09-20-2004, 02:32 PM
  5. Skins for 8" Lilliput
    By Deepgear in forum MediaCar
    Replies: 11
    Last Post: 08-08-2004, 05:34 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
  •