How to change TLFTextField direction at runtime?
I create a TLFTextField object at design time and need to change its direction at runtime, how this could be possible?
the following code did not work and simply ignored:
var myText:TLFTextField = MyText;
myText.textFlow.direction = "rtl";
What should I do?
Yes, it work and I was know it, for this reason I emphasis that I created control at "DESIGN time", I want to change the direction of controls that created at design time not creating at runtime with var tf:TLFTextField = new TLFTextField();
To reproduce the problem create TLFText on your scene with text tool and name it "MyText" then
var tf:TLFTextField = MyText; // instead new TLFTextField();
..rest of your code
now you will see that nothing will be change! I struggled many hours but still no success.
Do you have any idea in this case?
Similar Messages
-
How to change the direction of my application ?
apex 4.0 , db11gxe , firefox 24 ,
hi all,
how to change the direction of my application from left to right to right to left of vice versa ?newbi_egy wrote:
sure i did , i found nothing ,
provide me with a link if you have one
thanks
Hi,
That's strange.
Search works just fine for me
https://forums.oracle.com/search.jspa?view=content&resultTypes=&dateRange=all&q=rtl&rankBy=relevance&contentType=all&con…
Regards,
Jari -
How to change the direction text writen!
i will write a notepad in pure java. but i will make it like this: item is top to bottom, and line is left to right. This is mongolian. but i dont know how can change the direction of text writen.
please tell me!Here's what you should do:
suppose your string is "abc" and you want to display that reversed:
1. reverse the string
2. find where your start point is (where you're going to draw 'a'
3. Use FontMetrics to calculate the offset from the start point you need to make to print the string where it should be -
How to control report direction at runtime
Hi All
I want to control report direction(Left_To_Right or Right_To_Left) at runtime.
to make every thing is clear I want to call the report from Form passing parameter ,according the parameter the direction should be directedYes, it work and I was know it, for this reason I emphasis that I created control at "DESIGN time", I want to change the direction of controls that created at design time not creating at runtime with var tf:TLFTextField = new TLFTextField();
To reproduce the problem create TLFText on your scene with text tool and name it "MyText" then
var tf:TLFTextField = MyText; // instead new TLFTextField();
..rest of your code
now you will see that nothing will be change! I struggled many hours but still no success.
Do you have any idea in this case? -
How to change report displayname at runtime when run from the report server?
hi all,
with the reportviewer widget in a winforms app, i'm able to change report displayname at runtime by handling thesubmittingparametervalues event like so:
private void reportViewer1_SubmittingParameterValues(object sender, ReportParametersEventArgs e)
string po = e.Parameters["Order"].Values[0];
this.reportViewer1.ServerReport.DisplayName = "Load Out - " + po + " - " + DateTime.Now.ToShortDateString();
question: how do i achieve the same thing when the report is run via the ssrs reportserver website?
thanks for any tips,
sffHi sherifffruitfly2,
According to your description, you want to change the display name of report in Report Manager. Right?
In Reporting Services, we can't make the report file name dynamically. But we have Build-in Fields to show report name and execution time in a report. We can add a textbox and put in the expression below:
="Load on- "+Globals!ReportName+" "+Globals!ExecutionTime
It will show the report name with execution time when we run the report:
Reference:
Built-in Collections in Expressions (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
In Pages: How to change text direction in cell?
in Pages, I'd like to change the direction of the text in a table I'm creating.
In the first column (one long column -- I've merged the cells) the work is reading left to right. How do I make it read up and down?
Thanks in advance!Here's what I found:
Insert a text box from the INSERT menu.... it's also available at the FORMAT menu, but I chose Insert.
Don't drag yet!
place cursor and type your text.
Then, click on the METRICS menu in the Inspector pane
Rotate. Getting exactly to 90 degrees was difficult. Maybe because I called it 90% at first!
Now you can drag.
It might look better to spread out the letter spacing in the text you have entered. Do that from the "text" tab in the Inspector pane.
if you double click, or even click too much, the text box will jump back into a horizontal position -- Dont' worry, it's trying to let you edit.
just go back to "Metric" and change it back to 90 degrees.
Thanks Barry for answering this 3 years ago, and getting me started! -
How to change Text2D color at runtime...
Hi,
In fact I used Text3D and I was able to change color, text, font, style at runtime. I don't know if you guys have the same problem but Text3D doesn't render correctly (some letters are hidden by others) (i'm on a SGI Irix).
So I decided to go back to Text2D but I can't find how to change the color, text, font and style at runtime.
I've a Shape3D instance myShape = new Text2D(someParams);
When I want to change it I tried myShape = new Text2D(otherParams);
But nothing happened...
I've tried detaching the shape, modify it, and re-add it to the graph, but it is still the same after adding it...
If someone could tell me how I can do that it would be a great help.
thank you
Fredhttp://forum.java.sun.com/thread.jsp?forum=21&thread=356750
-
How to change the tablename at runtime?
Hi
IN _10gR2_
I would like to know if there is a way to change the tablename at runtime - other than using dynamic sql.
These table have similar structure except the tablename iteself.
For ex. depending on where we get a request we want to look/update different table:
if request_from x then
select * from table where ....
or it could be update or insert statement here
end if;
if request from y then
select * from table_y where ....
or it could be update or insert statement here
end if;
Thanksuser565033 wrote:
sorry, this is not an optionWell the best you'll get is something like...
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 2850 30
7782 CLARK MANAGER 7839 09-JUN-1981 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 3000 20
7839 KING PRESIDENT 17-NOV-1981 5000 10
7844 TURNER SALESMAN 7698 08-SEP-1981 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 950 30
7902 FORD ANALYST 7566 03-DEC-1981 3000 20
7934 MILLER CLERK 7782 23-JAN-1982 1300 10
14 rows selected.
SQL> select * from emp2;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 0 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 0 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 0 500 30
7566 JONES MANAGER 7839 02-APR-1981 0 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 0 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 0 30
7782 CLARK MANAGER 7839 09-JUN-1981 0 10
7788 SCOTT ANALYST 7566 19-APR-1987 0 20
7839 KING PRESIDENT 17-NOV-1981 0 10
7844 TURNER SALESMAN 7698 08-SEP-1981 0 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 0 20
7900 JAMES CLERK 7698 03-DEC-1981 0 30
7902 FORD ANALYST 7566 03-DEC-1981 0 20
7934 MILLER CLERK 7782 23-JAN-1982 0 10
14 rows selected.
SQL> with req as (select &required_table as req from dual)
2 --
3 select * from emp, req where req = 1 union all
4 select * from emp2, req where req = 2
5 /
Enter value for required_table: 1
old 1: with req as (select &required_table as req from dual)
new 1: with req as (select 1 as req from dual)
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO REQ
7369 SMITH CLERK 7902 17-DEC-1980 800 20 1
7499 ALLEN SALESMAN 7698 20-FEB-1981 1600 300 30 1
7521 WARD SALESMAN 7698 22-FEB-1981 1250 500 30 1
7566 JONES MANAGER 7839 02-APR-1981 2975 20 1
7654 MARTIN SALESMAN 7698 28-SEP-1981 1250 1400 30 1
7698 BLAKE MANAGER 7839 01-MAY-1981 2850 30 1
7782 CLARK MANAGER 7839 09-JUN-1981 2450 10 1
7788 SCOTT ANALYST 7566 19-APR-1987 3000 20 1
7839 KING PRESIDENT 17-NOV-1981 5000 10 1
7844 TURNER SALESMAN 7698 08-SEP-1981 1500 0 30 1
7876 ADAMS CLERK 7788 23-MAY-1987 1100 20 1
7900 JAMES CLERK 7698 03-DEC-1981 950 30 1
7902 FORD ANALYST 7566 03-DEC-1981 3000 20 1
7934 MILLER CLERK 7782 23-JAN-1982 1300 10 1
14 rows selected.
SQL> /
Enter value for required_table: 2
old 1: with req as (select &required_table as req from dual)
new 1: with req as (select 2 as req from dual)
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO REQ
7369 SMITH CLERK 7902 17-DEC-1980 0 20 2
7499 ALLEN SALESMAN 7698 20-FEB-1981 0 300 30 2
7521 WARD SALESMAN 7698 22-FEB-1981 0 500 30 2
7566 JONES MANAGER 7839 02-APR-1981 0 20 2
7654 MARTIN SALESMAN 7698 28-SEP-1981 0 1400 30 2
7698 BLAKE MANAGER 7839 01-MAY-1981 0 30 2
7782 CLARK MANAGER 7839 09-JUN-1981 0 10 2
7788 SCOTT ANALYST 7566 19-APR-1987 0 20 2
7839 KING PRESIDENT 17-NOV-1981 0 10 2
7844 TURNER SALESMAN 7698 08-SEP-1981 0 0 30 2
7876 ADAMS CLERK 7788 23-MAY-1987 0 20 2
7900 JAMES CLERK 7698 03-DEC-1981 0 30 2
7902 FORD ANALYST 7566 03-DEC-1981 0 20 2
7934 MILLER CLERK 7782 23-JAN-1982 0 10 2
14 rows selected.
SQL>Otherwise you'll have to perhaps use a few "alter table rename..." ddl's to switch the table names around prior to your query. -
How to change worksheet direction in numbers
Hi,
I have the latest update of numbers, and I write in Hebrew (which is a right-to-left language). The worksheet in numbers is left-to-right and I was wondering how I can change it to a right-to-left sheet.
Thanks,
Idan AshkenaziHi Tom,
Tom Gewecke wrote:
I think the improved bi-directional support was essentially limited to fixing the bugs that made RTL text input pretty impossible in earlier versions. The reference to "reversing the direction of tables" is curious, however.
False advertising? As a Level 9 contributor, could you please tell Apple that idanash1990 expected more?
Regards,
Ian. -
How to change the direction of a moving object
I am trying to make a connect four program for class, and i am trying to make it so the red check piece move down. But instead it move left n right -.-, ive tried changing the coordinates but then the piece would just spin in circle or spins out of control. Here is the code i have right now, can someone help me please =D .
import java.awt.*;*
*public class Circle{*
*private int centerX, centerY, radius;*
*private Color color;*
*private int direction, velocity;*
*private boolean filled;*
*public Circle(int x, int y, int r, Color c){*
*centerX = x;*
*centerY = y;*
*radius = r;*
*color = c;*
*direction = 0;*
*velocity = 0;*
*filled = false;*
*public void draw(Graphics g){*
*Color oldColor = g.getColor();*
*g.setColor(color);*
*// Translates circle's center to rectangle's origin for drawing.*
*if (filled)*
*g.fillOval(centerX - radius, centerY - radius, radius* 2, radius *2);*
*else*
*g.drawOval(centerX - radius, centerY - radius, radius* 2, radius *2);*
*g.setColor(oldColor);*
*public void fill(Graphics g){*
*Color oldColor = g.getColor();*
*g.setColor(color);*
*// Translates circle's center to rectangle's origin for drawing.*
*g.fillOval(centerX - radius, centerY - radius, radius* 2, radius *2);*
*g.setColor(oldColor);*
*public boolean containsPoint(int x, int y){*
*int xSquared = (x - centerX)* (x - centerX);
int ySquared = (y - centerY) *(y - centerY);*
*int radiusSquared = radius* radius;
return xSquared +ySquared - radiusSquared <= 0;+
+}+
+public void move(int xAmount, int yAmount){+
+centerX = centerX+ xAmount;
centerY = centerY +yAmount;+
+}+
+public int getRadius(){+
+return radius;+
+}+
+public int getX(){+
+return centerX;+
+}+
+public int getY(){+
+return centerY;+
+}+
+public void setVelocity(int v){+
+velocity = v;+
+}+
+public void setDirection(int d){+
+direction = d % 360;+
+}+
+public void turn(int degrees){+
+direction = (direction+ degrees) % 360;
// Moves the circle in the current direction using its
// current velocity
public void move(){
move((int)(velocity *Math.cos(Math.toRadians(direction))),*
*(int)(velocity* Math.sin(Math.toRadians(direction))));
public void setFilled(boolean b){
filled = b;
import javax.swing.*;*
*import java.awt.*;
import java.awt.event.*;
public class ColorPanel extends JPanel{
private Circle circle;
private javax.swing.Timer timer;
public ColorPanel(Color backColor, int width, int height){
setBackground(backColor);
setPreferredSize(new Dimension(width, height));
// Circle with center point (25, 100) and radius 25
circle = new Circle(25, height / 2, 25, Color.red);
circle.setFilled(true);
// Aim due west to hit left boundary first
circle.setDirection(90);
// Move 5 pixels per unit of time
circle.setVelocity(5);
// Move every 5 milliseconds
timer = new javax.swing.Timer(5, new MoveListener());
timer.start();
public void paintComponent(Graphics g){
super.paintComponent(g);
circle.fill(g);
private class MoveListener implements ActionListener{
public void actionPerformed(ActionEvent e){
int x = circle.getX();
int radius = circle.getRadius();
int width = getWidth();
// Check for boundaries and reverse direction
// if necessary
if (x - radius <= 0 || x + radius >= width)
circle.turn(90);
circle.move();
repaint();
}with that code my circle just spins back n forth rapidly. How can i make it so it drop to a certain location everytime i click the mouse?lilkenny1337 wrote:
I am trying to make a connect four program for class, and i am trying to make it so the red check piece move down.
How can i make it so it drop to a certain location everytime i click the mouse?Try this:
public class ColorPanel extends JPanel {
private Circle circle;
private Timer timer;
private int stepX, stepY, xM, yM;
public ColorPanel(final Color backColor, final int width, final int height) {
setBackground(backColor);
setPreferredSize(new Dimension(width, height));
// Circle with center point (25, 100) and radius 25
circle = new Circle(25, height / 2, 25, Color.red);
circle.setFilled(true);
// Aim due west to hit left boundary first
circle.setDirection(90);
// Move 5 pixels per unit of time
circle.setVelocity(5);
// Move every 5 milliseconds
final MoveListener ml = new MoveListener();
timer = new Timer(5, ml);
addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(final MouseEvent e) {
if (timer.isRunning()) {
return;
xM = e.getX();
yM = e.getY();
int xC = circle.getX();
int yC = circle.getY();
stepX = (xM - xC) / 10;
stepY = (yM - yC) / 10;
timer.start();
@Override
public void paintComponent(final Graphics g) {
super.paintComponent(g);
circle.fill(g);
private class MoveListener implements ActionListener {
public void actionPerformed(final ActionEvent e) {
if ((stepX > 0 && circle.getX() >= xM)
|| (stepX < 0 && circle.getX() <= xM)) {
stepX = 0;
if ((stepY > 0 && circle.getY() >= yM)
|| (stepY < 0 && circle.getY() <= yM)) {
stepY = 0;
if (stepX == 0 && stepY == 0) {
timer.stop();
circle.setLocation(xM, yM);
/* add this method in the class "Circle":
public void setLocation(int xM, int yM) {
centerX = xM;
centerY = yM;
} else {
circle.move(stepX, stepY);
repaint();
} -
How to change subscriptionDurability status at runtime.
I have written a MDB which is Durable at startup but I want to change it to 'NonDurable' at runtime on receiving a particular message. Please advise how at runtime I can change the settings of the MDB.
My MDB class file is as follows:
package test;
import javax.ejb.*;
import javax.jms.*;
@MessageDriven(
mappedName="topic01",
activationConfig={
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic"),
@ActivationConfigProperty(propertyName="subscriptionDurability", propertyValue="Durable")})
public class FirstDurableMDB implements MessageListener {
public void onMessage(Message message) {
TextMessage tm = (TextMessage)message;
try {
String str = tm.getText();
if(str.equals("NonDurable")){
PLEASE TELL ME WHAT I SHOULD WRITE HERE
} catch (JMSException e) {
e.printStackTrace();
}The TopicSession has an unsubscribe(String subscriptionName) method - http://download.oracle.com/javaee/1.4/api/javax/jms/TopicSession.html#unsubscribe(java.lang.String), but then you will have to rely on plain MessageListeners rather than MDBs.
-
How to change form properites at runtime
Hi I have a text data item that I have set to enabled=no and conceal data=yes. I want to write a trigger for a command button that changes these properties to enabled=yes and conceal data=no. How do you change a data items properties at runtime?
<p>Look, in the online documentation at the Set_Item_Property() built-in.</p>
(and keep this link to study the other chapters of this great documentation)
Francois -
How to change the direction of movement in atable from left to right?
As the title says i want to change the movement direction in the cells of a table in pages when i click tab key from "left to right" to "right to left", is that possible?
It seams that we aren't using the same application.
In mine, if the cell C3 is selected, pressing shift + tab select the cell B3 which is what you wanted in your original post (or I understood it wrongly).
If what you want is the ability to insert a new row above the current one or at top of a table, you can't do that this way.
Same response if you want to insert a new column to the left of the table.
To do that, the soluce is to select the top row or the leftmost column.
There is a funny bug in the menu items.
If your table has a header row, entering the menu Format > Table, we get four items:
Insert new header above
Insert new header below
if we are in the header row
or
Insert new row above
Insert new row below
Insert a column before
Insert a column after
These four menus items have shortcuts :
option up arrow
option down arrow
option left arrow
option right arrow
If the table has no header, the menu items are :
Insert new row above
Insert new row below
Insert a column before
Insert a column after
None of them display a shortcut *_but the shortcuts are active_*
Yvan KOENIG (VALLAURIS, France) samedi 11 septembre 2010 23:52:27 -
How to change column type at runtime in Apex 4.0
Hello everybody,
I´m newbie as Apex developer using Apex 4.0 with OracleXE 11.2, and now my problem is:
I have a tabular form where one of the columns, when calling the form, is a Display Item, so that you cannot change existing values.
I want, when adding a new row, that column become a Select List (named LOV) based on a query that exclude existing values in other rows already inserted.
Can I change that Display Item to Select List (named LOV) programmatically at runtime?
If not, what other options do I have?
Thanks a lot for any help,
Greetings976832 wrote:
Hello everybody,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "976832".
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
I´m newbie as Apex developer using Apex 4.0 with OracleXE 11.2, and now my problem is:
I have a tabular form where one of the columns, when calling the form, is a Display Item, so that you cannot change existing values.As a self-confessed inexperienced APEX developer, why are you using complex and ugly tabular forms? Take a moment to think about this: have you ever seen this kind of UI pattern on any decent website: +{thread:id=850889}+ ?
I want, when adding a new row, that column become a Select List (named LOV) based on a query that exclude existing values in other rows already inserted.
Can I change that Display Item to Select List (named LOV) programmatically at runtime?
If not, what other options do I have?I suggest you build this using basic APEX components (form + report from the Form wizard), then customize the form using read-only conditions to switch between the select list and read-only value. -
How to change style property in runtime
Hallo. I have this style tag in my main application:
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
@font-face {
src: url("../caratteri/MyriadPro-Bold.otf");
fontFamily: "MyriadPro-Bold";
embedAsCFF: true;
.mioStileMyriadProBold {
fontFamily:MyriadPro-Bold;
fontLookup: embeddedCFF;
</fx:Style>
It works good but i wish to change the fontFamily while the program is running. How can i do that?
Thx a lot.
MaxHallo. Thx for the answer. I would like to know if your solution is working always. I mean, in my example i showed you that i have this:
.mioStileMyriadProBold {
fontFamily:MyriadPro-Bold;
fontLookup: embeddedCFF;
But what if i have 2 custom styles??.. How can i change one or another specifically ??
I hope you understand what i mean.
Max
Maybe you are looking for
-
List of attachments carry over?
Just wondering if the history of the attachments for incidents and change requests are carried over to the data warehouse? If so how or what would I use to show that when creating a report using report builder? Thanks, Help
-
Safari freezes inside a Screen Sharing (VNC) session
I have a Mac Mini that is connected to my TV and acts as my media server. I manage this machine via VNC (Screen Sharing). If the TV is off (i.e. the Mini is running headless), Safari will freeze when rendering most webpages. If the TV is on, Safari
-
Hi, I had to reinstall OS 10.3.9 because my computer was acting up. I have a Canopus ADVC 100 connected via frewire. It is an analog video to digital video converter. Now I also have Toast 7.1.2. Whenever I have my Canopus box on and I start up Toast
-
I don't remember the answers to the verifying questions in app store?
What can I do if I need an urgent purchase and asks me for the answers to some questions which I don't remember of. What can I do?
-
How to create search help for Maintanence View
Hi, I want to create a Search Help for a Maintanence View and bring Conditions in this Search Help. Condition can be as e.q. Show me only the Records with Status 2. How can I achieve this? Thanks. Best Regards Beserithan Malabakan