Search found 93 matches

by epog10
Mon Jul 22, 2024 3:35 pm
Forum: Coding Questions
Topic: Column select
Replies: 9
Views: 1328

Re: Column select

Sorry for the delay - I have been away.

Thank you all for your responses and clarifications.

mk-soft second example does work so I can do it in 5 although I did download 6 before I went away.

Can't pretend I understand the code - Have you declared (basically "invented") the "#MyEventType ...
by epog10
Thu Jul 18, 2024 10:19 am
Forum: Coding Questions
Topic: Column select
Replies: 9
Views: 1328

Re: Column select

Thank you for your responses.

Afraid that I see nothing called 'GetGateState' and the software example, does not run and I notice items (e.g. #PB_ListIcon_ClickedColum) that do not come up on Help.

I think the problem might be that I need to update my version (5.62) of Pb for those items to be ...
by epog10
Wed Jul 17, 2024 11:39 am
Forum: Coding Questions
Topic: Column select
Replies: 9
Views: 1328

Column select

I am an infrequent user of Purebasic. Thus apologies if this is a very basic question, the answer to which I should know.

In the ListIconGadget -

Is there an equivalent to GetGadgetState(0) that returns the column number?

Regards,
ep
by epog10
Tue Apr 25, 2023 2:35 pm
Forum: Coding Questions
Topic: Save screen section
Replies: 2
Views: 1000

Re: Save screen section

Thank you very much for your response.

I am in the process of converting my original progam so that it uses the Gadget save in your code and it is working well.

Regards,
epog10
by epog10
Thu Apr 20, 2023 4:37 pm
Forum: Coding Questions
Topic: Save screen section
Replies: 2
Views: 1000

Save screen section

I have a ContainerGadget with a series of text boxes that get filled in by the program.

What I want to do is to save the ContainerGadget with all the data as an image which will be incorporated into a web page.

Is there a simple way to do that? Obviously I could do a Windows screen capture, then ...
by epog10
Mon Mar 06, 2023 3:22 pm
Forum: Coding Questions
Topic: Listicongadget column identity
Replies: 23
Views: 2741

Re: Listicongadget column identity

Sorry for the delay in answering - have been away.

Many thanks for the responses one of which I shall implement.

2015 ?????????????
Guess I am old and doddering but concerned that not only did I not remember this but when I searched the other day, whatever terms I used did not signal that thread ...
by epog10
Thu Feb 23, 2023 3:08 pm
Forum: Coding Questions
Topic: Listicongadget column identity
Replies: 23
Views: 2741

Listicongadget column identity

Apologies if the following has been answered in the forum - as an occasional user I have not found it.

I can get the line number in which a cell was clicked with GetGadgetState. But is there an equivalent way of getting the column number?

Regards,
epog10
by epog10
Tue Sep 24, 2019 7:10 pm
Forum: Coding Questions
Topic: Fonts on-the-fly?
Replies: 1
Views: 938

Re: Fonts on-the-fly?

Sorry about that!
Must have had a senior moment!!

The following seems to work quite well:-
aNS1 = Trim(GetGadgetText(#Text_5)) ;Construct font
X = Val(GetGadgetText(#String_6)) ;Size
FontID1 = LoadFont(1, aNS1, X)

Regards
epog10
by epog10
Tue Sep 24, 2019 6:54 pm
Forum: Coding Questions
Topic: Fonts on-the-fly?
Replies: 1
Views: 938

Fonts on-the-fly?

I have a series of files with some captions which have their own font specifications.

These have been pre-set and extracted using FontRequester and the different elements saved as a series of variables.

Is it possible to construct a LoadFont from variables?

Can't seem to work it out such as ...
by epog10
Tue Sep 10, 2019 10:48 am
Forum: Coding Questions
Topic: Keyboard repeats
Replies: 2
Views: 1701

Re: Keyboard repeats

Many thanks for point out the intricacies of Window Events which I have now read about.

Furthermore your solution to my keyboard problem is just what I needed.

Much obliged - thank you.

Regards,
epog10
by epog10
Mon Sep 09, 2019 1:59 pm
Forum: Coding Questions
Topic: Keyboard repeats
Replies: 2
Views: 1701

Keyboard repeats

I am getting repeated responses to ExamineKeyboard/KeyboardReleased calls which i do not understand or know how to correct.

In the following skeletal code, on the next keypress the previously pressed key is returned at least a couple of times. Releasing the aPRESS = "" line still gives a similar ...
by epog10
Mon Aug 26, 2019 11:03 am
Forum: Coding Questions
Topic: Detect keyboard on-the-fly
Replies: 4
Views: 1631

Re: Detect keyboard on-the-fly

Point taken in - many thanks.
by epog10
Fri Aug 23, 2019 4:52 pm
Forum: Coding Questions
Topic: Detect keyboard on-the-fly
Replies: 4
Views: 1631

Re: Detect keyboard on-the-fly

Of course it makes sense to chop the delay up to under reaction time!

It ended up like this, with iDLE and aNS pre-set:-

Procedure IDLE()
Repeat
Delay(10)
ExamineKeyboard()
LoadSprite(#Sprite_0, aNS)
DisplaySprite(#Sprite_0, 0, 0)
FlipBuffers()
If L < ElapsedMilliseconds()
iDLE = iDLE + 1 ...
by epog10
Thu Aug 22, 2019 3:11 pm
Forum: Coding Questions
Topic: Detect keyboard on-the-fly
Replies: 4
Views: 1631

Detect keyboard on-the-fly

I want to rotate three or four 'idle' pictures, each for about ten seconds, until interrupted by a keyboard press.

However whatever I try in terms of timing does not interrupt the sequence like it should. It may or may not work. it may require multiple key presses. All rather untidy.

Unfortunately ...
by epog10
Mon Jul 29, 2019 10:24 am
Forum: Coding Questions
Topic: Image manipulations
Replies: 7
Views: 2197

Re: Image manipulations

Well it has been a fun weekend and I am now confident I can handle byte operations within images.

The one thing I quickly discovered is that all images seem to be in reverse row order.
Presumably the UseXXXImageDecoder() decodes in a format suitable for the Purebasic image box but it does make the ...