You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
I put new code to this old thread in the source code forum two days ago. I just changed the code. The change takes care of the problem of disappearing buttons when the application is loosing focus. (Go to the end of the thread for the new code.)
I found some strange behavior, I run WinXP Pro themed. First I added the necessary ByVal
to make it compile under PBWIN804, compliles ok, but the caption starts off themed with no
custom buttons, then once activated by a mouse click, the theme reverts to classic and shows
the added buttons. Next, I decided to add Byval to all your function/sub paramters, same thing
themed first with no custom buttons, then click, reverts to classic, but this time no buttons.
Also, when I minimize, it immediately restores.
I have to split to work now, but later if I get time, I will review. It just seems like a lot of
code to do this task compared to a full custom caption bar.
Yes, Jules I noticed the same. On my machine the themed buttons appear, but when I click on any of the custom buttons the theme look disappears. This also happens in the C++ version that I translated. I have no idea why dis happens. I also cannot explain the differences between the C++ and the PB versions. The code is identical as far as I am concerned, yet the PB version losses the button while the application looses focus.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment