Page 2 of 2
Re: coloring status bar text
Posted: Wed Jul 25, 2018 1:04 pm
by RASHAD
Thanks KCC
@Lord
Previous post updated for PB x64
For the Height of the StatusBar you control it by changing
Code: Select all
SendMessage_(Result, #SB_SETMINHEIGHT, 40, 0)
SendMessage_(Result, #WM_SIZE, 0,0)
BTW
I do not like to use Result as StatusBarID but I left it as per your post
Re: coloring status bar text
Posted: Wed Jul 25, 2018 7:06 pm
by Lord
RASHAD wrote:...
Previous post updated for PB x64
For the Height of the StatusBar you control it by changing
Code: Select all
SendMessage_(Result, #SB_SETMINHEIGHT, 40, 0)
SendMessage_(Result, #WM_SIZE, 0,0)
...
Thanks for that. I did know that. I mentioned it only to show the whole picture.
RASHAD wrote:...
BTW
I do not like to use Result as StatusBarID but I left it as per your post
...
The StatusBarID was used by FluidByte in his original posting and
reused by ccode. I didn't change that.
But back to business.
Both codes work stand alone.
Code #1 still doesn't work here in my program.
Code #2 either,
until I commented out "If wParam = GetDlgCtrlID_(hsb)" and "EndIf"
because "wParam = GetDlgCtrlID_(hsb)" never gets "#True".
Maybe I leave it that way.
Re: coloring status bar text
Posted: Wed Jul 25, 2018 7:25 pm
by RASHAD
Hi Lord
hsb must be the StatusBarID (the statusbar handle) instead of Result in the posted code
Also it must be global too
Re: coloring status bar text
Posted: Wed Jul 25, 2018 7:40 pm
by Lord
RASHAD wrote:Hi Lord
hsb must be the StatusBarID (the statusbar handle) instead of Result in the posted code
Also it must be global too
Yes, I know. And in my recent code it is like that.