global gTheChosenColor
on mouseUp pBtnNum
if pBtnNum is 1 then
answer color with the effective backgroundcolor of me
if the result is not "cancel" then
put it into gTheChosenColor
set the backgroundcolor of me to gTheChosenColor
end if
end if
set the textColor of fld "fSample" to gTheChosenColor
end mouseUp
and after compiling the standalone no standard color-selection dialog box shows up.
It works OK in Windows but not in Android.
Any ideas why?
keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
I created now my own color picker with a palette (an image consisting of squares of different colors) and 2 radio buttons, one for changing the text color and the other for changing background color. I want to do it on certain selected cards only and just in some fields on these cards (cards are marked and the names of these fields start with letter f).
global gTextColor, gBackColor
on mouseUp
put the effective rect of img "palette" of me into tPalette
if the mouseH > item 1 of tPalette and the mouseH < item 3 of tPalette \
and the mouseV > item 2 of tPalette and the mouseV < item 4 of tPalette then
if the hilite of btn "font" of me then
put the mouseColor into gTextColor
set the textColor of fld "fSample" to gTextColor
else if the hilite of btn "bckgr" of me then
put the mouseColor into gBackColor
set the backColor of fld "fSample" to gBackColor
end if
end if
changeColor
end mouseUp
on changeColor
set the itemDel to comma
repeat with i = 1 to the number of cards of this stack
if the mark of card i is true then
put the name of cd i & comma after tMarkedCards
if the hilite of btn "bckgr" of me then set the backColor of cd i to gBackColor
end if
end repeat
repeat for each item tCard in tMarkedCards
repeat with j = 1 to the number of flds of tCard
if the hilite of btn "font" of me then
if the short name of fld j of tCard contains "f" then set the textColor of fld j of tCard to gTextColor
end if
end repeat
end repeat
end changeColor
It works perfectly in IDE and in Windows standalone but not at all in Android app.
What's wrong here?
keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
Dixie wrote:The 'mouseColor' is supported on mobile... just ran in 6.6.2(rc3)
Currently I'm using v. 6.5.2. I switched from v. 6.6.1 to this earlier version because I got "scared" by this posting: http://ftp.runrev.com/forums/viewtopic. ... f3ca20002d
I simply don't want to create any sluggish apps... and my app will have few images in it, not moving but still...
Simon wrote:keram, will you bug report it?
Yes, I'll do it.
keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit