Silk Test - PressItem alternative with Open Agent - silktest

I need to move all my scripts from Classic to Open Agent and I faced with one problem and dont know how to fix. I have some TreeView where need to rightclick on selected item, before where used PressItem(TreeView.GetSelItem(),2)
But now whole treeview moved to Open Agent declaration and PressItem function is not supported by OA.
Using keyboard is not a solution, because "application" button is not working in that treeview.
Is there any solutions to open context/drop-down menu from selected item?

Fixed by using GetItemRect + GetSelText + OpenContextMenu

Related

Codenameone new Gui Builder can't add components

I started using the CN1 new Guibuilder for the first time today and can't fathom out how to add components. I have watched and read the tutorials but my system isn't behaving the same.
I create a new CN1 project and the 'Form' guibuilder class, right mouse click > Guibuilder > the builder IDE opens fine and looks visually correct. On the right hand side panel i select any component, eg. Label, and as i am dragging onto the canvas it looks as per the tutorial - the handles and height/widths properties visible - see .
I release the mouse button and it leave a grey box
If i click on the grey box (or try to add any component) it disappears
Wierdly if i click and drag and at the same time click the PrintScreen button, the label sometime stays on the canvas with the handles and i can see its properties panel, but when i try and change a property, the Label vanishes.
Basically if i try and change anything in the builder, including clicking one the Layouts (bottom left panel) for the GuiForm then the builder seemingly rebuilds itself and collapses and hides anything i have open - resetting itself back to when it was first opened. It's like its in a read-only mode.
Is there a log i can look at? I am not getting any error in my console. Eclipse is running normally in all other areas.
I'm on the latest JRE and Eclipse Neon.3 and latest CN1 updates.
EDIT 12/11/17
The name value in the guibuilder.input is empty:
`<?xml version="1.0" encoding="UTF-8"?>
<con name="" formName="GuiForm" file="file:/C:/VersionControl/sandpit/GuiBuilderTest1/res/guibuilder/com/thinksmart/guibuilder2/GuiForm.gui" javaFile="file:/C:/WINDOWS/system32/GuiBuilderTest1/src/com/thinksmart/guibuilder2/GuiForm.java" resFile="file:/C:/VersionControl/sandpit/GuiBuilderTest1/src/theme.res" outputFile="file:/C:/Users/William/CN1_Home/.guiBuilder/3979cc5c-798a-41b4-9bda-d7824141986a.ouput" running="file:/C:/Users/William/CN1_Home/.guiBuilder/3979cc5c-798a-41b4-9bda-d7824141986a" />`
The GuiBuilderTest1/codenameone_settings.properties file for this brand new project is:
`codename1.vendor=CodenameOne
codename1.displayName=GuiBuilderTest1
codename1.icon=icon.png
codename1.arg.java.version=8
codename1.languageLevel=5
codename1.secondaryTitle=GuiBuilderTest1
codename1.version=1.0
codename1.mainName=MyApplication
codename1.ios.certificatePassword=
codename1.arg.ios.newStorageLocation=true
codename1.rim.signtoolDb=
codename1.ios.certificate=
codename1.j2me.nativeTheme=nativej2me.res
codename1.android.keystorePassword=
codename1.rim.signtoolCsk=
codename1.android.keystore=
codename1.android.keystoreAlias=
codename1.rim.certificatePassword=
codename1.ios.provision=
codename1.packageName=com.thinksmart.guibuilder2`
The CN1Log file also has the name attribute as ''.
I think I've been looking at this in the wrong direction. I think the problem isn't a permission problem but a naming problem. It seems that the project name is blank for some reason which I didn't think would be an option but I guess it is.
The project name should come from codename1.displayName in codenameone_settings.properties. I'll add a fix for this to work with "UnnamedProject" for version 3.81.

Finding empty label in Windows form

I am new to Windows Form application and trying to build a small application.
I had dragged and dropped a label on the main form.
Then I deleted its text property to empty string basically hiding the label.
Now I would like to move this label to some other location on the form but unable to do so because I cannot find it.
I checked the designer file and its there.
But I cannot find it in the form so that I can grab it and move to a different location.
Please help.
Thanks
Use Document Outline. Look at the following images.
That happens to me several times, and a few weeks ago I found a way to get the empty label like this:
On the tab "Properties" just click on the arrow to show all controls and click on the label you want, this will automatically select the label on your form..

Access database - Form

Simply I would like one form to open on top of another (automatically).I've searched the net and found nothing that helps or works.
In some more details - When opening the database, the system automatically loads up "Form1", which looks very nice in the middle of not only my screen, but others as well, but I would like to hide all the visible sign's of access. Yes I can hide the tool bars etc, but what I was looking for was to create a form "Background", load that automatically and then load up "Form1" on top.
For some reason I can't seem to get form1 to load so it's visible. Yes it loads, but under the background form. I've tried all settings of popup, modal, visible, onload, onopen. I've set the database to open minimized (but that does not hide the fact that it is access).
Please can anyone come up with a solution.
Just to clear things up:
You want a hidden form (background) that loads another form that is visible?
All this needs to be done in a windows form application (c#)?
Is this what you want?
You could try VBA.
This is how a form is loaded.
Private Sub Form1_Load()
OpenForm(FormName, View, FilterName, WhereCondition, DataMode, WindowMode, OpenArgs)
End Sub
I don't have access to ms-Access now, but I believe this should work.
These are parameters you should/can fill in:
FormName, View, FilterName, WhereCondition, DataMode, WindowMode & OpenArgs
More info: https://msdn.microsoft.com/en-us/library/office/ff820845.aspx

Open XQuery panel in BaseX

I have tried many times to open the XQuery panel on BaseX. I've searched just about anything on the GUI opened any panel that could be opened and searched throughout the documentation of BaseX, no go.
EDIT
When I go to View > Editor I do not get the XQuery panel I get this one:
The query editor is hidden under "View" -> "Editor", or using the hotkey Ctrl+E (on OS X, using Cmd instead).
Edit: In the updated screenshot, the query editor is already visible. The "XQuery" view was renamed some time ago, when the editor was enhanced. Just press the "+" button in the tab view to open a new tab to write XQuery code.

GtkNotebook: Appending to the Default Popup Menu

Is there a way to append a menu item to the popup menu that appears by default on right-clicking a GtkNotebook's tab (the one that contains the names of all the open tabs)?
As a somewhat gross hack, it might be possible to use gtk_notebook_get_menu_label() to get the GtkLabel in one of the tab's menu items on that menu, and then use parent-walking from there to find the menu.
Possibly this only works when the menu is being realized/shown, you could try adding event handlers on that label to detect that.
On the other hand, user4815162342's suggestion of re-implementing the menu is way easier.
Looking at the source code, it would appear that there is no way to append to the existing menu: the menu is kept in a private structure, and it is popped up directly on button-press event.
You can disable the default menu, connect to button-press event, and popup your own menu.

Resources