coloring status bar text

Just starting out? Need help? Post your questions and find answers here.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4955
Joined: Sun Apr 12, 2009 6:27 am

Re: coloring status bar text

Post 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
Egypt my love
User avatar
Lord
Addict
Addict
Posts: 907
Joined: Tue May 26, 2009 2:11 pm

Re: coloring status bar text

Post 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.
Image
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4955
Joined: Sun Apr 12, 2009 6:27 am

Re: coloring status bar text

Post 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
Egypt my love
User avatar
Lord
Addict
Addict
Posts: 907
Joined: Tue May 26, 2009 2:11 pm

Re: coloring status bar text

Post 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.
Image
Post Reply