how to make text Moving Persian in basic4android[b4a] - persian

Im have a problem in basic 4 andriod
how to make a text in basic 4 android that moving from left to right and write a moving text???
im need help

Assuming your text is in a label, either call the below code in a for loop or a timer:
label.left=label.left-5 'This moves our label 5 pixels to the left.
The same can be done for any control.

as "mikeward2534" said above you should increase or decrease left property of view such as label and etc.but if you want it infinite moving you should write a condition in Timer that if label is out of phone border start from left or right again.

you can simply use [TextView].SetLayoutAnimated if you want to move a TextView with animation.
hopefully it would help you

Related

Auto scroll through ag-grid unpinned rows is working but I need this plunkr to loop once it hits the bottom

I have this plunkr I have been messing with that is basically a test of my first use of ag-grid. I started off wanting the following:
Use ag-grid for the first time - done
Sort Array of data based on count, then name - done
Pin Top 5 Results at the Top - done
Auto Scroll slowly (controllable) through bottom "unpinned" results - kind of done (works in edit mode of plunkr but in just the url view mode it just jumps to the bottom... see below for workaround)
Loop back to the top SMOOTHLY once it hits the bottom where it has the appearance of just flowing like a wheel turns - this is where I am lost.
So my problem is, I dont know how to tell it has hit the bottom of the scrollable area and be able to flow the UI to give the appearance as much as possible that it didnt skip a beat and just restarted scrolling from the top in an endless loop. Here is my plunkr https://next.plnkr.co/plunk/J2s7Aeyp2Yr3BefC
Really as long as the "animation" looks nice and smooth I can probably live with it, Im just looking for any help.
WORKAROUND: To see the scroll work if it just jumped to the bottom, hit the red minus button a few times and it will scroll up at that rate, then once at the top just hit the blue plus a few times to make it a positive number and it should scroll smoothly to the bottom.
Thanks for any help
I figured it out, you can look at my plunkr for the working model of looping through the scroll.

Fully Customize UIPIckerView?

Target: To give feel like casino scrollers.
Description: I want to make a scroller which will start automatically as i click any button... which scroll with maximum speed and slow down speed and stop after certain speed just like you must have seen in Casino scrolls.
I am not allowed to use UIPickerView
Can any one please guide me so that i can complete this task
Thanks
I know this is the heck solution.
If you want to scroll on button clickable (then you would be knowing which position to stop) so you can always use
selectRow:inComponent:animated:
Selects a row in a specified component of the picker view. so you can animate that scroll by selecting row on unwanted position and after some time(you can use timer once the timer is done) select the row at wanted position.
You could use a UIScrollView with a very large content size and a repeating pattern inside it. You'd probably need extra code to make it only come to a stop at appropriate points. To avoid ever hitting the end of the scroll view, you could jump back up by the length of the repeating pattern whenever you get a chance.

iPhone: Verticle alignment for Numbers in Label in Landscape mode

I am trying to align label text vertically aligned for my iPhone application Timer. Basically it's a game application and timer value appears in MM:SS format in label in landscape mode. When I have added label and tried to set this value it appears like image 1 which is not correct. I found from many threads that you can set multiple line and make label width as one char but it appears like image 2 which is also wrong. I want my timer value to appear as image 3. Could anyone please tell me how could I achieve it?
Thanks.
[Added real picture of what I am trying to do]
try this
CGAffineTransform transform=CGAffineTransformMakeRotation(300);//change angle according.
transform=CGAffineTransformMakeRotation(-300);//change angle according.
lbl.transform=transform;

how can i animate image that moves up automatically

hi i am new to iphone. what i need is i want to display an image for example balloon. when ever i click the button the balloon automatically start moveing up vertically from bottom of the simulator to top of the simulator.While it reaches top of the simulator automatically it moves towards down.How can i done this.please post any relevant code or link.Thank you in Advance.
Have a look at this example from Apple you just need to recognize the first touch on the balloon and then make it move wherever you want (by using an animation or manually redrawing the UIImageView representing the balloon each time using a NSTimer)

Graphic scrolling in iPhone SDK

I have a graphic that is 3 times the width of an iphone landscape view.
I am trying to auto scroll it so that it appears that it is moving sideways, without using the touchscreen scrolling method.
My aim is to maybe have a button you can press and it moves it left or right across the screen like an animation.
I can deal with everything else but am having trouble finding a solution.
Any example code would be appreciated or even any info on whether it is possible or not.
Thanks. Dave
You can wrap a UIView in an animation block. The animation sweeps the origin value in its frame property from one point to another, over a set period of time.