Author Topic: window frame make easier?  (Read 4688 times)

0 Members and 1 Guest are viewing this topic.

Frankolinox

  • Guest
window frame make easier?
« on: March 10, 2014, 08:21:34 AM »
lalala :)
« Last Edit: October 01, 2014, 08:39:02 AM by Frankolinox »

Aurel

  • Guest
Re: window frame make easier?
« Reply #1 on: March 10, 2014, 12:55:26 PM »
Frank
to be honest i am not sure what you ask ???
If you mean create window without register class ...it is not possible
you must fill class structure in order to set class arguments
BUT as you know with include functions you can build any window with
Oxygen Basic on very easy way
( i think that you already tried awinh.inc or any other includes)
 ;)

Aurel

  • Guest
Re: window frame make easier?
« Reply #2 on: March 11, 2014, 02:09:07 AM »
Frank
There is no need for WinMain and you know that...
do you ever look in my awinh.inc file there is no Winmain or comand line ..there is no need
for that .
I really don't know what else to say... ::)

Aaron

  • Guest
Re: window frame make easier?
« Reply #3 on: March 11, 2014, 03:01:49 AM »
Aurel,

Read deeper!  You have misunderstood the question.

Aurel

  • Guest
Re: window frame make easier?
« Reply #4 on: March 11, 2014, 04:56:05 AM »
Quote
Read deeper!  You have misunderstood the question.
where?
I don't get it what he mean under inst,or winmain and what he
mean to remove from class registering  ::)

Aaron

  • Guest
Re: window frame make easier?
« Reply #5 on: March 11, 2014, 05:15:48 AM »
Quote
I don't get it what he mean under inst,or winmain and what he
mean to remove from class registering 

and this is the reason to read a little bit better   ;D


Aurel

  • Guest
Re: window frame make easier?
« Reply #6 on: March 11, 2014, 05:26:56 AM »
so if you have a clue what is all about
do you can explain?  :o

Quote
Why doesn't use the chance to make it without extra call winmain() function

And who tell you that you must use winmain()...
really Frank i don't know why you insist on winMain()    ???

Aaron

  • Guest
Re: window frame make easier?
« Reply #7 on: March 11, 2014, 06:04:35 AM »
Quote
so if you have a clue what is all about
do you can explain?  :o

it means:  this form of  "Winmain" isn't good for me.  I  would like have  an old classic " WinMain". ;D  ;D

Aurel

  • Guest
Re: window frame make easier?
« Reply #8 on: March 11, 2014, 06:34:42 AM »
Oh boy... ;D

Aurel

  • Guest
Re: window frame make easier?
« Reply #9 on: March 11, 2014, 07:42:15 AM »
simple example:
Code: [Select]
'new skeleton - awinh2.inc
$ filename "Bone.exe"
include "RTL32.inc"
include "awinh2.inc"
'#lookahead
INT win                              ' window handler
INT x=100,y=100,w=640,h=480              ' window sizes
INT winStyle = WS_OVERLAPPEDWINDOW   ' window style
INT b1ID = 100                       ' button 1 ID
INT hButton1                         ' button handler
INT edit1,ed1ID=200
$ CRLF = chr(13)+chr(10)             ' carriage ret/line feed

'create window
win = SetWindow("New Window",x,y,w,h,0,winStyle)
'create button
hButton1 = SetButton (win,4,4,80,24,"OPEN",0,0x200,b1ID)
'create editbox - singleLine
edit1 = SetEditBox (win,100,4,100,24,"Edit 1",0x50004000,0x200,ed1ID)

'message loop
WHILE GetMessage(wm,0,0,0)>0
  TranslateMessage wm
  DispatchMessage wm
WEND

'main callback function
Function WndProc(sys hwnd,wmsg,wparam,lparam) as sys callback
Select wmsg
case WM_DESTROY
     PostQuitMessage 0

End select
'ret default
Return DefWindowProc(hwnd,wmsg,wparam,lparam)
End Function

' [[[[[[[[[ PROGRAM FUNCTIONS / SUBS ]]]]]]]]]]]]]]]]]]]]]]]]]




Nicola

  • Guest
Re: window frame make easier?
« Reply #10 on: August 29, 2020, 07:31:46 AM »
hello, where is awinh2.inc?

Charles Pegge

  • Guest
Re: window frame make easier?
« Reply #11 on: August 29, 2020, 08:31:38 AM »
Hi Nicola,

There is an awinh3 example in ProjectsB\Scintilla\

It uses awinh.inc

Nicola

  • Guest
Re: window frame make easier?
« Reply #12 on: September 01, 2020, 04:46:29 AM »
Hi.
I saw in the directory you pointed out to me, but I only found awinh.inc and awinh1.inc.  :-\
I tried to include awinh.inc, but it works only after compiling the program, not directly.
An error comes out with awinh1.inc ... :(
« Last Edit: September 01, 2020, 06:12:42 AM by Nicola »

JRS

  • Guest
Re: window frame make easier?
« Reply #13 on: September 01, 2020, 07:08:23 AM »
awinh.inc is an effort from a member no longer with us and based on early versions of O2. I would focus on using Charles approved includes.

Charles Pegge

  • Guest
Re: window frame make easier?
« Reply #14 on: September 02, 2020, 03:38:32 AM »
I adapted awinh.inc to use o2's corewin, so you have access to the major part of Windows API functions.

Asciedit3.o2bas is quite a good looking GUI, with plenty of bells and whistles, and uses Scintilla for the edit window, so I think you could learn quite a lot from this project of Aurel's.

But most of our GUI and Opengl demos use WinUtil (including corewin) as the base code.


PS Awinh.inc is not yet 64bit compliant
« Last Edit: September 02, 2020, 04:55:29 AM by Charles Pegge »