Resizing controls with custom skin

Hi,
Can someone tell me how to make a spark control with a custom skin made in Catalyst to behave like a standard unskinned control when resized in design view of Flash Builder or during runtime? In other words I want it to behave like it's 9-sliced. For example, I've made a simple and ugly rounded skin for TextInput in Catalyst like this:
<?xml version="1.0" encoding="utf-8"?>
<s:Skin xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009">
     <fx:Metadata>[HostComponent("spark.components.TextInput")]</fx:Metadata>
     <s:states>
          <s:State name="normal"/>
          <s:State name="disabled"/>
     </s:states>
     <s:Group x="0" y="0">
          <s:Rect height="31" radiusX="5" width="182" x="0.5" y="0.5">
               <s:stroke>
                    <s:SolidColorStroke caps="none" color="#000000" joints="miter" miterLimit="4" weight="1"/>
               </s:stroke>
               <s:fill>
                    <s:SolidColor color="#FF90CD"/>
               </s:fill>
          </s:Rect>
          <s:RichEditableText color="#2B4381" fontFamily="Arial" fontSize="12" tabStops="S0 S50 S100" x="11" y="11" width="161" heightInLines="1" id="textDisplay"/>
     </s:Group>
</s:Skin>
How to do that in this example?
I have searched everywhere on the net, and in a 1000 page book I have about Flash Builder and Flex and couldn't find even a single example. And I need this if I want to make something like resizable web form with a resize grip or resizable options panel.
Thanks in advance,
Petar

I've got an answer but on other forum. Here is link if someone finds answer to this question useful: http://stackoverflow.com/questions/3299385/resizing-flex-spark-control-with-a-custom-skin

Similar Messages

  • WP8 Map control with custom tiles

    I'm trying to display a map control in my app targeting Windows Phone 8 but I want to use custom tiles from open street map.
    I'm using this line :
    mapControl.TileSources.Add(new TileSource("http://a.tile.openstreetmap.org/{zoomLevel}/{x}/{y}.png"));
    When I launch the app the custom tiles are properly displayed, but there's still the default map tiles underneath them.
    I tried to hide them, but I counld'nt even find where they exist in the map control and what is displaying them exactly.
    I would like to know how I can remove those default tiles when loading custom tiles.
    I tried to hide them, but I counld'nt even find where they exist in the map control and what is displaying them exactly.

    Hi MakanWG,
    You have solved your question in here:
    http://stackoverflow.com/questions/27948331/wp8-map-control-with-custom-tiles .
    Good!
    Vote if help you

  • ADF 11g - Issue with Custom Skin for CommandButton & InputNumberSlider.

    Hi,
    Any Help relative will be greatly appreciated !!!
    Currenlty we have an requirement to override the UI Skin of ADF to custom one.
    Where the page design has some command button & InputNumberSlider(replace with skin of scroll bar)
    FYI, we are working with Integrated Weblogic Server, Jdeveloper Version(Build JDEVADF_MAIN.BOXER_GENERIC_081002.2127.5156)
    Following is the JSPX, containing style (CSS) with in
    ==============================================================================================================================
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:trh="http://myfaces.apache.org/trinidad/html">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document binding="#{backingDisplayImageShell.document1}" id="document1">
    <af:form binding="#{backingDisplayImageShell.form1}"
    inlineStyle='align:center; background-image:url("img/flex-skin.jpg");background-repeat:repeat;'
    id="form1">
    <style type="text/css">
    @platform window, linux {
    @agent ie, gecko {
    af|inputNumberSlider::minus-button {
    background-image: url('../img/skin/horizontal_scrollbar_arrowUp.gif');
    af|inputNumberSlider::plus-button{
    background-image: url('../img/skin/horizontal_scrollbar_arrowDown.gif');
    af|inputNumberSlider::thumb-icon-style{
    background-image : url('../img/skin/horizontal_scrollbar_knobLarge.gif');
    af|inputNumberSlider::thumb{ 
    background-image: url('../img/skin/horizontal_scrollbar_knobLarge.gif');
    af|inputNumberSlider:vertical::thumb{ 
    background-image: none;
    af|inputNumberSlider:vertical::thumb:rtl{ 
    background-image: none;;
    af|inputNumberSlider:vertical:disabled::thumb{ 
    background-image: none;
    af|inputNumberSlider:vertical:disabled::thumb:rtl{ 
    background-image: none;
    af|inputNumberSlider:disabled::minus-button{ 
    background-image: none;;
    af|inputNumberSlider:disabled::plus-button{
    background-image: none;;
    af|inputNumberSlider:disabled::thumb{ 
    background-image: none;
    af|inputNumberSlider::minor-tick{
    background-image : none;
    </style>
    <trh:script>goGetShuffled = function(event) { var source =
    event.getSource(); AdfCustomEvent.queue( source, "OnImageClick"
    , {}, false); event.cancel(); }; /*function hidePopUpWindow(){
    hide(); }*/</trh:script>
    <af:spacer height="100"/>
    <af:panelGroupLayout layout="horizontal" halign="center"
    id="panelGroup4CmdButtons"
    inlineStyle="width:45%; height:16px; background-color:transparent;"
    clientComponent="true">
    <af:commandButton text="Download" icon="/img/download.jpg"
    inlineStyle='background-image:url("img/skin/commandButton.gif"); background-repeat:no-repeat; border-color:transparent; border-style:none;'/>
    <af:commandButton text="Promote" icon="/img/promote.jpg"
    inlineStyle='background-image:url("img/skin/commandButton.gif"); background-repeat:no-repeat; border-color:transparent; border-style:none'/>
    <af:commandButton text="Delete" icon="/img/delete.jpg"
    inlineStyle='background-image:url("img/skin/commandButton.gif"); background-repeat:no-repeat; border-color:transparent; border-style:none'/>
    <af:commandButton text="Zoom" icon="/img/zoom.jpg" partialSubmit="true"
    immediate="true"
    inlineStyle='background-image:url("GlowingButton_disabledSkin.png"); background-repeat:no-repeat; border-color:transparent; border-style:none'></af:commandButton>
    <af:commandButton text="Open" icon="/img/open.jpg"
    inlineStyle='background-repeat:no-repeat; border-color:transparent; border-style:none'/>
    </af:panelGroupLayout>
    <af:spacer height="50"/>
    <!-- Scroll Bar for pagination : Start -->
    <af:panelGroupLayout id="panelGrpScrollBar" layout="horizontal"
    halign="center" valign="top"
    inlineStyle="width:60%; background-color:transparent;">
    <af:commandImageLink icon="img/skin/horizontal_scrollbar_arrowUp.gif"
    action="#{backingDisplayImageShell.previousShelf}"/>
    <af:inputNumberSlider simple="true" autoSubmit="true" immediate="true"
    binding="#{backingDisplayImageShell.inputNumberSlider1}"
    id="inputNumberSlider1"
    valueChangeListener="#{backingDisplayImageShell.sliderValueChgLstnr}"
    minimum="0" maximum="7" minimumIncrement="1"
    contentStyle="width:1100px;" rendered="true"
    inlineStyle="text-decoration:none; border-color:transparent; border-style:none; border-width:0px; font-size:0%;"/>
    <!-- 0.05 -->
    <af:commandImageLink action="#{backingDisplayImageShell.nextShelf}"
    icon="img/skin/horizontal_scrollbar_arrowUp.gif"/>
    <af:commandLink/>
    <af:outputText value="0 - 20"
    binding="#{backingDisplayImageShell.outputText1}"
    noWrap="true" id="outputText1"/>
    </af:panelGroupLayout>
    <!-- Scroll Bar for pagination : End-->
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backingDisplayImageShell-->
    </jsp:root>
    ==============================================================================================================================
    Thanks
    Rani Velu

    With the Skin changes provided in CSS is not been reflected.
    Since, it seems to have ADF Skin, but not the custom one.
    I tried even using this way as well, but not progress.
    <af:inputNumberSlider simple="true" autoSubmit="true" immediate="true" styleClass="af|inputNumberSlider::major-tick { border-color: red; }"
    id="inputNumberSlider1" inlineStyle="border-color:transparent; border-style:none"
    minimum="0" maximum="7" minimumIncrement="1"
    contentStyle="width:100px;" rendered="true"
    />

  • Access Control with Custom Groups

    I am rather new to APEX. I am trying to implement access control/authorization using custom groups (not the built-in View, Edit, and Administrator groups). I did search the discussion forums and the web in general but so far I have come up empty. I was hoping someone could point me into the right direction as to how to get started. Are there stored procedures that need to be customized/implemented? Where do I store the user groups? Can I use the built-in tables or should I create custom security group tables? Those are just some of the questions I am trying to figure out and any help would be much appreciated.
    And BTW, due to client requirements, we are currently using version 3.2. Not sure if there are any significant changes between that version and the latest version.
    Thank you all!
    Mischa

    Custom authentication is fairly easy to set up with your own tables, here is an example
    http://djmein.blogspot.com.au/2007/07/custom-authentication-authorisation.html
    This leads on to authorisation, again using your own tables. You need to look into using authorization schemes
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/sec_authorization.htm#BABEDFGB
    This can simply be queries on your own group tables, which presumably would control membership by username.
    You ask the question about using built-in tables, yet don't want to the built-in administrator groups?
    Plenty of significant changes, but none that should affect you in regard to authentication/authorisation.
    Scott

  • Can the number format be controlled with custom css styles

    I have a union query where the first query returns a count that I formated as a number '999,999' and the second query returns percentages that I want formatted as '99.9%' I can use conditional formatting to determine which part of the query the result came from but conditional formatting doesn't allow me to control the number format so I was wondering if custom css styles would allow me to control the format. Is converting the number to a character and concatenating a % sign ia better option. I was able to do this using BI Publisher and a different apporach but I want to be able to do it with Answers.

    Make sure the address bar in Contribute is displaying your URL and
    not a file path.
    Your administrator can remedy this by going to the role settings and making sure the Home address is set to the URL.  If you can't get the admin to update the role settings, you can enter your URL into the address bar and then the site should be able to find linked style sheets.

  • ADF Faces: How to position define table navigation in custom skin?

    Hi,
    I played a bit with custom skins. I'am just wondering how you can choose the location of the navigation button ( << Previous | 1-10 of 32 | Next >> )
    For example, if I use the oracle skin, it appears both at the top and at the bottom. In an other skin I used, the navigation was only at the top and not at the bottom. I just can't figure out how this is determined in the css stylesheet, or is it simply not possible because the custom skin is derived from the Simple skin?

    Add the following to the css for your skin:
    af|table::control-bar-bottom
    visibility:hidden;
    This will hide the bottom control bar, which contains the navigation at the bottom of the table, from view.
    Regards,
    Ric

  • Navigate pages of tab control with radio buttons

    hi guy,
    i need to navigate 7 pages of a tab control container usings custom buttons. that is, when i click on a button, i takes me to the specific page on the tab control container.
    i think this can be done using radio buttons and tab control container, but i dnt really know how. please any help will be appreciated.
    thanks....

    Hi jiggaharry,
    I think I may have a link that addresses you issue. Do have a look at this link:
    Navigate Tab Control with Custom Buttons:
    http://forums.ni.com/ni/board/message?board.id=300​&message.id=6123
    We have a vast array of data on ni.com for examples and tutorials which could be very helpful in your code development. Do feel free to browse through and use the examples are they are all free of charge
    Hope the link is useful to you.
    Regards,
    Manick | AE | NI ASEAN

  • Customized Skin missing Nav controls

    Has anyone seen a problem with customizing a skin there are no navigation controls (left-right).  This is out of the box, even a basic test skin.  I am seeing the icon.gif in the skin itself when I look at the code.  This is in RH8.

    Hi there
    See if the link below helps you answer the question.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Windows Phone - Cannot bind custom user controll with listview item source property

    It is Windows Phone 8.1 (runtime)
    I have some problem of binding custom user controll with list of data. I'll make it simple as I can.
    My problem is that somehow if I use DataBind {Binding Something} inside my custom controll it will not work.
    I need to transfer binded data (string) to custom controll.
    It is strange that if I do not use DataBind, it will work normally. Eg MyCustomControllParameter = "some string" (in my example 'BindingTextValue' property)
    Does anyone Know how to bind custom user controll with inside ListView with DataTemplate.
    Assume this:
    XAML Test-Main page
    <Grid  Background="Black">        <ListView x:Name="TestList" Background="#FFEAEAEA">                    <ListView.ItemTemplate>                <DataTemplate>                    <Grid Background="#FF727272">                        <local:TextBoxS BindingTextValue="{Binding Tag, FallbackValue='aSource'}" local:TextBoxS>                    </Grid>                </DataTemplate>            </ListView.ItemTemplate>        </ListView>    </Grid>
    XAML Test-Main page c#
    public sealed partial class MainPage : Page    {        List<TTag> tags = new List<TTag>();        public MainPage()        {            this.InitializeComponent();            this.NavigationCacheMode = NavigationCacheMode.Required;        }        public class TTag        {            public string Tag { get; set; }        }        private void InitializeAppData()        {            TTag tag = new TTag() { Tag = "hello world" };            tags.Add(tag);            tags.Add(tag);            tags.Add(tag);            TestList.ItemsSource = tags;        }             protected override void OnNavigatedTo(NavigationEventArgs e)        {            InitializeAppData();        }           }
    User Control XAML:
      <UserControl    x:Class="CustomControllTest.TextBoxS"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:CustomControllTest"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d"    d:DesignHeight="300"    d:DesignWidth="400">      <Grid x:Name="LayoutRoot" Background="#FF4F4F4F"   >        <RichTextBlock x:Name="MyTestBlock">        </RichTextBlock>    </Grid></UserControl>
    User Control c#
    public TextBoxS()       {            this.InitializeComponent();            LayoutRoot.DataContext = this;        }        public static readonly DependencyProperty BindingTextValueProperty = DependencyProperty.Register(                                         "BindingTextValue",                                         typeof(string),                                         typeof(TextBoxS),                                         new PropertyMetadata(default(string)));        public string BindingTextValue        {            get            {                return GetValue(BindingTextValueProperty) as string;            }            set            {                SetValue(BindingTextValueProperty, value);                //This method adds some custom logic into RichTextBlock, pointed correctly                SetupBox(value);            }        }
    Thanks for helping ;)

    If you use a built-in control rather than your custom control, does binding work? You should verify that first.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Stateful skins with custom states

    Hi, i'm desperately trying to create a stateful skins with
    custom states defined in my component.
    However, all stateful skins examples i've found so far use
    built-in flex statex, mostly from buttons, to accomplish this.
    when i define my own states, the ProgrammaticSkin class
    doesn't seem to know about my custom states.
    Has anyone a hint how to do this ?
    thanks!

    "pulse00" <[email protected]> wrote in
    message
    news:gmaoou$bta$[email protected]..
    > Hi, i'm desperately trying to create a stateful skins
    with custom states
    > defined in my component.
    >
    > However, all stateful skins examples i've found so far
    use built-in flex
    > statex, mostly from buttons, to accomplish this.
    >
    > when i define my own states, the ProgrammaticSkin class
    doesn't seem to
    > know
    > about my custom states.
    >
    > Has anyone a hint how to do this ?
    What are you wanting to apply the skins to that knows how to
    get the state
    information into your skin?

  • Formel Variable - how to fill with Customer Exit from control table

    Hello Experts,
    I have create in BEx-Analyser a formel Variable ZEXRATE1 filled through Customer Exit. In BW I had a "control tabel" with keyfigures.
    In the query definition I have include 0FISCPER, 0FISCVARNT and 0VTYPE. This
    are the keys which should give the values for the selectstatement to select my keyfigure from the "control table" to fill ZEXRATE1.
    If it possible to do with Customer Exit (CMOD -> RSR00001 -> ZXRSRU01) or do I have to implement a Bapi. Perhaps someone can give me a code example.
    Regards Dieter

    Hi,
    Code may look like this
    WHEN 'ZEXRATE1'.
    check i_step = 2.
        LOOP AT I_T_VAR_RANGE INTO L_S_RANGE.
          CASE L_S_RANGE-IOBJNM.
            WHEN 'ZFISCPER'. GV_ZFISCPER = L_S_RANGE-LOW.
            WHEN 'ZFISCVARNT'. GV_ZFISCVARNT =  L_S_RANGE-LOW.
            WHEN 'ZVTYPE'. GV_ZVTYPE =  L_S_RANGE-LOW.
          ENDCASE.
        ENDLOOP.
        SELECT SINGLE RATE into INTO GV_RATE
                  FROM ZTABLE
                  WHERE 0FISCPER = GV_ZFISCPER
                  AND   0FISCVARNT = GV_ZFISCVARNT
                 AND 0VTYPE = GV_ZVTYPE   .
    Assumptions : ZTABLE name of control table
                          ZFISCPER name of variable represents fiscal period
                          'ZFISCVARNT' name of variable representing fiscal year variant 
                          'ZVTYPE'. name of variable representing value type
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • Compiling custom controls with ant

    Need help figuring out which ant task I need to compile custom controls (.jcs files).
    I’ve read several posts about using wlwBuild and workshop.core.Compile but these
    tools don’t satisfy my needs when it comes to automating and integrating anthill,
    cvs, junit… I’m also not so keen on the idea of keeping a .work file synced between
    all developer’s IDEs and the staging/production build machines. I’d really like
    to have a nice clean ide independent ant script build my project. It seems BEA
    somewhat anticipated this when they created genxmlbean to compile XMLBeans and
    JwsCompile for web services, but I have not found a similar ant task that I can
    use to compile projects with custom controls (.jcs files) created in workshop.
    Alternatively if there’s a way in workshop to compile and package an application
    to a production worthy ear that does not include all the extra .workshop ejbs
    used for debugging, that would get me by for now. Any advice would be appreciated.

    Thanks for your advice. Unfortunately, I've been down that path and the generated
    build script uses wlwBuild and the .work file to create the ear, which I'm trying
    to avoid.
    "David Karr" <[email protected]> wrote:
    >
    It may help to know that you can generate an Ant build script from Workshop
    (for
    either a project or application), which when executed from the command
    line, will
    do everything required to build the project or application. You can even
    tell
    Workshop to always use the build script when building the project. You
    can't do
    this for the application, however. You have to go into the project/application
    properties to find this.
    "Ed Barnes" <[email protected]> wrote:
    Need help figuring out which ant task I need to compile custom controls
    (.jcs files).
    I’ve read several posts about using wlwBuild and workshop.core.Compile
    but these
    tools don’t satisfy my needs when it comes to automating and integrating
    anthill,
    cvs, junit… I’m also not so keen on the idea of keeping a .work file
    synced between
    all developer’s IDEs and the staging/production build machines. I’d
    really like
    to have a nice clean ide independent ant script build my project. It
    seems BEA
    somewhat anticipated this when they created genxmlbean to compile XMLBeans
    and
    JwsCompile for web services, but I have not found a similar ant task
    that I can
    use to compile projects with custom controls (.jcs files) created in
    workshop.
    Alternatively if there’s a way in workshop to compile and package an
    application
    to a production worthy ear that does not include all the extra .workshop
    ejbs
    used for debugging, that would get me by for now. Any advice wouldbe
    appreciated.

  • How to select "ISO A" (auto) using Custom Controls with lever assigned to ISO change?

    On 7D Mark II with firmware 1.0.4, I have used Custom Controls to assign ISO change to the lever.  However, it is not possible to change ISO to "ISO A" (auto).  How to select "ISO A" (auto) using Custom Controls with lever assigned to ISO change? 

    Follow Up:
    Ok so ive changed things up a bit and have had some more success.
    I have used a Switch statement in my For loop to perform different actions based on the item selected.
    The code looks like this:
    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
    var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*] .Row4.Cell1");
    var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[* ].Row4.Cell1");
    for (var i=0; i <= fFrom.length-1; i++) {
         switch (fFrom.item(i).rawValue)
         case "Option 3":
         fTo.item(i).rawValue = "Enter the details in the field below";
         break;
         default:
         fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
         break;
    This code solves my problem but has thrown up a new issue:
    When i select Option 1 or 2 from the dropdown list  the change in the text field is instantaneous, however if I select Option 3 it wont appear in the text field until I either select Option 3 a second time or select another item. Its as if the text field is a selction behind what I have enterd in the dropdown list.
    Any thoughts?

  • Bottom right corner resize controls trump vertical scroll button if set to appear in the bottom corner

    My bottom right corner square of the Firefox window normally sits below the bottom of the vertical scroll bar and right of the horizontal scroll bar if one exists. The square is used to click and drag to resize the window's right and bottom boundaries.
    At issue is when a web site places its vertical scroll down-arrow button in the bottom right corner. I cannot access the down-arrow button with my mouse to cause the page to scroll down a few lines at a time because when I point the mouse there, I get the resize controls instead. Even though the down-arrow button is plainly visible on the screen, the resize controls take charge and I cannot use the scroll control.
    Two example web sites display their down-arrow control at the very bottom of the window; TIME.com and GMAIL.com. I have also viewed two PDF documents in the browser, and they too, have a vertical scroll bar all the way to the bottom, and I cannot use that down-arrow button because instead I get the northwest-southeast click-to-resize cursor instead of the mouse pointer when I attempt to use that button for scrolling.
    Someone on the Google Help forum was not able to replicate that issue, showing me screenshots of his lower right corner mouse behavior. He does not have the resize control covering access to the scroll bar.
    I am using the latest Firefox, I have reset Firefox, thus dumping all of my add-ons and custom settings, and have only put back AdBlock Plus and Cookie Monster. And Troubleshooter, when I asked a similar question.
    I am running Windows XP, on its last days of support. This computer is not capable of running anything newer, unless I run with Linux.
    Going to TIME.com, its vertical scroll is in the bottom corner and I get the resize control arrows instead of the mouse pointer when I point to the down-button. If I disable page styles in the View menu, I get a useful output that sets the end of the vertical scroll above the bottom corner. So somebody's idea of styling the page (CSS) creates this issue for me.
    Going to Gmail, turning off the styles gives me a useless output of nonsense, so I must use page styling enabled.
    Can someone please give me some guidance? This forum page has vertical and horizontal scroll above and left of the bottom corner square. I have access to all the parts of both scroll bars, as is the case on most well-designed pages.
    My window-resize controls are in charge always of the bottom corner square even if the vertical scroll is supposed to be there.
    See also my first wording of this question: https://support.mozilla.org/en-US/questions/993519

    Those layout.css prefs are about enabling some CSS feature, in this case vertical writing, so have nothing to do with scroll bars.
    *Bug 772321 - implement CSS parsing of writing-mode property
    *resource://gre/greprefs.js
    <pre><nowiki>// Is support for CSS vertical text enabled?
    pref("layout.css.vertical-text.enabled", false); </nowiki></pre>
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.

  • Labview resizing control.....

    Hello All,
    I am in the middle of developing an application that will be bundled with our product.  I have developed many such applications using visual studio, however this is my first adventure using Labview.
    As many of you know, one of the most common variables in distributing an application is the und-user screen resolution.  With the relatively recent explosion of differing screen resolutions and aspect ratios, making applications resolution independent is even more important than ever.  Along with this, giving the customer the ability to resize the appliction at will is a huge benefit.  On many occasions I have walked into a customer's site to see my application shrunk down to a corner of the window, where the use can still see it, almost like an indicator.
    For visual studio, I had purchased a third party control.  Plunk the control onto the window (it became invisible at run time) and all of the controls, fonts, etc resized as the screen was resized.  When visual studio went to .Net, this particular control no longer worked.  I had to evaluate 5 different controls to get one that even came close to working properly, and even then I had to work with support and beta test many versions of that control to get the bugs out. 
    Now I know that Labview has the panel resize options, etc and I have played around with them.  However, as most of you know, many problems still exist, such as the fonts not resizing, and multiple window changes cause control distortion, even when brought back to the same panel size.
    So, what I am wondering is this:  A) Does anyone make a control that I can purchase that does a good job in this regard, or B) if not, how about opening a discussion on how to implement a control to do just this?
    If I need to, as I forsee doing more applications with Labview, I could tackle this on my own, but as I am new to LV my learning curve may be steep so I'd like to draw on the abundance of talent and experience I've read on this board.
    I was thinking of a control that would enumerate all of the controls, labels, etc on the panel.  During the development cycle it would store all of the control / font sizes (internally? to a file?) as the developer intended the panel to appear.  At execution time (after it is built) each time the panel is resized, the control would set the height/widths and font sizes as needed.  Why store the development time sizes?  To eliminate the errors that creep up when sizing the panel up and down multiple times.  I assume this occurs in LV since original size is not tracked and pixel displacement is non-uniform across the pane, and the moving / scaling is non-integer in nature but gets applied to integer properties.  For example, when resizing from the lower right corner, to say half the width / height, controls in that corner move ALOT while controls in the Upper-left only move slightly, yet all controls are scaled in size the same amount.
    I would love it if someone could dope-slap me upside the head and say "just do this".  If not, what are some of the methods I should be looking at, and pitfalls to avoid?
    Thanks for your input!  

    tartan5 wrote:
    Wouldn't life be grand if every control included a set of read-only properties, say XOrigin, YOrigin, XSize, and YSize that were updated as you move the component around during development, but was fixed as you run the compiled program.  This would at least give you an absolute reference to use as you resize the panel, and eliminate the truncation errors we now see.
    You could do that using tags if that is what is needed.
    One interesting control I tested actually increased performance by grabbing an image of the window when the resize handle was moved, placing the image over the window, resizing the image as the corner was dragged.  Then when the corner was released, updated all of the controls / fonts as required, then hid the image.  It actually worked amazing well vs resizing the controls in real-time.......That might be very do-able in labview, show a picturebox, have it size to the window, etc....
    It probably would not be needed. You can just defer the panel updates until after you're done with your resizing. I was thinking the performance issue would be in going over all the controls and changing their size, but there is probably not going to be one.
    On another note, is it possible to recurse through an xcontrol and get all of the components at run time?  I have just finished developing my first xcontrol (so it's fresh on my mind) but I'm not sure how the xcontrol is viewed by the environment (ie if all the sub-components can be reference / obtained)?
    No idea. I use LV 7.0, which does not have them. My guess would be that you can't, at least in the earlier versions. Maybe the newer ones allow this, but I would doubt that. You might need to write a resize method (or ability or whatever they're called) for the control. That is one example of how writing a generic framework would be complicated.
    On your first point, are you suggesting that the resizer control would add the tags to each enumerated control itself?  That's almost as good as my wish above (LOL)....
    Well, I wouldn't call it a control. It would be a special resize handling (TM) process, but yes, that is exactly what I'm suggesting. See attached for a simple example.
    P.S. No, I don't know how to access these in LV 8.x.
    Try to take over the world!
    Attachments:
    Pos Tags.vi ‏36 KB

Maybe you are looking for