#2 Topics related with App Builder » How I can set my Select control's item index? » 2017-07-05 11:28:02

starin
Replies: 2

i want to select number 2 item of my list box items with code , but why this code not work ????

SetVar "[Select1.ItemIndex]" "2"

#3 Topics related with App Builder » How we can include and use custom fonts in our applications » 2016-12-02 13:11:51

starin
Replies: 1

Hi,

What is the best way to add our custom fonts into application and use it ?

i add this code into my InlineCSS, but i don't know which place i must copy my custom font file so my app can found it
(my app need to run on android and web platforms)

@font-face {
    font-family: 'Swis721 Cn BT';
    src: url('SWISSCB.TTF') format('truetype');
}

#4 Topics related with App Builder » Set the [App.TextDirection] & [App.LanguageCode] variables in runtime » 2016-11-25 14:22:36

starin
Replies: 7

Hi,

How to set the App TextDirection from ltr to rtl with Codes ?

thanks .

#6 Re: Topics related with App Builder » How to Set an various Image's Popover Text in runtime » 2016-11-18 09:52:19

Thanks david,
yes i know about java script sample , but  the problem is i don't know how to set a special image control popovertext.

this code work fine :

StartJS
  window.App.View1.Scope.Image1.PopoverText = [N] ;
EndJS

i know this code is false but i want to do something like this (there is many pictures so i need to set they by ID):

StartJS
  window.App.View1.Scope.Image[ID].PopoverText = [N] ;
EndJS

#7 Topics related with App Builder » How to Set an various Image's Popover Text in runtime » 2016-11-18 06:58:04

starin
Replies: 6

hi every one,

there is many image controls in my view1 and their name is : Image1  Image2 , .....
and want to set their PopoverText , so i create a function with it's own arguments [ID] , [N] and call it , but this not work.

SetVar "Image[ID].PopoverText" "[N]" "String"

Thanks

#8 Topics related with App Builder » Where to place external Javascript code in our applications » 2016-11-09 19:11:00

starin
Replies: 1

Hi, i added this code in content html control and got Error: "'myMove' is undefined" ,
is there any way to call a function is defined in html?
thanks !

<!DOCTYPE html>
<html>
<style>
#myContainer {
  width: 400px;
  height: 400px;
  position: relative;
  background: yellow;
}
#myAnimation {
  width: 50px;
  height: 50px;
  position: absolute;
  background-color: red;
}
</style>
<body>

<p>
<button onclick="myMove()">Click Me</button>
</p>

<div id ="myContainer">
<div id ="myAnimation"></div>
</div>

<script>
function myMove() {
  var elem = document.getElementById("myAnimation");
  var pos = 0;
  var id = setInterval(frame, 10);
  function frame() {
    if (pos == 350) {
      clearInterval(id);
    } else {
      pos++;
      elem.style.top = pos + 'px';
      elem.style.left = pos + 'px';
    }
  }
}
</script>

</body>
</html>

#9 Re: Topics related with App Builder » How To Change MediaPlayer Background Color? » 2016-11-09 18:21:27

David wrote:

Hello starin,

Try with the below code modification:

videogular, [videogular]
{
  background-color: white;
}

Thanks david
but when we load or set a video it not work, just when there is no video defined for media player it work.

#10 Re: Topics related with App Builder » How To Change MediaPlayer Background Color? » 2016-11-09 14:57:51

Dear david
thank you for your great support ,yes sure,

about the code, it not work in IE explorer or Microsoft Edge, but in chrome it works . is there any way to work on for microsoft edge or IE explore?

#11 Topics related with App Builder » How To Change MediaPlayer Background Color? » 2016-11-09 08:34:16

starin
Replies: 5

Hi every one,

is there any way to change MediaPlayer control Background ?

i do :

select my MediaPlayer1 control -> in footer properties window ->select Style tab ->in BackgroundColor -> set to #ffffff

also i try to MediaPlayer1 background from InlineCSS :

#MediaPlayer1
{
  color: white;
  background-color: #F0FFFF;
}

but nothing change ! it's always black ( why i need to change ? because the content of my video is in a white atmosphere and when user try to resale window , the black background of mediaplayer will shows in borders, to keep aspect ratio )

thanks,

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.