[futurebasic] Re: [FB] scrolling edit field

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2012 : Group Archive : Group : All Groups

From: Domokos Vekas <domika@...>
Date: Mon, 6 Feb 2012 00:03:15 +0100
Thank you Robert and Brian for the replies and the help.

Robert, your utilities are great and really easy to use, and you
perfectly guessed the level of my programming skills when suggesting
what other attributes I could set in a similar way.

Thank you Brian for your reminder about deprecated technology. This is
a constant issue for me, as I want to maintain my apps for at least
one decade or two. And I am not good at it: I am moving from FB4 to
FB5, presently only one of my three major apps run without Rosetta.
For the moment, my priority is to complete transition to FB5 as soon
as possible, even if this means using deprecated (but Lion-compatible)
technology. I am afraid implementing text editing with Cocoa text
system would make my transition much longer. (I plan to use HITextView
as the next step.)

Thanks to the list's kind and highly appreciated help, I can now use
text fields (created with the traditional edit field statement) for
all my needs, even very special ones such as preventing drag and
drops. These fields are scrollable but don't have a scrollbar. I
thought YAST was a perfect solution because it has a scrollbar yet it
is similar to an edit field: for example, the following code works
with YAST controls too:
gContainer = edit$( 1 )
edit$( 1 ) = #gContainer
edit field close 1
button&( 1 )

But a few issues remain with YAST:

1. Preventing drag and drops: RP's HIViewDisableDragAndDrop() does not work.

2. _kEventClassControl / _kEventControlHit does not work when the text
is clicked or selection is made (it only works when the scrollbar is
clicked). I need this carbon event to get (and possibly modify) the
selection with Get/SetControlData().

I will work on these issues, and I would appreciate any help.

Thanks again
Domokos


2012/2/5 Brian S <fblistserve@...>:
>
> On Feb 4, 2012, at 3:36 PM, Domokos Vekas wrote:
>
>> YAST can be a perfect solution for my text scrolling needs, too.
>
> Depending on current/future needs it might be perfect but a reminder: YAST is based on deprecated ( as of 2008 MLTE reference manual "Important: Multilingual Text Engine (MLTE) is deprecated in Mac OS X v10.6 and later. To implement text editing, please use the Cocoa text system instead." ) technology.
>
> Of course, FB5 is a Carbon app and creates them, so the issues are mostly well-known to FB developers.
>
> Brian S
>
>
>
>
>
>
>
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> To access the list archives, go to:  http://freegroups.net/groups/futurebasic/
>