Codenameone new Gui Builder can't add components - codenameone

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.

Related

Is this a bug? Using a touch input (With mouse input on) on a button but nothing is done

I am using a button to transit to another layer. But I can't transit to that layer. I am using construct 3.
When I click on that button
onTouched an object (the object is that button) -> Go to layer (Layer02)
But nothing happens. I am using Touch but I have set the mouse input on. I used other object to try such as text field, and it works. Everything works except when I used button.
Is it a bug? Or I am not doing it right. The variables you see in the picture are for debugging purposes.
These are my events:
I think you refer to "transit to another layout" (not layer) 😉
On your screenshot I see all your events are OK. If you add Touch doesn't need add Mouse (you can use the mouse to simulate touch on browser).
I create a new project with the same events and works correctly, I attach a .c3p so you can try it. 😌
https://www.dropbox.com/s/7x1r27rs5a6k5d0/button_layout.c3p?dl=0

change Module position in joomla

I am working on a website using Joomla, how can I change Module position in the picture below
click to see photo
thanks
Since most menus do not allow a search bar to show without it being a drop down item or part of a mega menu, your best bet would be to remove the float:right line of code so it just starts from that left side.

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

Show NotifyIcon Context Menu and Control Its Position?

I'm trying to show a context menu when I left-click a NotifyIcon. Just calling NotifyIcon.ContextMenuStrip.Show() doesn't work very well. A solution has been posted here before that calls a secret method using Reflection:
Dim mi As System.Reflection.MethodInfo = GetType(NotifyIcon).GetMethod("ShowContextMenu", Reflection.BindingFlags.Instance Or Reflection.BindingFlags.NonPublic)
mi.Invoke(Icon, Nothing)
This works great, except that I also need to control where the menu is shown. I want to wait for the SystemInformation.DoubleClickTime to elapse between receiving the NotifyIcon.MouseUp event and displaying the menu, so that I can handle single-clicks and double-clicks separately. But invoking the ShowContextMenu method displays the menu at the current mouse position when ShowContextMenu is called, not when the icon was actually clicked. Which means that if the mouse moved during the DoubleClickTime, the menu will be displayed in a different part of the screen. So if I can control where the menu is shown, I can just save the mouse coordinates when I receive the MouseUp event, and then I can ensure that the menu is displayed near the icon. Is there a way to do this?
Thanks in advance.
Well, I just discovered that there are existing programs that exhibit this same behavior. I just went through all the icons in my system tray and about half of them do it. If you left-click the icon and then move the mouse during the delay before the menu appears, the menu will appear at the last mouse location, wherever that is on the screen. Snagit is one application that does this. Outlook is the only program in my tray that always shows the menu where I clicked the icon. But Snagit looks like it's using a .NET ContextMenuStrip, while Outlook is probably using a native menu.
So either this is standard behavior, or it's a problem that no one else has been able to solve either. And as a user, I've never noticed this behavior until yesterday when I was testing my own application. So I guess it's not that big of a deal and I won't worry about it.

Resources