June 25, 2024, 10:38:32 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Dialog Applications

Started by Brian, November 18, 2010, 01:40:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

Hi,

I've just started my latest program as a Dialog Application. All OK so far, except
that I want to draw a circle or ellipse, and it doesn't show. Is this possible,
or not? If not, I suppose I can always go back to a normal window app

Brian

LarryMc

November 18, 2010, 02:52:08 PM #1 Last Edit: November 18, 2010, 02:55:32 PM by Larry McCaughn
I don't think you can draw on a dialog just like you can't set the color of the dialog.
The workaround in the past has been to create a captionless child window on the dialog(the same size as the client area of the dialog) and do your coloring and drawing on it.

To me if you are going to draw on your main form it doesn't make sense to use a dialog.

Now if it was a modal dialog as part of a bigger program and you needed/wanted to draw/color then it makes sense.
To me anyway.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Brian

Thanks, Larry,

I thought that maybe that was the case. I'll just move to a normal window, then,
and swap things about a bit - well, a lot!

Brian