PbDataWindow right click issue on UFT - powerbuilder

I am trying to mimic mouse right click on PbDataWindow on UFT the following way:
PbWindow("w_mdi_base_frame").PbWindow("w_m_edit_order").PbDataWindow("dw_open_jobsteps").SelectCell "#1","completed_dt"
Shell.SendKeys "+{F10}"
But after I run, I do not see my expected items in the drop-down list, instead, I see in the drop down following items (Undo, Cut, Copy, Paste, Delete, Select All, Right to left Reading order, Show Unicode Control Characters, Insert ....)
I assume these are the standard items for PbWindow class object. How can I get PbDataWindow drop down items by right clicking? Or how I should implement right click correctly in my UFT script?

Related

In Eclipse, how to NOT sort open file list alphabetically?

There's a little "show list" button in the upper right corner at the end of the document tabs row. When clicked, it displays a drop down list of all open files.
In all my past experience with Eclipse, it's never sorted this drop down file list alphabetically. It's always displayed the open files in the order that their tabs appear horizontally. This made it easy for me to navigate, arranging related files near one another and knowing where they are located in the list.
Recently something changed to make that drop down list always sort alphabetically. I really hate this and it's slowing down the speed at which I switch between files (mainly when I'm working on one file and need to jump to one that's far away in the list).
Anyone know if there's some hidden setting that'll undo this sorting and revert it back to the default (unsorted)?
Eclipse version is Luna. Perspective is C/C++.

plugin to set selection start cursor in Firefox without holding mouse button?

when selecting large swaths of text from webpage I have to keep left mouse button pressed while searching for the selection's end. It would be nice if the browser would "remember" selection's start point and let me search for the ending point, e.g. by dragging the scrollbar downwards, without pressing the mouse button.
Does a plugin or other implementation of this sort already exist?
The answer to this is OS/Windowing system specific. In most/all systems there is a normal way to have the system perform what you are desiring. An add-on for Firefox is not required.
Windows:
If you click (button down and up, not button down and hold) at the start, or the end of the selection you desire then move the mouse to the other end of the desired selection (scrolling the page as needed to get the the other end) you can then hold the shift key down and click again. This will select the entire region from the first point you clicked to the second point you clicked while holding the shift key. You can adjust the selection by continuing to hold the shift key while doing any of: clicking on a different location, performing a click-drag movement, or using the keyboard cursor keys. This adjustment does not change the point at which you first clicked, just the second, end point.
It is also possible to use the control key to select individual items. This is possible in combination with clicks, double-clicks, and triple-clicks. An example would be to move your mouse around in this paragraph holding the ctrl key down while double-clicking on various words. Your selection will include just the words on which you double-clicked. In some instances, when using only a single ctrl-click to select from a discrete list (e.g. a Windows Explorer folder display), a second ctrl-click on the same item will de-select it. You can also combine the use of ctrl-click and shift-click to create more complex selections with the beginning of the shift-click selection starting at the most recent ctrl-click location.
The Mouse and Pointers page in the Windows Dev Center provides some fairly technical descriptions as guidelines for Windows developers.
Linux (using GNOME):
The interactions are similar to What was described for Windows, but a bit different. Section 10.1.2. Selecting Objects of the GNOME Human Interface Guidelines 2.2.3 provides a good description.
Apple/OSX:
The Macintosh Human Interface Guidelines describes how selections can be made on Apple machines.

Firefox Dev Tools highlight DOM nodes when clicking an element

To be clear, this is not highlighting in the sense of finding an element from the DOM Inspector to the page, or vice versa. It's behavior I haven't seen before, but then I usually use Chrome.
I'm debugging a textarea that won't accept clicks, or allow selection, or basically gain focus in any way. I noticed that clicking on the textarea, in the page, caused several DOM nodes in the Inspector to highlight, and then fade away after a second. None of the nodes that highlighted were the textarea; they were parents of the textarea, including the body, but not necessarily all of the parents in between the textarea and the body. There was also a sibling of one of the parents highlighted, as well.
It's one of those things where Firefox is trying to tell me something, but I don't know what. I feel like the answer to my original problem is probably contained in this highlight, if only I knew what it meant.
In the attached screenshot, you can see the textarea highlighted in blue, being the selected element, and the rather grossly-colored highlights on a few other elements; this was right after I clicked on the textarea (in the page, like I was trying to enter some text in it; not in the inspector)
What does it mean?
When the nodes in the markup view (the thing in your screenshot) highlights, it means that these nodes have gone through mutations. These can be of the following manner:
Attribute value change on the node
Addition/Removal of child nodes
Now, what you are actually looking a way to hover the textbox and get the markup view to select your textbox, right ?
You can do that in two ways:
Hit the shortcut Ctrl + Shift + C. You will see an overlay on the page which follows your mouse. Head over to text box and click it.
Click the "Pick an element from the page" button on top left corner of the developer tools and the same node-selector will appear.
For more and deep information : visit the MDN page : https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector

the combobox dropdown list is so small that an updown arrows appear beside it

I have comboboxes that was built on the OWL I moved them to MFC and I faced alittle problem, the dropdown list of the combobox is so short that it shows only one item and you can navigate to the other items by using udown arrows like in the picture
the image on the left shows the short and incorrect one, the one on the right shows the release version that is working well.
what can cause this problem? and hoe to fix it. think it is style issue
Open dialog template in Resource Editor. Select combobox by mouse. Click on the "Down Arrow" element in the right part of the combobox (in your case it may be left part, according to localization). Then resize the combo to required height - in this state it resizes dropdown list. Build application and test dropdown list height at runtime - it should be OK.
http://msdn.microsoft.com/en-us/library/vstudio/4cta1x1t.aspx
See also: CB_SETMINVISIBLE message - allows to resize dropdown list size programmatically. I have never use it in my programs, though, so this is just a hint.

Access 2010 Data Macros Causing Form Refresh For No Reason

I'd like to report this as a bug to Microsoft, but was wondering if anyone else has encountered this.
++++
Here's a really interesting and obscure issue with Access 2010 Data Macros.
The issue is that the firing of a before update data macro on a table is causing a unwanted and unnecessary form refresh. The refresh is clearing all the selections from several multi-select listboxes on th form. I want the selections to stay. The form worked just as I wanted prior to adding the data macro (no clearing of mslb selections).
To reproduce this issue.
This is happening in a split / front end - back end scenario. With front and back both being Access 2010 files.
In back end ACCDB...
Create a table "Items" with ID and Description columns and also a date_updated column.
Put a Data Macro on the before update on this table that sets the "date_updated" field to now().
In front end ACCDB... with Items table linked...
Now create a blank form unbound to any table.
Create an unbound multi select listbox on the form and populate via any other table or with a value list (doesn't matter what the rowsource is) and it can be bound or unbound - doesn't matter.
now notice if you run the form, select some items in the listbox then press F5 ("refresh"), your listbox selections are cleared as expected. this just to demonstrate that refresh of form clears listbox selections. *
Now create a button on the form. Behind this button, put VBA code like this.
docmd.runsql "insert into Items (Description) values ('test')" (just any valid sql statement that inserts a row into the items table)
open the form.
select several items in the list box.
press the button. you will see that the form is refreshed and therefore you lose the listbox selections.
close the form and now remove the data macro from the Items table.
open the form, select items in the listbox, press the button.
Now that there is no data macro, the form is not refreshed and the selections stay.
++++++++++++++++++
Bottom line: for some reason a data macro firing on a table totally unrelated to the form (but triggered by code behind the form) causes a form refresh.
Disable the data macro and the form does not refresh.
Why would a data macro... on the back end ACCDB file... cause a form refresh on the front end? Remember, the form has nothing to do with the table, or the data macro.
This is forcing me to abandon my data macros. I don't think this is intended or desired behavior in Access 2010.
I'd love to get confirmation from anyone that this is an issue!
Thanks!
I was able to confirm your issue when the Before Change data macro was in place and the list box Multi Select setting was Extended. Under the same conditions the list box selections were not clobbered if its Multi Select setting was Simple. (I noticed that when Multi Select was set to Simple then [F5] would not clear the selections either.)

Resources