Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

[[ ColorDialogColors ]] implemented windows only global #133

Closed

Conversation

montegoulding
Copy link
Member

No description provided.

Monte Goulding added 5 commits August 17, 2013 11:04
…olors <custom colors> with the custom colors returned via the dialogData. Will investigate using a global colorDialogColors property.
…gColors Windows only. Added stubs for accessors on Linux.

Implemented in a way that the data type of customDialogColors could be different depending on the platform:
 - Windows - list of colors, could be changed to numerically indexed array if required
 - Mac - when Cocoa dialog is implemented could be multi-dimensional array with root key of list name, child keys numerically indexed, grandchind keys name and color
 - Lunux - not yet investigated
{
MCColor t_colors[16];
char *t_colornames[16];
uint8_t i;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to just use an int / unsigned int for index vars.

@runrevmark
Copy link
Contributor

Hi Monte,

Thanks for this - it all looks fine apart from the potential for a small memory leak, as commented on above.

Mark.

@runrevmark
Copy link
Contributor

Hi Monte,

All looks good - have merged into 'develop' via 'feature-color_dialog_colors'

Thanks again!

Mark.

@runrevmark runrevmark closed this Sep 5, 2013
trevordevore pushed a commit to trevordevore/livecode that referenced this pull request Jul 7, 2015
[[ PI ]] Add array editor using tree view widget
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants