Similar Threads:
1.Determine Forms Controls Type
Hi,
Is there a way to determine the type of a control of a custom form in vba ?
There is no type property and when I use the VB function TypeName it returns
"Control".
I would rather know what specific control object it is.
2.Determining control type
Can I determine what type of control I've landed on from the control
itself?
e.g. can I have a function like the following?
Private Function GetControlType(ctrl as Control) as String
if ctrl <is a textbox> Then
GetControlType = "TextBox"
ElseIf ctrl <is a checkbox> Then
GetControlType = "CheckBox"
....
End Sub
Is there a property that reliably exists in every control that tells
me its type?
thanks,
gary
3.How to control menubar in a ole automation object such as ms word
Hi
I dont know how to control the menubar in word from delphi. May somesone
else give me an advice?
Highly thanks
C.T. CHEN
4.Control of an OLE object (ppt)
I'm building a 'survey' style template that's going out to a bunch of
different departments.
I'm stuck on a couple of things that I'm trying to do:
Problem 1
---------------
There's a big merged cell that responders should type text into.
However, they might not type in text, but they might want to past in a
ppt slide to answer the question.
How do I detect / collect this.
Specifically: I've got a 'progress bar' kind of arrangement, where if
they type something in an entry area, then that's treated as being
completed. This is picked up by a simple hidden page which has
formulas saying "=if(b10="","Incomplete","Complete"), which works
fine, unless they just answer question with an OLE PPT slide, in which
case how do I detect its presence?
Problem 2
---------------
The blank form will have some OLE Powerpoint slides built into it, so
that when a user presses on a button then the correct PPT slideshow
pops up. I've got that working nicely. There are 5 PPT objects, each
with some duplicated slides.
My client has asked me to change this to just one PPT presentation,
but when eg. you press 'button 1' only slides 1, 3 and 7 display, and
for button 2 a different combiniation of slides pops up. Is there any
way to do this?
And to top it off, the way I've got it set up at the moment, (using
the following line:
Sheets("Embed").Shapes("Object " & ObjectNumber).Select
'ActiveSheet.Shapes("Object 5").Select
Selection.Verb Verb:=xlPrimary
5.More control over moving and inserting OLE Objects via code
I want to allow users to move ole objects (images) on the worksheet by
dragging them with the mouse. I can think of three ways to achieve
this (sort of).
1) Switch into design mode. I'm not sure if there is code that will
allow me to do this though - anyone?
2) Trap the object MouseDown, Up and Move events and reposition the
object based on current mouse position. My concern with this one is
that I will overload XL since the event will fire continuously and xl
will have to keep re-drawing the image.
3) Trap the object MouseDown event and create a new mouse pointer icon
(eg. a dashed box) then trap the MouseUp event and reposition the
object to this position. The problem with this one is that I really
need
to create the mouse icon on the fly to get the pointer in the right
position in the box image. Any ideas
how I could do this?
Are my concerns in (2) justified? Does anyone have any other
thoughts/ options/ concerns before I go too far
down one track.
This is also an issue for inserting the objects in the first place. I
think for this option 3 would work
best but I don't know if there is a better approach that allows more
control over inserting objects - some
API calls perhaps? Rather than going as far as inserting the object
(which .OLEObjects.Add does) I want to stop at the point where the
object is ready for the user to place it on the sheet.
I am using ole image objects rather than pictures or drawing objs
because they allow me to create a right
click menu and I can change the image within the same object to
reflect different user choices. Also I can
"discourage" the user from copy/pasting the image.
Thanks a lot,
Andrew
6. Error Message - OLE object isn't an OLE object
7. Access 2000 - Insert OLE object programatically into a forms OLE object field