dbTalk Databases Forums  

Using Command Buttons as filled shapes

comp.databases.ms-access comp.databases.ms-access


Discuss Using Command Buttons as filled shapes in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bob Darlington
 
Posts: n/a

Default Using Command Buttons as filled shapes - 01-07-2011 , 01:58 AM






Access 2010.
I'm trying to use command buttons as filled shapes (rectangles with rounded
corners) on one of my screens, since the rectangle control doesn't seem to
allow for any similar shaping.
The command buttons are not enabled, and by using 'Quick Shapes' I can get
the effect I want with ease.
The screen opens OK, but as soon as I shift to another record (single form
view) the command buttons appear to move to the front and hide the controls
which were originally on top.
If I move the mouse cursor over each command button (as opposed to the
controls which I want to appear) the controls reappear and stay there until
I move to another record again.
I've tried creating the shapes (rounded rectangles) in Powerpoint and
Publisher, but when I import them as images, I can't get the same clean
rounded effect as the command buttons.
Has anyone got a solution?

--
Bob Darlington
Brisbane

Reply With Quote
  #2  
Old   
Bob Darlington
 
Posts: n/a

Default Re: Using Command Buttons as filled shapes - 01-07-2011 , 04:46 PM






Further to me earlier post, the problem only occurs with labels and filled
rectangles. Text boxes etc are fine.

--
Bob Darlington
Brisbane
"Bob Darlington" <bob (AT) notheredpcman (DOT) com.au> wrote

Quote:
Access 2010.
I'm trying to use command buttons as filled shapes (rectangles with
rounded corners) on one of my screens, since the rectangle control doesn't
seem to allow for any similar shaping.
The command buttons are not enabled, and by using 'Quick Shapes' I can get
the effect I want with ease.
The screen opens OK, but as soon as I shift to another record (single form
view) the command buttons appear to move to the front and hide the
controls which were originally on top.
If I move the mouse cursor over each command button (as opposed to the
controls which I want to appear) the controls reappear and stay there
until I move to another record again.
I've tried creating the shapes (rounded rectangles) in Powerpoint and
Publisher, but when I import them as images, I can't get the same clean
rounded effect as the command buttons.
Has anyone got a solution?

--
Bob Darlington
Brisbane

Reply With Quote
  #3  
Old   
Bob Darlington
 
Posts: n/a

Default Re: Using Command Buttons as filled shapes - 01-07-2011 , 05:02 PM



"Bob Darlington" <bob (AT) notheredpcman (DOT) com.au> wrote

Quote:
Access 2010.
I'm trying to use command buttons as filled shapes (rectangles with
rounded corners) on one of my screens, since the rectangle control doesn't
seem to allow for any similar shaping.
The command buttons are not enabled, and by using 'Quick Shapes' I can get
the effect I want with ease.
The screen opens OK, but as soon as I shift to another record (single form
view) the command buttons appear to move to the front and hide the
controls which were originally on top.
If I move the mouse cursor over each command button (as opposed to the
controls which I want to appear) the controls reappear and stay there
until I move to another record again.
I've tried creating the shapes (rounded rectangles) in Powerpoint and
Publisher, but when I import them as images, I can't get the same clean
rounded effect as the command buttons.
Has anyone got a solution?

--

Quote:
Bob Darlington
Brisbane
I've now discovered that the following code in the OnCurrent event works as
a work around:
For Each ctrl In .Controls
If ctrl.ControlType = acLabel Or ctrl.ControlType = acRectangle Then
ctrl.BackColor = ctrl.BackColor
Next
But I'd still like to know what is happening here if anyone can help.

--
Bob Darlington
Brisbane

Reply With Quote
  #4  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Using Command Buttons as filled shapes - 01-07-2011 , 10:58 PM



Bob Darlington wrote:

Quote:
"Bob Darlington" wrote
Access 2010.
I'm trying to use command buttons as filled shapes (rectangles with
rounded corners) on one of my screens, since the rectangle control doesn't
seem to allow for any similar shaping.
The command buttons are not enabled, and by using 'Quick Shapes' I can get
the effect I want with ease.
The screen opens OK, but as soon as I shift to another record (single form
view) the command buttons appear to move to the front and hide the
controls which were originally on top.
If I move the mouse cursor over each command button (as opposed to the
controls which I want to appear) the controls reappear and stay there
until I move to another record again.
I've tried creating the shapes (rounded rectangles) in Powerpoint and
Publisher, but when I import them as images, I can't get the same clean
rounded effect as the command buttons.
Has anyone got a solution?


I've now discovered that the following code in the OnCurrent event works as
a work around:
For Each ctrl In .Controls
If ctrl.ControlType = acLabel Or ctrl.ControlType = acRectangle Then
ctrl.BackColor = ctrl.BackColor
Next
But I'd still like to know what is happening here if anyone can help.

Weird. I'd like to be able to explain this, but it looks
like a bug to me. I'm afraid that you are blazing the trail
on this one.

--
Marsh

Reply With Quote
  #5  
Old   
Bob Darlington
 
Posts: n/a

Default Re: Using Command Buttons as filled shapes - 01-08-2011 , 07:05 PM



"Marshall Barton" <marshbarton (AT) wowway (DOT) com> wrote

Quote:
Bob Darlington wrote:

"Bob Darlington" wrote
Access 2010.
I'm trying to use command buttons as filled shapes (rectangles with
rounded corners) on one of my screens, since the rectangle control
doesn't
seem to allow for any similar shaping.
The command buttons are not enabled, and by using 'Quick Shapes' I can
get
the effect I want with ease.
The screen opens OK, but as soon as I shift to another record (single
form
view) the command buttons appear to move to the front and hide the
controls which were originally on top.
If I move the mouse cursor over each command button (as opposed to the
controls which I want to appear) the controls reappear and stay there
until I move to another record again.
I've tried creating the shapes (rounded rectangles) in Powerpoint and
Publisher, but when I import them as images, I can't get the same clean
rounded effect as the command buttons.
Has anyone got a solution?


I've now discovered that the following code in the OnCurrent event works
as
a work around:
For Each ctrl In .Controls
If ctrl.ControlType = acLabel Or ctrl.ControlType = acRectangle
Then
ctrl.BackColor = ctrl.BackColor
Next
But I'd still like to know what is happening here if anyone can help.


Weird. I'd like to be able to explain this, but it looks
like a bug to me. I'm afraid that you are blazing the trail
on this one.

--
Marsh
Thanks for responding Marsh.
It's always nice to know I haven't missed anything too obvious.
Do you think it worthwhile reporting to MS and if so, how do I go about it?
There doesn't seem to be a 'bug reporting' area in MS Support, and I don't
intend paying MS to report a bug through the customer support page.

--
Bob Darlington
Brisbane

Reply With Quote
  #6  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Using Command Buttons as filled shapes - 01-08-2011 , 10:49 PM



Bob Darlington wrote:
Quote:
"Marshall Barton" wrote
Bob Darlington wrote:

"Bob Darlington" wrote
Access 2010.
I'm trying to use command buttons as filled shapes (rectangles with
rounded corners) on one of my screens, since the rectangle control
doesn't
seem to allow for any similar shaping.
The command buttons are not enabled, and by using 'Quick Shapes' I can
get
the effect I want with ease.
The screen opens OK, but as soon as I shift to another record (single
form
view) the command buttons appear to move to the front and hide the
controls which were originally on top.
If I move the mouse cursor over each command button (as opposed to the
controls which I want to appear) the controls reappear and stay there
until I move to another record again.
I've tried creating the shapes (rounded rectangles) in Powerpoint and
Publisher, but when I import them as images, I can't get the same clean
rounded effect as the command buttons.
Has anyone got a solution?


I've now discovered that the following code in the OnCurrent event works
as
a work around:
For Each ctrl In .Controls
If ctrl.ControlType = acLabel Or ctrl.ControlType = acRectangle
Then
ctrl.BackColor = ctrl.BackColor
Next
But I'd still like to know what is happening here if anyone can help.


Weird. I'd like to be able to explain this, but it looks
like a bug to me. I'm afraid that you are blazing the trail
on this one.


Do you think it worthwhile reporting to MS and if so, how do I go about it?
There doesn't seem to be a 'bug reporting' area in MS Support, and I don't
intend paying MS to report a bug through the customer support page.
Unfortunately, I'm with you on that. Other than an
occasional inside contact, I have yet to find an effective
way for people to report what they think are bugs.

I did shove your thread into the MVP bug pipeline and
maybe(?) something will come out the other end, but don't
hold your breath waiting.

--
Marsh

Reply With Quote
  #7  
Old   
Bob Darlington
 
Posts: n/a

Default Re: Using Command Buttons as filled shapes - 01-09-2011 , 04:08 AM



Thanks Marsh.

--
Bob Darlington
Brisbane
"Marshall Barton" <marshbarton (AT) wowway (DOT) com> wrote

Quote:
Bob Darlington wrote:
"Marshall Barton" wrote
Bob Darlington wrote:

"Bob Darlington" wrote
Access 2010.
I'm trying to use command buttons as filled shapes (rectangles with
rounded corners) on one of my screens, since the rectangle control
doesn't
seem to allow for any similar shaping.
The command buttons are not enabled, and by using 'Quick Shapes' I can
get
the effect I want with ease.
The screen opens OK, but as soon as I shift to another record (single
form
view) the command buttons appear to move to the front and hide the
controls which were originally on top.
If I move the mouse cursor over each command button (as opposed to the
controls which I want to appear) the controls reappear and stay there
until I move to another record again.
I've tried creating the shapes (rounded rectangles) in Powerpoint and
Publisher, but when I import them as images, I can't get the same
clean
rounded effect as the command buttons.
Has anyone got a solution?


I've now discovered that the following code in the OnCurrent event works
as
a work around:
For Each ctrl In .Controls
If ctrl.ControlType = acLabel Or ctrl.ControlType = acRectangle
Then
ctrl.BackColor = ctrl.BackColor
Next
But I'd still like to know what is happening here if anyone can help.


Weird. I'd like to be able to explain this, but it looks
like a bug to me. I'm afraid that you are blazing the trail
on this one.


Do you think it worthwhile reporting to MS and if so, how do I go about
it?
There doesn't seem to be a 'bug reporting' area in MS Support, and I don't
intend paying MS to report a bug through the customer support page.

Unfortunately, I'm with you on that. Other than an
occasional inside contact, I have yet to find an effective
way for people to report what they think are bugs.

I did shove your thread into the MVP bug pipeline and
maybe(?) something will come out the other end, but don't
hold your breath waiting.

--
Marsh

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.