Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Hint Text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hint Text

 Post Reply Post Reply
Author
Message
ScottW View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote ScottW Quote  Post ReplyReply Direct Link To This Post Topic: Hint Text
    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


Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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++)
Back to Top
ScottW View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote ScottW Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2015 at 7:16pm
Can it be done in the ActiveX edition?
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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++)
Back to Top
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ScottW View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote ScottW Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 2015 at 10:36am
SendMessage with EM_SETCUEBANNER worked fine. Thanks!
Back to Top
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.