Results 1 to 6 of 6

Thread: testing vbcodes

Threaded View

  1. #6

    Thread Starter
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Testing the WYSIWYG Editor

    More testing of the WYSIWYG editor
    I Like Arial 12 in blue

    But it should be a little darker don't you think?
    Here is an example of a list. This was a particular difficult
    Problem to solve when using color.

    • item 1
    • item 2
    • item 3

    Here is some VB code
    VB Code:
    1. [FONT=Courier New]Sub LoadIcons(Index As Integer)
    2. [/FONT]
    VB Code:
    1. [FONT=Courier New][COLOR=#007A00]'load each image into an animated gif class(Index,i)
    2. 'from resource file
    3. 'position the image on the picturebox(Index)
    4. 'produce an array of rect position numbers for checking
    5. 'mouse position
    6. [/COLOR][COLOR=#0000FF]Dim i As Integer, j As Integer
    7. Dim mySmilie As clsSmilie
    8.  
    9.     iSpace = 30
    10.     iLeft = 10
    11.     iTop = 10
    12.     nPicture = Index
    13.     For i = 1 To 22
    14.         Set mySmilie = New clsSmilie
    15.         With mySmilie
    16.             .ToolTipText = LoadResString(100 + i)
    17.             .Tag = LoadResString(i + 165)
    18.         End With
    19.         Set mySmilie = Nothing
    20.     Next i
    21.    
    22. [/COLOR][COLOR=#007A00]'Now a test of quotes
    23. [/COLOR][COLOR=#0000FF]    x = "[/COLOR][COLOR=#7A0000]Here is quoted Text[/COLOR][COLOR=#0000FF]"
    24.     y = x & vbCrLf & "[/COLOR][COLOR=#7A0000]More Quoted Text[/COLOR][COLOR=#0000FF]"
    25.    
    26. End Sub[/COLOR][/FONT]

    Now for some special text formatting
    We can Highlight text, make it superscript or subscript
    Change its
    color or font too.

    We can also do quotes
    I couldn't get my program to work, can you help me?[/COLOR]
    I'm still working on C++ code[/QUOTE] C++ Code [/COLOR][/QUOTE]
    APIFunction BuildAPIStub(PSTR pszModule, PSTR pszFuncName, PBYTE params);

    [/COLOR]// MakePtr is a macro that allows you to easily add to values (including
    // pointers) together without dealing with C's pointer arithmetic. It
    // essentially treats the last two parameters as DWORDs. The first
    // parameter is used to typecast the result to the appropriate pointer type.
    #define MakePtr( cast, ptr, addValue ) (cast)( (DWORD)(ptr)+(DWORD)(addValue))

    #define MAX_INTERCEPTED_APIS 2048
    unsigned InterceptedAPICount = 0;
    PAPIFunction InterceptedAPIArray[MAX_INTERCEPTED_APIS];[/QUOTE]

    This post was produced by the WYSIWYG editor.


    Last edited by moeur; Aug 16th, 2005 at 06:26 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width