It is currently Tue Sep 29, 2020 10:32 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [5.72] Textgadget with QT subsystem does not wrap lines
PostPosted: Fri Jul 10, 2020 10:37 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1253
Location: germany
Try this with standard subsystem (gtk) and qt subsystem.

Using GTK, the gadget looks good and wraps lines.
Using QT, it is all one line (not readable).

Image

Code:
EnableExplicit

If OpenWindow(0, 0, 0, 250, 200, "TextGadget Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  TextGadget(0, 0, 0,  250, 200, "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam"+
                                 "nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam"+
                                 " erat, sed diam voluptua. ")
  Repeat
    Define Event = WaitWindowEvent()
   
  Until Event = #PB_Event_CloseWindow
EndIf


I tried several workarounds using
Code:
QtScript(~"gadget(0).lineWrapMode = 1;")
QtScript(~"gadget(0).wordWrapMode = 1;")

But no success in any combination.

Also, vertical alignment is wrong. I expect it to be on top (as usual with PB on other platforms).


Top
 Profile  
Reply with quote  
 Post subject: Re: [5.72] Textgadget with QT subsystem does not wrap lines
PostPosted: Fri Jul 10, 2020 11:14 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1253
Location: germany
I just partially solved it using
Code:
QtScript(~"gadget(0).alignment = 33"); -> Qt::AlignLeft + Qt::AlignTop in decimal
QtScript(~"gadget(0).wordWrap = 1")

This aligns it to the top and left and enables wordwrap.

Still a bug...


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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