![]() |
#1
|
|||
|
|||
![]()
Hello,
I use vb in access to control coreldraw. I've recently upgraded to version 12 of CorelDraw. So far the only problem I've found with my scripts is when I bring CorelDraw to the top of other windows. I've always done this as follows: dim app as coreldraw.application set app=new coreldraw.application app.appwindow.windowstate=cdrwindowminimized app.appwindow.windowstate=cdrwindowmaximized With version 11 this worked fine, but in 12, all the toolbars get messed up. If there is a different way of doing the same thing, please offer advice. Thanks, Mike |
#2
|
||||
|
||||
![]()
Using Access 2003 and CorelDraw 12 I can confirm this as a bug. It messes up the toolbars.
My question would be why you min then max the window. Why not just Maximize the window, that seems to work just fine. It is only when you do both it has problems. |
#3
|
|||
|
|||
![]()
when i just maximize, nothing happens.
So, when you're in access, you call app.appwindow.windowstate=cdrwindowmaximized and coreldraw comes to the top? Thanks, Mike |
#4
|
|||
|
|||
![]()
Just maximizing works if I happened to minimize coreldraw, the last time I used it.
However, if I just switch to a different application without minimizing coreldraw first, nothing happens. Mike |
#5
|
|||
|
|||
![]()
In the top of the module, I added
Declare Function SetForegroundWindow Lib "user32" (byval hwnd as long) as boolean Then in my script i do dim temp as boolean temp=setforegroundwindow(app.activewindow.handle) Mike |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CorelDRAW 12 SP1 is available | Alex | CorelDRAW/Corel DESIGNER VBA | 1 | 04-08-2004 01:43 |
Accesing CorelDraw 10 VBA Object Model without running it | dolmos | CorelDRAW/Corel DESIGNER VBA | 5 | 19-12-2003 07:52 |
Preview from CorelDRAW file and/or worksheet | reanan | CorelDRAW/Corel DESIGNER VBA | 5 | 15-05-2003 18:29 |
Creating macros for CorelDraw 10 in CorelDraw 11 | Rick Randall | CorelDRAW/Corel DESIGNER VBA | 1 | 14-03-2003 08:00 |
CorelDRAW 11 and AddIn’s | reanan | CorelDRAW/Corel DESIGNER VBA | 2 | 03-12-2002 14:21 |