It is currently Wed Jan 27, 2021 4:24 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 5.73 QT StringGadgets do not draw border
PostPosted: Tue Nov 24, 2020 8:32 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1259
Location: germany
Using PB 5.73 with QT subsystem, many gadgets drawing a border around its input, but the StringGadget does not. SO the look is inconsistent:

Code:
EnableExplicit

If OpenWindow(0, 0, 0, 520, 250, "Gadget Border Test ", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget)
 
  StringGadget(0, 10, 40,  500, 25, "")
  ; QtScript(~"gadget(0).styleSheet=\"border: 1px solid #aaaaaa;\"") ; need to do this to get a border
 
  ComboBoxGadget(3, 10, 130, 500, 25)
  EditorGadget(4, 10, 160, 500, 25)
  ListViewGadget(5, 10, 190, 500, 25)
 
  Repeat
    Define Event = WaitWindowEvent()
   
  Until Event = #PB_Event_CloseWindow
EndIf


Result with QT:
Image

Result with GTK:
Image

You can get a border (but not respecting OS settings) like this:
Code:
QtScript(~"gadget(0).styleSheet=\"border: 1px solid #aaaaaa;\"")


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye