PDA

View Full Version : Smaller code boxes


Jynks
12-13-2005, 12: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.

ikk
12-17-2005, 06:33 AM
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:

http://members.lycos.co.uk/slvv/pic/codeb_01.JPG

http://members.lycos.co.uk/slvv/pic/codeb_02.JPG

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

monjardin
12-17-2005, 09:06 AM
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.

.oisyn
12-17-2005, 09:34 AM
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

ikk
12-17-2005, 09:54 AM
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.

ikk
12-17-2005, 10:03 AM
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;
}

monjardin
12-17-2005, 10:27 AM
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...

Jynks
12-17-2005, 11:36 PM
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.

ikk
12-18-2005, 09:28 AM
i've noticed someone made codeboxes smaller in width, thanx.