PowerBASIC Users Meeting Point
WorldWeather source code post by Stan - Printable Version

+- PowerBASIC Users Meeting Point (https://pump.richheimer.de)
+-- Forum: User to User Discussions (https://pump.richheimer.de/forumdisplay.php?fid=3)
+--- Forum: Programming (https://pump.richheimer.de/forumdisplay.php?fid=7)
+--- Thread: WorldWeather source code post by Stan (/showthread.php?tid=164)



WorldWeather source code post by Stan - Jules Marchildon - 21.11.2026

Hello Stan,

Thanks for posting.

First the dialog is too high for my 14" laptop screen, the bottom buttons are cut off.  I've made my own adjustments to fit by moving the buttons to right stacked top to bottom.   Sorry, I didn't realize you changed the code. Ops! 

I wanted to mention, when I close the dialog using the taskbar, it stays in memory.  Closing the dialog using the  close [X] button kills it fine.  

WorldWeather.bas


RE: WorldWeather source code post by Stan - Dale Yarker - 21.11.2026

Quote:... when I close the dialog using the taskbar, it stays in memory.

Because "Dialog Show Modal hNews, Call NewsProc" was used.

Use MODELESS and message pump for top window for task bar close in Windows 11.
MODAL is okay for child windows.

Cheers,


RE: WorldWeather source code post by Stan - Stanley Durham - 21.11.2026

changed to MODELESS dialog
fixed button on popup
added Borje Hagsten's EnableVisualStyles.bas code
made it theme aware