Betterlook.pbi - Make your PB app UI better-looking (WIP - Windows x64)

Everything else that doesn't fall into one of the other PB categories.
ebs
Enthusiast
Enthusiast
Posts: 530
Joined: Fri Apr 25, 2003 11:08 pm

Re: Betterlook.pbi - Make your PB app UI better-looking (WIP - Windows x64)

Post by ebs »

Another suggestion: use #PB_Any to generate the IDs for the titlebar minimize/restore and close gadgets, rather than using fixed numbers (595, 596).

This should probably also be done for font IDs, image IDs, etc., so that the fixed numbers don't conflict with other gadgets.
Axolotl
Enthusiast
Enthusiast
Posts: 435
Joined: Wed Dec 31, 2008 3:36 pm

Re: Betterlook.pbi - Make your PB app UI better-looking (WIP - Windows x64)

Post by Axolotl »

After a brief look, I would like to make some suggestions, if you don't mind.

I like using named enumerations, especially in includes to avoid Gadget + 99 situations.

Code: Select all

Enumeration EWindow 	; <-- my style E for enumeration, just like T in Structure TData for Type (but Name can be any different) 
  #WINDOW_Main 
EndEnumeration 

Enumeration EGadget 
  #GADGET_Panel 
  #GADGET_Text_on_Tab1   ; ...  
  #GADGET_Text_on_Tab2   ; ...  
  #GADGET_Text2_on_Tab2  ; ...  
EndEnumeration 
There is a small bug in WindowHandlerML().
You are using 0 instead of the parameter g for the procedure calls.
Examples work because the parameter is 0.
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home
firace
Addict
Addict
Posts: 899
Joined: Wed Nov 09, 2011 8:58 am

Re: Betterlook.pbi - Make your PB app UI better-looking (WIP - Windows x64)

Post by firace »

Axolotl, ebs: thanks for your feedback! I will definitely look into these issues.
(Just need to take a few days off now)
Post Reply