-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ac884f
commit 748753e
Showing
7 changed files
with
41 additions
and
39 deletions.
There are no files selected for viewing
15 changes: 9 additions & 6 deletions
15
Project/Sources/Forms/WP_Palette_Fonts/ObjectMethods/fontFamilly.4dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
|
||
WP_SetFontFamily(Form:C1466.selection; Self:C308->{Self:C308->}) | ||
WP_GetFontInfo(Form:C1466.selection; True:C214) | ||
|
||
oform.forcedEventCode:=On After Edit:K2:43 | ||
SET TIMER:C645(-1) | ||
If (Form:C1466.selection.start#Form:C1466.selection.end) // not empty selection only ACI0104450 | ||
WP_SetFontFamily(Form:C1466.selection; Self:C308->{Self:C308->}) | ||
WP_GetFontInfo(Form:C1466.selection; True:C214) | ||
oForm.forcedEventCode:=On After Edit:K2:43 // forced because it won't be generated by 4DWP because changes are made by programming | ||
SET TIMER:C645(-1) | ||
Else // ACI0104450 else, only Update font styles list and use 1st one | ||
WP_FillFontStyles(Self:C308->{Self:C308->}) | ||
WP_SetFont(Form:C1466.selection; WP_fontLongName{1}) // use 1st style of the style list | ||
End if |
10 changes: 6 additions & 4 deletions
10
Project/Sources/Forms/WP_Palette_Fonts/ObjectMethods/fontStyle.4dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
C_TEXT:C284($font) | ||
$font:=WP_fontLongName{WP_fontStyle} | ||
|
||
$font:=WP_fontLongName{WP_fontStyle} | ||
WP_SetFont(Form:C1466.selection; $font) | ||
WP_GetFontInfo(Form:C1466.selection; True:C214) | ||
|
||
oform.forcedEventCode:=On After Edit:K2:43 | ||
SET TIMER:C645(-1) | ||
If (Form:C1466.selection.start#Form:C1466.selection.end) //ACI0104450 | ||
WP_GetFontInfo(Form:C1466.selection; True:C214) | ||
oForm.forcedEventCode:=On After Edit:K2:43 | ||
SET TIMER:C645(-1) | ||
End if |
17 changes: 9 additions & 8 deletions
17
Project/Sources/Forms/WP_Toolbar/ObjectMethods/fontFamilly.4dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
|
||
WP_SetFontFamily(Form:C1466.selection; Self:C308->{Self:C308->}) | ||
WP_GetFontInfo(Form:C1466.selection; True:C214) | ||
|
||
oForm.forcedEventCode:=On After Edit:K2:43 | ||
SET TIMER:C645(-1) | ||
|
||
|
||
If (Form:C1466.selection.start#Form:C1466.selection.end) // not empty selection only ACI0104450 | ||
WP_SetFontFamily(Form:C1466.selection; Self:C308->{Self:C308->}) | ||
WP_GetFontInfo(Form:C1466.selection; True:C214) | ||
oForm.forcedEventCode:=On After Edit:K2:43 // forced because it won't be generated by 4DWP because changes are made by programming | ||
SET TIMER:C645(-1) | ||
Else // ACI0104450 else, only Update font styles list and use 1st one | ||
WP_FillFontStyles(Self:C308->{Self:C308->}) | ||
WP_SetFont(Form:C1466.selection; WP_fontLongName{1}) // use 1st style of the style list | ||
End if |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
C_TEXT:C284($font) | ||
|
||
$font:=WP_fontLongName{WP_fontStyle} | ||
|
||
WP_SetFont(Form:C1466.selection; $font) | ||
WP_GetFontInfo(Form:C1466.selection; True:C214) | ||
|
||
oForm.forcedEventCode:=On After Edit:K2:43 | ||
SET TIMER:C645(-1) | ||
If (Form:C1466.selection.start#Form:C1466.selection.end) //ACI0104450 | ||
WP_GetFontInfo(Form:C1466.selection; True:C214) | ||
oForm.forcedEventCode:=On After Edit:K2:43 | ||
SET TIMER:C645(-1) | ||
End if |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//%attributes = {} | ||
// method created after ACI0104450 to factorise the code | ||
|
||
#DECLARE($fontFamily : Text) | ||
|
||
ARRAY TEXT:C222(WP_fontStyle; 0) | ||
ARRAY TEXT:C222(WP_fontLongName; 0) | ||
FONT STYLE LIST:C1362($fontFamily; WP_fontStyle; WP_fontLongName) | ||
|
||
WP_fontStyle:=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters