Page 1 of 1

Status Bar

Posted: Sun Feb 27, 2011 6:19 pm
by l3whmg
Hi Rathinagiri,
I've ready an update for StatusBar, but I want your opinion before to commit.

My update can fix the missing icon when we use this statement

Code: Select all

oWindow:StatusBar:Item(1) := "SomeTextHere"
With my update we store both the text and icon in array.

But with HMG4 we have a new element: the icon. With previous code we can't change or remove...
I want add this method to statusbar.prg

Code: Select all

oWindow:StatusBar:ItemIcon(1) := ":BTN_LOGOUT"
Can I do?

Re: Status Bar

Posted: Sun Feb 27, 2011 6:48 pm
by Rathinagiri
Yes, We can do anything new in addition. Kindly update.

Re: Status Bar

Posted: Mon Feb 28, 2011 9:06 am
by l3whmg
Hi guys,
this morning I've upload an update. Here a piece of changelog content.

1. Now icon on window title bar can showed
* source/window.prg
* added QT command to show icon on window title bar. Icon must be imported in according with resource style
2. About Statusbar bug and new method to manage icon on item. I've also provided a litle example.
Esgici: I hope my comment are clear.
* source/statusbar.prg
* Fixed bug: when user change item text, icon disappear. Now, about user defined items, text and icon are stored in array
+ Class STATUSBAR: added method ItemIcon. Now user can change, add, or remove an icon from status Item
+ samples/statusbar/demo_5*.*
Cheers

Re: Status Bar

Posted: Mon Feb 28, 2011 9:40 am
by l3whmg
Hi guys.

I hav'nt provided specific information about the icon on the title bar of the window, because it is a feature already present in the definition of the form :)
Just now it appears ;)

Cheers