skinned GUI solution (incl. editable grid control)

Developed or developing a new product in PureBasic? Tell the world about it.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Hi CSAUER. It's an impressive thing you've done - looks great, however I see the same problem that srod found - specifically, after double-clicking a cell to edit it, when I click at the end of the text to try to reposition the cursor at the end of the cell's text, I find the content vanishes completely. I also had some difficulty with the switch in the top-left. It seemed to get 'stuck' in the middle position. It's not clear whether you work it by clicking the switch or the icons to the left or right of it.

As for price, I could agree to it. As for source, I don't particularly mind either way, so long as if it's closed that regular updates be performed (i.e. you're willing to maintain it). Also unicode would have to be supported. From my quick test, it seems so. Help & examples are a must too, along with (presumably) a support tool to manage/build the skins etc. Good luck with it.
CSAUER
Enthusiast
Enthusiast
Posts: 188
Joined: Mon Oct 18, 2004 7:23 am
Location: Germany

Post by CSAUER »

I will take a closer look to the "finish grid input" redraw thing.

Of course I will provide updates and will open a bug ticketing system.

I have some additional features in mind, like XML based layout description to split between layout and logic code, like they do with XCode and Interface Builder. Additional I wish to have a visual GUI editor supporting all functionalities.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PB4.1 - Win: MacBook black 2008 2,4 GHz, 4 GB RAM, MacOSX 10.5/VMWare/WinXP
PB4.1 - Mac: MacMini G4 1,4 GHz, 512 MB RAM, MacOSX 10.4
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 572
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

[OT]
ts-soft wrote:Shows not so good for me Wink
Is outside the window an see here:
http://www.realsource.de/tmp/WUI-Demo.png

greetings
Thomas
Thomas!
Could you tell me what kind of Visual-Style you use? The Taskbar looks funny! I like it!
[/OT]

@topic:
the GUI looks nice!
Could you show us a little Source-Example? I'd like how to use it. Thanks.
cheers,

bembulak
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

I had a similar flicker problem with the splitter in CodeCaddy. In the end I checked for the combination of a message related to the splitter bar AND a size change. That way you can filter out certain messages.

Code: Select all

Case #g_splitter
            ;
            ; there is no way to discern between splitter events caused by resizing the gadget
            ; or caused by moving the splitter bar :-(
            ;
            ; but... here's the work around... thx to rescator for the inspiration, all mistakes
            ; below are all mine :-)...
            ;
            ; if the size of the splitter gadget did not change the event was caused by dragging
            ; the splitter bar... now let's hope there are no other events that cause this :-(
            ;
            height = GadgetHeight(#g_splitter)
            width = GadgetWidth(#g_splitter)
            If old_splitter_height = height And old_splitter_width = width And height > 0
              splitter_permileage = 1000*GetGadgetState(#g_splitter)/height
              If splitter_max = #True
                splitter_max = #False
                reflect_settings()
              EndIf
            EndIf
            old_splitter_height = height
            old_splitter_width = width
            ;
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

- Is there an interest of releasing this library?
- Would a pricing of 20 Euro for unlimited use be fair?
- Should it contain sources as well?
20€ is fine IF there is a decent way of using the library. I mean it shouldnt be very complicated for the developers to implement it :)

Sources? that would defiently be cool as i hate to rely on 3rd party developers when making commercial stuff.
CSAUER
Enthusiast
Enthusiast
Posts: 188
Joined: Mon Oct 18, 2004 7:23 am
Location: Germany

Post by CSAUER »

It is really simple to use.
Here is an example for dealing with a skinned button with mouseover and event handling:

Code: Select all

; WUI - Example with button mouse-Over and event handling

; Loading Image Ressources
ImgButtonsSkin = LoadImage(#PB_Any,"button.bmp")
imgAdd = GrabImage(ImgButtonsSkin,#PB_Any,0,0,280,60)
imgBackground = GrabImage(ImgButtonsSkin,#PB_Any,0,0,1,60) ; extract background gradient
ResizeImage(imgBackground,50,60) ; scale background gradient


; Create a window
twindow = WUI_CreateWindow("TESTWIN",400,400,140,60,"WUI Example",#PB_Window_ScreenCentered | #PB_Window_SystemMenu)

; create a background image (left)
WUI_CreateImage("barleft",0,0,0,0,imgBackground,"")

; create a image button
WUI_CreateSkinnedButton("add",50,0,imgAdd,"")
; add mouse-over capability
WUI_GadgetMouseOverSet("add",40,imgAdd)
; add animation 
WUI_GadgetAnimationSet("add",40,imgAdd,4,6,4) ; Image-Width=40 Pixel, Start-Image=4, End-Image=6, Actual-Image=4

; create a background image (right)
WUI_CreateImage("barright",90,0,0,0,imgBackground,"")

Repeat 
  ; get window event (20 ms should be fine for a smooth animation
  EventID = WaitWindowEvent(20) 
  ; catch WUI events
  WUI_EventCatch(WindowMouseX(twindow),WindowMouseY(twindow),EventID,EventType(),EventGadget(),EventMenu())
  ; get event object
  eObject.s = WUI_EventObjectName()
  ; get event type:
  ;     standard types: 1=Focus, 2=LostFocus, 3=MouseOver, 16=LeftClick, 17=LeftDoubleClick, 32=RightClick, 33=RightDoubleClick, 64=Change, 65=ReturnKey, 66=SizeItem, 67=CloseItem, 90=Scrolling (Scrollbars)
  ;     special types:  91=ChangeTab, 96=AnimationFinished, 100=CellClick/Enter, 101=CellChange, 102=CellKept, 103=CellStartInput, 104=CellNoChangeAllowed, 105=Expand/Collapse)
  eType.b = WUI_EventType()
  If eObject = "add" And eType = 16
    WUI_GadgetAnimationStart(eObject,3,50,0) ; Start animation with type=3 (forward/ping-pong), speed=50, no-repeat
  EndIf  
Until EventID=#PB_Event_CloseWindow
End
Here you can find a download-able demo file with separate ressource file.
http://www.xideas.de/PureBasic/mouseover.zip

As I mentioned, actually I prepare a help-file with example code and I think I will release the library within this week. I am thinking of dealing with Paypal payment. What do you think about this?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PB4.1 - Win: MacBook black 2008 2,4 GHz, 4 GB RAM, MacOSX 10.5/VMWare/WinXP
PB4.1 - Mac: MacMini G4 1,4 GHz, 512 MB RAM, MacOSX 10.4
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

paypal is fine. Be sure to have a demo. Just make the app's not work for more than lets say 10 minutes or 5 minutes whatever.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Looks very nice, and I would probably pay 20$ for it if I need a skinned application and if it's easy to use.

But I was actually interested in that "WSQB sqlite database browser" too :D Since I'm making some application in PB now which uses sqlite and I don't know of any good tool for browsing the database. Is it free? Maybe I can test it?
I like logic, hence I dislike humans but love computers.
CSAUER
Enthusiast
Enthusiast
Posts: 188
Joined: Mon Oct 18, 2004 7:23 am
Location: Germany

Post by CSAUER »

I posted a earlier version of WQSB as a free version here:
http://www.purebasic.fr/english/viewtop ... light=wsqb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PB4.1 - Win: MacBook black 2008 2,4 GHz, 4 GB RAM, MacOSX 10.5/VMWare/WinXP
PB4.1 - Mac: MacMini G4 1,4 GHz, 512 MB RAM, MacOSX 10.4
CSAUER
Enthusiast
Enthusiast
Posts: 188
Joined: Mon Oct 18, 2004 7:23 am
Location: Germany

Post by CSAUER »

Everybody who is interested into this lib should contact me via PM.
It will be delivered without sources but some examples and a help file.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PB4.1 - Win: MacBook black 2008 2,4 GHz, 4 GB RAM, MacOSX 10.5/VMWare/WinXP
PB4.1 - Mac: MacMini G4 1,4 GHz, 512 MB RAM, MacOSX 10.4
mchael
User
User
Posts: 15
Joined: Mon Oct 14, 2019 7:31 am

Re: skinned GUI solution (incl. editable grid control)

Post by mchael »

I'd be interested in buying a copy if it is easy to hookup to a SQL query with SQL Lite. How and where would I buy?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: skinned GUI solution (incl. editable grid control)

Post by Fangbeast »

mchael wrote:I'd be interested in buying a copy if it is easy to hookup to a SQL query with SQL Lite. How and where would I buy?
mchal, somehow, I don't think he will be replying as his last post was in: Fri May 16, 2008 21:59
Amateur Radio, D-STAR/VK3HAF
Post Reply