Recent Posts

Pages: [1] 2 3 ... 10
Shared INC's and LIB's / Custom Window - release V2
« Last post by Andy on January 15, 2018, 07:11:54 AM »
Here is the second (beta) version of my custom window / custom menus.

The work here is based on menus and menu items.

As stated previously, I've split up all items (except menu titles) into sections (now six in all), and you can really do great things with this and it's flexible.

Each menu item is over layed with the following six controls:

1. An indent.
2. An icon if one is required.
3. A style, i.e. checkbox, radio button, or static (the default).
4. Your menu item text.
5. Your menu item shortcut text if required.
6. An end spacer.

Menu item text has two distinct text parts, the text for the description, and the text for (if you want one) a shortcut, both are now nicely aligned.

Also, I've got rid of a bottleneck which I recently spotted in version 1, the result is that this version (V2) now runs so much smoother and faster.

I have yet to document this, but this is going to bring menus alive for you, so I believe it's a must have.

If you like the menus, but just want a normal window with these menus then I think it will just be a quick amendment for you.

Ask any questions, please - think you'll all like this one.

As always copy:

Include files to your C:\IWBDev3\Include folder
Library file to your C:\IWBDev3\Libs folder

Please give some feedback!


General Questions / Re: Vertically align static text
« Last post by billhsln on January 13, 2018, 11:03:29 PM »
Also came in handy for me.  Makes the program look much cleaner.

General Questions / Re: Vertically align static text
« Last post by Andy on January 13, 2018, 10:27:20 PM »

That's perfect, thank you!

The text looks so much better now it's aligned.

General Questions / Re: Vertically align static text
« Last post by LarryMc on January 13, 2018, 10:03:11 AM »
Add a style of 0x200.
That will center the text exactly vertically in the box (give or take 1 pixel)

I need to add that flag to iwbstd.incc.
General Questions / Re: Vertically align static text
« Last post by Egil on January 13, 2018, 08:55:18 AM »

Why not use a RichEdit Control?

Code: [Select]
AutoDefine "Off"

def win:window 
def run,wstyle:int 

' Create a window .. 
OpenWindow win,0,0,480,300,wstyle,0,"  IWB Test Window",&messages 

'setcontroltext win,100,"Test"

run = 1 
WAITUNTIL run = 0 

' Main loop
SUB messages(),int

SELECT @class
CASE @idcreate 
centerwindow win

CASE @idclosewindow 
run = 0 


General Questions / Vertically align static text
« Last post by Andy on January 13, 2018, 05:09:47 AM »
Does any one know how to vertically align text in a static?

The text appears near the top border of the static and I would like a way to move it down slightly, best case would be centered.

I think you can do it with buttons but can't find anything on msdn about the same for statics.

Shared INC's and LIB's / Re: Custom Window - The real release V2 coming soon
« Last post by Andy on January 13, 2018, 05:04:45 AM »
I wanted a way to add in shortcuts for each menu / popup item but I could not get the alignment correct.

Then it dawned on me the best way to do this was to split each item up into segments, so I've split it into five extra controls per menu / popup item like this:

1. An indentation
2. An icon (if required)
3. The style of the item (checkbox / radio button / static)
4. The item's text
5. The shortcut text (if required).

But this gave me problems, and I realised all I needed to do was to first create a hidden control (the length of which would be the total of the above five) and simply track this single control for a mouse over event.

The five extra controls are placed over the hidden control.

When the mouse is over the hidden control, the corresponding five controls are highlighted.

This means each block of text is aligned and I think it looks good.

I have yet to do the popup items, but menu items and popup titles are now working well.

See attached.

IWB3.x Bug Reports / Re: Strange IDE problem
« Last post by Haim on January 10, 2018, 01:52:27 AM »
It also happened to me, and not only in IWbasic.
Try clicking outside the editor area. That is what solves the issue for me.
IWB3.x Bug Reports / Re: Strange IDE problem
« Last post by Andy on January 09, 2018, 05:24:16 AM »

My "About" screen shows the same as you, so yes that should be the most recent version.

As for your problem, I cannot re-create it on my machine, Ctrl + S simply saves my code as it's designed to.

Have you tried re-installing IWB3?

IWB3.x Bug Reports / Strange IDE problem
« Last post by billhsln on January 08, 2018, 09:54:58 PM »
I used to be able to do a Control-S and the IDE would save my current file.  Now it puts a DC3 into the code.  Is there some switch I checked or unchecked that does this?  I have looked but could not find one.

I have attached the About screen from the IDE I am using, should be the most current.

Pages: [1] 2 3 ... 10