I want to set a class to "Always on top" property. Anybody got an idea?

I want to set a class to "Always on top" property. Anybody got an idea?
bhaskasr

If you are using Win2000, it's not (AFAIK) possible. I and my colleagues solved the problem by using some native code which finds the corresponding native window and brings it to front.

Similar Messages

  • Anybody got an idea how to add EDIT to cl_salv_table class

    I like the simplicity of the new  CL_SALV_TABLE class - however as most of us realize it DOES lack edit capability.
    What makes it really nice of course is that it at the basic level doesn't need any screens or even a field catalog to be defined  / programmed by the user.
    The cl_gui_alv_grid has all this functionality of course but is much more complex to use (judging by the number of posts we get on this Forum still using the old SLIS function module non OO version  of ALV GRID reporting).
    I was just wondering how difficult it would be to either add EDIT capability (user defined Z-class inheriting the cl_salv_table class)  or have some simple link to CL_GUI_ALV_GRID from   CL_SALV_TABLE.
    Any ideas here would be great.
    I really can't understand why SAP didn't build this in -- loads of processing today does actuallly require some type of user interaction -- pure display stuff is a very 1980's type idea - especially when typical work stations (and servers) had minimal power compared to todays systems.
    Cheers
    jimbo

    I've had a quick look, and I think this would be a non-trivial task!  We're blocked from inheritance, (the class is final - grrr - ), so we're left with composition or flow-through.
    The problem with either of these techniques is that we've only got access to public attributes and methods.  
    A place to start would be to identify the relationship between cl_salv_table and CL_GUI_ALV_GRID.  I've not found it yet...
    matt

  • Am i able to set a class object to session?

    Hi,
    i want to store some session data in a web application. I understand session can be set by this way:
    session.setAttribute('student', name);
    session.setAttribute('teacher', name2);
    However the method above stores one a value in a session. I want to store many data in a session. I have code in this way for learning purposes. This is what i'm doing picking from bits and pieces from the internet. Please advise if whether i'm on the correct track.
    I have a student class
    public class Student {
        String name;
    public String getName() {
              return name;     
    public String setName(String name) {
              this.name = name     
    I have a teacher class
    public class Teacher{
          String name;
          public String getName() {
              return name;     
          public String setName(String name) {
              this.name = name     
    I create a SchoolSessionBean class to store this object into a session
    public class SchoolSessionBean {
           private Student student;
              private Teacher teacher;
           public SchoolSessionBean {
           public Student getStudent() {
             return student;
           public void setStudent(Student student) {
             student = student;
            public Teacher getTeacher() {
             return teacher;
           public void setTeacher(Teacher student) {
             teacher = teacher;
    }Ok. Now i want this SchoolSessionBean class to store in a session. This SchoolSessionBean class also stores the data for the student and teacher.
    Inside this class, this is what i coded to store the SchoolSessionBean into a session
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class createSession{
         Student student = new Student();
         Teacher teacher = new Teacher();
         student.setName("John");
         teacher.setName("Dave");
         HttpSession session = request.getSession();
         SchoolSessionBean schoolSessionBean = (SchoolSessionBean)session.getAttribute("schoolSessionBean");
         schoolSessionBean.setTeacher(student);
         schoolSessionBean.setUsagerDetails(teacher);
    }I have not create the jsp but if on the jsp, can i get the session of the schoolSessionBean anywhere, on any page of the jsp and get the values from the student and teacher class using the codes below?
    Can i use the codes below to retrieve the values of the names on any page of the jsp?
    These codes are implemented on JSPS.
    SchoolSessionBean schoolSessionBean = (SchoolSessionBean)session.getAttribute("schoolSessionBean");
    String name1 = schoolSessionBean.getStudent().getName();
    String name1 = schoolSessionBean.getTeacher().getName();Edited by: leeChaolan on Mar 24, 2009 9:11 AM

    Oh i see. So if i want to set the class to a session, can i do it this way as shown below? I plan to try it tonight to see if it works. But just at the mean time, i like to seek some advice on my codes.
    SchoolSessionBean schoolSessionBean = (SchoolSessionBean)session.getAttribute("schoolSessionBean");
         schoolSessionBean.setTeacher(student);
         schoolSessionBean.setUsagerDetails(teacher);Thanks

  • Setting always on top makes it on top of non java applications.

    Hi all..
    If i set always on top property for my frame then my frame is always on top of all the application.
    While i want the frame to be always on top of my Java application not with other windows or any other application.
    Could you suggest me how to proceed for it.

    Typically an application only has a single JFrame, so it is either active or not.
    If you have child windows related to the main frame that you want to also be active when the frame is active then you use a JDialog and specify the main frame as the owner.

  • How to programmatically set the value to current Page layout property?

    Hi,
    How do I set any text value to the current page layout [comment] property and save it.....here my current page is using a custom page layout called spPageLayout1
    To be very much generalized how I can set and save any value to current page property programmatically....on load event I need to set the value.
    It is a publishing page layout.

    Hi,
    According to your post, my understanding is that you want to set the value to current Page layout property.
    To get current page property, you can refer to:
    How to get current Pages details in SharePoint2010 publishing site
    Get Content Field Value in Article Page
    To get current page layout property, you can refer to:
    PublishingPage.Layout Property (Microsoft.SharePoint.Publishing)
    PageLayout.Title Property (Microsoft.SharePoint.Publishing)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • "Always on Top" of jdk 1.5 is not working when...

    I created a sample application that has Frame/Window and displays some text. Then i needed to make the window always visible on top of any other application or windows. But then when i opened applications like Battle Realms, Counter Strike, or any other games, the window is blocked by the previously run application.
    Can you help me on how can i provide solution with this?
    Thanks in advance.

    This might help you!!!
    About setAlwaysOnTop()
    Changes the always-on-top window state. An always-on-top window is a window that stays above all other windows except maybe other always-on-top windows. If there are several always-on-top windows the order in which they stay relative to each other is not specified and is platform dependent.
    If some other window already is always-on-top then the relative order between these windows is unspecified (depends on platform). No window can be brought to be over always-on-top window except maybe another always-on-top window.
    All owned windows of an always-on-top window automatically become always-on-top windows. If a window ceases to be always-on-top its owned windows cease to be always-on-top.
    When an always-on-top window is sent toBack its always-on-top state is set to false.
    This method makes the window always-on-top if alwaysOnTop is true. If the window is visible, this includes bringing window toFront, then "sticking" it to the top-most position. If the window is not visible it does nothing other than setting the always-on-top property. If later the window is shown, it will be always-on-top. If the Window is already always-on-top, this call does nothing.
    If alwaysOnTop is false this method changes the state from always-on-top to normal. The window remains top-most but its z-order can be changed in the normal way as for any other window. Does nothing if this Window is not always-on-top. Has no effect on relative z-order of windows if there are no other always-on-top windows.

  • Put a JSP page always on top

    Hello everyone!
    I'm trying to develop a jsp page that should stay on top of other windows, in other words, it should have a "always on top" property set to true.
    If anyone knows how to do this I would apreciate any help cause this is an urgent matter that I need to solve.
    Thanks in advance.
    Best regards

    Hello Everyone!
    The answer to my doubt is this:
    Use this function ShowModelessDialog refered on
    http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/showmodelessdialog.asp
    Thanks a lot anyway

  • How to open a form always on top but not at focus?

    I had a form application which will call another form as reference. May I know that is there any way I can to to set the called form always on top, but the focus is still set at the calling form so that I can still operate on the calling form?
    Many thanks
    MInny

    Hi:
    Thank you for reply to my question.
    I have tried your codes and apply them the following the form. However, I always got the following error:
    Error: (WWV-00000)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    My codes is:
    declare
    request_no number;
    blk varchar2(30) := 'DEFAULT';
    l_url varchar2(4000);
    begin
    request_no := p_session.get_value_as_NuMBER(
    p_block_name => blk,
    p_attribute_name => 'A_WORK_REQUEST_ID');
    l_url := 'portal30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=11880470335&p_arg_names=_sessionid&p_arg_values=&p_arg_names=work_request_id&p_arg_values='||request_no;
    portal30.wwa_app_module.set_target(l_url,'call');
    end;
    then,
    I created another form which has two fields and the dattype of pk is varchar2 and change manually put the pk's p_arg_value into the url.
    e.g.
    l_url:='PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=9029417810&p_arg_names=WORK_AREA_CD&p_arg_values=APP';
    portal30.wwa_app_module.set_target(l_url,'call');
    However, I still get the error message as below:
    Error: (WWV-00000)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    Your help would be highly appreciated.
    Wei Ye

  • Can I make the TestStand Properties dialog an 'always on top' window?

    I am having window Z order problems, such that calling PropertyObject.DisplayPropertiesDialog() sometimes sends the window behind the my application window. This causes people to think that the application has crashed (it's only waiting for them to dismiss the properties dialog), and often results in the fatal three finger salute.
    This problem cannot be solved by setting Engine.AppMainHwnd, or using the PropDlgOption_ModalToAppMainWind option - it's a long story. Is there a way to set the Z-order priority of TestStand dialogs? If I could set the dialog to 'always on top', all my problems would be solved.
    Thanks,
    Aaron Stibich
    Senior Engineer
    Innovative Technologies Inc.

    Hi Aaron,
    Unfortunately there is no way in TestStand to set the Z order property. You may be able to use Windows API calls though to accomplish the same goal. I will however put in a product suggestion for you so that this request may be looked at.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • My mum is always using my iPad and I want to set mode if you like that she can log in as some one different and use apps she likes and I can use a diFferent log in and use different apps and stuff

    My mum is always using my iPad and I want to set mode if you like that she can log in as some one different and use apps she likes and I can use a diFferent log in and use different apps and stuff

    iOS 7 does not support multiple user accounts like you want.
    If all the apps are different, you could set her up with her own page of apps, then just show her how to get to her apps page, or just buy her an iPad for herself.

  • I set a Special Ring Tone for One of my contacts and now I want to set the standard tone again. How can I adjust the iPhone to always use the standard tone?

    I set a Special Ring Tone for One of my contacts and now I want to set the standard tone again. How can I adjust the iPhone to always use the standard tone?

    Yeah, I did. But if I go to settings and change the standard ring tone again, the ring tone for that special contact is still the old standard tone. But I want to 'tell' my iPhone/iPad that this contact should always have the standard ringtone from settings.

  • Why is it that every time I connect my iphone into itunes, it always asks me if i want to "Set up as a new phone" or "restore from backup"?

    Every time I plug in my iPhone 4 into iTunes, it always asks me if i want to "Set up as a new phone" or "restore from backup". But every time i click on restore from back up it deletes everything & that iTunes message is still there. Is something wrong with iTunes?

    Apparently it does need to be restored because that is what it is requesting. You will need to restore it as New or from a recent backup if you made one.

  • Im using BlueJ, I want  to import a class from a path I set.

    Hi, I'm using BlueJ and I want to import a class from a path I set.
    Like this
    import "C:\myfolder\*";
    Instead of like this
    import java.thing.*;
    Any ideas why the above line is not working for me?

    The import statement takes a class name or package name + .*, not a file name. It has nothing to do with files.
    import package.name.ClassName; // to import a class
    import package.name.*; // to import all classes in the package named "package.name"
    You need to properly specify your classpath at compile-time as well as run-time.

  • If I want to set -Xbootclasspath , how to do it in jnlp file

    if I want to set -Xbootclasspath to let jvm know my classpath, how to do it in jnlp file. or have other way to do it.

    If I want to orb, (now I am using openOrb) , I had to
    let jvm load Orb which I want to use. Did you put those Orb classes into jars and list them in the jnlp file of your Web Start app?
    Regards,
    Marc

  • I want to set up the Time Machine and I would love to use the Time  Capsule but since I already have a wireless router I need suggestions on  what other external disks Apple could recommend to use with the Time Machine and  how to configure that disk

    I want to set up the Time Machine and I would love to use the Time
    Capsule but since I already have a wireless router I need suggestions on
    what other
    external disks Apple could recommend to use with the Time Machine and
    how to configure that disk.
    A complication that I need to resolve is the fact that I am using Vmware
    Fusion to be able to use Windows on my Mac. Now it seems that Time
    Machine is not backing up my files
    on that virtual Windows without additional configuration and my question
    is whether you can advise me here or whether this is only a matter for
    the Fusion virtual machine.

    If you want to use Time Capsule you can.. you simply bridge it and plug it into the existing router.. wireless can be either turned off or used to reinforce the existing wireless.. eg use 5ghz in the TC which is much faster than your 2.4ghz.
    You can also use a NAS.. many brands available but the top brands are synology, qnap and netgear readynas  series. These will all do Time Machine backups although how well always depends on Apple sticking to a standard. There are cheaper ones.. I bought a single disk zyxel which was rebadged and sold through my local supermarket. It actually works very well for TM at least on Snow Leopard. Major changes were made in Lion and again ML so do not instantly think it will work on later versions. I haven't tried it yet with those versions.
    Any external drive can be plugged into the mac. Use the one with the fastest connection or cheapest price according to your budget. USB2 drives are cheap and plentiful. But no where near as fast as USB3 or FW800. So just pick whichever suits the ports on your Mac. Interesting Apple finally moved to USB3 on their latest computers.
    TM should exclude the VM partition file.. it is useless backing it up from Mac OS side.. and will slow TM as it needs to backup that partition everyday for no purpose.. TM cannot see the files inside it to backup just the changes.
    You need to backup windows from windows. Use MSbackup to external drive.. if you have pro or ultimate versions you can backup to network drive. But MSbackup is a dog.. at least until the latest version it cannot restore the partition without first loading windows. There are about a zillion backup software versions for windows.. look up reviews and buy one which works for you. I use a free one Macrium Reflect which does full disk backups and is easy to restore.. to do incremental backups though you have to pay for it.

Maybe you are looking for