AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SB_SETTEXT() problem

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
tuna



Joined: 03 Oct 2007
Posts: 47
Location: Bristol, England

PostPosted: Fri Nov 30, 2007 7:29 pm    Post subject: SB_SETTEXT() problem Reply with quote

Hi
I can't seem to get sb_settext to work within functions (since I'm going to make many text and icon changes I wanted to simplify the procedure):

Code:
sys$status(fnl$txt = "", fnl$ico = -1, fnl$icoPath = "")
{
   if fnl$ico != -1
   {   
      if !fnl$icoPath
         fnl$icoPath = Shell32.dll
      
      SB_SetIcon(fnl$icoPath, fnl$ico)
   }
   return SB_SetText(fnl$txt, 2)
}


Any suggestions anyone?

Many thanks
Back to top
View user's profile Send private message
tuna



Joined: 03 Oct 2007
Posts: 47
Location: Bristol, England

PostPosted: Fri Nov 30, 2007 9:55 pm    Post subject: Reply with quote

thank ive found the error now (i reference partnumber starting from 0)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group