Jump to content
Korean Random
SV_Kirov

Как создать форму(Окно) в ангаре

Recommended Posts

@SkepticalFox The above two links cannot be open at my side.

 

 

now I got a transparent imovable transparent view when I use AbstractView class in AS and AbstractWindowView in PY( it a coincident actually)

 

image.png.4c26f4e985d2c4331f64b5968b4696d0.png

 

You can find the text with link at top-left corner and the two button below ( the checkbox with tooltip also) ,  next step is adding image and make it movable

 

@Budyx69 

On 7/13/2015 at 2:46 AM, Budyx69 said:

Nice :-)

 

THX

 

shot_128zrsel.jpg

 

 

Work :-)

How to add icon to garage like above?

Edited by yinx2002

Share this post


Link to post

Short link
Share on other sites
9 hours ago, yinx2002 said:

How to add icon to garage like above?

there are different ways to do this, for example like this:

[Embed(source="image.jpg")]
public var imageClass:Bitmap;

// later on you can instantiate it and use:
addChild(new imageClass()); // creates and adds new image

from https://stackoverflow.com/questions/23347816/embed-images-using-flashdevelop-as3

Share this post


Link to post

Short link
Share on other sites
3 hours ago, yinx2002 said:

can somebody show me the code to add a slider?

slider = addChild(App.utils.classFactory.getComponent("Slider",Slider, {

minimum: 0,

maximum: 100,

snapInterval: 10,

snapping: true,

liveDragging: true,

value: 50

})) as Slider;

not tested
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

I found a class ProgressBar under net.wg.gui.components.controls which is the same location as the Slider or SoundButton in prev. example. But when I use

 

progress = addChild(App.utils.classFactory.getComponent("ProgressBar ",ProgressBar , {

minimum: 0,

maximum: 100,

value: 50

})) as ProgressBar ;

 

I got error 

 

2022-01-25 10:33:07.495: ERROR: object with "ProgressBar " linkage is not a component from library!
2022-01-25 10:33:07.496: ERROR: object with "ProgressBar " linkage can`t cast to [class ProgressBar]

 

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...