OberonPlace.com Forums

OberonPlace.com Forums (http://forum.oberonplace.com/index.php)
-   CorelDRAW/Corel DESIGNER VBA (http://forum.oberonplace.com/forumdisplay.php?f=16)
-   -   open fill dialog (http://forum.oberonplace.com/showthread.php?t=3270)

diwin 20-05-2007 00:27

open fill dialog
 
I have a button on a simple form that opens a second form modally. On the second form, I have a text box that I want to use for chosing a colour. Once the colour is chosen, the user will place a bunch of dots on a map in the chosen colour.

How can I code the click event to open the uniform fill dialogue so that a colour can be chosen for subsequently created objects?

wOxxOm 20-05-2007 11:02

Code:

dim с as color
'show dialog
set c=new color
if c.UserAssignEx then 'OK clicked
...............
end if


diwin 21-05-2007 11:21

Thanks wOxxOm!

It works fine.


All times are GMT -5. The time now is 02:25.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com