Author Topic: GUI in purely GLBasic  (Read 782 times)

Offline Belnivista

  • Mc. Print
  • *
  • Posts: 15
  • serious!?!?
    • View Profile
Re: GUI in purely GLBasic
« Reply #15 on: 2018-Dec-14 »
 :x
sorry, you are correct. THANK YOU!!!!!!
i must have miss looked that in frustration. you just saved me a LOT of brain itching.

this is a POS that im doing for my business out of a mix between hobby and necessity. the GUI is because i just like doing it and dont understand the stuff available. 10 years ago i made a similar program only simpler( it works flawlessly and still in use), but now i need a better one with more features. previous on has barcode printing, accounts, till slip printing and selling screen(point of sale). this one will have financial data, stock data, business data labour costing... etc. basically a proper point of sal program thats going to be fully free and up there with the best of them.
 =D it all started with a what if, and is nearing completion now. i will definitely put it out for all to use, was my intention all along, cuz i`ve read reviews and  stuff and glb needs a proper GUI to be growing some more


thanks Quentin for your help!
every worthwhile project takes time, sometimes even a lifetime

Offline dreamerman

  • Global Moderator
  • Mr. Polyvector
  • *******
  • Posts: 242
    • View Profile
    • my personal website
Re: GUI in purely GLBasic
« Reply #16 on: 2018-Dec-14 »
In shorts, I've checked code, and if I undersand correctly You are using InStr in wrong way, in GLBasic it's:
Code: GLBasic [Select]
pos% = INSTR(where_to_look$, what_you_want_to_find$, start%=0)
so it should be:
Code: GLBasic [Select]
ins = INSTR(self.contents[i][c].sval$,param$)
in 'search_table_partial' function and that's working... despite that I would advise to declare variables as integers %, by default they are float #..

ah.. @Quentin was faster :]
data is already there, yet at least I've some problem with fonts - solid black background, properly visible only after hover/focus.
Check my source code editor for GLBasic - link

Offline Belnivista

  • Mc. Print
  • *
  • Posts: 15
  • serious!?!?
    • View Profile
Re: GUI in purely GLBasic
« Reply #17 on: 2018-Dec-14 »
thanks dreamerman!
every worthwhile project takes time, sometimes even a lifetime

Offline Belnivista

  • Mc. Print
  • *
  • Posts: 15
  • serious!?!?
    • View Profile
Re: GUI in purely GLBasic
« Reply #18 on: 2018-Dec-14 »
@ dreamerman

can you elaborate about the fonts please? anything to improve will do wonders
every worthwhile project takes time, sometimes even a lifetime

Offline Quentin

  • Prof. Inline
  • *****
  • Posts: 915
    • View Profile
Re: GUI in purely GLBasic
« Reply #19 on: 2018-Dec-14 »
glad we could help :) It's an often made mistake, even after years of programming, so don't worry much about it.

by the way ... welcome to the forum


regarding the font I have the same problem as described by dreamerman. Every menu entries/input fields and so on are black colored unless hover over it with mouse pointer (see attachment)
« Last Edit: 2018-Dec-14 by Quentin »

Offline Belnivista

  • Mc. Print
  • *
  • Posts: 15
  • serious!?!?
    • View Profile
Re: GUI in purely GLBasic
« Reply #20 on: 2018-Dec-14 »
thats to do with the font files then.

make sure the
SETTRANSPARENCY RGB(255,0,128)

and there sould be 2x font files. i did attach it in previous posts. it happens alot when i test programs on other computers.

sometimes the settransparency wont work properly( it might be me as stated  =D)
every worthwhile project takes time, sometimes even a lifetime

Offline Belnivista

  • Mc. Print
  • *
  • Posts: 15
  • serious!?!?
    • View Profile
Re: GUI in purely GLBasic
« Reply #21 on: 2018-Dec-14 »
Thanks guys!!

this is how it should look though. working correctly
every worthwhile project takes time, sometimes even a lifetime

Offline Snoopy

  • Mr. Polyvector
  • ***
  • Posts: 204
    • View Profile
Re: GUI in purely GLBasic
« Reply #22 on: 2019-Feb-14 »
Very very interesting project (in purely GLBasic so very portable)

I hope you're still working on it, it's really good  :good:

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1399
    • View Profile
Re: GUI in purely GLBasic
« Reply #23 on: 2019-Mar-04 »
Nice one!!

I too am using GLB for some business side projects...here is the start of my simple grid data viewer - but your GUI project looks very nice!

What are you using for your database backend?

« Last Edit: 2019-Mar-04 by MrPlow »
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: GUI in purely GLBasic
« Reply #24 on: 2019-Mar-09 »
Cool stuff. I just wonder, what is wrong with using DDgui instead?