Custom Title Bar with Win32 API
#5
@mnrvovrfc

Quote:Anyway, Pete does this let you print any character you want? Because in the other thread it looked like you really wanted to get that three-bar thingie from CHR$(240), I think it was? But I guess that's why this routine could work in a graphics screen... but not your favorite.

Yes. It removes the restrictions of the Windows title bar and allows ASCII 0-255 and I presume Unicode characters to be included.

A draw back is vertical sizing. A single row title bar is fine for a small window. To keep the text vertically centered would require jumping to 3 rows, which is a bit thick. A way around that is to make the title bar with a hardware overlay. Now you could control the pixel size of the title bar, and even add custom made buttons. Past that is going full graphics. Now with either of those two options I'd have to review the differences in character detection with the SCREEN() statement. I would think it necessary to switch it out with a position detection function to locate the title bar controls.

@Dav

Thanks, I' trying to integrate it right now and switch out the Windows title bar in my Sam-Clip app.

@bplus

Quote:Will this work with fonts? and resizing bar to fit a line?

Yes with fonts. I set the fonts immediately after creating the borderless window.  Next add the title bar elements.

Not sure what meant by "resizing bar to fit a line." _RESIZE?

Pete
Reply


Messages In This Thread
Custom Title Bar with Win32 API - by Pete - 11-27-2022, 07:11 AM
RE: Custom Title Bar with Win32 API - by Dav - 11-27-2022, 02:22 PM
RE: Custom Title Bar with Win32 API - by bplus - 11-27-2022, 03:35 PM
RE: Custom Title Bar with Win32 API - by Pete - 11-27-2022, 05:34 PM
RE: Custom Title Bar with Win32 API - by bplus - 11-27-2022, 06:11 PM
RE: Custom Title Bar with Win32 API - by Pete - 11-27-2022, 06:35 PM
RE: Custom Title Bar with Win32 API - by gaslouk - 11-27-2022, 06:20 PM
RE: Custom Title Bar with Win32 API - by Pete - 11-27-2022, 06:34 PM



Users browsing this thread: 2 Guest(s)