Results 1 to 40 of 4199

Thread: CommonControls (Replacement of the MS common controls)

Hybrid View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by brandoncampbell View Post
    Anyway to fix the password in the textbox to reflect the later style password text with dots instead of asterisks?
    That will do it: (to be done at run-time, e.g. Form_Load event)
    Code:
    TextBoxW1.PasswordChar = ChrW(&H25CF)

  2. #2
    Addicted Member
    Join Date
    Sep 2008
    Posts
    141

    Re: CommonControls (Replacement of the MS common controls)

    So I did notice that some of the settings don't save when you compile. For instance if you change the password char to whatever and you click build it will not have a password char in the exe. If it is set through the form like you stated above it works ok.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by brandoncampbell View Post
    For instance if you change the password char to whatever and you click build it will not have a password char in the exe. If it is set through the form like you stated above it works ok.
    The password char for dots "ChrW(&H25CF)" cannot be set at design time. (only at run time as stated above)
    I have therefore now included a "UseSystemPasswordChar" property to the TextBoxW control. When set to true then the control will be created with the style bit ES_PASSWORD and thus display asterisks or dots as password text automatically (depending on the comctl32 version) .

  4. #4
    Addicted Member
    Join Date
    Sep 2008
    Posts
    141

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    The password char for dots "ChrW(&H25CF)" cannot be set at design time. (only at run time as stated above)
    I have therefore now included a "UseSystemPasswordChar" property to the TextBoxW control. When set to true then the control will be created with the style bit ES_PASSWORD and thus display asterisks or dots as password text automatically (depending on the comctl32 version) .
    Awesome work as always! I still have an issue when compiling where it does not save the changed settings. If I open the project. Change the textbox at the bottom via properties to systempasschar and click compile. The progress bar goes as if it is compiling but once it reaches the end it refreshes the project and the settings don't stick. The exe does not reflect the change and the project in the ide changes back to default text.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by brandoncampbell View Post
    Change the textbox at the bottom via properties to systempasschar and click compile.
    Did you try to close the Form first (WriteProperties will then run) before you compile?

  6. #6
    Addicted Member
    Join Date
    Sep 2008
    Posts
    141

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    Did you try to close the Form first (WriteProperties will then run) before you compile?
    Didn't know that.. it worked.. Thanks! Why does it need to be closed?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width