Hi all
I have come up with a rather frustrating anomaly. In the debugger I can set the picture of a particular item in a listbox or dropdown list like this (THIS is either one of the two controls)
THIS.Picture(nListIndex) = "SomePicture.BMP" and it works in both cases. But if I try this
THIS.FontNamer(nListIndex) = "SomeFontName" it does not work even though THIS.FontNamer(nListIndex) is a property which I can change in the debugger.
Does anybody have any thoughts or insights on this or is it "just one of those things".
Many thanks
Paul Newton
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
One of the RowSourceTypes for these controls is Popup. A Popup can be configured to have different fonts and images.
LOCAL oForm oForm = CREATEOBJECT("formtest") oForm.Show(1)
DEFINE CLASS formtest as Form width = 400
ADD OBJECT myListBox as Listbox WITH RowSourceType = 9, RowSource = "listBoxPopup", width = 400
PROCEDURE Load DEFINE POPUP listBoxPopup DEFINE BAR 1 OF listBoxPopup PROMPT "Comic Sans MS" FONT "Comic Sans MS", 24 DEFINE BAR 2 OF listBoxPopup PROMPT "Consolas" FONT "Consolas", 14 DEFINE BAR 3 OF listBoxPopup PROMPT "Segoe UI" FONT "Segoe UI", 18 ENDPROC
ENDDEFINE
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of paul.newton.hudl@gmail.com Sent: Friday, February 11, 2022 9:00 AM To: profoxtech@leafe.com Subject: Pictures and fontnames in dropdown lists and listboxes
Hi all
I have come up with a rather frustrating anomaly. In the debugger I can set the picture of a particular item in a listbox or dropdown list like this (THIS is either one of the two controls)
THIS.Picture(nListIndex) = "SomePicture.BMP" and it works in both cases. But if I try this
THIS.FontNamer(nListIndex) = "SomeFontName" it does not work even though THIS.FontNamer(nListIndex) is a property which I can change in the debugger.
Does anybody have any thoughts or insights on this or is it "just one of those things".
Many thanks
Paul Newton
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
[excessive quoting removed by server]
Wow Tracy
That looks just what I need. I'll give it ago later (I am in the middle of something else right now).
Many thanks for the (amazingly quick) reply.
Paul
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Tracy Pearson Sent: 11 February 2022 14:21 To: profoxtech@leafe.com Subject: RE: Pictures and fontnames in dropdown lists and listboxes
One of the RowSourceTypes for these controls is Popup. A Popup can be configured to have different fonts and images.
LOCAL oForm oForm = CREATEOBJECT("formtest") oForm.Show(1)
DEFINE CLASS formtest as Form width = 400
ADD OBJECT myListBox as Listbox WITH RowSourceType = 9, RowSource = "listBoxPopup", width = 400
PROCEDURE Load DEFINE POPUP listBoxPopup DEFINE BAR 1 OF listBoxPopup PROMPT "Comic Sans MS" FONT "Comic Sans MS", 24 DEFINE BAR 2 OF listBoxPopup PROMPT "Consolas" FONT "Consolas", 14 DEFINE BAR 3 OF listBoxPopup PROMPT "Segoe UI" FONT "Segoe UI", 18 ENDPROC
ENDDEFINE
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of paul.newton.hudl@gmail.com Sent: Friday, February 11, 2022 9:00 AM To: profoxtech@leafe.com Subject: Pictures and fontnames in dropdown lists and listboxes
Hi all
I have come up with a rather frustrating anomaly. In the debugger I can set the picture of a particular item in a listbox or dropdown list like this (THIS is either one of the two controls)
THIS.Picture(nListIndex) = "SomePicture.BMP" and it works in both cases. But if I try this
THIS.FontNamer(nListIndex) = "SomeFontName" it does not work even though THIS.FontNamer(nListIndex) is a property which I can change in the debugger.
Does anybody have any thoughts or insights on this or is it "just one of those things".
Many thanks
Paul Newton
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
[excessive quoting removed by server]