True true, I keep forgetting there are "others - out there"... lolSparkie wrote:I enable the XP eye candy because I want to see what others will see and it's my guess the average user (not programmer) has eye candy set high.

- np
True true, I keep forgetting there are "others - out there"... lolSparkie wrote:I enable the XP eye candy because I want to see what others will see and it's my guess the average user (not programmer) has eye candy set high.
I'll agree with that. Four hours ago there was no flickering here on my work PC. I'm still on my work PC and I just tried the exact same code again, and now I get the same nasty flickering like my home PC.This isn't a refresh rate problem, I am sure of that...
Just tell people there's no extra charge for the flickering, oh, and addSparkie wrote:I'll agree with that. Four hours ago there was no flickering here on my work PC. I'm still on my work PC and I just tried the exact same code again, and now I get the same nasty flickering like my home PC.This isn't a refresh rate problem, I am sure of that...
I know for a fact there was no flickering this morning because I was amazed at the difference between my 2 pc's. 8O
Reboot and still flickering.
Ok, now I'm being serious.. I'm running 3.91b2.. can someone share somePaul wrote:LOL @ NoahPhense
Try the layout demo on my website. It's got mad ass slow resize calculations and resizes during window sizing and flickers like hell for me. Which is a pain because I don't want it to flicker :)NoahPhense wrote:Ok, now I'm being serious.. I'm running 3.91b2.. can someone share some flickering code? I've tried to make mine flicker, but can't.
I'd really like share in this experience.
That's the point, NoahPhense wants to see some flickering ;)PolyVector wrote:It flickers here...
Yes, that is what I am doing. I'd like the the UI to resize as the user drags the window (WM_SIZING), not when they stop (WM_SIZE). It must be possible, I've seen other applications do it (I guess my algorithms/code is just too slow). Working with WM_SIZE is a lot cleaner, but not the effect I am looking for.PolyVector wrote:Also, it appears you're handling the WM_SIZING event instead of WM_SIZE....
Try turning off "show window contents while dragging" to see what I mean...
Code: Select all
;
; ------------------------------------------------------------
;
; PureBasic - Gadget example file
;
; (c) 2003 - Fantaisie Software
;
; ------------------------------------------------------------
;
#WindowWidth = 640
#WindowHeight = 480
If OpenWindow(0, 0, 0, #WindowWidth, #WindowHeight, #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget, "PureBasic - Gadget Demonstration")
If CreateGadgetList(WindowID())
TextGadget(7, 10, 5, 700, 15, "PureBasic splitter demonstation with Editor, ScrollArea, ExplorerTree and Web gadgets. Feel the power...")
WebGadget(0, 10, 10, 300, 20, "http://www.purebasic.com")
EditorGadget(1, 115, 10, 100, 190)
For k=1 To 10
AddGadgetItem(1, k-1, "Line "+Str(k))
Next
ExplorerTreeGadget(3, 115, 10, 100, 190, "", #PB_Explorer_AlwaysShowSelection|#PB_Explorer_FullRowSelect|#PB_Explorer_MultiSelect)
ScrollAreaGadget(6, 0, 0, 400, 400, 1000, 1000, 1)
ButtonGadget(20, 20, 20, 200, 200, "Scroll Area !")
CloseGadgetList()
SplitterGadget(2, 0, 0, #WindowWidth/2, #WindowHeight/2, 1, 0)
SplitterGadget(4, 0, 0, #WindowWidth, #WindowHeight, 3, 2, #PB_Splitter_Vertical)
SplitterGadget(5, 0, 25, #WindowWidth, #WindowHeight-25, 4, 6, #PB_Splitter_Vertical)
SetGadgetState(5, 500)
EndIf
Repeat
EventID = WaitWindowEvent()
If EventID = #PB_Event_Gadget
Select EventGadgetID()
Case 8
SetGadgetState(5, 333)
SetGadgetState(2, 333)
SetGadgetState(11, 5)
Case 20
Debug "ok"
EndSelect
ElseIf EventID = #PB_Event_SizeWindow
ResizeGadget(5, -1, -1, WindowWidth(), WindowHeight()-25) ; Our 'master' splitter gadget
;-##########This is the only added line :)##########
RedrawWindow_(GadgetID(5),0,0,#RDW_INTERNALPAINT|#RDW_UPDATENOW)
EndIf
Until EventID = #PB_EventCloseWindow
EndIf
End