It is currently Sat Feb 23, 2019 5:47 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PB 5.70 LTS - EditorGadget - SetGadgetColor()
PostPosted: Thu Feb 07, 2019 12:59 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 366
Location: Canada
Code:
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Project name : EditorGadget - SetGadgetColor()
; File Name : EditorGadget - SetGadgetColor.pb
; File version: 1.0.0
; Programming : Bug Demonstrator
; Programmed by : StarBootics
; Date : 06-02-2019
; Last Update : 06-02-2019
; PureBasic code : 5.70 LTS
; Platform : Ubuntu 18.10 (Cosmic Cuttlefish) x86-64
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Bug Description
;
; SetGadgetColor() on an EditorGadget() as an impact on :
;
; 1. selected text background is no longer
; 2. The frist or the last 3 lines are invisible after
;    scrolling.
; 3. Scrolling make the content flickering.
;
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

If OpenWindow(0, 0, 0, 800, 260, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) 
  EditorGadget(0, 5, 5, 390, 250)
  EditorGadget(1, 400, 5, 390, 250)
  SetGadgetColor(1, #PB_Gadget_FrontColor, RGB(0,0,0))
  SetGadgetColor(1, #PB_Gadget_BackColor , RGB(255,255,255))
  For a = 0 To 15
    AddGadgetItem(0, a, "Ligne "+Str(a))
    AddGadgetItem(1, a, "Ligne "+Str(a))
  Next
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

; <<<<<<<<<<<<<<<<<<<<<<<
; <<<<< END OF FILE <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<

_________________
The Stone Age did not end due to a shortage of stones !


Last edited by StarBootics on Fri Feb 08, 2019 12:12 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.70 - EditorGadget - SetGadgetColor()
PostPosted: Thu Feb 07, 2019 11:55 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1602
Location: Germany
Same bug here

In GTK3 from version 3.16.x a lot has been changed internally

Workaround : viewtopic.php?f=15&t=71992

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


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