Jump to content


Smaller code boxes


  • You cannot reply to this topic
8 replies to this topic

#1 Jynks

    Member

  • Members
  • PipPip
  • 85 posts

Posted 13 December 2005 - 07:50 AM

Hi.... I think mabey you guys should make the code boxes smaller... many people might completely skip a post as they think there is to much to read. Anyone interested can still scroll down the code box.

#2 ikk

    Member

  • Members
  • PipPip
  • 87 posts

Posted 17 December 2005 - 01:33 PM

im having exactly this problem, making [code] boxes smaller 30 percent horizontally and vertically would solve problem in my case.

big boxes are very uncomfortable and i have to deal with double scroll bar while navigate bcos my browser window isnt large enough to hold single
code frame. it looks like this:

Posted Image

Posted Image

i'd appreciate if someone of moderators could do something with this.

#3 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 17 December 2005 - 04:06 PM

This is probably and issue with vBulletin? I've never used it so I don't know if you can tweak the code boxes or not.

#4 .oisyn

    DevMaster Staff

  • Moderators
  • 1822 posts

Posted 17 December 2005 - 04:34 PM

test

I'm not experiencing problems with it, but then again my resolution is 1600 pixels wide. But I guess the code box width should grow in size automatically depending on the longest line in the code, which is not very hard to do with html
C++ addict
-
Currently working on: the 3D engine for Tomb Raider.

#5 ikk

    Member

  • Members
  • PipPip
  • 87 posts

Posted 17 December 2005 - 04:54 PM

actually its very hard to force code box grow dynamically to browser window size, bcos its html and it was made to fit many standards. when i type [code] tag, code is placed inside html frame cos only frame could have scrollbar and be shown partially, and then, html frames are hard to control unless u're using fancy java or flash but that is even worse. therefore size of frame must be constant.

#6 ikk

    Member

  • Members
  • PipPip
  • 87 posts

Posted 17 December 2005 - 05:03 PM

i dont wanna sound like im complaining and to act a wise guy, forum looks already nice and i can live with it.
just some test:

BOOL WINAPI InitializeApplication() 

{ 

    WNDCLASS wc; 

 

    // long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line long line 

    // Register the frame window class. 

 

    wc.style         = 0; 

    wc.lpfnWndProc   = (WNDPROC) MPFrameWndProc; 

    wc.cbClsExtra    = 0; 

    wc.cbWndExtra    = 0; 

    wc.hInstance     = hInst; 

    wc.hIcon         = LoadIcon(hInst, IDMULTIPAD); 

    wc.hCursor       = LoadCursor((HANDLE) NULL, IDC_ARROW); 

    wc.hbrBackground = (HBRUSH) (COLOR_APPWORKSPACE + 1); 

    wc.lpszMenuName  = IDMULTIPAD; 

    wc.lpszClassName = szFrame; 

 

    if (!RegisterClass (&wc) ) 

        return FALSE; 

 

    // Register the MDI child window class. 

 

    wc.lpfnWndProc   = (WNDPROC) MPMDIChildWndProc; 

    wc.hIcon         = LoadIcon(hInst, IDNOTE); 

    wc.lpszMenuName  = (LPCTSTR) NULL; 

    wc.cbWndExtra    = CBWNDEXTRA; 

    wc.lpszClassName = szChild; 

 

    if (!RegisterClass(&wc)) 

        return FALSE; 

 

    return TRUE; 

} 

BOOL WINAPI InitializeApplication() 

{ 

    WNDCLASS wc; 

 

    // Register the frame window class. 

 

    wc.style         = 0; 

    wc.lpfnWndProc   = (WNDPROC) MPFrameWndProc; 

    wc.cbClsExtra    = 0; 

    wc.cbWndExtra    = 0; 

    wc.hInstance     = hInst; 

    wc.hIcon         = LoadIcon(hInst, IDMULTIPAD); 

    wc.hCursor       = LoadCursor((HANDLE) NULL, IDC_ARROW); 

    wc.hbrBackground = (HBRUSH) (COLOR_APPWORKSPACE + 1); 

    wc.lpszMenuName  = IDMULTIPAD; 

    wc.lpszClassName = szFrame; 

 

    if (!RegisterClass (&wc) ) 

        return FALSE; 

 

    // Register the MDI child window class. 

 

    wc.lpfnWndProc   = (WNDPROC) MPMDIChildWndProc; 

    wc.hIcon         = LoadIcon(hInst, IDNOTE); 

    wc.lpszMenuName  = (LPCTSTR) NULL; 

    wc.cbWndExtra    = CBWNDEXTRA; 

    wc.lpszClassName = szChild; 

 

    if (!RegisterClass(&wc)) 

        return FALSE; 

 

    return TRUE; 

} 


BOOL WINAPI InitializeApplication() 

{ 

    WNDCLASS wc; 

 

    // Register the frame window class. 

 

    wc.style         = 0; 

    wc.lpfnWndProc   = (WNDPROC) MPFrameWndProc; 

    wc.cbClsExtra    = 0; 

    wc.cbWndExtra    = 0; 

    wc.hInstance     = hInst; 

    wc.hIcon         = LoadIcon(hInst, IDMULTIPAD); 

    wc.hCursor       = LoadCursor((HANDLE) NULL, IDC_ARROW); 

    wc.hbrBackground = (HBRUSH) (COLOR_APPWORKSPACE + 1); 

    wc.lpszMenuName  = IDMULTIPAD; 

    wc.lpszClassName = szFrame; 

 

    if (!RegisterClass (&wc) ) 

        return FALSE; 

 

    // Register the MDI child window class. 

 

    wc.lpfnWndProc   = (WNDPROC) MPMDIChildWndProc; 

    wc.hIcon         = LoadIcon(hInst, IDNOTE); 

    wc.lpszMenuName  = (LPCTSTR) NULL; 

    wc.cbWndExtra    = CBWNDEXTRA; 

    wc.lpszClassName = szChild; 

 

    if (!RegisterClass(&wc)) 

        return FALSE; 

 

    return TRUE; 

} 




#7 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 17 December 2005 - 05:27 PM

That does look just fine in my browser (Firefox 1.0.7 under WinXP2 at 1280x800). Now that I'm looking at my browser version... aren't they up to 1.5+ or something?
Anyway, I say if it ain't broke...

#8 Jynks

    Member

  • Members
  • PipPip
  • 85 posts

Posted 18 December 2005 - 06:36 AM

I wasn't talking about the browser problems, the code boxes have scroll bars if they go over sized... also as the code grows it hits a certin size then the scoll bars apear...

I was sugesting as a way to condense the posts mabey it would be possible to make the code boxes start to use the scroll bars before they get as large as they do now? (or to be extra tricky have a button to open the code boxes up or somthing) [example size of post 6 in this thread]

It isn't anything major just a opinion.

#9 ikk

    Member

  • Members
  • PipPip
  • 87 posts

Posted 18 December 2005 - 04:28 PM

i've noticed someone made codeboxes smaller in width, thanx.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users