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.
Really Brian, showing your full code, preferably in compilable form would get you a lot more help that wouldn't leave you asking so many questions. Reading the manual and checking the files in the Examples or Samples folder that came with your compiler would save you time.
Because some of your questions are to some quite elementary, we aren't sure that you are asking the right question.
In this latest question of yours, an ID with %IDM_etc is usually a Menu ID and as such "CONTROL SET TEXT" does not apply to it.
There is a very good Menu example in the Help file, just click on M from the home page of the HELP, select a MENU item and at the bottom of it, it will show "EXAMPLE See Menu Example".
Rod
In some future era, dark matter and dark energy will only be found in Astronomy's Dark Ages.
The EM_SETSEL message allows you to set the selection text in an edit control; the EM_REPLACESEL message allows you replace that selection with anything, or with nothing (delete it).
CASE %IDM_EDIT_DELETE
' Control Set Text hDlg, %IDM_EDIT_DELETE, ""
CONTROL SET TEXT CB.HNDL, %IDC_USERENTRY, ""
CONTROL REDRAW CB.HNDL, %IDC_USERENTRY
The REDRAW forces the change now, rather than letting it wait in the queue.
Notice the use of the CB.HNDL instead of hDlg in the CALLBACK FUNCTION.
Rod
In some future era, dark matter and dark energy will only be found in Astronomy's Dark Ages.
>He has posted the code in one of the many other forum threads dealing with his issues
IMO one should not ask others to "search" - and in this case, "guess which one" as the first step in helping you.
Besides, if this line is not working, it's not the same code, is it? And I do believe we've all seen one or two times A "problem line" was not THE REAL "problem line."
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