On Friday, January 9, 2004, at 04:08 AM, Bernie Wylde wrote: > Robert Covington wrote: > >> I am suffering grief from Appearance runtime button - edit fields. >> _kControlEditUnicodeTextProc = 912 >> dim as ControlFontStyleRec cfs >> cfs.flags = _kControlUseFontMask_kControlUseJustMask >> cfs.font = _kControlFontBigSystemFont >> cfs.just = _teJustRight // Ignored it seems... >> SetRect(r, 250, 209, 280, 225) >> appearance button _LevelsMasterWhiteField,¬ >> _activeBtn,¬ >> 1, 0, 1, , @r,¬ >> _kControlEditUnicodeTextProc >> def SetButtonFontStyle( _LevelsMasterWhiteField, cfs ) >> def SetButtonTextString(_LevelsMasterWhiteField, "255") >> >> Problem 1....how can one set it to center or right justify? Doesn't >> work (te is a clue, probably ignored by this type of control.) >> Problem 2...how can one filter input with same control so that one >> can't type in alpha characters (0-255 only is legal) >> Seems impossible. Carbon Events required? >> _kControlEditUnicodeTextProc gives much benefit, such as prettier >> text, and not the scraggly (in OS X) regular EF type, but the >> downside appears to be the 2 problems I have. >> Argh. How can we write professional looking apps given these factors? >> Problem 1 is not really a problem. But Problem 2 would be so spiffy >> if it could be handled by a Key filter... >> The control above doesn't seem to generate an _evKey anything. I'm >> confoundabulated. >> Anybody have a suggestion to beat this nematode? > > Robert, > > I've not yet looked at eunuch ode text controls but I was kindly sent > a working demo quite a while back (thanks RP). You're right, it do > require Carbon Events and RP's KeyFilterProc demo, posted recently, is > also supposed to work with this type of control. Don't know about > justification though. > > HTH > Bernie > > Is it ethical to post another's work without permission? Oh well, here > goes: This isn't a time for ethics, but run-ics. Build-ics. Out the door-ics. Ic-ics. Correct-ics. Fix-ics. :) Thanks. Will peek at it. I probably have that already. I probably forgot about that already. I see that I forgot about RP's Appearance button helper too. darn. Must have been in the middle of Editor X (was, for a return key blocker) 9/29/03... that's the ticket. Ah, that's refreshing, and soluble. I now feel like a fine carbonate, roasting in the hot cold of Gusev crater, blocked by an airbag, which has either a disconnected cord or rock under it (or dead martian), getting all gooey by that fine "mud" which you heard it here first, is Oil. Oil, discovered on Mars by deduction, Bob D. Covy. Sure explains all those crater spews better, the famed dark streaks, which instead of being exposed darker dirt, are just exposed darker oil, covered over by fine windblown martian dust. Then again, might be some new brand of mars goo, Mars KY, as yet unknown. Might be an edit field dilemma, spewing word goo. Might be might making wrong. Mites. Must kill them. Speaking of dead things, the recent click of a mouse trap sends another mouse soul to evolve to a yet higher form of mouse, the USB Device. Poor mousie. Ye were offered the live trap, but noooooo, you had to avoid that, making alternatives, dire alternatives, available. Free Tip: Get over your fetish for Eukenuba dog food, you mouse. It's for dogs. Robert-ics.