Alternating Row Colors?
Terence Heaford
t.heaford at btinternet.com
Tue Mar 25 07:47:03 EDT 2014
Hi,
I am interested in your solution and downloaded it.
On running on a Mac 10.9.2 and LC Community 6.6 it crashes after I press fill in 365 and start using the scroller.
May be a LC issue?
All the best
Terry
Here is the report:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
VM Regions Near 0:
--> __PAGEZERO 0000000000000000-0000000000001000 [ 4K] ---/--- SM=NUL /Applications/LiveCode Community 6.6.app/Contents/MacOS/LiveCode-Community
__TEXT 0000000000001000-00000000003d9000 [ 3936K] r-x/rwx SM=COW /Applications/LiveCode Community 6.6.app/Contents/MacOS/LiveCode-Community
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.runrev.livecode 0x00088e8e MCField::adjustpixmapoffset(MCContext*, unsigned short, int) + 174
1 com.runrev.livecode 0x00089912 MCField::drawrect(MCContext*, MCRectangle const&) + 706
2 com.runrev.livecode 0x00080178 MCField::draw(MCContext*, MCRectangle const&, bool, bool) + 408
3 com.runrev.livecode 0x0006a4bc MCControl::redraw(MCContext*, MCRectangle const&) + 220
4 com.runrev.livecode 0x000221cb MCCard::draw(MCContext*, MCRectangle const&, bool) + 123
5 com.runrev.livecode 0x001869f4 MCStack::render(MCContext*, MCRectangle const&) + 148
6 com.runrev.livecode 0x001896b8 MCStack::render(__MCGContext*, MCRectangle const&) + 504
7 com.runrev.livecode 0x0020103b MCStack::view_render(__MCGContext*, MCRectangle) + 491
8 com.runrev.livecode 0x00188642 MCStack::view_surface_redrawwindow(MCStackSurface*, __MCRegion*) + 594
9 com.runrev.livecode 0x0013c3d3 HIRevolutionStackViewHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2323
10 com.apple.HIToolbox 0x98d01d89 _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
11 com.apple.HIToolbox 0x98b5535f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1452
12 com.apple.HIToolbox 0x98b54678 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 386
13 com.apple.HIToolbox 0x98b544f0 SendEventToEventTargetWithOptions + 94
14 com.apple.HIToolbox 0x98b6e3c4 HIView::SendDraw(short, OpaqueGrafPtr*, __HIShape const*, CGContext*) + 458
15 com.apple.HIToolbox 0x98c30e7e HIView::RecursiveDrawComposited(__HIShape const*, __HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 784
16 com.apple.HIToolbox 0x98c3111a HIView::RecursiveDrawComposited(__HIShape const*, __HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1452
17 com.apple.HIToolbox 0x98c3111a HIView::RecursiveDrawComposited(__HIShape const*, __HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1452
18 com.apple.HIToolbox 0x98c30364 HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 890
19 com.apple.HIToolbox 0x98c30134 HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 330
20 com.apple.HIToolbox 0x98c2ff9e HIView::Draw(short, OpaqueGrafPtr*, unsigned long) + 84
21 com.apple.HIToolbox 0x98c250e9 HIViewRender + 86
22 com.runrev.livecode 0x0013a2a9 MCStack::view_platform_updatewindow(__MCRegion*) + 121
23 com.runrev.livecode 0x001ff36f MCStack::view_updatewindow() + 31
24 com.runrev.livecode 0x001ff3aa MCStack::view_apply_updates() + 42
25 com.runrev.livecode 0x00188bb4 MCStack::applyupdates() + 52
26 com.runrev.livecode 0x001d0f88 MCRedrawDoUpdateScreen() + 104
27 com.runrev.livecode 0x000eef65 MCIf::exec(MCExecPoint&) + 565
28 com.runrev.livecode 0x000d3135 MCHandler::exec(MCExecPoint&, MCParameter*) + 437
29 com.runrev.livecode 0x0010a952 MCObject::exechandler(MCHandler*, MCParameter*) + 290
30 com.runrev.livecode 0x0010ae20 MCObject::handleself(Handler_type, MCName*, MCParameter*) + 368
31 com.runrev.livecode 0x0010ae65 MCObject::handle(Handler_type, MCName*, MCParameter*, MCObject*) + 53
32 com.runrev.livecode 0x0019f3b8 MCU_dofrontscripts(Handler_type, MCName*, MCParameter*) + 136
33 com.runrev.livecode 0x00108009 MCObject::message(MCName*, MCParameter*, unsigned char, unsigned char, unsigned char) + 521
34 com.runrev.livecode 0x00108809 MCObject::message_with_args(MCName*, int) + 121
35 com.runrev.livecode 0x00081d42 MCField::vscroll(int, unsigned char) + 258
36 com.runrev.livecode 0x0007ff76 MCField::readscrollbars() + 102
37 com.runrev.livecode 0x00068585 MCControl::sbfocus(short, short, MCScrollbar*, MCScrollbar*) + 117
38 com.runrev.livecode 0x000811ef MCField::mfocus(short, short) + 191
39 com.runrev.livecode 0x0002332e MCCard::mfocus(short, short) + 686
40 com.runrev.livecode 0x0017f739 MCStack::mfocus(short, short) + 153
41 com.runrev.livecode 0x000726ec MCDispatch::wmfocus_stack(MCStack*, short, short) + 140
42 com.runrev.livecode 0x0011dc80 MCScreenDC::mfocus(EventRecord*, Point, unsigned char, bool) + 688
43 com.runrev.livecode 0x0011f06d MCScreenDC::dispatchevent(EventRecord&, unsigned char, unsigned char&, unsigned char&) + 3693
44 com.runrev.livecode 0x0011fd3b MCScreenDC::handle(double, unsigned char, unsigned char, unsigned char&, unsigned char&) + 667
45 com.runrev.livecode 0x0011c853 MCScreenDC::wait(double, unsigned char, unsigned char) + 387
46 com.runrev.livecode 0x001cb588 X_main_loop_iteration() + 104
47 com.runrev.livecode 0x001cc2c1 X_main_loop() + 97
48 com.runrev.livecode 0x001cc451 main + 353
49 com.runrev.livecode 0x000024fa start + 54
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x97424992 kevent64 + 10
1 libdispatch.dylib 0x940748ad _dispatch_mgr_invoke + 238
2 libdispatch.dylib 0x94074546 _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x97424046 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x97b93dcf _pthread_wqthread + 372
2 libsystem_pthread.dylib 0x97b97cce start_wqthread + 30
Thread 3:
0 libsystem_kernel.dylib 0x97424046 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x97b93dcf _pthread_wqthread + 372
2 libsystem_pthread.dylib 0x97b97cce start_wqthread + 30
Thread 4:
0 libsystem_kernel.dylib 0x97424046 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x97b93dcf _pthread_wqthread + 372
2 libsystem_pthread.dylib 0x97b97cce start_wqthread + 30
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x00000000 ecx: 0x00000000 edx: 0xffffffff
edi: 0xffff7e2a esi: 0x0865da20 ebp: 0xbfffe388 esp: 0xbfffe330
ss: 0x00000023 efl: 0x00010216 eip: 0x00088e8e cs: 0x0000001b
ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f
cr2: 0x00000000
Logical CPU: 0
Error Code: 0x00000004
Trap Number: 14
On 25 Mar 2014, at 09:32, BNig <bernd.niggemann at uni-wh.de> wrote:
> Hi Scott,
>
> I don't know of an easy way to set alternating colors.
>
> I have put up a stack on Livecodeshare that makes a backgroundpattern on the
> fly.
>
> http://livecodeshare.runrev.com/stack/661/ListStripes_0_0_5
>
> You can change the colors and the size according to the textHeight etc.
>
> Only drawback ist that the topmargin has to be 4 since that is necessary for
> the backgroundpattern to work.
>
> Kind regards
> Bernd
>
>
>
> --
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Alternating-Row-Colors-tp4677501p4677505.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list