depeyrot@imag.imag.fr (Gilles Depeyrot) (12/05/90)
I have programmed a user interface for a program on Mac, and I have the two following problems: 1) I detect at program startup whether there is a color monitor present or not. It works fine on any Mac other the the MacIIfx (I have tried on Mac Plus/SE/SE30/II/IIx/IIcx ). On a MacIIfx, I don't detect the color. My routines checks what kind of Mac it's running on, then checks if the ROM & system present can handle color (some traps have to be present) and finally checks if the monitor is B&W, Color set on B&W or Color set on Color. 2) I use Macs with azerty keyboards, and the program has recently been tested on Macs with qwerty keyboards. The command key equivalents seem to stick to an azerty keyboard layout. The way I translate keyboard events is : theEvent.message & charCodeMask (in C) so I should end up with a caracter code and not a physical key code as I appear to be getting. The same problem appears if I set my azerty keyboard to qwerty. If anyone could help me out... Any suggestions welcome, Gilles. -------------------------------------------------------------------------------- Gilles Depeyrot depeyrot@imag.fr ENSIMAG depeyrot@ensisps6.imag.fr "May the force be with you..." --------------------------------------------------------------------------------
Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) (12/08/90)
> 1) I detect at program startup whether there is a color monitor present > or not. It works fine on any Mac other the the MacIIfx (I have tried > on > Mac Plus/SE/SE30/II/IIx/IIcx ). On a MacIIfx, I don't detect the > color. My routines checks what kind of Mac it's running on, then > checks if the ROM & system present can handle color (some traps have > to be present) and finally checks if the monitor is B&W, Color set > on B&W or > Color set on Color. Why not just use SysEnvirons and check for hasColorQD? -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org