APPLICATIONSCREATION GRAPHIQUE ★ ICON DESIGNER (POPULAR COMPUTING WEEKLY) ★

Icon Toolkit (Popular Computing Weekly 1987-04-17)Icon Toolkit (Popular Computing Weekly 1987-05-01)Icon Toolkit (Popular Computing Weekly 1987-05-08)
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

Icon Toolkit provides eight new commands for Amstrad Basic that enable the user to create (or simulate) a WIMP (windows, icons, menus, pointer) environment from Basic. Also included is an Icon Designer program to enable the user to design icons for use from Basic. There follows a brief rundown of the commands followed by a description of how firstly icons and secondly menus can be set up from Basic.

Icon Commands

|Source, base

Sets the base address

address from which the icon data is to be taken. One icon takes 64 bytes.

|lcon,x,y,number

Places an icon on the screen. When designing icons it is best to make notes of the order in which your icons are stored. In the example memo program 5 icons (numbers 1 to 5) are used.

|Pointer,x,y,colour,@a%

Places a pointer on  screen at x,y in a certain colour. The pointer can be moved around the screen with the cursor keys. When the COPY key is pressed the variable a% returns the number of the icon selected.

Window/Mouse Commands

|Tcoord,x,y,@a%

Returns the screen address equivalent of text coords x,y.

|Gcoord,x,y,@a%

Returns the screen address equivalent of graphics co-ords x,y.

|Cut,screen address,store address,width, depth
|Paste,screen address,store address, width, depth

These commands store and replace respectively a section of the screen starting at the given address, in the store address. The dimensions of the screen section must be given (in bytes not pixels).

|Fwindow,screen address, width, depth, mask

Fills a specified section of the screen, starting at the given address with a pixel mask (1 to 255). The dimensions of section must be given (again in bytes, not pixels).

Examples To use the icon commands:

  1. Design your icons with the designer. If you require more than 5 icons you can merge your designer files into memory at 320 byte intervals. (320 bytes = 5 x 64 bytes).
  2. Set the |SOURCE command to the base address of the data.
  3. Place your icons on screen with the |ICON command.
  4. Place the pointer on the screen with the |POINTER command.
  5. Use the On a% . . . command to assign sub-routines to icons.

For example:

10 memory 39999
20 load "data",40000
30 |SOURCE,40000
35 print chr$(23) ;chr$( 11)
40 p%=1
50 for n%= 100 to 500 step 100
60 |ICON,n%,300,p%
70 p%=p%+1
80 next
90 a%=0:|POINTER,50,300,1 ,@a%
100 on a% gosub 200,300,400,500,600
200 rem SUBROUTINES . . .
300 ....
400 ....
500 ....
600 ....

To use the window/menu commands:
  1. Use the |TCOORD/|GCOORD commands to find the required location for a window.
  2. Store the present contents of that location with the |CUT command.
  3. Fill your window with a background using the |FWINDOW command.
  4. Set up menu of print message in window using Basic.
  5. When finished replace the old screen contents in place of the window.

For example:

10 a%=0:|TCOORD, 10,10,@a%
20 |CUT,a%, 16384,40,100
30 |FWINDOW,a%,40,100,240
40 paper 1:pen 0
50 locate 12,11:print "WINDOW"
60 locate 12,15:print "PRESS A KEY"
70 while inkey$="":wend
80 |PASTE,a%,16384,40,100
90 paper 0:pen 1

As this is a three week production more listings follow.

PCW

★ PUBLISHER: Popular Computing Weekly
★ YEAR: 1987
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LiCENCE: LISTING
★ AUTHOR: Simon T. GOODWIN



★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» Icon  Designer    (Popular  Computing  Weekly)    ENGLISH    LISTINGDATE: 2025-05-23
DL: 329
TYPE: PDF
SiZE: 2277Ko
NOTE: Supplied by archive.org ; 5 pages/PDFlib v1.6

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » AMX 3D Zicon
» Applications » Icon Designer
» Applications » UNICON: UNIversal CONnection
» Applications » Fidicon
Je participe au site:
» Pour ce titre nous ne disposons de fichier executable sur CPC (Dump, Saisie du listing) , alors si vous avez ça dans vos cartons ou vous désirez usé vos petit doigts boudinés sur votre clavier faites le nous savoir.
» Vous avez des infos personnel ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.732-desktop/c
Page créée en 629 millisecondes et consultée 1707 fois

L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent  du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.