list field question
harrison at all-auctions.com
Sun Aug 14 11:52:06 EDT 2016
Some things in life although they seems like they should have
a simple solution many times they do not, and require
a more difficult/complex solution.
Just my 2 cents.. Sorry if it doesn’t help much.
> On Aug 14, 2016, at 11:32 AM, jbv <jbv at souslelogo.com> wrote:
> Thanks for the effort, but I need something simpler.
> Your suggestion with mousedown/mouseline already crossed my mind,
> but I was wondering if there was a property or something similar...
> For instance, this would be very handy :
> disable line 2 of fld "listField"
> On Sun, August 14, 2016 4:21 pm, Mike Bonner wrote:
>> I just tried a quick and dirty method, not fully fleshed but it might do
>> what you need to if you can work out all the positioning..
>> I made a list field with enough entries to require scroll, then I made
>> some graphic rectangles and lined them up with the lines I want to
>> disable. Added 1 extra grc, then grouped them.
>> Size the group to cover the field with the blocking graphics in the right
>> position, then.. "set the top of grc "bottomMarker" to the top of group
>> "maskgroup" + the formattedheight of field "myField"
>> This causes the group to have the ability to scroll. (I actually think
>> Ineed to add the height of the graphic also, but since I have the
>> horizontal scrollbar turned on it just covers it up when I scroll to the
>> Then, in the script for the field a simple "set the vscroll of group
>> "maskGroup" to the vscroll of me makes them stay in sync, and moves the
>> blocking rects along with the lines I wish to block.
>> There are issues not worked out yet, such as.. If using a scroll wheel to
>> adjust the field, when the mouse is over a blocked line the scrolling
>> stops. How to line up the blocking lines dynamically (though i'm sure
>> theres already math out there to do this so that a blocking group can be
>> dynamically generated
>> Of course, there is probably a way to catch the mousedown and choose to
>> ignore it based on the mouseline, which would be much easier.
>> On Sun, Aug 14, 2016 at 7:06 AM, jbv <jbv at souslelogo.com> wrote:
>>> Hi list
>>> When a field behaves as a list, is it possible to temporarily disable
>>> certain lines of the field so that they aren't clickable nor selectable,
>>> while other lines remain selectable ? If yes, which property should I
>>> use ? I have searched the dictionary but to no avail...
>>> Thanks in advance.
>>> use-livecode mailing list use-livecode at lists.runrev.com Please visit this
>>> url to subscribe, unsubscribe and manage your subscription preferences:
>> use-livecode mailing list use-livecode at lists.runrev.com Please visit this
>> url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode