en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en nl en en en en en en en en en de en en de en en en fr en en en en en en en en en pt en en en en en en
By logging into your account, you agree to our Privacy Policy, personal data processing and storage practices as described therein.
Forgot password or user name?
Search in titles only Search in PowerBASIC for Windows only
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.
All Time Today Last Week Last Month
All Discussions only Photos only Videos only Links only Polls only Events only
Join Date: Mar 2002
8 Aug 2008, 01:01 PM
By trial and error I found this out and hope it will be helpful to someone.
By using GetClassName in the Dialog callback I've found I can do things in WM_CTLCOLOREDIT and like events the same way regardless of control id.
For example the following code will turn a field to red if negative based solely on the ClassName.
CASE %WM_CTLCOLOREDIT LenT& = GetClassName(CBLPARAM,DispStr,%MAX_PATH) IF TRIM$(DispStr) = "NEditNumber" THEN GetWindowText CBLPARAM,Txt,LenT& IF VAL(Txt) < 0 then SetTextColor CBWPARAM,%RED SetBkColor CBWPARAM,%WHITE FUNCTION=App_Brush ELSE SetTextColor CBWPARAM,%BLACK SetBkColor CBWPARAM,%WHITE FUNCTION=App_Brush END IF END IF
Copyright © 1998-2022 PowerBASIC Tools, LLC - All Rights Reserved.
Powered by vBulletin® Version 5.7.0
Copyright © 2022 vBulletin Solutions, Inc. All rights reserved.
All times are GMT-5. This page was generated at 05:22 AM.
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.