Results 1 to 1 of 1

Thread: Scrolling text

  1. #1
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,221
    Thanks
    211
    Thanked 2,224 Times in 289 Posts
    Rep Power
    10

    Scrolling text

    globals
    int xx = 0;
    int yy = 0;

    pretty much in your present do
    DisplayScroll();

    void DisplayScroll()
    {
    Directx.DrawString(xx,yy,D3DCOLOR_ARGB(255,255,0,0 ),pFont,"YOUR SCROLL HERE :)");//however you make your font
    }

    now make the thing that runs it
    void RunScroll()
    {
    yy = 700;
    while(1){
    if(xx == 1000){
    xx = 0;
    }
    else {
    xx++;
    }
    }
    }

    Now Make a new Dll Thread
    DWORD WINAPI Scrolling( LPVOID ){
    RunScroll();
    return true;
    }

    and if you have no idea what your doing

    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);

    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, ScrollText, NULL, NULL, NULL);

    }
    return TRUE;
    }


    by TheLastSecond
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

Visitors found this page by searching for:

directx scrolling text

c# directx scrolling text

drawstring d3d

D3D DrawString

D3D Scrolldirect3d scrolling textD3D scrolling textdirectx text scrolld3d scrollbarhow to c scroll text in d3d menuc# scrolling textC# DirectDraw scrolling textD3D menu scrollDirect3D scroll textscrolling text DrawTextscroll d3d menudirectx text scrollerdirect3d text scrolldirectx.drawstringdirectx scrolling text c#d3d text scrollingscrolling text directxDirectDraw Scrolling Marquee c#d3d moving textmoving text using directx c#

Tags for this Thread

Posting Permissions

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