It is currently Wed Jul 18, 2018 5:52 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 161 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next
Author Message
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Fri May 07, 2010 2:18 pm 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1981
Location: Germany
Just to let you know: I think there is a bug in the 4.50 library because with PB 4.50 Beta 4 and unicode & threadsafe enabled I get several IMA's with PureRESIZE_SetGadgetResize(). See your example code for PureRESIZE_SetGadgetResize from the help file. At line 30 it crashes.
Maybe you just have to recompile it?

By the way: WindowWidth() at 45 needs a parameter. ;)

_________________
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Tue May 11, 2010 12:02 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
I have have just recompiled the library for PB 4.50 beta 4

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Tue May 11, 2010 7:02 pm 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1981
Location: Germany
Thanks. Everything works fine again!

_________________
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Fri May 21, 2010 4:29 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 24, 2006 9:40 am
Posts: 314
Both links to the 4.4 version of PureRESIZE seem to be dead?

Linked from your webpage:
http://gnozal.ucoz.com/PureRESIZE_440.zip

Link from this thread:
http://freenet-homepage.de/gnozal/PureRESIZE_440.zip

Did i miss a posting somewhere?


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Fri May 21, 2010 4:39 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
Ramihyn_ wrote:
Both links to the 4.4 version of PureRESIZE seem to be dead?

The http://freenet-homepage.de/gnozal/ links are dead.
The http://gnozal.ucoz.com/ links should work.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Fri May 21, 2010 5:01 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 24, 2006 9:40 am
Posts: 314
Download works again, thanks.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Sun Jul 18, 2010 12:36 pm 
Offline
New User
New User

Joined: Sun Jul 18, 2010 12:32 pm
Posts: 1
I have a problem with "Unicode executable" options. When I changed windows size, CPU usage is increasing to 90% and application freezes (example files too). Anyone confirm this error?
---
I used jaPBe and compile with it. Now works fine. Thank you gnozal for this great editor :wink:


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Mon Nov 14, 2011 9:53 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5774
Location: Wales, UK
PB4.51x86 WinXP 32bit SP3

I'm seeing some graphical corruption on the text of Frame3D Gadgets (if no text, no problem), only when using PureResize:
Code:
Enumeration
#WinMain
#KeyEnter
#TabPanel
#FrameFiles
#ListFiles
EndEnumeration

Procedure ShowWin()
;-----------------

       If OpenWindow(#WinMain, 0, 0, 706, 325, "ResizeTest",#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_TitleBar|#PB_Window_ScreenCentered)

               AddKeyboardShortcut(#WinMain,#PB_Shortcut_Escape,#KeyEnter)

                       PanelGadget(#TabPanel, 5, 5, 697, 315)

                     ;TAB 0
                     ;---------------------------------------------------------------------------
                     AddGadgetItem(#TabPanel, -1, "Tab 0")

                     Frame3DGadget(#FrameFiles,      5,  30, 680, 250, "Frame")
                    ListViewGadget(#ListFiles,      15,  80, 660, 190, #PB_ListView_MultiSelect)

                   CloseGadgetList()

                     ;Window Size
                     PureRESIZE_SetWindowMinimumSize(#WinMain, 706, 325)

                     ;Gadget Resizing
                     PureRESIZE_SetGadgetResize(#TabPanel, 1, 1, 1, 1)
                     PureRESIZE_SetGadgetResize(#FrameFiles, 1, 1, 1, 1)
                     PureRESIZE_SetGadgetResize(#ListFiles, 1, 1, 1, 1)

        EndIf

EndProcedure

Procedure WaitForUser()
;----------------------
      Repeat
            iEvent = WaitWindowEvent(1)
      Until iEvent = #PB_Event_CloseWindow

EndProcedure

ShowWin()
WaitForUser()


Sometimes when the app is launched, always when the app is re-sized/maximized, some sort of image gets 'attached' to the frame text. Can anyone reproduce this issue?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Mon Nov 14, 2011 11:46 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5774
Location: Wales, UK
....ah, perhaps it was a known issue? Same sample code seems to be fine in PB4.60

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Tue Nov 15, 2011 8:41 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
IdeasVacuum wrote:
....ah, perhaps it was a known issue? Same sample code seems to be fine in PB4.60

The library code hasn't changed between the PB4.5x and the PB4.6x version (only recompiled).
However, I can't reproduce the problem (using Win XP / 'classic' gui) : graphic card / themes / OS / whatever issue ?
But I do remember some graphical glitches with the Frame3DGadget in the past, that needed some redraw after a resize event.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Tue Mar 06, 2012 12:24 am 
Offline
User
User
User avatar

Joined: Tue Sep 16, 2008 6:11 am
Posts: 69
Location: ger
Can't compile any code with Unicode & Threadsafe @last Version.
I tried to reinstall purebasic, nothing changed. Same thing all the Time: Polink Error!
File: PureResize_Test_4.pb
Compiler: x86

thx,
Deluxe


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Tue Mar 06, 2012 3:04 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5774
Location: Wales, UK
Deluxe0321, have entered UserLibUnicodeThreadSafe in Compiler Options/Library Subsystem?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Fri Mar 09, 2012 4:08 am 
Offline
User
User
User avatar

Joined: Tue Sep 16, 2008 6:11 am
Posts: 69
Location: ger
Nope, but now! :D Sorry!


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Sun Sep 09, 2012 11:34 am 
Offline
Addict
Addict
User avatar

Joined: Wed Feb 17, 2010 12:00 am
Posts: 1239
Location: Anderson Island, WA
Gadgets creep slightly...
Code:
;{- Enumerations / DataSections
;{ Windows
Enumeration
  #Window_0
EndEnumeration
;}
;{ Gadgets
Enumeration
  #ListIcon_0
  #Button_1
  #CheckBox_2
EndEnumeration
;}
Define.l Event, EventWindow, EventGadget, EventType, EventMenu
;}
Procedure OpenWindow_Window_0()
  If OpenWindow(#Window_0, 450, 200, 636, 294, "Window_0", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar)
    ListIconGadget(#ListIcon_0, 5, 5, 625, 240, "Gadget_0", 100, #PB_ListIcon_AlwaysShowSelection|#PB_ListIcon_GridLines|#PB_ListIcon_FullRowSelect)
    SendMessage_(GadgetID(#ListIcon_0), #LVM_SETCOLUMNWIDTH, 0, #LVSCW_AUTOSIZE_USEHEADER)
    ButtonGadget(#Button_1, 15, 255, 125, 25, "Gadget_1")
    CheckBoxGadget(#CheckBox_2, 515, 250, 115, 15, "Gadget_2")
    ; Gadget Resizing
    PureRESIZE_SetGadgetResize(#ListIcon_0, 1, 1, 0, 0)
    PureRESIZE_SetGadgetProportionalResize(#ListIcon_0, 1, 1, 0, 0)
    PureRESIZE_SetGadgetResize(#Button_1, 1, 0, 0, 1)
    PureRESIZE_SetGadgetResize(#CheckBox_2, 0, 0, 1, 1)
  EndIf
EndProcedure

OpenWindow_Window_0()

;{- Event loop
Repeat
  Event = WaitWindowEvent(10)
  Select Event
    ; ///////////////////
    Case #PB_Event_Gadget
      EventGadget = EventGadget()
      EventType = EventType()
      If EventGadget = #ListIcon_0
      ElseIf EventGadget = #Button_1
      ElseIf EventGadget = #CheckBox_2
      EndIf
    ; ////////////////////////
    Case #PB_Event_CloseWindow
      EventWindow = EventWindow()
      If EventWindow = #Window_0
        CloseWindow(#Window_0)
        Break
      EndIf
  EndSelect
ForEver
;
;}


If you resize the window -- the button & checkbox will slowly creep up to (resize window smaller) or away from (resize window larger) the listicongadget...


Top
 Profile  
Reply with quote  
 Post subject: Re: PureRESIZE library : gadget automatic resizing and more
PostPosted: Tue Sep 11, 2012 2:43 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
jassing wrote:
... If you resize the window -- the button & checkbox will slowly creep up to (resize window smaller) or away from (resize window larger) the listicongadget...
I cannot test the code right now, but I would say it's because of PureRESIZE_SetGadgetProportionalResize(). When you work with integers, some divisions do not have an integer result.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 161 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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