Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7195
| From | "Willie Moore" <williem@wmconsulting.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Push button , text, image etc |
| Date | 2014-09-10 10:28 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <lupqmn$h90$1@speranza.aioe.org> (permalink) |
| References | <5d8e41b7-9876-4103-b337-e91dc355bd02@googlegroups.com> |
Jorge,
In VO 2.8 there should already be text (in the self:caption) showing up on
your button. I use a method to remove the caption if the bitmap or icon is
displayed so it looks they way I wanted it to look.
Regards,
Willie
Vulcan VIP
CLASS wmPushButton INHERIT PushButton
METHOD __SetImage(oNewImage) CLASS wmPushButton
IF IsThemeEnabled()
IF IsInstanceOfUsual(oNewImage, #Icon) .OR.
IsInstanceOfUsual(oNewImage, #Bitmap)
SELF:ImageList := ButtonImageList{oNewImage}
SELF:Caption := "" // ADDED THIS LINE
RETURN TRUE
ENDIF
ENDIF
RETURN FALSE
METHOD init(oOwner, xId, oPoint, oDimension, cText, kStyle, lDataAware)
CLASS wmPushButton
SUPER:init(oOwner, xId, oPoint, oDimension, cText, kStyle, lDataAware)
SELF:SetStyle(BS_NOTIFY)
RETURN SELF
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Push button , text, image etc dextrasistemas.jorge@gmail.com - 2014-09-10 07:49 -0700
Re: Push button , text, image etc "Willie Moore" <williem@wmconsulting.com> - 2014-09-10 10:28 -0500
Re: Push button , text, image etc D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-09-11 10:03 +0200
Re: Push button , text, image etc "Fred Killet" <info@killetsoft.de> - 2014-09-11 11:57 +0200
Re: Push button , text, image etc D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-09-11 16:35 +0200
csiph-web