Page 3 of 11

Posted: Mon Jan 02, 2006 1:57 pm
by gnozal
Update

Changes :
- Fixed : PureRESIZE_SetWindowMinimumSize() and PureRESIZE_SetWindowMaximumSize() did not work without a previous PureRESIZE_SetGadgetResize() call

Posted: Sat Jan 07, 2006 5:03 am
by chen
gnozal,

Im so new to purebasic that Im checking all the tools can help me
to make easy my work....

I think your library is so useful, I have tested it and works great in
windows XP.

Is it cross-platform (LINUX, MAC, WINDOWS)? , sorry fro the
question, maybe for all of you is obvious

:oops:

Posted: Sat Jan 07, 2006 8:54 am
by gnozal
chen wrote:gnozal,
I think your library is so useful, I have tested it and works great in windows XP.
Thanks
chen wrote:Is it cross-platform (LINUX, MAC, WINDOWS)?
No, my libs are for Windows only because I use Windows API calls and I don't have MacOSX nor Linux.

cross-platform resize

Posted: Sun Feb 19, 2006 10:34 pm
by USCode
Chen,
FYI - Here's a link to the original Resize lib that I wrote that IS cross-platform and even provides the source code. Not sure if it works with 4.0 but could certainly be made 4.0 compliant without much effort:

viewtopic.php?t=10218&highlight=

Posted: Sun Feb 19, 2006 11:16 pm
by Berikco
Cool USCode, i modified your source 2 weeks ago to run in V4 and implement it in VD 8)

It was still on my todo list :wink:

ResizeGadgets for PB 4.0

Posted: Mon Feb 20, 2006 6:35 am
by USCode
That's great Berikco, looking forward to the new version of VD! Thanks!

I just went through the code quickly tonight and updated it for 4.0 based on what I was able to ascertain from the readme file. I'm a little rusty with PB, I haven't been able to work with it for awhile but I've added a 4.0 version to my original forum post of this code.

POLINK using PureRESIZE and PureCOLOR.

Posted: Sat Jun 10, 2006 1:03 am
by chen
Hi,

I just installed PureRESIZE lib and the examples run OK...

but in my app I get the error:

POLINK: error: Unresolved external symbol '_PB_StringBasePosition'.
POLINK: fatal error: 1 unresolved external(s).

I tested the same error in JaPBe and PB IDE...

I need to open "Project options" and unable "Thread safe executable"

All my app run with this option enable....

The command Im using is:

Code: Select all

PureRESIZE_SetWindowMinimumSize(#window1, 600, 500) 
My app run OK without PureRESIZE lib.

Same problem with PureColor lib.

Ohh... I forgot... I downloaded libs for PB4 (I know you are working here
maybe thats the problem)

What do I need to do here?? :cry:

Posted: Sat Jun 10, 2006 7:28 am
by gnozal
The libs don't work with 'ThreadSafe' enabled.

Look at http://www.purebasic.fr/english/viewtop ... 2&start=15

Posted: Wed Jul 12, 2006 1:00 am
by chen
gnozal wrote:The libs don't work with 'ThreadSafe' enabled.

Look at http://www.purebasic.fr/english/viewtop ... 2&start=15

and with unicode flag uncheck.... is this true?

at least I need to disable unicode option in jaPBe for pureRESIZE to work

Posted: Wed Jul 12, 2006 7:52 am
by gnozal
chen wrote:
gnozal wrote:The libs don't work with 'ThreadSafe' enabled.

Look at http://www.purebasic.fr/english/viewtop ... 2&start=15

and with unicode flag uncheck.... is this true?

at least I need to disable unicode option in jaPBe for pureRESIZE to work
Yes, the libs are compiled with UNICODE UNCHECKED

Posted: Wed Jul 12, 2006 3:42 pm
by chen
gnozal wrote:
chen wrote:
gnozal wrote:The libs don't work with 'ThreadSafe' enabled.

Look at http://www.purebasic.fr/english/viewtop ... 2&start=15

and with unicode flag uncheck.... is this true?

at least I need to disable unicode option in jaPBe for pureRESIZE to work
Yes, the libs are compiled with UNICODE UNCHECKED
gnozal... is there some reason to compile without unicode option?

Posted: Wed Jul 12, 2006 4:48 pm
by gnozal
chen wrote:
gnozal wrote:
chen wrote:
gnozal wrote:The libs don't work with 'ThreadSafe' enabled.

Look at http://www.purebasic.fr/english/viewtop ... 2&start=15

and with unicode flag uncheck.... is this true?

at least I need to disable unicode option in jaPBe for pureRESIZE to work
Yes, the libs are compiled with UNICODE UNCHECKED
gnozal... is there some reason to compile without unicode option?
Yes :
1. Tailbite ; AFAIK the current version of Tailbite does not handle unicode.
2. I am usually working on Win98SE : not a unicode OS.

Posted: Mon Jul 17, 2006 4:11 pm
by yabune
Is it possible to make your lib work with StatusBar?

Thanks!

So why doesn't this work?

Posted: Tue Sep 19, 2006 7:52 am
by danraymond
Dear gnozal;

have just tried your form designer and also resize. for PB4

your form generates the following code with resize enabled but the editor gadget doesn't resize, why?

also I can't get the parent check box to allow to be checked in the extras section where you specify resizing (bug or design)?

thanks
Dan Raymond

Code: Select all

;{- Constants
;{ Windows
Enumeration
  #Window_0
EndEnumeration
;}
;{ Gadgets
Enumeration
  #EditorGadget_0
EndEnumeration
;}
;}
Procedure OpenWindow_Window_0()
  If OpenWindow(#Window_0, 450, 200, 400, 400, "#Window_0", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar)
    If CreateGadgetList(WindowID(#Window_0))
      EditorGadget(#EditorGadget_0, 70, 20, 280, 340)
      ; Gadget Resizing
      PureRESIZE_SetGadgetResize(#EditorGadget_0, 1, 1, 0, 0)
      ; Gadget Colors
      PureCOLOR_SetGadgetColor(#EditorGadget_0, #PureCOLOR_SystemColor, $C4F1F2)
    EndIf
  EndIf
EndProcedure

OpenWindow_Window_0()

;{- Event loop
Repeat
  Event = WaitWindowEvent()
  Select Event
    ; ///////////////////
    Case #PB_Event_Gadget
      EventGadget = EventGadget()
      EventType = EventType()
      If EventGadget = #EditorGadget_0
      EndIf
    ; //////////////////////
    Case #PB_Event_CloseWindow
      EventWindow = EventWindow()
      If EventWindow = #Window_0
        Break
      EndIf
  EndSelect
Forever
;}


Re: So why doesn't this work?

Posted: Tue Sep 19, 2006 11:08 am
by gnozal
danraymond wrote:Dear gnozal;
have just tried your form designer and also resize. for PB4 your form generates the following code with resize enabled but the editor gadget doesn't resize, why?
I don't know how you want it to be resized, but if you add lock bottom and lock right in PureFORM it works well :
Code : PureRESIZE_SetGadgetResize(#EditorGadget_0,1,1,1,1)
Note that you can test the resizing in 'Preview' or 'Compile/Run' mode.
danraymond wrote: also I can't get the parent check box to allow to be checked in the extras section where you specify resizing (bug or design)?
Works here.
Note : obviously you can only check 'Relative to parent gadget' if the gadget has a parent gadget (like ContainerGadget, PanelGadget ...) :wink: