Print Page | Close Window

Hint Text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=22590
Printed Date: 28 April 2024 at 5:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hint Text
Posted By: ScottW
Subject: Hint Text
Date Posted: 30 April 2015 at 1:16pm
Is it possible to show Hint Text in the FlatEdit control when no user data exists? Kind of like how the Search box in FireFox shows the word "Search" in grey until you start typing something in there.

If not, please consider this for a future update. It would be cool to have a .HintText property for this. Could be useful in the ComboxBox as well.

Thanks





Replies:
Posted By: cpede
Date Posted: 30 April 2015 at 3:23pm
I believe that it is derived from CEdit, and therefore you should be able to call: CEdit::GetCueBanner.

-------------
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: ScottW
Date Posted: 30 April 2015 at 7:16pm
Can it be done in the ActiveX edition?


Posted By: cpede
Date Posted: 01 May 2015 at 4:52am
Oh, sorry did not see that it was in the ActiceX section. If you can send a standard windows message to the control you can send EM_SETCUEBANNER ?

-------------
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: gibra
Date Posted: 02 May 2015 at 6:51pm
Something like this:
(images refer to C#, not to VB6) 

You can create a UserControl based on FlatEdit control, where you can add any properties you need.

VB6 come with usefull add-in named: Wizard ActiveX Control Interface

Some examples:

Creating a Simple User Control with Visual Basic
http://www.codeguru.com/columns/vb/creating-a-simple-user-control-with-visual-basic.htm

Create Own User Control - Basic Steps. - Visual Basic Tutorials
http://www.dreamincode.net/forums/topic/134432-create-own-user-control-basic-steps/


-------------
gibra
CJ SuiteControl v: 13.x to 19.x
Windows 10 64bit
VS2019 - VB6.0 SP6
<a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8


Posted By: ScottW
Date Posted: 03 May 2015 at 10:36am
SendMessage with EM_SETCUEBANNER worked fine. Thanks!


Posted By: gibra
Date Posted: 03 May 2015 at 2:49pm
Originally posted by ScottW ScottW wrote:

SendMessage with EM_SETCUEBANNER worked fine. Thanks!

Can you show the complete solution?
Thank.


-------------
gibra
CJ SuiteControl v: 13.x to 19.x
Windows 10 64bit
VS2019 - VB6.0 SP6
<a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net