1. Glenn Barber
  2. PowerBuilder
  3. Tuesday, 8 September 2020 21:19 PM UTC

I am using datawindow control titles for the first time and I notice that I get a pale blue background and a fain almost unreadable text for the title.  

Is there a way to change the color and or fond characteristics of a datawindow control's title?

Michael Kramer Accepted Answer Pending Moderation
  1. Tuesday, 8 September 2020 22:22 PM UTC
  2. PowerBuilder
  3. # 1

The title bar is part of the DataWindow control; not the DataWindow object inside it. So DW object properties won't impact the title bar.

Unfortunately I believe you're stuck with default color scheme for this title bar and border. I don't believe UI Themes have config for the control itself, only for DataWindow object inside it.

NOTE: Be careful, because user may accidentally move your DW control to a different place on screen!

Sorry, /Michael

Comment
  1. Glenn Barber
  2. Tuesday, 8 September 2020 23:21 PM UTC
Thanks for reminding me about this enabling drag - these should be a way to turn this off and still have a label - I now remember why I never used this...Good grief - why would we automatically have drag turned on unconditionally - even when drag auto is not selected... Sounds like a bug.



Guess I'm back to making my own labels...Bummer
  1. Helpful
  1. Michael Kramer
  2. Tuesday, 8 September 2020 23:25 PM UTC
OOOOOLD bug. I remember migration PB4 => PB8 to help customer migrate win16 => win32. DW had title bar back then if I'm not mistaken.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 9 September 2020 01:02 AM UTC
Hi Glenn;

My STD framework turns Window and DC drag on and off. http://chrispollach.blogspot.com/2020/08/stdwsf.html

The object to look at is the "base Ancestor" for all DC's named: "vs_dc_master". There are tons of great things that are implemented in that ancestor control and you are welcome to assimilate anything you find that might be of use. The DC Title drag On/Off is controlled by the "ib_allow_object_moveable" boolean property. If you search on that, it will lead you to the "oe_left_mouse_move" user event where the code is implemented.

HTH

Regards ... Chris
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.