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 <[email protected]> On Behalf Of Tracy Pearson
Sent: 11 February 2022 14:21
To: [email protected]
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:[email protected]] On Behalf Of
[email protected]
Sent: Friday, February 11, 2022 9:00 AM
To: [email protected]
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]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to