diablo2oo2 Posted February 27, 2008 Posted February 27, 2008 Here is my final version of TextScroll engine with example sourcecodeDownload herehttp://diablo2oo2.di.funpic.de/downloads/textscroller.rarhttp://free.pages.at/d2k2/downloads/textscroller.rar
mudlord Posted February 27, 2008 Posted February 27, 2008 Thanks diablo2oo2 for the C interface! Works like a charm!
mudlord Posted May 3, 2008 Posted May 3, 2008 Sorry for bumping, but diablo2oo2, I ran into a small issue with your text scroller.Namely, it won't initialise in my current app. I lost my previous source where it previously was working fine, and im at a loss to remember the right way to init it.Anyways, here's my current code: .... LOGFONT LogFont; HFONT font; SCROLLER_STRUCT scroller; LogFont.lfStrikeOut = 0; LogFont.lfUnderline = 0; LogFont.lfHeight = 8; LogFont.lfEscapement = 0; LogFont.lfCharSet = DEFAULT_CHARSET; LogFont.lfQuality = ANTIALIASED_QUALITY; strcpy(LogFont.lfFaceName, "Times New Roman"); font = CreateFontIndirect(&LogFont); scroller.scroll_hwnd = hWndDlg; scroller.scroll_text = "vbhfghfghfghfhfchgfhgfhg"; scroller.scroll_x = 0; scroller.scroll_y = 10; scroller.scroll_width = 280; scroller.scroll_hFont = font; scroller.scroll_textcolor = 0x00F7DDCC; CreateScroller(&scroller);Any help at all would be appreciated.
Angel-55 Posted May 3, 2008 Posted May 3, 2008 Why not simpling your life...... look #include "TextScroller.h" // Diablo's Scroller Header "Useless" but needed :PSCROLLER_STRUCT Scr; // Define Scroll Structure VarLOGFONT LogFont={12,6,0,0,FW_THIN,0,0,0,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY, 0,"Terminal"}; Scr.scroll_hwnd=hWnd; // Handle Of Dialog "GetDC()" lol :)Scr.scroll_text=("My Simple Damn Text To Scroll With Diablo's Lib And It Seems To Work Fine ?! Cool !!"); // Text ??Scr.scroll_x=0; // BlahScr.scroll_y=10; // BlahScr.scroll_width=280; // BlahScr.scroll_hFont=CreateFontIndirect(&LogFont); // Use a FontLog for god's sake;)Scr.scroll_alpha=210; // TRANSPARENCYScr.scroll_textcolor=0x00FFFFFF; // White Font Color :DCreateScroller(&Scr); // Show Time ! Well basicly that's all but remember to include the TextScroller.lib into project. Cya.... PS: better use () for your text
veggy Posted May 3, 2008 Posted May 3, 2008 Some really helpfull sources are posted here. Thanks for all the info.
mudlord Posted May 3, 2008 Posted May 3, 2008 (edited) Angel-55: Thanks for that . I should have stuck with simplicity when filling out diablo2oo2's struct. And thanks again for the brief code sample, it really helps . Edited May 4, 2008 by mudlord
diablo2oo2 Posted November 24, 2008 Posted November 24, 2008 I updated my Scrolltext engine. Now its faster without using GetPixel & SetPixel API function!Download herehttp://diablo2oo2.di.funpic.de/downloads/textscroller.rarhttp://free.pages.at/d2k2/downloads/textscroller.rar
wunder Posted May 22, 2011 Posted May 22, 2011 check out the source: http://www.tuts4you.com/forum/index.php?au...mp;showfile=195 actually it's just a few lines to add a sine.. Thanks Ufo-Pu55y I was looking for something like this, my sine example is too messy for me... however this link is dead , can you please re post were this link was going to lead too? Thank you
wunder Posted May 22, 2011 Posted May 22, 2011 Thanks Ufo-Pu55y I was looking for something like this, my sine example is too messy for me... however this link is dead , can you please re post were this link was going to lead too? Thank you never mind I think it is this: http://forum.tuts4yo...ds&showfile=195 I don't really understand the sine code here anyways
grizzmo Posted May 23, 2011 Posted May 23, 2011 Of any help? Had this around my pc laying.Not mine. But maybe of use for you.MASM_Scroller.zipscroller.v1.01.zip
wunder Posted May 27, 2011 Posted May 27, 2011 Of any help? Had this around my pc laying.Not mine. But maybe of use for you.Any code is good code... I have those ... I was looking for a simple sine scroll.... I have one, that is to complicated
ragdog Posted May 27, 2011 Posted May 27, 2011 (edited) http://comrade.ownz....es/scroller.zipor/>http://www.winasm.net/forum/index.php?showtopic=1969 Edited May 27, 2011 by ragdog
wunder Posted May 28, 2011 Posted May 28, 2011 http://comrade.ownz....es/scroller.zip or http://www.winasm.ne...?showtopic=1969 Thanks I have those... That is the sine scroll that I was referring to that I hate ( the one by comrade, too messy).... I started a reply to this thread since Ufo-Pu55y mentioned that it was only a few lines to add a sine to a text scroll, I thought There was something different... I have a folder full of text scroll , I think I have them all.... I would love to know how to do this: http://cyberdoomsyst.../ripp/ziuhu.rar the above is a ripp
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now