Focus issue in scroll edit text openlaszlo - openlaszlo

I am having a problem with scrolledittext in DHTMl runtime I am using firefox 16.0 I have this following code when i run this and trigger the onfocus event the whole text is getting selected.Any idea why?
I am using Openlaszlo 5.0
<canvas>
<include href="incubator/scrolledittext.lzx" />
<include href="lz/vscrollbar.lzx"/>
<include href="incubator/newvscrollbar.lzx"/>
<include href="incubator/newvscrollbar_resources.lzx"/>
<button name="text">
<handler name="onclick">
canvas.sp.inp.onfocus.sendEvent();
</handler>
</button>
<scrolledittext name="sp" x="50" y="50"
height="300"
width="400"
focusable="true"
>
</scrolledittext>
</canvas>

Related

<InsertAfter> & <InsertBefore> Tags are not working with Custom tabs in Office-JS

My question is regarding the CustomTabs option in the Office JS Manifest file.
I created a custom tab element in my Office JS manifest file.
It's working fine and appears as the last item from the right. But I would like this custom tab to place after Home Tab and according to this documentation https://learn.microsoft.com/en-us/office/dev/add-ins/reference/manifest/customtab the or should do the trick.
But's it's not working in my case. I tried running the code on MAC and as-well-as on windows and the issue remains the same.
I tried searching the internet but couldn't find anything related to it.
Any pointer or help will be highly appreciated.
Thanks
Aman
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
<Id>05c2e1c9-3e1d-406e-9a91-e9ac64854151</Id>
<Version>1.0.0.1</Version>
<ProviderName>Contoso</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Contoso Task Pane Add-in"/>
<Description DefaultValue="A template to get started."/>
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-64.png"/>
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
<AppDomains>
<AppDomain>https://www.contoso.com</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Document"/>
</Hosts>
<DefaultSettings>
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="Document">
<DesktopFormFactor>
<GetStarted>
<Title resid="GetStarted.Title"/>
<Description resid="GetStarted.Description"/>
<LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
</GetStarted>
<FunctionFile resid="Commands.Url" />
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<!-- <OfficeTab id="TabHome"> -->
<CustomTab id="TabCustom1">
<Group id="CommandsGroup">
<Label resid="CommandsGroup.Label" />
<Icon>
<bt:Image size="16" resid="Icon.16x16" />
<bt:Image size="32" resid="Icon.32x32" />
<bt:Image size="80" resid="Icon.80x80" />
</Icon>
<Control xsi:type="Button" id="TaskpaneButton">
<Label resid="TaskpaneButton.Label" />
<Supertip>
<Title resid="TaskpaneButton.Label" />
<Description resid="TaskpaneButton.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.16x16" />
<bt:Image size="32" resid="Icon.32x32" />
<bt:Image size="80" resid="Icon.80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="Taskpane.Url" />
</Action>
</Control>
</Group>
<Label resid="customTabLabel1"/>
<InsertAfter>TabHome</InsertAfter>
</CustomTab>
<!-- </OfficeTab> -->
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
<bt:Url id="Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
<bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
</bt:Urls>
<bt:ShortStrings>
<bt:String id="GetStarted.Title" DefaultValue="Get started with your sample add-in!" />
<bt:String id="CommandsGroup.Label" DefaultValue="Commands Group" />
<bt:String id="TaskpaneButton.Label" DefaultValue="Show Taskpane" />
<bt:String id="customTabLabel1" DefaultValue="ABC" />
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
<bt:String id="TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" />
</bt:LongStrings>
</Resources>
</VersionOverrides>
</OfficeApp>
Unfortunately InsertBefore and InsertAfter elements are currently only supported on PowerPoint. Expanding this to Excel and Word is in our roadmap but we currently have no ETA. Will work with the content team on updating the documentation to reflect this limitation, sorry for the confusion.

Android Studio - Can't manually resize buttons

For some reason I can't manually resize any buttons on the design view using the handles. I can click and drag the handles but when I release, no changes are seen anywhere.
EDIT:
Here is the xml for the button:
<Button
android:text="√"
android:id="#+id/button15"
android:background="#drawable/operator_style"
android:textAllCaps="false"
android:fontFamily="sans-serif"
android:textSize="24sp"
android:textColor="#707070"
android:layout_alignBaseline="#+id/buttonLog"
android:layout_alignBottom="#+id/buttonLog"
android:layout_alignStart="#+id/button8"
android:elevation="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
And the linked background "operator_style" xml:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" >
<shape>
<solid
android:color="#00C7FC" />
<stroke
android:width="4dp"
android:color="#9FEDFF" />
<corners
android:radius="0dp" />
</shape>
</item>
<item>
<shape>
<solid
android:color="#cccccc" />
<corners
android:radius="0dp" />
<elevation
android:elevation="2dp" />
</shape>
</item>
</selector>

Haxe program to hide console

I am trying to hide the console when running the Haxe application.
I am using FlashDevelop to compile Haxe into hxcpp, and this is my project.xml
<?xml version="1.0" encoding="utf-8"?>
<project>
<!-- metadata, make sure 'package' is at least 3 segments (ie. com.mycompany.myproject) -->
<meta title="haxeGame" package="haxeGame" version="1.0.0" company="xiggie" />
<!-- output -->
<app main="Main" file="haxeGame" path="bin" />
<window width="800" height="480" fps="60" background="0x000000" orientation="landscape" resizable="false" borderless="true" />
<window vsync="true" antialiasing="6" />
<!-- classpath, haxe libs -->
<classpath name="src" />
<haxelib name="openfl" />
<haxelib name="actuate" />
<!-- assets -->
<icon path="assets/texture.jpg" />
<assets path="assets" rename="assets" />
<!-- optimize output
<haxeflag name="-dce full" /> -->
<!-- Windows app: hide console -->
<setenv name="no_console" value="1" />
<flag value="subsystem:windows" />
</project>
I have tried all of these:
<haxeflag name="-D no_console" />
<haxedef name="no_console" />
<setenv name="no_console" value="1" />
Is it actually possible to remove the console from the release app?
The console should be hidden by default. To make it appear one needs to add
<setenv name="SHOW_CONSOLE" />
However, when using mingw instead of msvc as compiler, the toolchain configuration that comes with hxcpp currently does not pass the flag to the linker that avoids the creation of a console window.
To work around this, search for the mingw-toolchain.xml in your haxe installation and add the -mwindows flag to the linker configuration.
I created a pull request for this https://github.com/HaxeFoundation/hxcpp/pull/286

What UML tool is this file from?

I've got a bunch of *.uml files in one legacy project that look like this:
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JS</ID>
<OriginalElement>...</OriginalElement>
<nodes />
<settings layout="Hierarchic Group" zoom="0.8528951486697965" x="288.0" y="309.5" />
<SelectedNodes />
<Categories>
<Category>Fields</Category>
</Categories>
<SCOPE>All</SCOPE>
<VISIBILITY>PUBLIC</VISIBILITY>
</Diagram>
Any idea which tool generated this?
These files are IntelliJ IDEA (Ultimate Edition, not Community Edition) diagram files, used store UML diagrams generated by IntelliJ.
Here is an example shown in IntelliJ:
Here what the .uml file contains:
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JAVA</ID>
<OriginalElement />
<nodes>
<node x="-317.5" y="-101.0">com.artechra.Detail</node>
<node x="-320.5" y="-195.0">com.artechra.Master</node>
</nodes>
<notes />
<edges>
<edge source="com.artechra.Master" target="com.artechra.Detail">
<point x="0.0" y="0.0" />
<point x="0.0" y="0.0" />
</edge>
</edges>
<settings layout="Hierarchic Group" zoom="1.0" x="0.0" y="0.0" />
<SelectedNodes />
<Categories />
<SCOPE>All</SCOPE>
<VISIBILITY>private</VISIBILITY>
</Diagram>
According to the text that appears in each diagram, it's all "powered by" yFiles which may well be the generic markup format.

Generated swf does not work on server

When I compile my project to flash target, every thing is fine, if I double click the resulted swf file, it will open with local flash player properly.
But, when I try to host the swf file on xampp, and load it via html file at http://127.0.0.1/testopenflswf/index.html , I get only blank screen..
<html>
<head>
</head>
<body bgcolor="#eeeeee">
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=11,0,0,0"
width="1200"
height="800"
id="myFlashObject"
>
<param name="movie" value="DCACLabjsclientside.swf"/>
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="salign" value="lt" />
<param name="scale" value="noscale" />
<param name="menu" value="false" />
<param name="bgcolor" value="#00ffff"/>
<embed
src="DCACLabjsclientside.swf"
quality="high"
salign="lt"
width="1200"
height="800"
align="middle"
scale="noscale"
menu="false"
bgcolor="#00ffff"
name="myFlashObject"
swLiveConnect="true"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
/>
</object>
</body>
</html>
if I try to test it on ubuntu, I get this error inside the swf area:
Assets.hx: 792: [openfl.Assets] There is no asset library named "Compo"
But, Compo library loads fine without the server, and its defined in project as:
<haxelib name="swf" version="1.1.1" />
<library path="Assets/compact-dcaclabs-assets-cc.swf" name="Compo"/>
Any one can help?

Resources