Recent

Author Topic: Anyone have cross platform enhanced hint function?  (Read 1670 times)

Josh

  • Hero Member
  • *****
  • Posts: 1274
Anyone have cross platform enhanced hint function?
« on: February 22, 2018, 11:47:17 am »
Hi

I find the hint popup very limiting, font,size background etc very limiting; so was thinking of cretaing a custom version that allows for custom :=
BackGround Colors;
Font Colors; Font Sizes; Font Background Colours;
an image.

or even one that can render html natively.

Has anyone come across such a function?
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Anyone have cross platform enhanced hint function?
« Reply #1 on: February 22, 2018, 12:33:06 pm »
Look at attached demo. It replaces the default HintWindow by a custom class which embeds the IProHTMLPanel and displays HTML-formatted hint texts. Somehow like this, the IDE must be doing it as well.
« Last Edit: February 22, 2018, 12:34:58 pm by wp »

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Anyone have cross platform enhanced hint function?
« Reply #2 on: February 22, 2018, 12:54:17 pm »
Hi WP,

That was quick, just downloaded demo and seems very promising:)

I tried adding an img tag but that failed, so I need to look into that.
the gif does exist in app folder
Code: [Select]
<img src="smiley.gif" alt="Smiley face" height="42" width="42">
<body>This is an <font color="red"><b>EDIT</b> control</font></body>

error was
No ongetimagehandler assigned
iphtml line 7815

Googling and searching forum now for IProHTMLPanel, hopefully can get some interesting results..
« Last Edit: February 22, 2018, 12:59:20 pm by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Anyone have cross platform enhanced hint function?
« Reply #3 on: February 22, 2018, 02:09:59 pm »
Yes that's more complicated because the HTMLPanel does not know how to find the image. The new demo creates a DataProvider for the images.
« Last Edit: February 22, 2018, 02:47:09 pm by wp »

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Anyone have cross platform enhanced hint function?
« Reply #4 on: February 22, 2018, 02:49:27 pm »
@WP
Superb :)

Does all I need it to do.

I have been playing around and searching for examples; I was getting somewhere but not got to the stage you got at.

Thanks again..
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

 

TinyPortal © 2005-2018