-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmpControls.lcb
4863 lines (4158 loc) · 173 KB
/
mpControls.lcb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
widget pink.mad.controlpanelbeta
metadata title is "MPUberControlPanel"
metadata author is "MadPink"
metadata version is "0.9.57"
metadata description is "Allows for multiple configurable controls that can be dynamically changed"
metadata preferredSize is "420,230"
metadata svgicon is "M51.3,29.1V24c0-6.1,3.4-11.6,8.9-14.4L57.9,5c-7.2,3.6-11.7,10.9-11.7,19v7.1l1.2,1.2C48.7,31.5,50,30.3,51.3,29.1z M68.1,34.1c0.7,0.4,1.4,0.8,2,1.4c4.4-2.2,8.1-5.6,8.4-9.3c-5.1,2.8-9.3,4.2-12.1,4.9L68.1,34.1 C68.1,34.1,68.1,34.1,68.1,34.1z M28.8,33.3V33c-0.4-1.2-0.7-2.4-0.9-3.6l-8.2-2.7C21.7,28.9,24.9,31.8,28.8,33.3z M43.6,95c2.5,0,4.7-1.3,6-3.2c-0.5-1-0.8-2.2-0.8-3.4c-2.2-0.8-4-2.3-5.1-4.3c-1.5,2.6-4.1,4.4-7.1,4.8 C37.1,92.4,40.1,95,43.6,95z M58.5,95c3.6,0,6.5-2.6,7.1-6c-2.4-0.3-4.5-1.6-6-3.3c-1.8,2.1-4.5,3.4-7.4,3.4c-0.2,0-0.5,0-0.7,0C52,92.4,55,95,58.5,95z M74.2,79.3c0-0.3,0-0.6-0.1-0.9c-0.3,0-0.5,0-0.8,0c-3.6,0-6.8-2-8.5-4.9c-0.8,1.4-1.9,2.6-3.3,3.4 c0.2,0.8,0.3,1.5,0.3,2.4c0,1.4-0.3,2.8-0.9,4c1.3,1.9,3.5,3.2,6,3.2C71,86.5,74.2,83.3,74.2,79.3z M59.3,79.3c0-0.4,0-0.8-0.1-1.3c-0.9,0.3-1.9,0.4-2.8,0.4c-3.6,0-6.8-2-8.5-4.9c-0.6,1-1.3,1.9-2.3,2.7 c-0.4,0.9-0.7,2-0.7,3.1c0,4,3.2,7.2,7.2,7.2C56.1,86.5,59.3,83.3,59.3,79.3z M35.1,86.5c4,0,7.2-3.2,7.2-7.2c0-0.4,0-0.8-0.1-1.3c-0.9,0.3-1.9,0.4-2.8,0.4c-2.4,0-4.7-0.9-6.4-2.4 c-1.4,1.2-3.1,2-5,2.3c0,0.3-0.1,0.6-0.1,0.9C27.9,83.3,31.2,86.5,35.1,86.5z M20.4,65.1c-0.6,1-0.9,2.3-0.9,3.5c0,4,3.2,7.2,7.2,7.2c1.8,0,3.4-0.6,4.7-1.7c-1.1-1.6-1.7-3.5-1.7-5.5 c0-1.2,0.2-2.3,0.6-3.4c-1.3-0.1-2.5-0.4-3.6-0.9c-1.3,0.6-2.7,1-4.2,1C21.7,65.3,21,65.3,20.4,65.1z M38.1,62.1c-1.3,1.4-3,2.5-5,3c-0.6,1.1-1,2.3-1,3.6c0,4,3.2,7.2,7.2,7.2c4,0,7.2-3.2,7.2-7.2c0-1.2-0.3-2.4-0.8-3.4 c-0.1,0-0.3,0-0.4,0C42.5,65.3,39.9,64.1,38.1,62.1z M80.6,68.7c0-1.5-0.5-2.9-1.3-4.1c-1.2,0.5-2.4,0.8-3.8,0.8c-2.5,0-4.7-0.9-6.4-2.4c-1.8,1.3-2.9,3.4-2.9,5.8 c0,4,3.2,7.2,7.2,7.2C77.3,75.9,80.6,72.7,80.6,68.7z M53.5,62c-2.6,1.1-4.4,3.7-4.4,6.6c0,4,3.2,7.2,7.2,7.2c4,0,7.2-3.2,7.2-7.2c0-1.3-0.3-2.5-0.9-3.5 c-0.6,0.1-1.2,0.2-1.8,0.2C57.9,65.3,55.3,64.1,53.5,62z M22.4,62.8c0.6,0,1.1-0.1,1.7-0.2c-1.8-1.8-3-4.3-3-7c0-1,0.2-2.1,0.5-3c-1.7-0.1-3.3-0.7-4.7-1.7 c-1.1,1.3-1.7,2.9-1.7,4.7C15.2,59.5,18.4,62.8,22.4,62.8z M23.7,55.6c0,4,3.2,7.2,7.2,7.2c2.3,0,4.4-1.1,5.7-2.9c-0.7-1.3-1-2.8-1-4.3c0-1.3,0.3-2.6,0.8-3.8 c-1.2,0.5-2.5,0.8-3.9,0.8c-1.8,0-3.6-0.5-5-1.4c-0.9,0.6-1.9,1-3,1.2C24,53.3,23.7,54.4,23.7,55.6z M82.7,55.6c0-1.4-0.4-2.7-1.1-3.8c-1.2,0.5-2.6,0.9-4,0.9c-2.6,0-4.9-1-6.7-2.6c-0.5,0.4-0.9,0.9-1.3,1.4 c0.6,1.3,1,2.7,1,4.2s-0.4,2.9-1,4.2c1.3,1.8,3.4,3,5.8,3C79.5,62.8,82.7,59.5,82.7,55.6z M54.5,52.1c0.4,1.1,0.6,2.2,0.6,3.4s-0.2,2.4-0.6,3.4c1.2,2.2,3.6,3.8,6.3,3.8c4,0,7.2-3.2,7.2-7.2c0-1.3-0.4-2.5-1-3.6 c-1.1,0.4-2.2,0.6-3.4,0.6c-2.7,0-5.2-1.1-7-2.9C55.8,50.3,55,51.1,54.5,52.1z M38.2,55.6c0,4,3.2,7.2,7.2,7.2c4,0,7.2-3.2,7.2-7.2c0-1.3-0.4-2.6-1-3.7c-1.1,0.4-2.3,0.7-3.6,0.7c-2.7,0-5.1-1.1-6.9-2.8 C39.3,51.1,38.2,53.2,38.2,55.6z M22.4,50c1,0,2-0.2,2.9-0.6c-1.6-1.7-2.6-4.1-2.6-6.6s1-4.9,2.6-6.6c-0.9-0.4-1.9-0.6-2.9-0.6c-4,0-7.2,3.2-7.2,7.2 C15.2,46.8,18.4,50,22.4,50z M37.7,37.9c-2.5-0.2-5-0.9-7.3-2c-3,0.9-5.2,3.6-5.2,6.9c0,4,3.2,7.2,7.2,7.2c2.7,0,5.1-1.5,6.3-3.8 c-0.4-1.1-0.6-2.2-0.6-3.4s0.2-2.4,0.6-3.4C38.5,38.8,38.2,38.4,37.7,37.9z M72.2,38.1c0.8,1.4,1.2,3,1.2,4.7s-0.5,3.3-1.2,4.7c1.3,1.5,3.3,2.5,5.4,2.5c4,0,7.2-3.2,7.2-7.2c0-4-3.2-7.2-7.2-7.2 C75.5,35.6,73.5,36.6,72.2,38.1z M63.7,50c4,0,7.2-3.2,7.2-7.2c0-2.9-1.8-5.5-4.3-6.6c-2.7,1-5.4,1.5-8.2,1.7c-0.5,0.5-0.8,1.1-1.1,1.7 c0.3,1,0.5,2.1,0.5,3.2c0,1.1-0.2,2.2-0.5,3.2C58.4,48.4,60.8,50,63.7,50z M47,36.5c-1.3,0.5-2.7,0.9-4.1,1.2c-1.3,1.3-2.2,3.1-2.2,5.1c0,4,3.2,7.2,7.2,7.2c4,0,7.2-3.2,7.2-7.2c0-1.9-0.8-3.7-2-5 C51.1,37.6,49,37.2,47,36.5z M49.1,34.3c0,0.1,0,0.1,0,0.2c5.2,1.4,10.8,1.3,16-0.5l-6.4-11.1C56.8,27.1,53,31.6,49.1,34.3z M45.6,34.3L31.3,19.9c-1.7,4.4-1.5,9.5,0.5,13.8C36.1,35.7,41.2,35.9,45.6,34.3z"
constant kVersion is "0.9.57 beta 2019.11.24.1405"
use com.livecode.math
use com.livecode.canvas
use com.livecode.widget
use com.livecode.engine
use com.livecode.foreign
use com.livecode.mathfoundation
use com.livecode.library.iconsvg
use com.livecode.library.widgetutils
use com.livecode.library.scriptitems
--SECTION: PROPERTIES
metadata foregroundColor.editor is "com.livecode.pi.color"
metadata foregroundColor.default is "255,255,255"
metadata foregroundColor.section is "Colors"
metadata foregroundColor.label is "Fore Color"
metadata backgroundColor.editor is "com.livecode.pi.color"
metadata backgroundColor.default is "255,15,192"
metadata backgroundColor.section is "Colors"
metadata backgroundColor.label is "Back Color"
metadata hiliteColor.editor is "com.livecode.pi.color"
metadata hiliteColor.default is "0,0,0"
metadata hiliteColor.section is "Colors"
metadata hiliteColor.label is "Hilite color"
metadata borderColor.editor is "com.livecode.pi.color"
metadata borderColor.default is "255,205,255"
metadata borderColor.section is "Colors"
metadata borderColor.label is "Border color"
-- Don't Panic --
metadata topColor.editor is "com.livecode.pi.color"
metadata topColor.default is "255,128,192"
metadata topColor.section is "Colors"
metadata topColor.label is "Top color"
metadata bottomColor.editor is "com.livecode.pi.color"
metadata bottomColor.default is "255,0,128"
metadata bottomColor.section is "Colors"
metadata bottomColor.label is "Bottom color"
metadata shadowColor.editor is "com.livecode.pi.color"
metadata shadowColor.default is "255,128,192"
metadata shadowColor.section is "Colors"
metadata shadowColor.label is "Shadow color"
metadata focusColor.editor is "com.livecode.pi.color"
metadata focusColor.default is "255,0,128"
metadata focusColor.section is "Colors"
metadata focusColor.label is "Focus color"
metadata textFont.editor is "com.livecode.pi.font"
metadata textFont.default is "Helvetica"
metadata textSize.editor is "com.livecode.pi.number"
metadata textSize.default is "15"
property defaultChangeType get mDefaultChangeType set setDefaultChangeType
metadata defaultChangeType.editor is "com.livecode.pi.boolean"
metadata defaultChangeType.default is "true"
metadata defaultChangeType.label is "New Defaults - Changing Type"
metadata defaultChangeType.section is "Advanced"
private variable mDefaultChangeType as Boolean
private handler setDefaultChangeType(in pVal as Boolean)
put pVal into mDefaultChangeType
end handler
--SECTION: BACKGROUND/BASE PROPS
property showMainSquare get mShowMainSquare set setShowMainSquare
metadata showMainSquare.editor is "com.livecode.pi.boolean"
metadata showMainSquare.default is "true"
metadata showMainSquare.label is "Show Working Area"
metadata showMainSquare.section is "Table"
private variable mShowMainSquare as Boolean
private handler setShowMainSquare(in pVal as Boolean)
put pVal into mAppData["showMainSquare"]
put pVal into mShowMainSquare
redraw all
end handler
property workingAreaOffsetW get mWorkingAreaOffsetW set setWorkingAreaOffsetW
metadata workingAreaOffsetW.editor is "com.livecode.pi.number"
metadata workingAreaOffsetW.default is "0"
metadata workingAreaOffsetW.label is "Working Area Width Offset"
metadata workingAreaOffsetW.section is "Table"
private variable mWorkingAreaOffsetW as Number
private handler setWorkingAreaOffsetW(in pVal as Number)
put pVal into mAppData["props"]["workingAreaOffsetW"]
put pVal into mWorkingAreaOffsetW
redraw all
end handler
property workingAreaOffsetH get mWorkingAreaOffsetH set setWorkingAreaOffsetH
metadata workingAreaOffsetH.editor is "com.livecode.pi.number"
metadata workingAreaOffsetH.default is "0"
metadata workingAreaOffsetH.label is "Working Area Height Offset"
metadata workingAreaOffsetH.section is "Table"
private variable mWorkingAreaOffsetH as Number
private handler setWorkingAreaOffsetH(in pVal as Number)
put pVal into mAppData["props"]["workingAreaOffsetH"]
put pVal into mWorkingAreaOffsetH
redraw all
end handler
property mainSquareColor get mMainSquareColor set setMainSquareColor
metadata mainSquareColor.editor is "com.livecode.pi.enum"
metadata mainSquareColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata mainSquareColor.default is "shadow"
metadata mainSquareColor.label is "Working Area Color"
metadata mainSquareColor.section is "Colors"
private variable mMainSquareColor as String
private handler setMainSquareColor(in pVal as String)
put pVal into mAppData["props"]["mainSquareColor"]
put pVal into mMainSquareColor
redraw all
end handler
property boxBorder get mBorder set setBorder
metadata boxBorder.editor is "com.livecode.pi.number"
metadata boxBorder.default is "5"
metadata boxBorder.label is "Border thickness"
metadata boxBorder.section is "Table"
private variable mBorder as Number
private handler setBorder(in pVal as Number)
put pVal into mAppData["props"]["boxBorder"]
put pVal into mBorder
redraw all
end handler
property boxRadius get mRadius set setRadius
metadata boxRadius.editor is "com.livecode.pi.number"
metadata boxRadius.default is "13"
metadata boxRadius.label is "Border and Box Radius"
metadata boxRadius.section is "Table"
private variable mRadius as Number
private handler setRadius(in pVal as Number)
put pVal into mAppData["props"]["boxRadius"]
put pVal into mRadius
redraw all
end handler
--SECTION: TITLE PROPS
property showTitle get mShowTitle set setshowTitle
metadata showTitle.editor is "com.livecode.pi.boolean"
metadata showTitle.default is "true"
metadata showTitle.label is "Show Title at Top"
metadata showTitle.section is "Table"
private variable mShowTitle as Boolean
private handler setshowTitle(in pVal as Boolean)
put pVal into mAppData["props"]["showTitle"]
put pVal into mShowTitle
redraw all
end handler
property titleText get mTitleText set setTitleText
metadata titleText.editor is "com.livecode.pi.text"
metadata titleText.default is "Settings"
metadata titleText.label is "Title Text"
metadata titleText.section is "Table"
private variable mTitleText as String
private handler setTitleText(in pVal as String)
put pVal into mAppData["props"]["titleText"]
put pVal into mTitleText
redraw all
end handler
property titleSize get mTitleSize set setTitleSize
metadata titleSize.editor is "com.livecode.pi.number"
metadata titleSize.default is "2"
metadata titleSize.label is "Title rect offset"
metadata titleSize.section is "Text"
private variable mTitleSize as Number
private handler setTitleSize(in pVal as Number)
put pVal into mAppData["props"]["titleSize"]
put pVal into mTitleSize
redraw all
end handler
property titleTextSize get mTitleTextSize set settitleTextSize
metadata titleTextSize.editor is "com.livecode.pi.number"
metadata titleTextSize.default is "23"
metadata titleTextSize.label is "Title font size"
metadata titleTextSize.section is "Text"
private variable mTitleTextSize as Number
private handler settitleTextSize(in pVal as Number)
put pVal into mAppData["props"]["titleTextSize"]
put pVal into mTitleTextSize
redraw all
end handler
property titleTextFont get mTitleTextFont set settitleTextFont
metadata titleTextFont.editor is "com.livecode.pi.font"
metadata titleTextFont.default is "Arial"
metadata titleTextFont.label is "Title Font"
metadata titleTextFont.section is "Text"
private variable mTitleTextFont as String
private handler settitleTextFont(in pVal as String)
put pVal into mAppData["props"]["titleTextFont"]
put pVal into mTitleTextFont
redraw all
end handler
property titleTextColor get mTitleTextColor set setTitleTextColor
metadata titleTextColor.editor is "com.livecode.pi.enum"
metadata titleTextColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata titleTextColor.default is "border"
metadata titleTextColor.label is "Title Color"
metadata titleTextColor.section is "Colors"
private variable mTitleTextColor as String
private handler setTitleTextColor(in pVal as String)
put pVal into mAppData["props"]["titleTextColor"]
put pVal into mTitleTextColor
redraw all
end handler
--SECTION: OVERLAY PROPS
property overlayMode get mOverlay set setOverlay
metadata overlayMode.editor is "com.livecode.pi.boolean"
metadata overlayMode.default is "false"
metadata overlayMode.label is "Show as an Overlay"
metadata overlayMode.section is "Table"
private variable mOverlay as Boolean
private handler setOverlay(in pVal as Boolean)
put pVal into mAppData["props"]["overlayMode"]
put pVal into mOverlay
redraw all
end handler
property overlayAlign get mOverlayAlign set setOverlayAlign
metadata overlayAlign.editor is "com.livecode.pi.enum"
metadata overlayAlign.options is "top left,top center,top right,center left,center center,center right,bottom left,bottom center,bottom right"
metadata overlayAlign.default is "center center"
metadata overlayAlign.label is "Overlay Alignment"
metadata overlayAlign.section is "Table"
private variable mOverlayAlign as String
private handler setOverlayAlign(in pVal as String)
put pVal into mAppData["props"]["overlayAlign"]
put pVal into mOverlayAlign
redraw all
end handler
property overlayHeight get mBoxHeight set setBoxHeight
metadata overlayHeight.editor is "com.livecode.pi.number"
metadata overlayHeight.default is "200"
metadata overlayHeight.label is "Overlay-Box Height"
metadata overlayHeight.section is "Table"
private variable mBoxHeight as Number
private handler setBoxHeight(in pVal as Number)
put pVal into mAppData["props"]["overlayHeight"]
put pVal into mBoxHeight
redraw all
end handler
property overlayWidth get mBoxWidth set setBoxWidth
metadata overlayWidth.editor is "com.livecode.pi.number"
metadata overlayWidth.default is "300"
metadata overlayWidth.label is "Overlay-Box Width"
metadata overlayWidth.section is "Table"
private variable mBoxWidth as Number
private handler setBoxWidth(in pVal as Number)
put pVal into mAppData["props"]["overlayWidth"]
put pVal into mBoxWidth
redraw all
end handler
property overlayOffset get mBoxOffset set setOverlayOffset
metadata overlayOffset.editor is "com.livecode.pi.number"
metadata overlayOffset.default is "13"
metadata overlayOffset.label is "Overlay Offset from Edge"
metadata overlayOffset.section is "Table"
private variable mBoxOffset as Number
private handler setOverlayOffset(in pVal as Number)
put pVal into mAppData["props"]["overlayOffset"]
put pVal into mBoxOffset
redraw all
end handler
property overlayColor get mOverlayColor set setOverlayColor
metadata overlayColor.editor is "com.livecode.pi.enum"
metadata overlayColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata overlayColor.default is "bottom"
metadata overlayColor.label is "Overlay Color"
metadata overlayColor.section is "Colors"
private variable mOverlayColor as String
private handler setOverlayColor(in pVal as String)
put pVal into mAppData["props"]["overlayColor"]
put pVal into mOverlayColor
redraw all
end handler
property overlayOpacity get mOverlayOpacity set setOverlayOpacity
metadata overlayOpacity.editor is "com.livecode.pi.enum"
metadata overlayOpacity.options is "0,10,20,30,40,50,60,70,80,90,100"
metadata overlayOpacity.default is "0"
metadata overlayOpacity.label is "Overlay Opacity"
metadata overlayOpacity.section is "Colors"
private variable mOverlayOpacity as Number
private handler setOverlayOpacity(in pVal as Number)
put pVal into mAppData["props"]["overlayOpacity"]
put pVal into mOverlayOpacity
redraw all
end handler
--SECTION: BOTTOM BUTTON PROPS
property showConfirmButtons get mShowConfirmButtons set setShowBottonButtons
metadata showConfirmButtons.editor is "com.livecode.pi.boolean"
metadata showConfirmButtons.default is "true"
metadata showConfirmButtons.label is "Show Confirm Buttons"
metadata showConfirmButtons.section is "Table"
private variable mShowConfirmButtons as Boolean
private handler setShowBottonButtons(in pVal as Boolean)
put pVal into mAppData["props"]["showConfirmButtons"]
put pVal into mShowConfirmButtons
redraw all
end handler
property confirmButtonTextSize get mConfirmButtonTextSize set setConfirmButtonTextSize
metadata confirmButtonTextSize.editor is "com.livecode.pi.number"
metadata confirmButtonTextSize.default is "13"
metadata confirmButtonTextSize.label is "Confirm Button Text Size"
metadata confirmButtonTextSize.section is "Text"
private variable mConfirmButtonTextSize as Number
private handler setConfirmButtonTextSize(in pVal as Number)
put pVal into mAppData["props"]["confirmButtonTextSize"]
put pVal into mConfirmButtonTextSize
redraw all
end handler
property button1Text get mButton1Text set setButtonOne
metadata button1Text.editor is "com.livecode.pi.text"
metadata button1Text.default is "OK"
metadata button1Text.label is "Confirm Button 1 Text"
metadata button1Text.section is "Table"
private variable mButton1Text as String
private handler setButtonOne(in pVal as String)
put pVal into mAppData["props"]["button1Text"]
put pVal into mButton1Text
redraw all
end handler
property button2Text get mButton2Text set setButtonTwo
metadata button2Text.editor is "com.livecode.pi.text"
metadata button2Text.default is "Cancel"
metadata button2Text.label is "Confirm Button 2 Text"
metadata button2Text.section is "Table"
private variable mButton2Text as String
private handler setButtonTwo(in pVal as String)
put pVal into mAppData["props"]["button2Text"]
put pVal into mButton2Text
redraw all
end handler
property button3Text get mButton3Text set setButtonThree
metadata button3Text.editor is "com.livecode.pi.text"
metadata button3Text.default is "Other"
metadata button3Text.label is "Confirm Button 3 Text"
metadata button3Text.section is "Table"
private variable mButton3Text as String
private handler setButtonThree(in pVal as String)
put pVal into mAppData["props"]["button3Text"]
put pVal into mButton3Text
redraw all
end handler
property showButtons get mShowButtons set setShowButtons
metadata showButtons.editor is "com.livecode.pi.enum"
metadata showButtons.options is "1,2,3"
metadata showButtons.default is "2"
metadata showButtons.label is "Confirm Buttons-Number"
metadata showButtons.section is "Table"
private variable mShowButtons as Number
private handler setShowButtons(in pVal as Number)
put pVal into mAppData["props"]["showButtons"]
put pVal into mShowButtons
redraw all
end handler
property confirmButtonAlignment get mConfirmButtonAlignment set setConfirmButtonAlignment
metadata confirmButtonAlignment.editor is "com.livecode.pi.enum"
metadata confirmButtonAlignment.options is "Left,Right,Center"
metadata confirmButtonAlignment.default is "Right"
metadata confirmButtonAlignment.label is "Confirm Button Alignment"
metadata confirmButtonAlignment.section is "Table"
private variable mConfirmButtonAlignment as String
private handler setConfirmButtonAlignment(in pVal as String)
put pVal into mAppData["props"]["ConfirmButtonAlignment"]
put pVal into mConfirmButtonAlignment
redraw all
end handler
property confirmButtonWidth get mConfirmButtonWidth set setConfirmButtonWidth
metadata confirmButtonWidth.editor is "com.livecode.pi.number"
metadata confirmButtonWidth.default is "60"
metadata confirmButtonWidth.label is "Confirm Button Width"
metadata confirmButtonWidth.section is "Table"
private variable mConfirmButtonWidth as Number
private handler setConfirmButtonWidth(in pVal as Number)
put pVal into mAppData["props"]["ConfirmButtonWidth"]
put pVal into mConfirmButtonWidth
redraw all
end handler
property confirmButtonHeight get mConfirmButtonHeight set setConfirmButtonHeight
metadata confirmButtonHeight.editor is "com.livecode.pi.number"
metadata confirmButtonHeight.default is "30"
metadata confirmButtonHeight.label is "Confirm Button Height"
metadata confirmButtonHeight.section is "Table"
private variable mConfirmButtonHeight as Number
private handler setConfirmButtonHeight(in pVal as Number)
put pVal into mAppData["props"]["ConfirmButtonHeight"]
put pVal into mConfirmButtonHeight
redraw all
end handler
property confirmButtonBuffer get mConfirmButtonBuffer set setConfirmButtonBuffer
metadata confirmButtonBuffer.editor is "com.livecode.pi.number"
metadata confirmButtonBuffer.default is "3"
metadata confirmButtonBuffer.label is "Confirm Button Buffer/Offset"
metadata confirmButtonBuffer.section is "Table"
private variable mConfirmButtonBuffer as Number
private handler setConfirmButtonBuffer(in pVal as Number)
put pVal into mAppData["props"]["ConfirmButtonBuffer"]
put pVal into mConfirmButtonBuffer
redraw all
end handler
property confirmButtonBackColor get mConfirmButtonBackColor set setConfirmButtonBackColor
metadata confirmButtonBackColor.editor is "com.livecode.pi.enum"
metadata confirmButtonBackColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata confirmButtonBackColor.default is "fore"
metadata confirmButtonBackColor.label is "Confirm Button Background Color"
metadata confirmButtonBackColor.section is "Colors"
private variable mConfirmButtonBackColor as String
private handler setConfirmButtonBackColor(in pVal as String)
put pVal into mAppData["props"]["ConfirmButtonBackColor"]
put pVal into mConfirmButtonBackColor
redraw all
end handler
property confirmButtonTextColor get mConfirmButtonTextColor set setConfirmButtonTextColor
metadata confirmButtonTextColor.editor is "com.livecode.pi.enum"
metadata confirmButtonTextColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata confirmButtonTextColor.default is "border"
metadata confirmButtonTextColor.label is "Confirm Button Text Color"
metadata confirmButtonTextColor.section is "Colors"
private variable mConfirmButtonTextColor as String
private handler setConfirmButtonTextColor(in pVal as String)
put pVal into mAppData["props"]["ConfirmButtonTextColor"]
put pVal into mConfirmButtonTextColor
redraw all
end handler
property showOutputBox get mShowOutputBox set setShowOutputBox
metadata showOutputBox.editor is "com.livecode.pi.boolean"
metadata showOutputBox.default is "false"
metadata showOutputBox.label is "Displays an OutputBox"
metadata showOutputBox.section is "Table"
private variable mShowOutputBox as Boolean
private handler setShowOutputBox(in pVal as Boolean)
put pVal into mAppData["props"]["showOutputBox"]
put pVal into mShowOutputBox
redraw all
end handler
property outputBoxTextColor get mShowOutputBoxTextColor set setOutputBoxTextColor
metadata outputBoxTextColor.editor is "com.livecode.pi.enum"
metadata outputBoxTextColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata outputBoxTextColor.default is "fore"
metadata outputBoxTextColor.label is "Output Box Text Color"
metadata outputBoxTextColor.section is "Colors"
private variable mShowOutputBoxTextColor as String
private handler setOutputBoxTextColor(in pVal as String)
put pVal into mAppData["props"]["outputBoxTextColor"]
put pVal into mShowOutputBoxTextColor
redraw all
end handler
property outputBoxBackColor get mShowOutputBoxBackColor set setOutputBoxBackColor
metadata outputBoxBackColor.editor is "com.livecode.pi.enum"
metadata outputBoxBackColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata outputBoxBackColor.default is "back"
metadata outputBoxBackColor.label is "Output Box Back Color"
metadata outputBoxBackColor.section is "Colors"
private variable mShowOutputBoxBackColor as String
private handler setOutputBoxBackColor(in pVal as String)
put pVal into mAppData["props"]["outputBoxBackColor"]
put pVal into mShowOutputBoxBackColor
redraw all
end handler
property outputBoxHeight get mOutputBoxHeight set setOutputBoxHeight
metadata outputBoxHeight.editor is "com.livecode.pi.number"
metadata outputBoxHeight.default is "23"
metadata outputBoxHeight.label is "Output Box Height"
metadata outputBoxHeight.section is "Table"
private variable mOutputBoxHeight as Number
private handler setOutputBoxHeight(in pVal as Number)
put pVal into mAppData["props"]["outputBoxHeight"]
put pVal into mOutputBoxHeight
redraw all
end handler
property outputBoxTextSize get mTitleTextSize set setOutputBoxTextSize
metadata outputBoxTextSize.editor is "com.livecode.pi.number"
metadata outputBoxTextSize.default is "15"
metadata outputBoxTextSize.label is "Output box font size"
metadata outputBoxTextSize.section is "Text"
private variable mShowOutputBoxTextSize as Number
private handler setOutputBoxTextSize(in pVal as Number)
put pVal into mAppData["props"]["outputBoxTextSize"]
put pVal into mShowOutputBoxTextSize
redraw all
end handler
property outputBoxTextFont get mShowOutputBoxTextFont set setOutputBoxTextFont
metadata outputBoxTextFont.editor is "com.livecode.pi.font"
metadata outputBoxTextFont.default is "Courier"
metadata outputBoxTextFont.label is "Output Box Font"
metadata outputBoxTextFont.section is "Text"
private variable mShowOutputBoxTextFont as String
private handler setOutputBoxTextFont(in pVal as String)
put pVal into mAppData["props"]["outputBoxTextFont"]
put pVal into mShowOutputBoxTextFont
redraw all
end handler
-- So it goes
property showTabPages get mShowTabPages set setShowTabPages
metadata showTabPages.editor is "com.livecode.pi.boolean"
metadata showTabPages.default is "false"
metadata showTabPages.label is "Displays a Panel With Tabs"
metadata showTabPages.section is "Table"
private variable mShowTabPages as Boolean
private handler setShowTabPages(in pVal as Boolean)
put pVal into mAppData["props"]["showTabPages"]
put pVal into mShowTabPages
setTabData(mTabData)
redraw all
end handler
property tabPagesAlign get mTabPagesAlign set setTabPagesAlign
metadata tabPagesAlign.editor is "com.livecode.pi.enum"
metadata tabPagesAlign.options is "left,top,right,bottom"
metadata tabPagesAlign.default is "left"
metadata tabPagesAlign.label is "Tab Bar Alignment"
metadata tabPagesAlign.section is "Table"
private variable mTabPagesAlign as String
private handler setTabPagesAlign(in pVal as String)
put pVal into mAppData["props"]["tabPagesAlign"]
put pVal into mTabPagesAlign
redraw all
end handler
property tabPagesSizeMods get mTabPagesSizeMods set setTabPagesSizeMods
metadata tabPagesSizeMods.editor is "com.livecode.pi.enum"
metadata tabPagesSizeMods.options is "Percent/Percent,Fixed/Fixed,Percent/Fixed,Fixed/Percent"
metadata tabPagesSizeMods.default is "Percent/Percent"
metadata tabPagesSizeMods.label is "Tab Bar Sizer H/W"
metadata tabPagesSizeMods.section is "Table"
private variable mTabPagesSizeMods as String
private handler setTabPagesSizeMods(in pVal as String)
put pVal into mAppData["props"]["tabPagesSizeMods"]
put pVal into mTabPagesSizeMods
redraw all
end handler
property tabPagesHeight get mTabPagesHeight set setTabPagesHeight
metadata tabPagesHeight.editor is "com.livecode.pi.number"
metadata tabPagesHeight.default is "100"
metadata tabPagesHeight.label is "Tab Bar Height"
metadata tabPagesHeight.section is "Table"
private variable mTabPagesHeight as Number
private handler setTabPagesHeight(in pVal as Number)
put pVal into mAppData["props"]["tabPagesHeight"]
put pVal into mTabPagesHeight
redraw all
end handler
property tabPagesWidth get mTabPagesWidth set setTabPagesWidth
metadata tabPagesWidth.editor is "com.livecode.pi.number"
metadata tabPagesWidth.default is "20"
metadata tabPagesWidth.label is "Tab Bar Width"
metadata tabPagesWidth.section is "Table"
private variable mTabPagesWidth as Number
private handler setTabPagesWidth(in pVal as Number)
put pVal into mAppData["props"]["tabPagesWidth"]
put pVal into mTabPagesWidth
redraw all
end handler
property tabPagesBuffer get mTabPagesBuffer set setTabPagesBuffer
metadata tabPagesBuffer.editor is "com.livecode.pi.number"
metadata tabPagesBuffer.default is "3"
metadata tabPagesBuffer.label is "Tab Bar Edge Buffer"
metadata tabPagesBuffer.section is "Table"
private variable mTabPagesBuffer as Number
private handler setTabPagesBuffer(in pVal as Number)
put pVal into mAppData["props"]["tabPagesBuffer"]
put pVal into mTabPagesBuffer
redraw all
end handler
property tabData get mTabData set setTabData
metadata tabData.editor is "com.livecode.pi.array"
metadata tabData.label is "Tab Bar Configuration"
metadata tabData.section is "Table"
private variable mTabData as Array
private handler setTabData(in pVal as Array)
variable tCount as Number
put pVal into mTabData
repeat with tCount from 1 up to the number of elements in mTabData
verifyTabDataComplete(mkStr(tCount))
end repeat
saveDataSets("control", "current")
saveDataSets("theme", "current")
put pVal into mAppData["tabData"]
end handler
--SECTION: myData/AppData
property appData get mAppData set setAppData
metadata appData.editor is "com.livecode.pi.array"
metadata appData.label is "AppData for Storage"
metadata appData.section is "Advanced"
private variable mAppData as Array
private handler setAppData(in pVal as Array)
put pVal into mAppData
put kVersion into mAppData["version"]
end handler
private handler addDebugInfo(in pKey as String, in pValue)
put pValue into mAppData["debug"][pKey]
end handler
property myData get mData set setData
metadata myData.editor is "com.livecode.pi.array"
metadata myData.section is "Contents"
metadata myData.label is "Data - Array for Configuration"
private variable mData as Array
private handler setData(in pVal as Array)
if "props" is among the keys of pVal then
updatePropsFromMyData(pVal["props"])
end if
put pVal into mAppData["props"]["myData"]
put pVal into mData
if mControlType is not "Dialog Box" then
verifyDataComplete()
end if
redraw all
end handler
property dataCommand get mDataCommand set setDataCommand
metadata dataCommand.editor is "com.livecode.pi.text"
metadata dataCommand.default is ""
metadata dataCommand.label is "Data Command"
metadata dataCommand.section is "Advanced"
private variable mDataCommand as String
private handler setDataCommand(in pVal as String)
put pVal into mDataCommand
executeDataCommand()
put "" into mDataCommand
end handler
property controlOutput get mActionOutput
metadata controlOutput.section is "Advanced"
metadata controlOutput.label is "Output from Controls"
private variable mActionOutput
property sendMessage get mSendMessage set setSendMessage
metadata sendMessage.editor is "com.livecode.pi.boolean"
metadata sendMessage.default is "true"
metadata sendMessage.label is "Allow messages to be posted"
metadata sendMessage.section is "Advanced"
private variable mSendMessage as Boolean
private handler setSendMessage(in pVal as Boolean)
put pVal into mSendMessage
end handler
property inputData get mInputData set setInputData
metadata inputData.editor is "com.livecode.pi.text"
metadata inputData.default is ""
metadata inputData.label is "Data through text"
metadata inputData.section is "Contents"
private variable mInputData as String
/*
1;;label;;THis is the thing
1;;value;;20
2;;label;;other thing
*/
private handler setInputData(in pText as String)
variable tResult as Array
variable tParsedLine as List
variable tInput as List
variable tLine as String
variable tControl as String
variable tProp as String
if not(pText is "") then
split pText by newline into tInput
repeat for each element tLine in tInput
split tLine by ";;" into tParsedLine
put element 1 of tParsedLine into tControl
put element 2 of tParsedLine into tProp
if not(tControl is among the keys of tResult) then
put the empty array into tResult[tControl]
end if
put quazQua(element 3 of tParsedLine,"decode") into tResult[tControl][tProp]
end repeat
setData(tResult)
put "" into pText
end if
end handler
--SECTION: GENERAL CONTROL PROPS
property controlType get mControlType set setControlType
metadata controlType.editor is "com.livecode.pi.enum"
metadata controlType.options is "Button Bar,Dialog Box,Form Backdrop,Numeric Up/Down,Progress Bars,Sliders,Switches,Mixed Controls,Button Wheel"
metadata controlType.default is "Button Bar"
metadata controlType.label is "Control Types"
metadata controlType.section is "Basic"
private variable mControlType as String
private handler setControlType(in pVal as String)
put the empty array into mData
setData(mData)
put pVal into mAppData["props"]["controlType"]
put pVal into mControlType
if mDefaultChangeType then
if mControlType is "Button Bar" or mControlType is "Button Wheel" then
useDefaultButtonBarProps()
else if mControlType is "Switches" then
useDefaultSwitchesProps()
else if mControlType is "Numeric Up/Down" then
useDefaultUpDownProps()
else if mControlType is "Dialog Box" then
useDefaultDialogBoxProps()
else if mControlType is "Sliders" or mControlType is "Progress Bars" then
useDefaultSlidersProps()
else if mControlType is "Form Backdrop" then
-- no props for now
end if
end if
redraw all
end handler
property columnCount get mColumns set setColumns
metadata columnCount.editor is "com.livecode.pi.number"
metadata columnCount.default is "1"
metadata columnCount.label is "Number of Columns"
metadata columnCount.section is "Basic"
private variable mColumns as Number
private handler setColumns(in pVal as Number)
put pVal into mAppData["props"]["columnCount"]
put pVal into mColumns
redraw all
end handler
property controlBufferV get mControlBufferV set setControlBufferV
metadata controlBufferV.editor is "com.livecode.pi.number"
metadata controlBufferV.default is "2"
metadata controlBufferV.label is "Control Buffer Top/Bottom"
metadata controlBufferV.section is "Basic"
private variable mControlBufferV as Number
private handler setControlBufferV(in pVal as Number)
put pVal into mAppData["props"]["controlBufferV"]
put pVal into mControlBufferV
redraw all
end handler
property controlBufferH get mControlBufferH set setControlBufferH
metadata controlBufferH.editor is "com.livecode.pi.number"
metadata controlBufferH.default is "2"
metadata controlBufferH.label is "Control Buffer Left/Right"
metadata controlBufferH.section is "Basic"
private variable mControlBufferH as Number
private handler setControlBufferH(in pVal as Number)
put pVal into mAppData["props"]["controlBufferH"]
put pVal into mControlBufferH
redraw all
end handler
property controlRadius get mControlRadius set setControlRadius
metadata controlRadius.editor is "com.livecode.pi.number"
metadata controlRadius.default is "23"
metadata controlRadius.label is "Control Corner Radius"
metadata controlRadius.section is "Basic"
private variable mControlRadius as Number
private handler setControlRadius(in pVal as Number)
put pVal into mAppData["props"]["controlRadius"]
put pVal into mControlRadius
redraw all
end handler
property displayLabel get mDisplayLabel set setDisplayLabel
metadata displayLabel.editor is "com.livecode.pi.boolean"
metadata displayLabel.default is "true"
metadata displayLabel.section is "Basic"
metadata displayLabel.label is "Control Show Label"
private variable mDisplayLabel as Boolean
private handler setDisplayLabel(in pVal as Boolean)
put pVal into mAppData["props"]["displayLabel"]
put pVal into mDisplayLabel
redraw all
end handler
property controlTextFont get mControlTextFont set setControlTextFont
metadata controlTextFont.editor is "com.livecode.pi.font"
metadata controlTextFont.default is "Arial"
metadata controlTextFont.label is "Control Label Font"
metadata controlTextFont.section is "Text"
private variable mControlTextFont as String
private handler setControlTextFont(in pVal as String)
put pVal into mAppData["props"]["controlTextFont"]
put pVal into mControlTextFont
redraw all
end handler
property controlTextSize get mControlTextSize set setControlTextSize
metadata controlTextSize.editor is "com.livecode.pi.number"
metadata controlTextSize.default is "13"
metadata controlTextSize.label is "Control Label/Text Font Size"
metadata controlTextSize.section is "Text"
private variable mControlTextSize as Number
private handler setControlTextSize(in pVal as Number)
put pVal into mAppData["props"]["controlTextSize"]
put pVal into mControlTextSize
redraw all
end handler
property controlTextColor get mControlTextColor set setcontrolTextColor
metadata controlTextColor.editor is "com.livecode.pi.enum"
metadata controlTextColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata controlTextColor.default is "fore"
metadata controlTextColor.label is "Control Text Color"
metadata controlTextColor.section is "Colors"
private variable mControlTextColor as String
private handler setcontrolTextColor(in pVal as String)
put pVal into mAppData["props"]["controlTextColor"]
put pVal into mControlTextColor
redraw all
end handler
property controlHiliteColor get mControlHiliteColor set setControlHiliteColor
metadata controlHiliteColor.editor is "com.livecode.pi.enum"
metadata controlHiliteColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata controlHiliteColor.default is "hilite"
metadata controlHiliteColor.label is "Control Hilited Color"
metadata controlHiliteColor.section is "Colors"
private variable mControlHiliteColor as String
private handler setControlHiliteColor(in pVal as String)
put pVal into mAppData["props"]["controlHiliteColor"]
put pVal into mControlHiliteColor
redraw all
end handler
property displayValue get mDisplayValue set setDisplayValue
metadata displayValue.editor is "com.livecode.pi.boolean"
metadata displayValue.default is "true"
metadata displayValue.section is "Basic"
metadata displayValue.label is "Control Show Value"
private variable mDisplayValue as Boolean
private handler setDisplayValue(in pVal as Boolean)
put pVal into mAppData["props"]["displayValue"]
put pVal into mDisplayValue
redraw all
end handler
property controlValueSize get mControlValueSize set setControlValueSize
metadata controlValueSize.editor is "com.livecode.pi.number"
metadata controlValueSize.default is "31"
metadata controlValueSize.label is "Control Value Font Size"
metadata controlValueSize.section is "Text"
private variable mControlValueSize as Number
private handler setControlValueSize(in pVal as Number)
put pVal into mAppData["props"]["controlValueSize"]
put pVal into mControlValueSize
redraw all
end handler
property controlTextWidth get mControlTextWidth set setControlTextWidth
metadata controlTextWidth.editor is "com.livecode.pi.number"
metadata controlTextWidth.default is "42"
metadata controlTextWidth.label is "Control Text Fixed Width"
metadata controlTextWidth.section is "Basic"
private variable mControlTextWidth as Number
private handler setControlTextWidth(in pVal as Number)
put pVal into mAppData["props"]["controlTextWidth"]
put pVal into mControlTextWidth
redraw all
end handler
property controlValueWidth get mControlValueWidth set setControlValueWidth
metadata controlValueWidth.editor is "com.livecode.pi.number"
metadata controlValueWidth.default is "31"
metadata controlValueWidth.label is "Control Value Fixed Width"
metadata controlValueWidth.section is "Basic"
private variable mControlValueWidth as Number
private handler setControlValueWidth(in pVal as Number)
put pVal into mAppData["props"]["controlValueWidth"]
put pVal into mControlValueWidth
redraw all
end handler
property controlValueFont get mControlValueFont set setControlValueFont
metadata controlValueFont.editor is "com.livecode.pi.font"
metadata controlValueFont.default is "Courier"
metadata controlValueFont.label is "Control Value Font"
metadata controlValueFont.section is "Text"
private variable mControlValueFont as String
private handler setControlValueFont(in pVal as String)
put pVal into mAppData["props"]["controlValueFont"]
put pVal into mControlValueFont
redraw all
end handler
property controlValueColor get mControlValueColor set setControlValueColor
metadata controlValueColor.editor is "com.livecode.pi.enum"
metadata controlValueColor.options is "fore,back,top,bottom,shadow,focus,border,hilite"
metadata controlValueColor.default is "fore"
metadata controlValueColor.label is "Control Value Color"
metadata controlValueColor.section is "Colors"
private variable mControlValueColor as String
private handler setControlValueColor(in pVal as String)
put pVal into mAppData["props"]["controlValueColor"]
put pVal into mControlValueColor
redraw all
end handler
property controlTextAlign get mControlTextAlign set setControlTextAlign
metadata controlTextAlign.editor is "com.livecode.pi.enum"
metadata controlTextAlign.options is "top left,top center,top right,center left,center center,center right,bottom left,bottom center,bottom right,"
metadata controlTextAlign.default is "center center"
metadata controlTextAlign.label is "Control Text Alignment"
metadata controlTextAlign.section is "Text"
private variable mControlTextAlign as String
private handler setControlTextAlign(in pVal as String)
put pVal into mAppData["props"]["controlValueColor"]
put pVal into mControlTextAlign
redraw all
end handler
property controlObjectColor get mControlObjectColor set setControlObjectColor
metadata controlObjectColor.editor is "com.livecode.pi.enum"
metadata controlObjectColor.options is "fore,back,top,bottom,shadow,focus,border,hilite,clear"
metadata controlObjectColor.default is "back"
metadata controlObjectColor.label is "Control Object Color"
metadata controlObjectColor.section is "Colors"
private variable mControlObjectColor as String
private handler setControlObjectColor(in pVal as String)
put pVal into mAppData["props"]["controlObjectColor"]
put pVal into mControlObjectColor
redraw all
end handler
property controlObjectVertical get mControlObjectVertical set setControlObjectVertical
metadata controlObjectVertical.editor is "com.livecode.pi.enum"
metadata controlObjectVertical.options is "Even spacing,Fixed spacing"
metadata controlObjectVertical.default is "Even spacing"
metadata controlObjectVertical.label is "Control Object Vertical Spacing"
metadata controlObjectVertical.section is "Basic"
private variable mControlObjectVertical as String
private handler setControlObjectVertical(in pVal as String)
put pVal into mAppData["props"]["controlObjectVertical"]
put pVal into mControlObjectVertical
redraw all
end handler
property controlObjectSize get mControlObjectSize set setControlObjectSize
metadata controlObjectSize.editor is "com.livecode.pi.number"
metadata controlObjectSize.default is "30"
metadata controlObjectSize.label is "Control Object Size"
metadata controlObjectSize.section is "Basic"
private variable mControlObjectSize as Number
private handler setControlObjectSize(in pVal as Number)
put pVal into mAppData["props"]["controlObjectSize"]
put pVal into mControlObjectSize
redraw all
end handler