New topic: 

Changng rotated text

<http://forums.realsoftware.com/viewtopic.php?t=47005>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Ozzy          Post subject: Changng rotated textPosted: Wed Feb 
20, 2013 3:03 am                         
Joined: Thu Jul 28, 2011 2:45 am
Posts: 31                I have produced an engineering program with a graph in 
a canvas. For the Y-axis of the I have rotated the text using the 2D Group 
method. I want to change the text when I change content of a pop-up menu. When 
I run the program, the text is changed but it just writes over the previous 
text. I need to somehow erase the old text before writing over it. Can anybody 
help. My present code is as follows:

  Dim s as new stringshape
  Dim d as New Group2D
  
  s.textsize = 12
  s.textfont = "system"
  
  If Win1.Popup.text="niobium" then
  s.text = "wt % niobium"
  elseif Win1.popup.text="vanadium" then
  s.text = "wt % vanadium"
  elseif Win1.popup.text="titanium" then
  s.text = "wt % titanium"
  End if
  s.rotation =-3.1415926535897931/2
  d.append s
  
  Winmultiple.Graphics.drawobject d, 50, 405

I have placed the code in the change event of the popup control.


Regards,
Ozzy   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to