New topic: 

dynamic deletion of HelpTag does not work on Fedora

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

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       Roland Foster           Post subject: dynamic deletion of HelpTag 
does not work on FedoraPosted: Mon Aug 03, 2009 7:57 am                        
Joined: Sat Jan 12, 2008 12:54 pm
Posts: 17              I'm testing with a Windows system and two Linux systems. 
  Windows XP Pro, SP 3
  Red Hat 2.6.18-128.el5
  Fedora 2.6.27.21-78.2.41.fc9.i686, Gnome 2.22.3
The code works perfectly on Windows and Red Hat, but not on Fedora.
The intent is to capture the HelpTag text, remove it from the RectControl, and 
display it how, when, and where I choose. On the Fedora system it works as 
planned, EXCEPT that the HelpTag does not get blanked out. Instead, it appears 
as a HelpTag normally does, when the mouse pointer hovers over the control. 
Unlike normal operation, though, the HelpTag does not vanish after a few 
seconds. It persists until the mouse is moved off the control.Code:// Iterate 
through all the controls in the window.
For j = 0 to Self.ControlCount-1       // number of controls in the window
  x = -1
  If Self.control(j) IsA RectControl Then    // see if it's based on RectControl
  t = RectControl(control(j)).HelpTag    // yes -- get the control's HelpTag
  If t <> "" Then            // was there some text?
  x = RectControl(control(j)).TabIndex   // yes -- save the TabIndex value
  RectControl(control(j)).HelpTag = ""   // blank the HelpTag
  End If
  End If
  If x > -1 Then             // found a HelpTag?
  If m < x Then m = x          // save highest TabIndex
  tt.Append(t)             // save the text
  tx(Ubound(tt)) = x           // save the TabIndex
  End If
Next j

This code is in the window open event.
Any ideas?   
                            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