Drawing a dotted rect around textbox fails

0
0

Hi,

I’ve been trying different methods to get to this to work but for some strange reason I can’t get a dotted rect around the textbox on the form.  If I replicate this code in a regular Winforms app it works as expected.

Any pointers would be a great help.

Thank you

  • You must to post comments
0
0

I’d suggest using CSS. Wisej controls are all html widgets. The custom painting is done using a background image. It’s meant for special cases, like a super custom control, complex information panels, etc.

  • Andrew Hills
    Thanks Luca. This gets back to drawing grab handles around the control and the best approach. If I was to use this CSS method instead of the paint method then is there speed benefit using CSS?
  • Luca (ITG)
    CSS is the best way to do it in a web app. The custom painting operates on the background style of an element. With css and a pseudo element (:before or :after) you can set anything around another element. Another way would be to create a transparent “resizer frame” with a border that looks like you want it to look, when the frame isresized it updates the target control.
  • You must to post comments
0
0

Hi Andrew,

I´d rather draw on the TextBox instead of the window:

screen

code

Hope that helps.

Best regards
Frank

Attachment
  • Andrew Hills
    Thanks Frank, that works now.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.