How does Yi Language change the font size and font color skew for text based variables?

Updated on technology 2024-02-09
19 answers
  1. Anonymous users2024-02-05

    The main building is to supplement the computer knowledge, the text type () is just text, and it is impossible to store any information about the color and size of the text. That is, the text of the infobox cannot be changed in its "style". Your so-called font size, font color, and tilt only exist in window controls such as boxes and labels, so you might as well use the "font" class.

    Here's a little routine::

    Version 2 Subroutine button 1 is clicked.

    Local variable a, font.

    a.Font size 15

    a.Bold true.

    a.Font name arial".

    a.Tilt true.

    a.Angle 60

    a.Underline true.

    Button 1Font a'Button 1 can be replaced with window controls that support the "Font" class, such as boxes, labels, buttons, and transparent labels.

    In fact, if you are powerful, you can use GDI+ to draw this, the following is an example of Zhiyuan Xingfang drawing text (the specific source code is found on the Internet, this is only a small part of the source code, can not be completely copied).

    Version 2 brush. Create (RGB to ARGB (Black, 255)).

    Font. Created from name ("arial", 12, font style normal, units pixels).

    Graphics. gp draw text ("good"), font, brush, rectangle f (12, 240)).

    Graphics. Refresh the display ( Raster Operations Copy).

  2. Anonymous users2024-02-04

    .Version 2

    Subroutine button 1 is clicked.

    Label 1Horizontal alignment 1

    Label 1Title Tab 1Font. Font name".

    Label 1Font. Font name "Bold".

    Label 1Font. Font size 14

    Label 1Font. Bold true.

    Label 1Font. Tilt true.

    Label 1Font. Angle 2

    Label 1Font. Strikethrough true.

  3. Anonymous users2024-02-03

    .Version 2

    Subroutine button 1 is clicked.

    General Dialog Box 1Type 2

    General Dialog Box 1Open ().

    Box 2Font. Font size Generic Dialog 1Font size box 2Text color in General Dialog Box 1Font color box 2Font. Font Name General Dialog 1Font name".

  4. Anonymous users2024-02-02

    Is this okay?

    Downstairs didn't see the problem clearly.

  5. Anonymous users2024-02-01

    This function box is not supported, just like Notepad, it does not support two-color or above.

  6. Anonymous users2024-01-31

    .Version 2

    Support library iext2

    Assemblies Window Assembly 1

    Assembly variable a, character format.

    Subroutine button 1 is clicked.

    Super Box 1Get Focus ().

    Super Box 1Start to select the position to take the text length (Super Box 1.).contents) aFont size 14

    a.Text color color picker 1Color.

    Super Box 1Set the selection area character format (a).

    Super Box 1The text is selected in Box 1Content.

  7. Anonymous users2024-01-30

    .Version 2

    Support library iext2

    Assemblies Window Assembly 1

    Assembly variable a, character format.

    The contents of the subroutine Superbox 1 are changed.

    Super Box 1Start to select the position to take the text length (Super Box 1.).contents) aText color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).

    Super Box 1Set the selection area character format (a).

  8. Anonymous users2024-01-29

    Use a super list box. Then add a generic dialog, and the type of the generic dialog is Font Selection. Set a variable of type A to Character Format

    Font selection box. Open ().

    Character formatting. Text Color Font selection box. Font color super box. Set the selection area character format (character format).

  9. Anonymous users2024-01-28

    .Version 2

    Assemblies Window Assembly 1

    The subroutine Startup Window is created.

    Set the random number seed ().

    Subroutine button 1 is clicked.

    Box 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).

  10. Anonymous users2024-01-27

    With a super box**:Version 2

    Support iext2Subroutine button 1 is clicked on the supertext (green, "0666666").

    Hypertext (red, "0666666")The subroutine Supertext, , is exposed.

    Parameter color, integer round group.

    Parameters text, text.

    Local variables Character Format, Character Format Super Box 1Start to select the position to take the length of the text (Super Box 1.)Content.

    Character formatting. Font size 9

    Character formatting. Text color Color.

    Super Box 1Set the selection area character format (character format).

    Super Box 1Text selected Text.

  11. Anonymous users2024-01-26

    This feature can be implemented with a super box.

    Version 2 supports the library iext2

    Assemblies Window Assembly 1

    Assembly Variables Character Format, Character Format.

    The subroutine Startup Window is created.

    The local variable temp, integer.

    Character formatting. Text color: Red.

    Count the first step of the loop (take the length of the text (super box 1.)contents), temp) super box 1Start selection position temp 2 1 super box 1The number of characters selected is 1

    Super Box 1Set the selection area character format (character format).

    Counting cycle tail ().

    Super Box 1Start selection position 0

    Super Box 1The number of characters selected is 0

  12. Anonymous users2024-01-25

    Decide first on the specified text you want to change.

    **Frame. Set the style foreground color (integer style number, integer color).

  13. Anonymous users2024-01-24

    Because you're using a normal box, you're reading the :box filename. The content is only plain text, not formatted, so it is recommended to do this:

    1. Use HTML format text (web page text).html is the suffix, decorated with a font or h tag: change the write to file to the following :

    Write to a file ("C: Documents and Settings Administrator My Documents" Save the filename html", to the byte set ("

    To Byte Set ( Line Break) to Byte Set ( Box English. Content) to the byte set ( line break) + to the byte set ("

    2. Use HTML format files. doc is a suffix. Because Word can parse HTML formatting when it opens HTML.

    Write to a file ("C: Documents and Settings Administrator My Documents", to the byte set ("C: Documents and Settings Administrator My Documents", to the byte set ("

    To Byte Set ( Line Break) to Byte Set ( Box English. Content) to the byte set ( line break) + to the byte set ("

    3. Use word2000 to support library word document set, need more knowledge points, not recommended to use, do not send html** intuitive.

    4. About html**, you can learn some font modification font h(h1,h2,h3...and so on. Relatively simple.

    aaaasize indicates the font size.

    .is the title, that is, the font is the standard title size, and there are h1, h2, h3 and other modifications.

    Line breaks. Paragraph.

    Wait a minute... 5. The basic format of HTML format:

    Body part.

  14. Anonymous users2024-01-23

    Transferring byte sets (text) between two different programs If there is no font flag set between them, the system will provide a default value for the font, even within the same program.

  15. Anonymous users2024-01-22

    .Version 2

    Support for the library iext

    Subroutine button 1 is clicked.

    Clear Label 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).

  16. Anonymous users2024-01-21

    .Version 2

    Support for the library iext

    Assemblies Window Assembly 1

    Subroutine button 1 is clicked.

    Clock 1Clock cycle 1000

    Subroutine Clock 1 cycle event.

    Set the random number seed ().

    Clear Label 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).

  17. Anonymous users2024-01-20

    Clock 1Clock cycle 1000Subroutine Clock 1 cycle event.

    Local variables: font size, integer transparent labels1Clear (, set random number seed ().)

    The font size is a random number (12, 100).

    Clear Label 1Font. Font size Font size.

    Clear Label 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).

    Clear Label 1Positional write out (take random number (0, width font size), take random number (0, height font size), follow).

    The font size is a random number (12, 100).

    Clear Label 1Font. Font size Font size.

    Clear Label 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).

    Clear Label 1Positional writing (take random number (0, width font size), take random number (0, height font size), machine).

    The font size is a random number (12, 100).

    Clear Label 1Font. Font size Font size.

    Clear Label 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).

    Clear Label 1Positional write out (take random number (0, width font size), take random number (0, height font size), Yan).

    The font size is a random number (12, 100).

    Clear Label 1Font. Font size Font size.

    Clear Label 1Text color takes the color value (take random number (0, 255), take random number (0, 255), take random number (0, 255)).

    Clear Label 1Positional writing (take random number (0, width font size), take random number (0, height font size), color") The above demonstration is "random color" 4 words, you can add and modify it yourself as needed.

  18. Anonymous users2024-01-19

    It seems that it can only change completely.

    All changed as follows:

    Version 2Support for the library iext

    Assemblies Window Assembly 1

    The subroutine Startup Window is created.

    Clock 1Clock cycle 300'It's better not to have too much or too little, and I personally think this speed is just right.

    Subroutine Clock 1 cycle event.

    Superlist Box 1The text color is taken as a random number (5000, 9999).'The numbers here can be changed at will, and the colors will be different.

  19. Anonymous users2024-01-18

    It doesn't seem to be possible ... It can only change color completely... Advanced**Yes.

Related questions
17 answers2024-02-09

All shells will be cracked if they are placed in the hands of a master. >>>More

10 answers2024-02-09

Hotkey. Registration (Tab 1.)Take the window handle ()0, F1, > register F1 >>>More

9 answers2024-02-09

If you don't change the program, it won't change. Be careful not to confuse the concepts of system and procedure. The QQ** you wear with the SkinSharp program will not change because your computer** is changed to "classic".

6 answers2024-02-09

Agree with the upstairs statement that shelling is a good way to do it. As for this tool, you can take a look, but you need to know that it is very likely to be killed and poisoned after packing. It's not very difficult to add shelling, some of them are foolish, just do it all at once or get some sinister tricks, I'll give you an idea. >>>More

8 answers2024-02-09

Pay attention to the hint - Application Interface Support Library - > System Processing is the command that comes with the easy language itself, if you don't have this command, you can see if there are many support libraries in the above tool support library configuration to see if there are many support libraries that are not checked, if not, select him to the above point OK. >>>More