djsrv
831c014f9e
DIRECTOR: Make FXmp available to MacText
2021-07-05 22:53:35 -04:00
djsrv
b3b55e59e9
GRAPHICS: MACGUI: Add parent to MacFontRun
2021-07-05 22:53:35 -04:00
Le Philousophe
25426c0a80
MACGUI: Fix int/int32 build failures
...
All of this is because Rect and Surface have moved to int32
2021-07-05 23:54:34 +02:00
ysj1173886760
1945e3ec5c
GRAPHICS: MACGUI: realloc surface after changing dims
2021-06-30 16:29:00 +02:00
ysj1173886760
bcd33eeba3
DIRECTOR: fix rendering text to suit for different style text
2021-06-30 16:29:00 +02:00
ysj1173886760
d0317fa1bb
DIRECTOR: use text style to determine whether text should fix dims
2021-06-30 16:29:00 +02:00
ysj1173886760
202f6ce7e5
GRAPHICS: MACGUI: move set fixed dims to ctor for mactext
2021-06-30 16:29:00 +02:00
ysj1173886760
c759e27fe7
GRAPHICS: MACGUI: introduce _fixedDims to mactext, which represent for whether mactext should auto expanding.
2021-06-30 16:29:00 +02:00
ysj1173886760
787454f908
GRAPHICS: MACGUI: support partial color setting in mactext
2021-06-30 16:29:00 +02:00
ysj1173886760
ba858522eb
GRAPHICS: MACGUI: add basic color changing support for mactext
2021-06-30 16:29:00 +02:00
ysj1173886760
258c8447a2
GRAPHICS: MACGUI: modify the behaviour of selection. we will select whole area when we select whole text.
2021-06-26 16:08:20 +02:00
ysj1173886760
76e0494f27
GRAPHICS: MACGUI: clean the code
2021-06-26 16:08:20 +02:00
ysj1173886760
b442d634b4
GRAPHICS: MACGUI: fix drawing selection when we have borders in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
576ce1176e
GRAPHICS: MACGUI: fix heap overflow when drawing selection in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
46f8b7df75
GRAPHICS: MACGUI: amend drawing selection in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
868f58b3c2
GRAPHICS: MACGUI: update selection after setting text in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
832455d812
GRAPHICS: MACGUI: eliminate offset in macbutton. amend the behaviour of setEditable in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
325481b38e
GRAPHICS: MACGUI: amend the behaviour when we destruct mactext and setting the selRange
2021-06-26 16:08:20 +02:00
ysj1173886760
78d77319e7
GRAPHICS: MACGUI: eliminate vertical 1 offset in mac
2021-06-26 16:08:20 +02:00
ysj1173886760
9d63692348
GRAPHICS: MACGUI: eliminate offsets in mactext
2021-06-26 16:08:20 +02:00
ysj1173886760
39fc525bf0
DIRECTOR: modify and organize the logic of mactext and macbutton.
...
eliminated a lot of magic offsets.
reaching nearly 100% reappearance.
2021-06-26 16:08:20 +02:00
ysj1173886760
158406487a
GRAPHICS: MACGUI: re-organize the logic of calculating offsets of mactext and macbutton.
2021-06-26 16:08:20 +02:00
ysj1173886760
93421af649
GRAPHICS: MACGUI: clean the code and write comments for readability
2021-06-20 14:33:53 +02:00
ysj1173886760
fd8483f7cc
GRAPHICS: MACGUI: fix drawing the mactext,
...
currently we have some problems when dealing with the alignments, so i changed to this one.
It's may get a little bit slow, but we may optimize it later
2021-06-20 14:33:53 +02:00
ysj1173886760
343597bd43
GRAPHICS: MACGUI: add setText for mactext
2021-06-20 14:33:53 +02:00
ysj1173886760
cae7c025e5
GRAPHICS: MACGUI: use ascent to determine the vertical offset when rendering mactext
2021-06-20 14:33:53 +02:00
ysj1173886760
3817c90148
GRAPHICS: MACGUI: deal with plain bytes specially when we calculating the string width.
2021-06-20 14:33:53 +02:00
ysj1173886760
72162c41b4
GRAPHICS: MACGUI: introduce _plainByteMode to mactext for working with plain bytes. introduce _encodeType to mactext for recording encoding type
2021-06-20 14:33:53 +02:00
ysj1173886760
d30e009eff
GRAPHICS: MACGUI: fix regression of scrolling cursor in mactext
2021-06-13 00:41:26 +02:00
ysj1173886760
ce11b8efb9
GRAPHICS: MACGUI: small fix for getRowCol in mactext to suit for new offset system
2021-06-13 00:41:26 +02:00
ysj1173886760
e18b26d69e
GRAPHICS: MACGUI: clean most of the offset in mactext
2021-06-13 00:41:26 +02:00
ysj1173886760
e575393e52
GRAPHICS: MACGUI: fix the cursor position calculating in mactext
2021-06-13 00:41:26 +02:00
djsrv
7baac7da4d
GRAPHICS: MACGUI: Fix out of bounds array access
2021-06-10 10:58:27 -04:00
djsrv
8ac995cf8a
GRAPHICS: MACGUI: Allow selection to be drawn on inactive text
...
Hilite can select text on an inactive text field
2021-06-10 10:57:19 -04:00
ysj1173886760
86e21663d5
GRAPHICS: MACGUI: fix setSelection offset in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
34972626d4
GRAPHICS: MACGUI: remove the selection after we set maxWidth in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
4c3630f648
GRAPHICS: MACGUI: undraw the cursor when we are selecting in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
9b262360ed
GRAPHICS: MACGUI: complete setMaxWidth in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
24821716db
GRAPHICS: MACGUI: fix drawing selection when we have a not complete line in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
8caf7abf4a
GRAPHICS: MACGUI: fix getRowCol when we have text alignment, modify the behaviour when we drawing selection in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
68f0483458
GRAPHICS: MACGUI: enhance getRowCol in mactext by using bsearch
2021-06-10 13:58:41 +02:00
ysj1173886760
d02ec882de
GRAPHICS: MACGUI: fix selection drawing when we have text alignments in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
5e734b0ca0
GRAPHICS: MACGUI: fix cursor drawing when we scroll the mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
51698610d2
GRAPHICS: MACGUI: inherit paragraphEnd when we adding new line in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
bdf81ad565
GRAPHICS: MACGUI: fix the copy/paste operations when we have multi-paragraph selection in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
88541a8303
GRAPHICS: MACGUI: fix the behaviour when the selEnd and selStart has the same value, currently, we will move the cursor here, just as director does
2021-06-10 13:58:41 +02:00
ysj1173886760
0f7e7bd462
GRAPHICS: MACGUI: disable the ability of setting active in setEditable. currently, director will only set the first editable text widget to active
2021-06-10 13:58:41 +02:00
ysj1173886760
dea9455a96
GRAPHICS: MACGUI: introduce two variable to lingo, _selEnd and _selStart, which has default value -1. selEnd and selStart specify the selection area every time you activated the mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
0467fa91cc
GRAPHICS: MACGUI: clear the selection and cursor after we de-activated the mactext. refresh mactext every time we change the active status
2021-06-10 13:58:41 +02:00
ysj1173886760
4419ae9a0b
GRAPHICS: MACGUI: add default format before we are using the text from global clipboard
2021-06-03 13:19:10 +02:00