Enabling persistence of custom colors in answer color

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Enabling persistence of custom colors in answer color

Post by monte » Sun Aug 18, 2013 1:37 am

OK, that's what I've done, however, I've implemented it in a way that allows the colorDialogColors on other platforms to have a data structure that mirrors the colors lists for the platform.

Windows is just a simple ordered list of 16 lines of colors. The line number maps to the place in the dialog the color shows up. It could be a numerically indexed array but it's probably not necessary.

Mac (when the dialog is implemented with Cocoa) could have a multi-dimensional array:
colorDialogColors[<color list name>][<index 1...n>]([color name] & [color])

That would allow you to add multiple color lists.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Enabling persistence of custom colors in answer color

Post by monte » Sun Aug 18, 2013 11:15 pm

LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1207
Joined: Thu Apr 11, 2013 11:27 am

Re: Enabling persistence of custom colors in answer color

Post by LCMark » Wed Sep 11, 2013 2:22 pm

@monte: This has been merged into develop - it will appear in 6.5-dp-1 which we're hoping to get out asap.

Locked

Return to “Engine Contributors”