Forms API. Function to retrieve/set Frame Line Width

HI,
I am writing a program using the API to check standards conformance, but cannot find the function to retrieve the Frame Line Width. Any ideas?
Cheers,
Neil

Forms API header file D2FGRA.H (for graphic objects) contains macros for geting/seting some frame properties, for example:
#define d2fgrag_frame_align(ctx, obj, val) \ d2fgragn_GetNumProp(ctx, obj, D2FP_FRAME_ALIGN, val)
but not for geting/seting property "Frame Line Width".
So, we must use functions
d2fgragn_GetNumProp(ctx, p_obj, PROPERTY, val)
d2fgrasn_SetNumProp(ctx, p_obj, PROPERTY, val)
(GetNumProp because "Frame Line Width" is number-valued property).
Property D2FP_LIN_WID ("Line Width") mentioned in Forms help "Graphics object API properties"
don't exists in header file D2FDEF.H, but you can find property D2FP_INTERNAL_LIN_WID:
#define D2FP_INTERNAL_LIN_WID 225
So, use:
d2fgragn_GetNumProp(ctx, p_obj, D2FP_INTERNAL_LIN_WID, val)
Regards,
Zlatko Sirotic

Similar Messages

  • Why the text field frame's line width cannot be adjusted?

    I am now working on a PDF file with some text fields with combo turned on, specifying the number of chars the fields can hold. Their frames' line width is not thick. This is what I want. This is shown in the picture below:
    But when I try to preview the PDF, I discover that these fields do not follow what I have specified: no matter what thickness I choose, the frames are always thick. I want them to be thin!
    See below:
    Why is it so? What should I do? Any ideas are welcomed.

    I have sent my form to you to take a look. Thanks for your support!
    By the way, I have uninstalled Acrobat 8 and installed Acrobat 9 Pro, but I am facing serious problems. Whenever I open Acrobat I will face an EULA page and if I click "Accept" or "Decline", the whole program will close immediately.
    I have googled and added an EULA value (=1, in hex) in the regedit. No effect. I want to uninstall Acrobat 9, and there is NO RECORD in the Install/Uninstall section in the Control Panel. I am using Vista Home Basic.
    I am now frustrated. I tried Acrobat 9 and it failed, and now I can't even uninstall it and revert to ver 8.......My God....

  • How can I set Line Width

    Hello,
    When I print a PDF document with a 3D annot in "Illustration" Mode, I've got a bad printing. All lines are too thin and sometime hidden.
    Is it possible to set the line width? where? in U3D doc or directly in pdf3d engine ?
    I apologize for my bad english.
    Thank you for answers

    I do not think it is possible in U3D - there seems to be no field setting line width in the U3D spec.
    As to the "pdf3d engine" - likely no. I was complaining on this forum about similar problem with point size
    (it can not be controlled and was changed from 1 pixel to 3x3 pixel in a new version of Reader)
    and got the following reply from a man of Adobe (http://forums.adobe.com/message/1922684#1922684):
    We try to adhere as closely as we can to published formats,
    so as point size is not supported in U3D it is not displayed in Acrobat.
    We have much greater influence over the content of PRC, so we can more quickly make improvements to that format.
    The size of the points displayed by U3D was changed
    - but as U3D does not support point sizes, it is not part of the U3D supported elements.
    It seems lines and points parts of U3D spec are less important to Adobe than meshes,
    so many features are not supported (some limitations are documented, some not).

  • Chart Lines Dissapearing When Line Width Less than .38pt

    I have a Line Chart with about 70 different series. As you can imagine, it gets pretty crowded. In SQL server 2005, I was able to set the line width to .25pt, but when I try to do the same in 2012, the lines disappear! The smallest line width that I can
    get to show up is .38.....If anyone out there knows why this happens, I would really appreciate a hint. I've tried everything from messing with the markers to the empty point settings...
    Thanks

    Hi Scott,
    I am able to reproduce your scenario that when the line width with less than or equal to 0.375pt, they will all disappear in the line chart in my test environment. Based on my research, it seems to be the particular render extensions which cannot display
    the narrow lines in line chart. However, if we export the report into PDF, the all lines which narrow than 0.375pt will appear in the report. I think this is by design.
    I would suggest you submitting a wish at
    https://connect.microsoft.com/SQLServer/Feedback. 
    Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Forms API, does set font size work?

    i call code as below:
    num = 8;
    d2fitms_font_siz(ctx, itm1, num);                    
    num = -1;
    d2fitmg_font_siz(ctx, itm1, &num);
    printf("num = %d ", num);     
    which verifies that the font size was, in fact, set to 8. however when i open my canvas in the layout editor, it appears as zero. all other changes to itm1 seem to work properly.
    do i need to set anything else, or is there a place i can check to see if this feature is broken?
    thanks,
    -james

    /* Copyright (c) Oracle Corporation 1996.  All Rights Reserved. */
       NAME
        D2FFNT.H -- Dev2K Forms API FoNT declarations
       DESCRIPTION
        Contains the public declarations for the Forms API FoNT support
       PUBLIC FUNCTIONS
        d2ffntcr_Create          - Cover for d2fobcr_Create
        d2ffntde_Destroy         - Cover for d2fobde_Destroy
        d2ffntdu_Duplicate       - Cover for d2fobdu_Duplicate
        d2ffntex_Extract         - Extract font info from object into font object
        d2ffntap_Applyl          - Apply font info from font object into object
        d2ffntg?_Get*Prop        - Cover for d2fobg?_Get*Prop
        d2ffnts?_Set*Prop        - Cover for d2fobs?_Set*Prop
        d2ffnthp_HasProp         - Cover for d2fobhp_HasProp
    #ifndef D2FFNT
    #define D2FFNT
    #ifndef ORATYPES
    # include <oratypes.h>
    #endif
    #ifndef D2FPRIV
    # include <d2fpriv.h>
    # endif
    /* C++ Support */
    #ifdef __cplusplus
    extern "C"
    #endif
    ** Object: Coordinate Info
    ** d2ffntex_Extract - Extract the font object from an object that
    **                    has font properties associated with it.  The
    **                    vat_typ argument is one of the D2FC_VATY_*
    **                    constants.  The font object must already have
    **                    been created.
    ** d2ffntap_Apply   - Apply the contents of the font object to the
    **                    specified object.  This is a shortcut to
    **                    setting the individual font properties one-
    **                    by-one.
    ORA_RETTYPE(d2fstatus) d2ffntcr_Create( d2fctx *pd2fctx, d2ffnt **ppd2ffnt );
    ORA_RETTYPE(d2fstatus) d2ffntde_Destroy( d2fctx *pd2fctx, d2ffnt *pd2ffnt );
    ORA_RETTYPE(d2fstatus) d2ffntdu_Duplicate( d2fctx *pd2fctx,
                                               d2ffnt *pd2ffnt_src,
                                               d2ffnt **ppd2ffnt_dst );
    ORA_RETTYPE(d2fstatus) d2ffntex_Extract( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                             d2fob *pd2fob, number vat_typ );
    ORA_RETTYPE(d2fstatus) d2ffntap_Apply( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                           d2fob *pd2fob, number vat_typ );
    ORA_RETTYPE(d2fstatus) d2ffntgb_GetBoolProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                 ub2 pnum, boolean *pprp );
    ORA_RETTYPE(d2fstatus) d2ffntgn_GetNumProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, number *pprp );
    ORA_RETTYPE(d2fstatus) d2ffntgt_GetTextProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                 ub2 pnum, text **pprp );
    ORA_RETTYPE(d2fstatus) d2ffntgo_GetObjProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, dvoid **pprp );
    ORA_RETTYPE(d2fstatus) d2ffntgp_GetBlobProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, dvoid **pprp );
    ORA_RETTYPE(d2fstatus) d2ffntsb_SetBoolProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                 ub2 pnum, boolean prp );
    ORA_RETTYPE(d2fstatus) d2ffntsn_SetNumProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, number prp );
    ORA_RETTYPE(d2fstatus) d2ffntst_SetTextProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                 ub2 pnum, text *prp );
    ORA_RETTYPE(d2fstatus) d2ffntso_SetObjProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, dvoid *prp );
    ORA_RETTYPE(d2fstatus) d2ffntsp_SetBlobProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, dvoid *prp );
    ORA_RETTYPE(d2fstatus) d2ffnthp_HasProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                             ub2 pnum );
    /* Begin convenience macros  */
    #define d2ffntg_font_nam(ctx,obj,val) \
               d2ffntgt_GetTextProp(ctx,obj,D2FP_FONT_NAM,val)
    #define d2ffntg_font_siz(ctx,obj,val) \
               d2ffntgn_GetNumProp(ctx,obj,D2FP_FONT_SIZ,val)
    #define d2ffntg_font_spcing(ctx,obj,val) \
               d2ffntgn_GetNumProp(ctx,obj,D2FP_FONT_SPCING,val)
    #define d2ffntg_font_sty(ctx,obj,val) \
               d2ffntgn_GetNumProp(ctx,obj,D2FP_FONT_STY,val)
    #define d2ffntg_font_wght(ctx,obj,val) \
               d2ffntgn_GetNumProp(ctx,obj,D2FP_FONT_WGHT,val)
    #define d2ffnts_font_nam(ctx,obj,val) \
               d2ffntst_SetTextProp(ctx,obj,D2FP_FONT_NAM,val)
    #define d2ffnts_font_siz(ctx,obj,val) \
               d2ffntsn_SetNumProp(ctx,obj,D2FP_FONT_SIZ,val)
    #define d2ffnts_font_spcing(ctx,obj,val) \
               d2ffntsn_SetNumProp(ctx,obj,D2FP_FONT_SPCING,val)
    #define d2ffnts_font_sty(ctx,obj,val) \
               d2ffntsn_SetNumProp(ctx,obj,D2FP_FONT_STY,val)
    #define d2ffnts_font_wght(ctx,obj,val) \
               d2ffntsn_SetNumProp(ctx,obj,D2FP_FONT_WGHT,val)
    /* End convenience macros  */
    /* C++ Support */
    #ifdef __cplusplus
    #endif
    #endif /* D2FFNT */

  • Is there api function to change access mode and set a passcode to recording in meeting?

    Is there api function to change access mode and set a passcode to recording in meeting?
    When I'm trying to use "action=acl-field-update&acl-id=SCO_ID_RECORDING&field-id=meeting-passcode&value=MY_PASSC ODE" it just clean the password and do not set it or change.
    And "action=permissions-update&acl-id=SCO_ID_RECORDING&principal-id=public-access&permission- id=view-hidden" do not work too.

    There is not a specific API for doing this. This was discussed in the other Connect forum here, Adobe Connect User Community.
    For you call I would make the second part differently. Instead of 'field-id=meeting-passcode&value=MY_PASSCODE' I would call 'meeting-passcode=MY_PASSCODE' and see if that worked better.

  • Is their a activeX api function to set the database option "database logging enabled" to true or false?

    Hello!
    I want to decide dynamically while running a sequence to log the results to a database or not.
    So I need to set the "database logging enabled" property by a activex function call.
    Does a activex api function exist? I didn't found one, or is their an other way to change the property value?
    Thanks and regards
    M. Brosig

    Hi,
    Ah! I understand.
    You can change the runtime properties from you sequence or inside your step by using the Lookup string of
    "RunState.Caller.Locals.DatabasesOptions.DisableDatabaseLogging"
    Use the TS API  PropertyObject.SetValBoolean("DatabasesOptions.DisableDatabaseLogging", 0, newValue) method with RunState.Caller.Locals as your ActiveX Reference. (where newValue would be True or False.)
    Depending at what level you perform this API method depends how many "RunState.Caller" you have in your lookup string.
    eg.
    My example of
    PropertyObject.SetValBoolean("DatabasesOptions.DisableDatabaseLogging", 0, newValue) with RunState.Caller.Locals as your ActiveX Reference is based on a step in MainSequence which has been called by the Process Model sequence.
    If you have a step in a Sub-Sequence of MainSequence then the lookup string would be
     "RunState.Caller.RunState.Caller.Locals" as the activeX reference.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Forms API for migration tool

    This is about some information mentioned in Oracle documentation 'Migrating SQL* Forms 3.0 Applications to Internet Computing' - Oracle Technical White Paper, March 2000. Here on Page 25, they are explaining about custom built migration tool. They are saying that Oracle Forms publishes an API to internal structure of FMB file. With this API one can read and create an FMB file with the help of some C application.
    I am not getting what this API is and how I can use this in some program. Also what C application is supposed to do? Will it have functionality to make changes in existing FMB file with this application?
    We are migrating Forms 3.0 to Forms 6. So if anybody has developed such a custom built migration application, please guide me regarding the steps I can proceed.
    Thanks
    Manjusha

    I set the path in the config files correctly.
    I use no particular option on the command line. Should I ? (I tried some of them, with no success).
    Should I link separately from the compiling in order to use special link options ?
    Is there a forum for Forms API programming ?

  • Possible memory leak in forms api 6i

    There appears to be a bug in forms 6i.
    I am getting an error at the following snippet of code. The Name prints fine and the whole code runs great if i comment out free(v_value), but obviously i would not want to do that.
    I am using MS VC++ 6.0 compiler,
    The error is::
    HEAP[xephr.exe]: Invalid Address specified to RtlFreeHeap( 3540000, 364fc08 )
    This means that i am trying to free the memory which has already been freed, meaning thereby that api has already freed the memory associated with name. But then why should the api function d2fobgt_GetTextProp free the memory allocated for name as i am supposed to free it.
    Now that appears to be a bug.
    Please suggest...
    Here is that relevant code snippet...
    text* name;
    if (d2fobgt_GetTextProp(ctx, p_obj, prop_num, &name)==D2FS_SUCCESS)
    printf("\nName=%s\n", name); /* prints the name properly*/
    if ( v_value!=NULL )
    free(v_value); /* Raises error, Invalid Address specified to RtlFreeHeap, the error disappears if i
    comment out the free(value) line. */

    Hello :)
    I read your message cause i look for a answer to a big problem i encountered while trying sample code from Oracle Forms API : it's impossible to create the Forms API Context, the d2fctxcr_Create() function always return D2FS_FAIL.
    As your problem seem to be happened after this call, i wonder you can create the context without errors.
    Here the code I used, so perhaps you can see my error (I compile under VC6) :
    int main (int argc, char *argv[])
    d2fctxa ctx_attr;
    d2fctx *ctx;
    d2fstatus status;
    /* Create Forms API context */
    ctx_attr.mask_d2fctxa = 0;
    if ( (status=d2fctxcr_Create(&ctx, &ctx_attr)) != D2FS_SUCCESS )
    fprintf(stderr, "Error creating Forms API context (%d)\n",status);
    exit(1); /* ALWAYS GO THERE */

  • How to refresh the text which is display by windows API function 'findwindow' 'getdc' 'textout'!

    i use the windows api function to dynamelly display text on the frontpanel ,it successed ,but when you move the scrollbar to the left ,right ,top ,bottom,the text will be disappear!! i think it is a very difficulteed problem .in my around ,no one can do! who can help me!
    Attachments:
    textrefresh.vi ‏21 KB
    auto_appear_scroll.vi ‏126 KB

    Very cool!
    It looks like you are using the same functions that LV uses to refresh the screen. Thos functions only let you update within the window you specify. This is why your updates stop at teh edge of the window.
    Normally LV will watch the scroll bar position and re-paint the screen to reflect an scroll bar postion changes. Since you are by-passing LV, you can not rely on LV to refresh your screen when the scroll bars move.
    At this point I can offer two suggestions.
    1) Continue with the approach you started and start adding all of the code required to watch the scroll bars and re-paint as indicated.
    or
    2) Look into the LV Picture control. Based on what you have done using dll calls I would guess that you could probably figure how to do the
    same thing using a picture control. The Picture (being a LV native object) is fully supported by LV so the scrolling work is already done and working. The picture control will let you draw lines, insert text, etc. Take a look at the "Robot Arm" example. It should get you started.
    Finally, the Picture control is pure "G" so it should be platform independent.
    Otherwise let me commend you on your example. You say no one else where you are can do what you have done. After looking at your example, I am not suprised. There are few people in the world that can do what you have done.
    Great work!
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to set vertical line in SAPScript

    Dear All,
    I have to set vertical line at a particular position of SAPScript. Here the lines are of varying length. Can you suggest how to do that?
    Line 1......................            | Vertical Line
    Line 2.........................         | Vertical Line
    Line 3...............                   | Vertical Line
    Thanks and regards,
    Atanu

    Hii
    use this
    BOX WIDTH 0 FRAME 10
    BOX HEIGHT 0 FRAME 10 
    BOX WIDTH 5 CM  HEIGHT 1 CM FRAME 10 TW INTENSITY 10
    BOX WIDTH 7 CM  HEIGHT 5 CM FRAME 10 TW INTENSITY 10
    HOPE THIS HELPS
    Thanks & Regards
    Naresh

  • How to Set a line's BackGroundColor in JTextPane?

    I want to change a whole line's(not only the characters) background color.(display as we set breakpoint in a debug environment).
    i tried
    DefaultStyleDocument.setCharacterAttributes(start,end-start,MyAttr, false);
    This can not set whole line but the begin to the end of the characters in line.
    Help,and Thanks

    This isn't exactly what you want, but it may give you some idea on how to approach it.
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class BackgroundLines extends JFrame
         public BackgroundLines()
              throws Exception
              JTextArea textComponent = new JTextArea()
                   public void paintComponent(Graphics g)
                        Rectangle drawHere = g.getClipBounds();
                        int lineHeight = g.getFontMetrics().getHeight();
                        int startOffset = getInsets().top;
                        int start = (drawHere.y / lineHeight) * lineHeight + startOffset;
                        int startLineNumber = (drawHere.y / lineHeight);
                        int endLineNumber = startLineNumber + (drawHere.height / lineHeight) + 1;
                        for (int i = startLineNumber; i <= endLineNumber; i++)
                             g.setColor( i % 2 == 0 ? getBackground() : Color.lightGray );
                             g.fillRect(drawHere.x, start, drawHere.width, lineHeight);
                             start += lineHeight;
                        super.paintComponent(g);
              textComponent.setOpaque( false );
              JScrollPane scrollPane = new JScrollPane(textComponent);
              scrollPane.setPreferredSize(new Dimension(300, 250));
              getContentPane().add( scrollPane );
         public static void main(String[] args)
              throws Exception
              BackgroundLines frame = new BackgroundLines();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible(true);
    }

  • Tracing Form and Function modules using SE30

    Hi,
      I want to trace only the Forms and function modules that are executed by a program using SE30. I have tried setting the variants in different ways but it still gives lot of junk information which i dont need. How can I set up the variant so that it only traces Forms and function modules executed by a program?
    Will give points to right answer. Thanks for reading

    Hi Srikrishna,
    First of all create a vraian tin SE30. While creating the variant, in th Tab 'Duratn/Type' select the radio buton 'NONE'. Now execute yur program and then analyse.Select 'GROUP HIT LIST' Icon which gives Function Modules,Subroutines etc.
    Regards,
    Srinivas.

  • You do not have permissions to access a database that contains data required for this form to function correctly.

    I have dropdown on infopath form , and it receives data from sql server table ,  it works fine when i am running in preview mode , but when i am publishing form to sharepoint server and loading that form
    i am getting this
    You do not have permissions to access a database that contains data required for this form to function correctly.
    Can you please help?
    Thanks,

    try this one, if not yet
    Convert the data connection to UDC (store it in a Data Connection Library within the same site collection as the form library).  See if this works without any other changes, but if not, then...
    Manually edit your UDC file in Notepad (or your preferred editor) so that the authentication line is not commented out and so that it references the name of the SSO target app you created. 
    For Type, use NTLM.
    Ensure the user has rights to access the database
    Also ensure the connection file has been approved - A sharepoint admin can access a non approved Ucdx file. Go to the connection library and approve the file
    Also check this post having the similar issue:
    http://social.technet.microsoft.com/Forums/en-US/3196bafd-4bc3-40ab-ac2b-d149d1c3e0fa/sharepoint-2010-error-you-do-not-have-permissions-to-access-a-database?forum=sharepointdevelopmentprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Functional improvement of setting of item of UI-AP

    Hi:
    I would like you to improve the function of the setting of the item of UI-API.
    The phenomenon is as follows.
    1. When the estimate slip (order and purchase order, etc.) is added or is updated, items as follows are acquired, and after it edits it, set from the screen again.
      Item 1: Amount
      Item 2: Unit price
      Item 3: Delivery date
      Item 4: Commission rate
    2. The value is acquired as the cursor moving in the order of the following, and after it edits it, it is set again.
      (The cursor moves to each item though the reason is not understood. )
          Amount > unit price > fixed time of delivery > commission rate
    3. It takes time until it becomes possible for the user to operate because a cursor movement above-mentioned 2 is slow on an online screen.
      It increases with this cursor for about one second every an item.
    << Client specs when executing it >>
         CPU Intel Core(TM2) when measuring it Duo 1GHz
         RAM 1GB
    As for the item setting processing, because the cursor movements only of the same number are generated when the edited number of items is ten items, is 20 items, and increases, the delay is expected in proportion to the number of items.
    I hope the functional improvement of the item setting with UI-API.
    Operation where the cursor moves to acquisition and a set item is lost.

    In addition, the scroll bar is unable to be used by anyone using a left handed mouse option.

Maybe you are looking for

  • How to get the children of a TreeTableModel and how to sort them?

    Hi all, I used a JXTreeTable in my application; this JXTreeTable has a TreeTableModel in it. I 'd need to get the children of a node and sort them.....how could i do it ? Cheers. Stefano

  • Why does iPhone beep when charging

    My iPhone continues to beep when charging....can anyone tell me how to stop the beeping

  • "Choppy" audio connection

    Howdy folks, I've read the FAQs and the various other threads in this forum and I haven't been able to solve this problem of mine on my own. I apologise if I have missed something! My girlfriend and I are trying to use an audio connection in iChat. C

  • Nodevice found in find my iphone in icloud account

    yes i enable it in Settings > iCloud > Find my iPhone but when i enter i cloud account through internet from my pc in that find my iphone when i enter it is getting no devices plz telme what happen if my phone is offline or is it switched off ?

  • Recurring Leave in Oracle Absence Management

    Hi All, I have requirement where employee will have recurring leave like every thursday he/she will be off for next 4 months lets say. This thursday can be any other day in next week. Basically 1 day per week. There is proper schedule for employee fo