home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.apple2      Discussion about Apple II micros      56,720 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 55,929 of 56,720   
   Tom Thumb to All   
   toolbox alert with resources   
   25 Nov 22 10:27:35   
   
   From: justliketomsthumbsblues@gmail.com   
      
   "Toolbox Programming in C", Mike Westerfield, pg79 states:   
      
   "size	This field is generally a single character controlling the size of the   
   alert window.   
   	The character is a numeric digit, from 0 to 9. All but the first of these   
   digits corresponds to a specific size window, but the 0 character is the first   
   byte of a nine byte field. The other bytes define the size of the window by   
   listing the edges as two-   
   byte integers, in this format:..."   
      
   I get rects and V1,H1,V2,H2 coordinates But not how to specify them in a   
   string.   
      
   My question: If I enter a 0 as the first character of the alert string how do   
   I then enter the four two-byte integers in the nine byte field? I've tried   
   several things and I'm thinking it's simple but I'm not getting it.  I know   
   there are calls I can    
   make providing templates but I'm trying to get this resource example working   
   specifying a custom alert size.   
      
      
   /*- About Box --------------------------------------------------*/   
      
   resource rAlertString (1) {   
      "43/"   
      "Frame 1.0\n"   
      "by Mike Westerfield\n"   
      "\n"   
      "Contains libraries from ORCA C,\n"   
      "Copyright 1991, Byte Works Inc."   
      "/^#0\$00";   
      };   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca