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 Scrolldirectx text scrollhow to c scroll text in d3d menuD3D menu scrolldirect3d scrolling textd3d scrollbarD3D scrolling textdirectx scrolltextC# DirectDraw scrolling textc# scrolling textscroll d3d menuDirect3D scroll textscrolling text DrawTextdirectx text scrollerdirect3d text scrolldirectx.drawstringdirectx scrolling text c#d3d text scrollingscrolling text directxDirectDraw Scrolling Marquee c#D3D Scrool

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
  •