|
My ActiveX version is working almost right with automatic font sizes. I'll try to see how to fix it in win32 version if I can. But I go on vacation next week-end. By the way there is 2 way to fix it in win32: - Create a big offscreen buffer (Like the desktop size instead of window size) and use StretchBlt() to draw it resized(smaller) in the window. - Update the font on resize and use the new adjusted font. Currently I use the 2nd method but I think the first is simpler to design, I just didn't though about it when I coded... :) For unix version, I can't help. M-A -----Original Message----- From: Scott Klement [mailto:klemscot@xxxxxxxxxxxx] Sent: 18 juillet, 2003 13:19 To: Linux 5250 Development Project Subject: Re: [LINUX5250] dynamic fonts change. > IS there a hotkey kinda method or someway > to DYNAMICALLY change a session to fit a full screen. Not really. For the xt5250 version, you can try using the xterm's menu, by doing a Ctrl-rightclick in the window. it should give you options like "Unreadable, Tiny, Small, Medium, Large, Huge". This isn't part of tn5250, it's part of xterm, and I can't promise that the fonts are in the sizes you're looking for... but it might be worth a shot. > Just maximizing the window does not adjust the font size. The Unix version of tn5250 does not have support for resizing the font to match the window size. The Windows version has support, but it does not work very well. Here's the status: -- The Unix version is an ncurses program. That means it's written for a plain-text terminal, like the "console mode." When you ask it how big the window is, it tells you 80x25 or 132x28. (i.e. the number of characters, not the number of pixels) Since that's all we get, we can't calculate how big a font should be. If you know how to get around this problem, please advise. -- The GTK version may not have this problem, but nobody is actively developing it. Even so, I have no idea how to enumerate what the available fonts sizes are, so even if I wanted to add support for this, I have no idea how to do it. -- The Windows version... I've been working on this. I have never worked extensively with fonts in Windows, and I've been unable to find any examples on the Internet for resizing to match the windows. So, I've been experimenting with a few different solutions, but it's slow going, and I don't have a lot of time. If someone has expertise in these areas, I'd sure love it if he could contribute code to make these things work nicely!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.