Jump to content

What the heck is an SWT_Window control?


Recommended Posts

I am trying to write a script to interface with the IBM/Rational RAD6 application, and so far it has proven chock-full of interesting custom-controls. I've gotten past the others, but this SWT_Window control is throwing me for a loop. Each RAD6 perspective is full of them, and each of them contains a variety of controls, the most obvious being TABS (which I am assuming the "T" is SWT_Window stands for). Has anyone encountered these before? I can't seem to locate anyting applicable in the Auto3Lib members, and need some pointers. :)

Link to comment
Share on other sites

I had to laugh - I did a Google search, and your question was the first hit! :)

Some Google searches were somewhat instructive, though. Here is a page with some intro material

http://www.javazoid.com/swtGridPuzzle.html

[...]SWT, the open-source Software Windowing Toolkit that drives Eclipse and which is creating rave reviews and great claims about the future.

Like the Java AWT, SWT is a relatively thin layer over native operating system windowing APIs. Unlike AWT, it is a much more direct implementation of Java calls to native windowing APIs. The concept of AWT "peer" objects are missing in SWT. As well, it seems quite a bit faster to display and react than typical AWT GUIs. Indeed -- despite some complaints from other OS users -- the Windows implementation behaves almost identical to native Windows applications.

So yeah, some custom controls that appear to be part of Eclipse.
BlueBearrOddly enough, this is what I do for fun.
Link to comment
Share on other sites

I had to laugh - I did a Google search, and your question was the first hit! :)

Tha'ts rich. ;)

So, how do you interact with these things without using a mouse? I've tried every combination of control keys I can think of, and I can't get them to change tabs, etc, without clicking on them...which I can do with AutoIt, but because the script would be used across multiple machines, with a variation in monitor sizes, resolutions, etc, that kinda defeats the whole purpose of automating them.

And progress is a good thing...? [sigh]

Link to comment
Share on other sites

Doh! :">

Ok, It's late in the week, and I'm slow on the uptake....

I would put together a UDF if I could get the frakkin' SWT_Window to respond to anything useful. That's my complaint, really, that they shrug off everything I send to them. I canset focus on the dang things, and sent it a keystroke or two, but I can't get them to switch tabs (very important) and let me walk through a the imbedded SysTreeList control.

Be nice if I could get any kind information out of the critter othern than its ControlID...

Link to comment
Share on other sites

By the way, as an update to this (and for anyone else that might find it useful): At least for the RAD6 IDE, I found that a combination of <Cntrl><Fn> keys opened a context menu for the SWT_Window control I was working with, followed by a combination of <Cntrl><arrow> keys to select a menu item. The same process seemed to work with a couple of the other SWT_Window controls.

I have to assume that this is relative, and will vary from application-to-application, but has proved useful. :)

Edited by JeffHarris
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...